@tangle-network/agent-interface 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,6 +84,14 @@ export interface AgentProfileResources {
84
84
  */
85
85
  failOnError?: boolean;
86
86
  }
87
+ /**
88
+ * Portable reasoning/thinking effort. Backends map it to their native control at materialization:
89
+ * codex `model_reasoning_effort`, kimi `--thinking`/`--no-thinking`, claude thinking budget.
90
+ * Ordered low→high: `none` = no extended thinking; `ultracode` = maximum (claude-code's
91
+ * "ultracode" run mode). A backend without a matching native tier clamps to its nearest
92
+ * (e.g. codex maps `xhigh`/`ultracode` → `high`).
93
+ */
94
+ export type ReasoningEffort = 'none' | 'low' | 'medium' | 'high' | 'xhigh' | 'ultracode';
87
95
  /**
88
96
  * Model selection hints for backends.
89
97
  */
@@ -100,6 +108,11 @@ export interface AgentProfileModelHints {
100
108
  * Optional provider preference hint.
101
109
  */
102
110
  provider?: string;
111
+ /**
112
+ * Reasoning/thinking effort hint — a first-class, portable model dimension (not buried in
113
+ * `extensions`). Backends map it to their native control at materialization.
114
+ */
115
+ reasoningEffort?: ReasoningEffort;
103
116
  /**
104
117
  * Backend-agnostic model metadata/hints.
105
118
  */
@@ -116,6 +116,14 @@ export declare const agentProfileModelHintsSchema: z.ZodObject<{
116
116
  default: z.ZodOptional<z.ZodString>;
117
117
  small: z.ZodOptional<z.ZodString>;
118
118
  provider: z.ZodOptional<z.ZodString>;
119
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
120
+ none: "none";
121
+ low: "low";
122
+ medium: "medium";
123
+ high: "high";
124
+ xhigh: "xhigh";
125
+ ultracode: "ultracode";
126
+ }>>;
119
127
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
120
128
  }, z.core.$strip>;
121
129
  export declare const agentProfilePromptSchema: z.ZodObject<{
@@ -201,6 +209,14 @@ export declare const agentProfileSchema: z.ZodObject<{
201
209
  default: z.ZodOptional<z.ZodString>;
202
210
  small: z.ZodOptional<z.ZodString>;
203
211
  provider: z.ZodOptional<z.ZodString>;
212
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
213
+ none: "none";
214
+ low: "low";
215
+ medium: "medium";
216
+ high: "high";
217
+ xhigh: "xhigh";
218
+ ultracode: "ultracode";
219
+ }>>;
204
220
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
205
221
  }, z.core.$strip>>;
206
222
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
@@ -37,6 +37,7 @@ export const agentProfileModelHintsSchema = z.object({
37
37
  default: z.string().optional(),
38
38
  small: z.string().optional(),
39
39
  provider: z.string().optional(),
40
+ reasoningEffort: z.enum(['none', 'low', 'medium', 'high', 'xhigh', 'ultracode']).optional(),
40
41
  metadata: z.record(z.string(), z.unknown()).optional(),
41
42
  });
42
43
  export const agentProfilePromptSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-interface",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",