@slashfi/agents-sdk 0.33.2 → 0.34.1

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.
@@ -11,14 +11,39 @@
11
11
  *
12
12
  * Response types live in types.ts (they're output shapes, not validated input).
13
13
  */
14
- import { z } from "zod";
14
+ import { z, type ZodTypeAny } from "zod";
15
+ /**
16
+ * Recursively strip null values from an object, converting them to undefined.
17
+ * This is the inverse of zod-to-json-schema's openAi target behavior, which
18
+ * converts .optional() fields to nullable+required in JSON Schema.
19
+ *
20
+ * Used as a z.preprocess() step so that Zod's .optional() (which accepts
21
+ * undefined but not null) works correctly with LLM outputs that send null
22
+ * for "no value" per the OpenAI function calling convention.
23
+ */
24
+ export declare function stripNulls(obj: unknown): unknown;
25
+ /**
26
+ * Wrap a Zod schema with a preprocess step that converts null → undefined.
27
+ * This makes the schema "null-tolerant" — matching what the OpenAI JSON Schema
28
+ * target promises to LLMs (nullable fields) while keeping Zod's .optional()
29
+ * semantics internally.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const schema = z.object({ name: z.string().optional() });
34
+ * const tolerant = nullTolerant(schema);
35
+ * tolerant.parse({ name: null }); // { name: undefined } — no error
36
+ * ```
37
+ */
38
+ export declare function nullTolerant<T extends ZodTypeAny>(schema: T): T;
39
+ export declare function zodToOpenAiJsonSchema(schema: ZodTypeAny): Record<string, unknown>;
15
40
  export declare const callerTypeSchema: z.ZodEnum<["agent", "user", "system"]>;
16
41
  /** Invoke: fire-and-forget */
17
42
  export declare const invokeActionSchema: z.ZodObject<{
18
43
  path: z.ZodString;
19
44
  callerId: z.ZodOptional<z.ZodString>;
20
45
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
21
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
46
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
22
47
  } & {
23
48
  action: z.ZodLiteral<"invoke">;
24
49
  prompt: z.ZodString;
@@ -30,7 +55,7 @@ export declare const invokeActionSchema: z.ZodObject<{
30
55
  prompt: string;
31
56
  callerId?: string | undefined;
32
57
  callerType?: "agent" | "user" | "system" | undefined;
33
- metadata?: Record<string, unknown> | undefined;
58
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
34
59
  sessionId?: string | undefined;
35
60
  branchAttributes?: Record<string, string> | undefined;
36
61
  }, {
@@ -39,7 +64,7 @@ export declare const invokeActionSchema: z.ZodObject<{
39
64
  prompt: string;
40
65
  callerId?: string | undefined;
41
66
  callerType?: "agent" | "user" | "system" | undefined;
42
- metadata?: Record<string, unknown> | undefined;
67
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
43
68
  sessionId?: string | undefined;
44
69
  branchAttributes?: Record<string, string> | undefined;
45
70
  }>;
@@ -48,7 +73,7 @@ export declare const askActionSchema: z.ZodObject<{
48
73
  path: z.ZodString;
49
74
  callerId: z.ZodOptional<z.ZodString>;
50
75
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
51
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
76
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
52
77
  } & {
53
78
  action: z.ZodLiteral<"ask">;
54
79
  prompt: z.ZodString;
@@ -60,7 +85,7 @@ export declare const askActionSchema: z.ZodObject<{
60
85
  prompt: string;
61
86
  callerId?: string | undefined;
62
87
  callerType?: "agent" | "user" | "system" | undefined;
63
- metadata?: Record<string, unknown> | undefined;
88
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
64
89
  sessionId?: string | undefined;
65
90
  branchAttributes?: Record<string, string> | undefined;
66
91
  }, {
@@ -69,7 +94,7 @@ export declare const askActionSchema: z.ZodObject<{
69
94
  prompt: string;
70
95
  callerId?: string | undefined;
71
96
  callerType?: "agent" | "user" | "system" | undefined;
72
- metadata?: Record<string, unknown> | undefined;
97
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
73
98
  sessionId?: string | undefined;
74
99
  branchAttributes?: Record<string, string> | undefined;
75
100
  }>;
@@ -78,34 +103,34 @@ export declare const executeToolActionSchema: z.ZodObject<{
78
103
  path: z.ZodString;
79
104
  callerId: z.ZodOptional<z.ZodString>;
80
105
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
81
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
106
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
82
107
  } & {
83
108
  action: z.ZodLiteral<"execute_tool">;
84
109
  tool: z.ZodString;
85
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
110
+ params: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
86
111
  }, "strip", z.ZodTypeAny, {
87
112
  action: "execute_tool";
88
113
  path: string;
89
114
  tool: string;
90
115
  callerId?: string | undefined;
91
116
  callerType?: "agent" | "user" | "system" | undefined;
92
- params?: Record<string, unknown> | undefined;
93
- metadata?: Record<string, unknown> | undefined;
117
+ params?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
118
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
94
119
  }, {
95
120
  action: "execute_tool";
96
121
  path: string;
97
122
  tool: string;
98
123
  callerId?: string | undefined;
99
124
  callerType?: "agent" | "user" | "system" | undefined;
100
- params?: Record<string, unknown> | undefined;
101
- metadata?: Record<string, unknown> | undefined;
125
+ params?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
126
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
102
127
  }>;
103
128
  /** Get tool schemas for an agent */
104
129
  export declare const describeToolsActionSchema: z.ZodObject<{
105
130
  path: z.ZodString;
106
131
  callerId: z.ZodOptional<z.ZodString>;
107
132
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
108
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
133
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
134
  } & {
110
135
  action: z.ZodLiteral<"describe_tools">;
111
136
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -114,14 +139,14 @@ export declare const describeToolsActionSchema: z.ZodObject<{
114
139
  path: string;
115
140
  callerId?: string | undefined;
116
141
  callerType?: "agent" | "user" | "system" | undefined;
117
- metadata?: Record<string, unknown> | undefined;
142
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
118
143
  tools?: string[] | undefined;
119
144
  }, {
120
145
  action: "describe_tools";
121
146
  path: string;
122
147
  callerId?: string | undefined;
123
148
  callerType?: "agent" | "user" | "system" | undefined;
124
- metadata?: Record<string, unknown> | undefined;
149
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
125
150
  tools?: string[] | undefined;
126
151
  }>;
127
152
  /** Load: get agent definition */
@@ -129,7 +154,7 @@ export declare const loadActionSchema: z.ZodObject<{
129
154
  path: z.ZodString;
130
155
  callerId: z.ZodOptional<z.ZodString>;
131
156
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
132
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
157
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
133
158
  } & {
134
159
  action: z.ZodLiteral<"load">;
135
160
  }, "strip", z.ZodTypeAny, {
@@ -137,20 +162,20 @@ export declare const loadActionSchema: z.ZodObject<{
137
162
  path: string;
138
163
  callerId?: string | undefined;
139
164
  callerType?: "agent" | "user" | "system" | undefined;
140
- metadata?: Record<string, unknown> | undefined;
165
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
141
166
  }, {
142
167
  action: "load";
143
168
  path: string;
144
169
  callerId?: string | undefined;
145
170
  callerType?: "agent" | "user" | "system" | undefined;
146
- metadata?: Record<string, unknown> | undefined;
171
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
147
172
  }>;
148
173
  /** List resources: discover available resources on an agent */
149
174
  export declare const listResourcesActionSchema: z.ZodObject<{
150
175
  path: z.ZodString;
151
176
  callerId: z.ZodOptional<z.ZodString>;
152
177
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
153
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
178
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
154
179
  } & {
155
180
  action: z.ZodLiteral<"list_resources">;
156
181
  }, "strip", z.ZodTypeAny, {
@@ -158,20 +183,20 @@ export declare const listResourcesActionSchema: z.ZodObject<{
158
183
  path: string;
159
184
  callerId?: string | undefined;
160
185
  callerType?: "agent" | "user" | "system" | undefined;
161
- metadata?: Record<string, unknown> | undefined;
186
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
162
187
  }, {
163
188
  action: "list_resources";
164
189
  path: string;
165
190
  callerId?: string | undefined;
166
191
  callerType?: "agent" | "user" | "system" | undefined;
167
- metadata?: Record<string, unknown> | undefined;
192
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
168
193
  }>;
169
194
  /** Read resources: fetch one or more resources by URI */
170
195
  export declare const readResourcesActionSchema: z.ZodObject<{
171
196
  path: z.ZodString;
172
197
  callerId: z.ZodOptional<z.ZodString>;
173
198
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
174
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
199
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
175
200
  } & {
176
201
  action: z.ZodLiteral<"read_resources">;
177
202
  uris: z.ZodArray<z.ZodString, "many">;
@@ -181,20 +206,20 @@ export declare const readResourcesActionSchema: z.ZodObject<{
181
206
  uris: string[];
182
207
  callerId?: string | undefined;
183
208
  callerType?: "agent" | "user" | "system" | undefined;
184
- metadata?: Record<string, unknown> | undefined;
209
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
185
210
  }, {
186
211
  action: "read_resources";
187
212
  path: string;
188
213
  uris: string[];
189
214
  callerId?: string | undefined;
190
215
  callerType?: "agent" | "user" | "system" | undefined;
191
- metadata?: Record<string, unknown> | undefined;
216
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
192
217
  }>;
193
218
  export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
194
219
  path: z.ZodString;
195
220
  callerId: z.ZodOptional<z.ZodString>;
196
221
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
197
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
222
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
198
223
  } & {
199
224
  action: z.ZodLiteral<"invoke">;
200
225
  prompt: z.ZodString;
@@ -206,7 +231,7 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
206
231
  prompt: string;
207
232
  callerId?: string | undefined;
208
233
  callerType?: "agent" | "user" | "system" | undefined;
209
- metadata?: Record<string, unknown> | undefined;
234
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
210
235
  sessionId?: string | undefined;
211
236
  branchAttributes?: Record<string, string> | undefined;
212
237
  }, {
@@ -215,14 +240,14 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
215
240
  prompt: string;
216
241
  callerId?: string | undefined;
217
242
  callerType?: "agent" | "user" | "system" | undefined;
218
- metadata?: Record<string, unknown> | undefined;
243
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
219
244
  sessionId?: string | undefined;
220
245
  branchAttributes?: Record<string, string> | undefined;
221
246
  }>, z.ZodObject<{
222
247
  path: z.ZodString;
223
248
  callerId: z.ZodOptional<z.ZodString>;
224
249
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
225
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
250
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
226
251
  } & {
227
252
  action: z.ZodLiteral<"ask">;
228
253
  prompt: z.ZodString;
@@ -234,7 +259,7 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
234
259
  prompt: string;
235
260
  callerId?: string | undefined;
236
261
  callerType?: "agent" | "user" | "system" | undefined;
237
- metadata?: Record<string, unknown> | undefined;
262
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
238
263
  sessionId?: string | undefined;
239
264
  branchAttributes?: Record<string, string> | undefined;
240
265
  }, {
@@ -243,39 +268,39 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
243
268
  prompt: string;
244
269
  callerId?: string | undefined;
245
270
  callerType?: "agent" | "user" | "system" | undefined;
246
- metadata?: Record<string, unknown> | undefined;
271
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
247
272
  sessionId?: string | undefined;
248
273
  branchAttributes?: Record<string, string> | undefined;
249
274
  }>, z.ZodObject<{
250
275
  path: z.ZodString;
251
276
  callerId: z.ZodOptional<z.ZodString>;
252
277
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
253
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
278
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
254
279
  } & {
255
280
  action: z.ZodLiteral<"execute_tool">;
256
281
  tool: z.ZodString;
257
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
282
+ params: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
258
283
  }, "strip", z.ZodTypeAny, {
259
284
  action: "execute_tool";
260
285
  path: string;
261
286
  tool: string;
262
287
  callerId?: string | undefined;
263
288
  callerType?: "agent" | "user" | "system" | undefined;
264
- params?: Record<string, unknown> | undefined;
265
- metadata?: Record<string, unknown> | undefined;
289
+ params?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
290
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
266
291
  }, {
267
292
  action: "execute_tool";
268
293
  path: string;
269
294
  tool: string;
270
295
  callerId?: string | undefined;
271
296
  callerType?: "agent" | "user" | "system" | undefined;
272
- params?: Record<string, unknown> | undefined;
273
- metadata?: Record<string, unknown> | undefined;
297
+ params?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
298
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
274
299
  }>, z.ZodObject<{
275
300
  path: z.ZodString;
276
301
  callerId: z.ZodOptional<z.ZodString>;
277
302
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
278
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
303
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
279
304
  } & {
280
305
  action: z.ZodLiteral<"describe_tools">;
281
306
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -284,20 +309,20 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
284
309
  path: string;
285
310
  callerId?: string | undefined;
286
311
  callerType?: "agent" | "user" | "system" | undefined;
287
- metadata?: Record<string, unknown> | undefined;
312
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
288
313
  tools?: string[] | undefined;
289
314
  }, {
290
315
  action: "describe_tools";
291
316
  path: string;
292
317
  callerId?: string | undefined;
293
318
  callerType?: "agent" | "user" | "system" | undefined;
294
- metadata?: Record<string, unknown> | undefined;
319
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
295
320
  tools?: string[] | undefined;
296
321
  }>, z.ZodObject<{
297
322
  path: z.ZodString;
298
323
  callerId: z.ZodOptional<z.ZodString>;
299
324
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
300
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
325
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
301
326
  } & {
302
327
  action: z.ZodLiteral<"load">;
303
328
  }, "strip", z.ZodTypeAny, {
@@ -305,18 +330,18 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
305
330
  path: string;
306
331
  callerId?: string | undefined;
307
332
  callerType?: "agent" | "user" | "system" | undefined;
308
- metadata?: Record<string, unknown> | undefined;
333
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
309
334
  }, {
310
335
  action: "load";
311
336
  path: string;
312
337
  callerId?: string | undefined;
313
338
  callerType?: "agent" | "user" | "system" | undefined;
314
- metadata?: Record<string, unknown> | undefined;
339
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
315
340
  }>, z.ZodObject<{
316
341
  path: z.ZodString;
317
342
  callerId: z.ZodOptional<z.ZodString>;
318
343
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
319
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
344
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
320
345
  } & {
321
346
  action: z.ZodLiteral<"list_resources">;
322
347
  }, "strip", z.ZodTypeAny, {
@@ -324,18 +349,18 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
324
349
  path: string;
325
350
  callerId?: string | undefined;
326
351
  callerType?: "agent" | "user" | "system" | undefined;
327
- metadata?: Record<string, unknown> | undefined;
352
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
328
353
  }, {
329
354
  action: "list_resources";
330
355
  path: string;
331
356
  callerId?: string | undefined;
332
357
  callerType?: "agent" | "user" | "system" | undefined;
333
- metadata?: Record<string, unknown> | undefined;
358
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
334
359
  }>, z.ZodObject<{
335
360
  path: z.ZodString;
336
361
  callerId: z.ZodOptional<z.ZodString>;
337
362
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
338
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
363
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
339
364
  } & {
340
365
  action: z.ZodLiteral<"read_resources">;
341
366
  uris: z.ZodArray<z.ZodString, "many">;
@@ -345,14 +370,14 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
345
370
  uris: string[];
346
371
  callerId?: string | undefined;
347
372
  callerType?: "agent" | "user" | "system" | undefined;
348
- metadata?: Record<string, unknown> | undefined;
373
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
349
374
  }, {
350
375
  action: "read_resources";
351
376
  path: string;
352
377
  uris: string[];
353
378
  callerId?: string | undefined;
354
379
  callerType?: "agent" | "user" | "system" | undefined;
355
- metadata?: Record<string, unknown> | undefined;
380
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
356
381
  }>]>;
357
382
  export type CallAgentRequest = z.infer<typeof callAgentRequestSchema>;
358
383
  export type CallAgentInvokeRequest = z.infer<typeof invokeActionSchema>;
@@ -377,7 +402,7 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
377
402
  path: z.ZodString;
378
403
  callerId: z.ZodOptional<z.ZodString>;
379
404
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
380
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
405
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
381
406
  } & {
382
407
  action: z.ZodLiteral<"invoke">;
383
408
  prompt: z.ZodString;
@@ -389,7 +414,7 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
389
414
  prompt: string;
390
415
  callerId?: string | undefined;
391
416
  callerType?: "agent" | "user" | "system" | undefined;
392
- metadata?: Record<string, unknown> | undefined;
417
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
393
418
  sessionId?: string | undefined;
394
419
  branchAttributes?: Record<string, string> | undefined;
395
420
  }, {
@@ -398,14 +423,14 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
398
423
  prompt: string;
399
424
  callerId?: string | undefined;
400
425
  callerType?: "agent" | "user" | "system" | undefined;
401
- metadata?: Record<string, unknown> | undefined;
426
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
402
427
  sessionId?: string | undefined;
403
428
  branchAttributes?: Record<string, string> | undefined;
404
429
  }>, z.ZodObject<{
405
430
  path: z.ZodString;
406
431
  callerId: z.ZodOptional<z.ZodString>;
407
432
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
408
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
433
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
409
434
  } & {
410
435
  action: z.ZodLiteral<"ask">;
411
436
  prompt: z.ZodString;
@@ -417,7 +442,7 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
417
442
  prompt: string;
418
443
  callerId?: string | undefined;
419
444
  callerType?: "agent" | "user" | "system" | undefined;
420
- metadata?: Record<string, unknown> | undefined;
445
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
421
446
  sessionId?: string | undefined;
422
447
  branchAttributes?: Record<string, string> | undefined;
423
448
  }, {
@@ -426,39 +451,39 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
426
451
  prompt: string;
427
452
  callerId?: string | undefined;
428
453
  callerType?: "agent" | "user" | "system" | undefined;
429
- metadata?: Record<string, unknown> | undefined;
454
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
430
455
  sessionId?: string | undefined;
431
456
  branchAttributes?: Record<string, string> | undefined;
432
457
  }>, z.ZodObject<{
433
458
  path: z.ZodString;
434
459
  callerId: z.ZodOptional<z.ZodString>;
435
460
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
436
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
461
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
437
462
  } & {
438
463
  action: z.ZodLiteral<"execute_tool">;
439
464
  tool: z.ZodString;
440
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
465
+ params: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
441
466
  }, "strip", z.ZodTypeAny, {
442
467
  action: "execute_tool";
443
468
  path: string;
444
469
  tool: string;
445
470
  callerId?: string | undefined;
446
471
  callerType?: "agent" | "user" | "system" | undefined;
447
- params?: Record<string, unknown> | undefined;
448
- metadata?: Record<string, unknown> | undefined;
472
+ params?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
473
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
449
474
  }, {
450
475
  action: "execute_tool";
451
476
  path: string;
452
477
  tool: string;
453
478
  callerId?: string | undefined;
454
479
  callerType?: "agent" | "user" | "system" | undefined;
455
- params?: Record<string, unknown> | undefined;
456
- metadata?: Record<string, unknown> | undefined;
480
+ params?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
481
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
457
482
  }>, z.ZodObject<{
458
483
  path: z.ZodString;
459
484
  callerId: z.ZodOptional<z.ZodString>;
460
485
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
461
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
486
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
462
487
  } & {
463
488
  action: z.ZodLiteral<"describe_tools">;
464
489
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -467,20 +492,20 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
467
492
  path: string;
468
493
  callerId?: string | undefined;
469
494
  callerType?: "agent" | "user" | "system" | undefined;
470
- metadata?: Record<string, unknown> | undefined;
495
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
471
496
  tools?: string[] | undefined;
472
497
  }, {
473
498
  action: "describe_tools";
474
499
  path: string;
475
500
  callerId?: string | undefined;
476
501
  callerType?: "agent" | "user" | "system" | undefined;
477
- metadata?: Record<string, unknown> | undefined;
502
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
478
503
  tools?: string[] | undefined;
479
504
  }>, z.ZodObject<{
480
505
  path: z.ZodString;
481
506
  callerId: z.ZodOptional<z.ZodString>;
482
507
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
483
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
508
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
484
509
  } & {
485
510
  action: z.ZodLiteral<"load">;
486
511
  }, "strip", z.ZodTypeAny, {
@@ -488,18 +513,18 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
488
513
  path: string;
489
514
  callerId?: string | undefined;
490
515
  callerType?: "agent" | "user" | "system" | undefined;
491
- metadata?: Record<string, unknown> | undefined;
516
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
492
517
  }, {
493
518
  action: "load";
494
519
  path: string;
495
520
  callerId?: string | undefined;
496
521
  callerType?: "agent" | "user" | "system" | undefined;
497
- metadata?: Record<string, unknown> | undefined;
522
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
498
523
  }>, z.ZodObject<{
499
524
  path: z.ZodString;
500
525
  callerId: z.ZodOptional<z.ZodString>;
501
526
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
502
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
527
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
503
528
  } & {
504
529
  action: z.ZodLiteral<"list_resources">;
505
530
  }, "strip", z.ZodTypeAny, {
@@ -507,18 +532,18 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
507
532
  path: string;
508
533
  callerId?: string | undefined;
509
534
  callerType?: "agent" | "user" | "system" | undefined;
510
- metadata?: Record<string, unknown> | undefined;
535
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
511
536
  }, {
512
537
  action: "list_resources";
513
538
  path: string;
514
539
  callerId?: string | undefined;
515
540
  callerType?: "agent" | "user" | "system" | undefined;
516
- metadata?: Record<string, unknown> | undefined;
541
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
517
542
  }>, z.ZodObject<{
518
543
  path: z.ZodString;
519
544
  callerId: z.ZodOptional<z.ZodString>;
520
545
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
521
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
546
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
522
547
  } & {
523
548
  action: z.ZodLiteral<"read_resources">;
524
549
  uris: z.ZodArray<z.ZodString, "many">;
@@ -528,14 +553,14 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
528
553
  uris: string[];
529
554
  callerId?: string | undefined;
530
555
  callerType?: "agent" | "user" | "system" | undefined;
531
- metadata?: Record<string, unknown> | undefined;
556
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
532
557
  }, {
533
558
  action: "read_resources";
534
559
  path: string;
535
560
  uris: string[];
536
561
  callerId?: string | undefined;
537
562
  callerType?: "agent" | "user" | "system" | undefined;
538
- metadata?: Record<string, unknown> | undefined;
563
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
539
564
  }>]>;
540
565
  }, "strip", z.ZodTypeAny, {
541
566
  request: {
@@ -544,7 +569,7 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
544
569
  prompt: string;
545
570
  callerId?: string | undefined;
546
571
  callerType?: "agent" | "user" | "system" | undefined;
547
- metadata?: Record<string, unknown> | undefined;
572
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
548
573
  sessionId?: string | undefined;
549
574
  branchAttributes?: Record<string, string> | undefined;
550
575
  } | {
@@ -553,7 +578,7 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
553
578
  prompt: string;
554
579
  callerId?: string | undefined;
555
580
  callerType?: "agent" | "user" | "system" | undefined;
556
- metadata?: Record<string, unknown> | undefined;
581
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
557
582
  sessionId?: string | undefined;
558
583
  branchAttributes?: Record<string, string> | undefined;
559
584
  } | {
@@ -562,34 +587,34 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
562
587
  tool: string;
563
588
  callerId?: string | undefined;
564
589
  callerType?: "agent" | "user" | "system" | undefined;
565
- params?: Record<string, unknown> | undefined;
566
- metadata?: Record<string, unknown> | undefined;
590
+ params?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
591
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
567
592
  } | {
568
593
  action: "describe_tools";
569
594
  path: string;
570
595
  callerId?: string | undefined;
571
596
  callerType?: "agent" | "user" | "system" | undefined;
572
- metadata?: Record<string, unknown> | undefined;
597
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
573
598
  tools?: string[] | undefined;
574
599
  } | {
575
600
  action: "load";
576
601
  path: string;
577
602
  callerId?: string | undefined;
578
603
  callerType?: "agent" | "user" | "system" | undefined;
579
- metadata?: Record<string, unknown> | undefined;
604
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
580
605
  } | {
581
606
  action: "list_resources";
582
607
  path: string;
583
608
  callerId?: string | undefined;
584
609
  callerType?: "agent" | "user" | "system" | undefined;
585
- metadata?: Record<string, unknown> | undefined;
610
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
586
611
  } | {
587
612
  action: "read_resources";
588
613
  path: string;
589
614
  uris: string[];
590
615
  callerId?: string | undefined;
591
616
  callerType?: "agent" | "user" | "system" | undefined;
592
- metadata?: Record<string, unknown> | undefined;
617
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
593
618
  };
594
619
  }, {
595
620
  request: {
@@ -598,7 +623,7 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
598
623
  prompt: string;
599
624
  callerId?: string | undefined;
600
625
  callerType?: "agent" | "user" | "system" | undefined;
601
- metadata?: Record<string, unknown> | undefined;
626
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
602
627
  sessionId?: string | undefined;
603
628
  branchAttributes?: Record<string, string> | undefined;
604
629
  } | {
@@ -607,7 +632,7 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
607
632
  prompt: string;
608
633
  callerId?: string | undefined;
609
634
  callerType?: "agent" | "user" | "system" | undefined;
610
- metadata?: Record<string, unknown> | undefined;
635
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
611
636
  sessionId?: string | undefined;
612
637
  branchAttributes?: Record<string, string> | undefined;
613
638
  } | {
@@ -616,34 +641,34 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
616
641
  tool: string;
617
642
  callerId?: string | undefined;
618
643
  callerType?: "agent" | "user" | "system" | undefined;
619
- params?: Record<string, unknown> | undefined;
620
- metadata?: Record<string, unknown> | undefined;
644
+ params?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
645
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
621
646
  } | {
622
647
  action: "describe_tools";
623
648
  path: string;
624
649
  callerId?: string | undefined;
625
650
  callerType?: "agent" | "user" | "system" | undefined;
626
- metadata?: Record<string, unknown> | undefined;
651
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
627
652
  tools?: string[] | undefined;
628
653
  } | {
629
654
  action: "load";
630
655
  path: string;
631
656
  callerId?: string | undefined;
632
657
  callerType?: "agent" | "user" | "system" | undefined;
633
- metadata?: Record<string, unknown> | undefined;
658
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
634
659
  } | {
635
660
  action: "list_resources";
636
661
  path: string;
637
662
  callerId?: string | undefined;
638
663
  callerType?: "agent" | "user" | "system" | undefined;
639
- metadata?: Record<string, unknown> | undefined;
664
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
640
665
  } | {
641
666
  action: "read_resources";
642
667
  path: string;
643
668
  uris: string[];
644
669
  callerId?: string | undefined;
645
670
  callerType?: "agent" | "user" | "system" | undefined;
646
- metadata?: Record<string, unknown> | undefined;
671
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
647
672
  };
648
673
  }>;
649
674
  /**
@@ -652,12 +677,286 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
652
677
  *
653
678
  * Fully derived from the zod schemas — no hand-written JSON Schema.
654
679
  */
655
- export declare const callAgentInputSchema: object & {
656
- $schema?: string | undefined;
657
- definitions?: {
658
- [key: string]: object;
659
- } | undefined;
660
- };
680
+ export declare const callAgentInputSchema: Record<string, unknown>;
681
+ /**
682
+ * Null-tolerant validation schema for `call_agent`.
683
+ * Accepts null values where the JSON Schema promises nullable,
684
+ * converting them to undefined before Zod validation.
685
+ */
686
+ export declare const callAgentValidationSchema: z.ZodObject<{
687
+ request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
688
+ path: z.ZodString;
689
+ callerId: z.ZodOptional<z.ZodString>;
690
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
691
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
692
+ } & {
693
+ action: z.ZodLiteral<"invoke">;
694
+ prompt: z.ZodString;
695
+ sessionId: z.ZodOptional<z.ZodString>;
696
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ action: "invoke";
699
+ path: string;
700
+ prompt: string;
701
+ callerId?: string | undefined;
702
+ callerType?: "agent" | "user" | "system" | undefined;
703
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
704
+ sessionId?: string | undefined;
705
+ branchAttributes?: Record<string, string> | undefined;
706
+ }, {
707
+ action: "invoke";
708
+ path: string;
709
+ prompt: string;
710
+ callerId?: string | undefined;
711
+ callerType?: "agent" | "user" | "system" | undefined;
712
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
713
+ sessionId?: string | undefined;
714
+ branchAttributes?: Record<string, string> | undefined;
715
+ }>, z.ZodObject<{
716
+ path: z.ZodString;
717
+ callerId: z.ZodOptional<z.ZodString>;
718
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
719
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
720
+ } & {
721
+ action: z.ZodLiteral<"ask">;
722
+ prompt: z.ZodString;
723
+ sessionId: z.ZodOptional<z.ZodString>;
724
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ action: "ask";
727
+ path: string;
728
+ prompt: string;
729
+ callerId?: string | undefined;
730
+ callerType?: "agent" | "user" | "system" | undefined;
731
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
732
+ sessionId?: string | undefined;
733
+ branchAttributes?: Record<string, string> | undefined;
734
+ }, {
735
+ action: "ask";
736
+ path: string;
737
+ prompt: string;
738
+ callerId?: string | undefined;
739
+ callerType?: "agent" | "user" | "system" | undefined;
740
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
741
+ sessionId?: string | undefined;
742
+ branchAttributes?: Record<string, string> | undefined;
743
+ }>, z.ZodObject<{
744
+ path: z.ZodString;
745
+ callerId: z.ZodOptional<z.ZodString>;
746
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
747
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
748
+ } & {
749
+ action: z.ZodLiteral<"execute_tool">;
750
+ tool: z.ZodString;
751
+ params: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ action: "execute_tool";
754
+ path: string;
755
+ tool: string;
756
+ callerId?: string | undefined;
757
+ callerType?: "agent" | "user" | "system" | undefined;
758
+ params?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
759
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
760
+ }, {
761
+ action: "execute_tool";
762
+ path: string;
763
+ tool: string;
764
+ callerId?: string | undefined;
765
+ callerType?: "agent" | "user" | "system" | undefined;
766
+ params?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
767
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
768
+ }>, z.ZodObject<{
769
+ path: z.ZodString;
770
+ callerId: z.ZodOptional<z.ZodString>;
771
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
772
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
773
+ } & {
774
+ action: z.ZodLiteral<"describe_tools">;
775
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ action: "describe_tools";
778
+ path: string;
779
+ callerId?: string | undefined;
780
+ callerType?: "agent" | "user" | "system" | undefined;
781
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
782
+ tools?: string[] | undefined;
783
+ }, {
784
+ action: "describe_tools";
785
+ path: string;
786
+ callerId?: string | undefined;
787
+ callerType?: "agent" | "user" | "system" | undefined;
788
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
789
+ tools?: string[] | undefined;
790
+ }>, z.ZodObject<{
791
+ path: z.ZodString;
792
+ callerId: z.ZodOptional<z.ZodString>;
793
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
794
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
795
+ } & {
796
+ action: z.ZodLiteral<"load">;
797
+ }, "strip", z.ZodTypeAny, {
798
+ action: "load";
799
+ path: string;
800
+ callerId?: string | undefined;
801
+ callerType?: "agent" | "user" | "system" | undefined;
802
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
803
+ }, {
804
+ action: "load";
805
+ path: string;
806
+ callerId?: string | undefined;
807
+ callerType?: "agent" | "user" | "system" | undefined;
808
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
809
+ }>, z.ZodObject<{
810
+ path: z.ZodString;
811
+ callerId: z.ZodOptional<z.ZodString>;
812
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
813
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
814
+ } & {
815
+ action: z.ZodLiteral<"list_resources">;
816
+ }, "strip", z.ZodTypeAny, {
817
+ action: "list_resources";
818
+ path: string;
819
+ callerId?: string | undefined;
820
+ callerType?: "agent" | "user" | "system" | undefined;
821
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
822
+ }, {
823
+ action: "list_resources";
824
+ path: string;
825
+ callerId?: string | undefined;
826
+ callerType?: "agent" | "user" | "system" | undefined;
827
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
828
+ }>, z.ZodObject<{
829
+ path: z.ZodString;
830
+ callerId: z.ZodOptional<z.ZodString>;
831
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
832
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
833
+ } & {
834
+ action: z.ZodLiteral<"read_resources">;
835
+ uris: z.ZodArray<z.ZodString, "many">;
836
+ }, "strip", z.ZodTypeAny, {
837
+ action: "read_resources";
838
+ path: string;
839
+ uris: string[];
840
+ callerId?: string | undefined;
841
+ callerType?: "agent" | "user" | "system" | undefined;
842
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
843
+ }, {
844
+ action: "read_resources";
845
+ path: string;
846
+ uris: string[];
847
+ callerId?: string | undefined;
848
+ callerType?: "agent" | "user" | "system" | undefined;
849
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
850
+ }>]>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ request: {
853
+ action: "invoke";
854
+ path: string;
855
+ prompt: string;
856
+ callerId?: string | undefined;
857
+ callerType?: "agent" | "user" | "system" | undefined;
858
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
859
+ sessionId?: string | undefined;
860
+ branchAttributes?: Record<string, string> | undefined;
861
+ } | {
862
+ action: "ask";
863
+ path: string;
864
+ prompt: string;
865
+ callerId?: string | undefined;
866
+ callerType?: "agent" | "user" | "system" | undefined;
867
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
868
+ sessionId?: string | undefined;
869
+ branchAttributes?: Record<string, string> | undefined;
870
+ } | {
871
+ action: "execute_tool";
872
+ path: string;
873
+ tool: string;
874
+ callerId?: string | undefined;
875
+ callerType?: "agent" | "user" | "system" | undefined;
876
+ params?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
877
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
878
+ } | {
879
+ action: "describe_tools";
880
+ path: string;
881
+ callerId?: string | undefined;
882
+ callerType?: "agent" | "user" | "system" | undefined;
883
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
884
+ tools?: string[] | undefined;
885
+ } | {
886
+ action: "load";
887
+ path: string;
888
+ callerId?: string | undefined;
889
+ callerType?: "agent" | "user" | "system" | undefined;
890
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
891
+ } | {
892
+ action: "list_resources";
893
+ path: string;
894
+ callerId?: string | undefined;
895
+ callerType?: "agent" | "user" | "system" | undefined;
896
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
897
+ } | {
898
+ action: "read_resources";
899
+ path: string;
900
+ uris: string[];
901
+ callerId?: string | undefined;
902
+ callerType?: "agent" | "user" | "system" | undefined;
903
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
904
+ };
905
+ }, {
906
+ request: {
907
+ action: "invoke";
908
+ path: string;
909
+ prompt: string;
910
+ callerId?: string | undefined;
911
+ callerType?: "agent" | "user" | "system" | undefined;
912
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
913
+ sessionId?: string | undefined;
914
+ branchAttributes?: Record<string, string> | undefined;
915
+ } | {
916
+ action: "ask";
917
+ path: string;
918
+ prompt: string;
919
+ callerId?: string | undefined;
920
+ callerType?: "agent" | "user" | "system" | undefined;
921
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
922
+ sessionId?: string | undefined;
923
+ branchAttributes?: Record<string, string> | undefined;
924
+ } | {
925
+ action: "execute_tool";
926
+ path: string;
927
+ tool: string;
928
+ callerId?: string | undefined;
929
+ callerType?: "agent" | "user" | "system" | undefined;
930
+ params?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
931
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
932
+ } | {
933
+ action: "describe_tools";
934
+ path: string;
935
+ callerId?: string | undefined;
936
+ callerType?: "agent" | "user" | "system" | undefined;
937
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
938
+ tools?: string[] | undefined;
939
+ } | {
940
+ action: "load";
941
+ path: string;
942
+ callerId?: string | undefined;
943
+ callerType?: "agent" | "user" | "system" | undefined;
944
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
945
+ } | {
946
+ action: "list_resources";
947
+ path: string;
948
+ callerId?: string | undefined;
949
+ callerType?: "agent" | "user" | "system" | undefined;
950
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
951
+ } | {
952
+ action: "read_resources";
953
+ path: string;
954
+ uris: string[];
955
+ callerId?: string | undefined;
956
+ callerType?: "agent" | "user" | "system" | undefined;
957
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
958
+ };
959
+ }>;
661
960
  export declare const listAgentsToolInputSchema: z.ZodObject<{
662
961
  query: z.ZodOptional<z.ZodString>;
663
962
  limit: z.ZodOptional<z.ZodNumber>;
@@ -672,10 +971,18 @@ export declare const listAgentsToolInputSchema: z.ZodObject<{
672
971
  cursor?: string | undefined;
673
972
  }>;
674
973
  export type ListAgentsInput = z.infer<typeof listAgentsToolInputSchema>;
675
- export declare const listAgentsInputSchema: object & {
676
- $schema?: string | undefined;
677
- definitions?: {
678
- [key: string]: object;
679
- } | undefined;
680
- };
974
+ export declare const listAgentsInputSchema: Record<string, unknown>;
975
+ export declare const listAgentsValidationSchema: z.ZodObject<{
976
+ query: z.ZodOptional<z.ZodString>;
977
+ limit: z.ZodOptional<z.ZodNumber>;
978
+ cursor: z.ZodOptional<z.ZodString>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ query?: string | undefined;
981
+ limit?: number | undefined;
982
+ cursor?: string | undefined;
983
+ }, {
984
+ query?: string | undefined;
985
+ limit?: number | undefined;
986
+ cursor?: string | undefined;
987
+ }>;
681
988
  //# sourceMappingURL=call-agent-schema.d.ts.map