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