@slashfi/agents-sdk 0.89.0 → 0.89.2

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.
@@ -44,6 +44,8 @@ export declare const invokeActionSchema: z.ZodObject<{
44
44
  callerId: z.ZodOptional<z.ZodString>;
45
45
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
46
46
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
47
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
47
49
  } & {
48
50
  action: z.ZodLiteral<"invoke">;
49
51
  prompt: z.ZodString;
@@ -56,6 +58,8 @@ export declare const invokeActionSchema: z.ZodObject<{
56
58
  callerId?: string | undefined;
57
59
  callerType?: "agent" | "user" | "system" | undefined;
58
60
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
61
+ maxResultTokens?: number | null | undefined;
62
+ overflow?: "error" | "truncate" | null | undefined;
59
63
  sessionId?: string | undefined;
60
64
  branchAttributes?: Record<string, string> | undefined;
61
65
  }, {
@@ -65,6 +69,8 @@ export declare const invokeActionSchema: z.ZodObject<{
65
69
  callerId?: string | undefined;
66
70
  callerType?: "agent" | "user" | "system" | undefined;
67
71
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
72
+ maxResultTokens?: number | null | undefined;
73
+ overflow?: "error" | "truncate" | null | undefined;
68
74
  sessionId?: string | undefined;
69
75
  branchAttributes?: Record<string, string> | undefined;
70
76
  }>;
@@ -74,6 +80,8 @@ export declare const askActionSchema: z.ZodObject<{
74
80
  callerId: z.ZodOptional<z.ZodString>;
75
81
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
76
82
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
83
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
84
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
77
85
  } & {
78
86
  action: z.ZodLiteral<"ask">;
79
87
  prompt: z.ZodString;
@@ -86,6 +94,8 @@ export declare const askActionSchema: z.ZodObject<{
86
94
  callerId?: string | undefined;
87
95
  callerType?: "agent" | "user" | "system" | undefined;
88
96
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
97
+ maxResultTokens?: number | null | undefined;
98
+ overflow?: "error" | "truncate" | null | undefined;
89
99
  sessionId?: string | undefined;
90
100
  branchAttributes?: Record<string, string> | undefined;
91
101
  }, {
@@ -95,6 +105,8 @@ export declare const askActionSchema: z.ZodObject<{
95
105
  callerId?: string | undefined;
96
106
  callerType?: "agent" | "user" | "system" | undefined;
97
107
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
108
+ maxResultTokens?: number | null | undefined;
109
+ overflow?: "error" | "truncate" | null | undefined;
98
110
  sessionId?: string | undefined;
99
111
  branchAttributes?: Record<string, string> | undefined;
100
112
  }>;
@@ -104,6 +116,8 @@ export declare const executeToolActionSchema: z.ZodObject<{
104
116
  callerId: z.ZodOptional<z.ZodString>;
105
117
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
106
118
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
119
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
120
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
107
121
  } & {
108
122
  action: z.ZodLiteral<"execute_tool">;
109
123
  tool: z.ZodString;
@@ -116,6 +130,8 @@ export declare const executeToolActionSchema: z.ZodObject<{
116
130
  callerId?: string | undefined;
117
131
  callerType?: "agent" | "user" | "system" | undefined;
118
132
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
133
+ maxResultTokens?: number | null | undefined;
134
+ overflow?: "error" | "truncate" | null | undefined;
119
135
  }, {
120
136
  path: string;
121
137
  action: "execute_tool";
@@ -124,6 +140,8 @@ export declare const executeToolActionSchema: z.ZodObject<{
124
140
  callerId?: string | undefined;
125
141
  callerType?: "agent" | "user" | "system" | undefined;
126
142
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
143
+ maxResultTokens?: number | null | undefined;
144
+ overflow?: "error" | "truncate" | null | undefined;
127
145
  }>;
128
146
  /** Get tool schemas for an agent */
129
147
  export declare const describeToolsActionSchema: z.ZodObject<{
@@ -131,6 +149,8 @@ export declare const describeToolsActionSchema: z.ZodObject<{
131
149
  callerId: z.ZodOptional<z.ZodString>;
132
150
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
133
151
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
152
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
153
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
134
154
  } & {
135
155
  action: z.ZodLiteral<"describe_tools">;
136
156
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -142,6 +162,8 @@ export declare const describeToolsActionSchema: z.ZodObject<{
142
162
  callerId?: string | undefined;
143
163
  callerType?: "agent" | "user" | "system" | undefined;
144
164
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
165
+ maxResultTokens?: number | null | undefined;
166
+ overflow?: "error" | "truncate" | null | undefined;
145
167
  full?: boolean | undefined;
146
168
  }, {
147
169
  path: string;
@@ -150,6 +172,8 @@ export declare const describeToolsActionSchema: z.ZodObject<{
150
172
  callerId?: string | undefined;
151
173
  callerType?: "agent" | "user" | "system" | undefined;
152
174
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
175
+ maxResultTokens?: number | null | undefined;
176
+ overflow?: "error" | "truncate" | null | undefined;
153
177
  full?: boolean | undefined;
154
178
  }>;
155
179
  /** Load: get agent definition */
@@ -158,6 +182,8 @@ export declare const loadActionSchema: z.ZodObject<{
158
182
  callerId: z.ZodOptional<z.ZodString>;
159
183
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
160
184
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
185
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
186
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
161
187
  } & {
162
188
  action: z.ZodLiteral<"load">;
163
189
  }, "strip", z.ZodTypeAny, {
@@ -166,12 +192,16 @@ export declare const loadActionSchema: z.ZodObject<{
166
192
  callerId?: string | undefined;
167
193
  callerType?: "agent" | "user" | "system" | undefined;
168
194
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
195
+ maxResultTokens?: number | null | undefined;
196
+ overflow?: "error" | "truncate" | null | undefined;
169
197
  }, {
170
198
  path: string;
171
199
  action: "load";
172
200
  callerId?: string | undefined;
173
201
  callerType?: "agent" | "user" | "system" | undefined;
174
202
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
203
+ maxResultTokens?: number | null | undefined;
204
+ overflow?: "error" | "truncate" | null | undefined;
175
205
  }>;
176
206
  /** List resources: discover available resources on an agent */
177
207
  export declare const listResourcesActionSchema: z.ZodObject<{
@@ -179,6 +209,8 @@ export declare const listResourcesActionSchema: z.ZodObject<{
179
209
  callerId: z.ZodOptional<z.ZodString>;
180
210
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
181
211
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
212
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
213
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
182
214
  } & {
183
215
  action: z.ZodLiteral<"list_resources">;
184
216
  }, "strip", z.ZodTypeAny, {
@@ -187,12 +219,16 @@ export declare const listResourcesActionSchema: z.ZodObject<{
187
219
  callerId?: string | undefined;
188
220
  callerType?: "agent" | "user" | "system" | undefined;
189
221
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
222
+ maxResultTokens?: number | null | undefined;
223
+ overflow?: "error" | "truncate" | null | undefined;
190
224
  }, {
191
225
  path: string;
192
226
  action: "list_resources";
193
227
  callerId?: string | undefined;
194
228
  callerType?: "agent" | "user" | "system" | undefined;
195
229
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
230
+ maxResultTokens?: number | null | undefined;
231
+ overflow?: "error" | "truncate" | null | undefined;
196
232
  }>;
197
233
  /** Read resources: fetch one or more resources by URI */
198
234
  export declare const readResourcesActionSchema: z.ZodObject<{
@@ -200,6 +236,8 @@ export declare const readResourcesActionSchema: z.ZodObject<{
200
236
  callerId: z.ZodOptional<z.ZodString>;
201
237
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
202
238
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
239
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
240
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
203
241
  } & {
204
242
  action: z.ZodLiteral<"read_resources">;
205
243
  uris: z.ZodArray<z.ZodString, "many">;
@@ -210,6 +248,8 @@ export declare const readResourcesActionSchema: z.ZodObject<{
210
248
  callerId?: string | undefined;
211
249
  callerType?: "agent" | "user" | "system" | undefined;
212
250
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
251
+ maxResultTokens?: number | null | undefined;
252
+ overflow?: "error" | "truncate" | null | undefined;
213
253
  }, {
214
254
  path: string;
215
255
  action: "read_resources";
@@ -217,12 +257,16 @@ export declare const readResourcesActionSchema: z.ZodObject<{
217
257
  callerId?: string | undefined;
218
258
  callerType?: "agent" | "user" | "system" | undefined;
219
259
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
260
+ maxResultTokens?: number | null | undefined;
261
+ overflow?: "error" | "truncate" | null | undefined;
220
262
  }>;
221
263
  export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
222
264
  path: z.ZodString;
223
265
  callerId: z.ZodOptional<z.ZodString>;
224
266
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
225
267
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
268
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
269
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
226
270
  } & {
227
271
  action: z.ZodLiteral<"invoke">;
228
272
  prompt: z.ZodString;
@@ -235,6 +279,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
235
279
  callerId?: string | undefined;
236
280
  callerType?: "agent" | "user" | "system" | undefined;
237
281
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
282
+ maxResultTokens?: number | null | undefined;
283
+ overflow?: "error" | "truncate" | null | undefined;
238
284
  sessionId?: string | undefined;
239
285
  branchAttributes?: Record<string, string> | undefined;
240
286
  }, {
@@ -244,6 +290,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
244
290
  callerId?: string | undefined;
245
291
  callerType?: "agent" | "user" | "system" | undefined;
246
292
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
293
+ maxResultTokens?: number | null | undefined;
294
+ overflow?: "error" | "truncate" | null | undefined;
247
295
  sessionId?: string | undefined;
248
296
  branchAttributes?: Record<string, string> | undefined;
249
297
  }>, z.ZodObject<{
@@ -251,6 +299,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
251
299
  callerId: z.ZodOptional<z.ZodString>;
252
300
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
253
301
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
302
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
303
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
254
304
  } & {
255
305
  action: z.ZodLiteral<"ask">;
256
306
  prompt: z.ZodString;
@@ -263,6 +313,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
263
313
  callerId?: string | undefined;
264
314
  callerType?: "agent" | "user" | "system" | undefined;
265
315
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
316
+ maxResultTokens?: number | null | undefined;
317
+ overflow?: "error" | "truncate" | null | undefined;
266
318
  sessionId?: string | undefined;
267
319
  branchAttributes?: Record<string, string> | undefined;
268
320
  }, {
@@ -272,6 +324,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
272
324
  callerId?: string | undefined;
273
325
  callerType?: "agent" | "user" | "system" | undefined;
274
326
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
327
+ maxResultTokens?: number | null | undefined;
328
+ overflow?: "error" | "truncate" | null | undefined;
275
329
  sessionId?: string | undefined;
276
330
  branchAttributes?: Record<string, string> | undefined;
277
331
  }>, z.ZodObject<{
@@ -279,6 +333,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
279
333
  callerId: z.ZodOptional<z.ZodString>;
280
334
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
281
335
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
336
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
337
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
282
338
  } & {
283
339
  action: z.ZodLiteral<"execute_tool">;
284
340
  tool: z.ZodString;
@@ -291,6 +347,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
291
347
  callerId?: string | undefined;
292
348
  callerType?: "agent" | "user" | "system" | undefined;
293
349
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
350
+ maxResultTokens?: number | null | undefined;
351
+ overflow?: "error" | "truncate" | null | undefined;
294
352
  }, {
295
353
  path: string;
296
354
  action: "execute_tool";
@@ -299,11 +357,15 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
299
357
  callerId?: string | undefined;
300
358
  callerType?: "agent" | "user" | "system" | undefined;
301
359
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
360
+ maxResultTokens?: number | null | undefined;
361
+ overflow?: "error" | "truncate" | null | undefined;
302
362
  }>, z.ZodObject<{
303
363
  path: z.ZodString;
304
364
  callerId: z.ZodOptional<z.ZodString>;
305
365
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
306
366
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
367
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
368
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
307
369
  } & {
308
370
  action: z.ZodLiteral<"describe_tools">;
309
371
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -315,6 +377,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
315
377
  callerId?: string | undefined;
316
378
  callerType?: "agent" | "user" | "system" | undefined;
317
379
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
380
+ maxResultTokens?: number | null | undefined;
381
+ overflow?: "error" | "truncate" | null | undefined;
318
382
  full?: boolean | undefined;
319
383
  }, {
320
384
  path: string;
@@ -323,12 +387,16 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
323
387
  callerId?: string | undefined;
324
388
  callerType?: "agent" | "user" | "system" | undefined;
325
389
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
390
+ maxResultTokens?: number | null | undefined;
391
+ overflow?: "error" | "truncate" | null | undefined;
326
392
  full?: boolean | undefined;
327
393
  }>, z.ZodObject<{
328
394
  path: z.ZodString;
329
395
  callerId: z.ZodOptional<z.ZodString>;
330
396
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
331
397
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
398
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
399
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
332
400
  } & {
333
401
  action: z.ZodLiteral<"load">;
334
402
  }, "strip", z.ZodTypeAny, {
@@ -337,17 +405,23 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
337
405
  callerId?: string | undefined;
338
406
  callerType?: "agent" | "user" | "system" | undefined;
339
407
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
408
+ maxResultTokens?: number | null | undefined;
409
+ overflow?: "error" | "truncate" | null | undefined;
340
410
  }, {
341
411
  path: string;
342
412
  action: "load";
343
413
  callerId?: string | undefined;
344
414
  callerType?: "agent" | "user" | "system" | undefined;
345
415
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
416
+ maxResultTokens?: number | null | undefined;
417
+ overflow?: "error" | "truncate" | null | undefined;
346
418
  }>, z.ZodObject<{
347
419
  path: z.ZodString;
348
420
  callerId: z.ZodOptional<z.ZodString>;
349
421
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
350
422
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
423
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
424
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
351
425
  } & {
352
426
  action: z.ZodLiteral<"list_resources">;
353
427
  }, "strip", z.ZodTypeAny, {
@@ -356,17 +430,23 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
356
430
  callerId?: string | undefined;
357
431
  callerType?: "agent" | "user" | "system" | undefined;
358
432
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
433
+ maxResultTokens?: number | null | undefined;
434
+ overflow?: "error" | "truncate" | null | undefined;
359
435
  }, {
360
436
  path: string;
361
437
  action: "list_resources";
362
438
  callerId?: string | undefined;
363
439
  callerType?: "agent" | "user" | "system" | undefined;
364
440
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
441
+ maxResultTokens?: number | null | undefined;
442
+ overflow?: "error" | "truncate" | null | undefined;
365
443
  }>, z.ZodObject<{
366
444
  path: z.ZodString;
367
445
  callerId: z.ZodOptional<z.ZodString>;
368
446
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
369
447
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
448
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
449
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
370
450
  } & {
371
451
  action: z.ZodLiteral<"read_resources">;
372
452
  uris: z.ZodArray<z.ZodString, "many">;
@@ -377,6 +457,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
377
457
  callerId?: string | undefined;
378
458
  callerType?: "agent" | "user" | "system" | undefined;
379
459
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
460
+ maxResultTokens?: number | null | undefined;
461
+ overflow?: "error" | "truncate" | null | undefined;
380
462
  }, {
381
463
  path: string;
382
464
  action: "read_resources";
@@ -384,6 +466,8 @@ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [
384
466
  callerId?: string | undefined;
385
467
  callerType?: "agent" | "user" | "system" | undefined;
386
468
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
469
+ maxResultTokens?: number | null | undefined;
470
+ overflow?: "error" | "truncate" | null | undefined;
387
471
  }>]>;
388
472
  export type CallAgentRequest = z.infer<typeof callAgentRequestSchema>;
389
473
  export type CallAgentInvokeRequest = z.infer<typeof invokeActionSchema>;
@@ -409,6 +493,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
409
493
  callerId: z.ZodOptional<z.ZodString>;
410
494
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
411
495
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
496
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
497
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
412
498
  } & {
413
499
  action: z.ZodLiteral<"invoke">;
414
500
  prompt: z.ZodString;
@@ -421,6 +507,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
421
507
  callerId?: string | undefined;
422
508
  callerType?: "agent" | "user" | "system" | undefined;
423
509
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
510
+ maxResultTokens?: number | null | undefined;
511
+ overflow?: "error" | "truncate" | null | undefined;
424
512
  sessionId?: string | undefined;
425
513
  branchAttributes?: Record<string, string> | undefined;
426
514
  }, {
@@ -430,6 +518,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
430
518
  callerId?: string | undefined;
431
519
  callerType?: "agent" | "user" | "system" | undefined;
432
520
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
521
+ maxResultTokens?: number | null | undefined;
522
+ overflow?: "error" | "truncate" | null | undefined;
433
523
  sessionId?: string | undefined;
434
524
  branchAttributes?: Record<string, string> | undefined;
435
525
  }>, z.ZodObject<{
@@ -437,6 +527,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
437
527
  callerId: z.ZodOptional<z.ZodString>;
438
528
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
439
529
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
530
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
531
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
440
532
  } & {
441
533
  action: z.ZodLiteral<"ask">;
442
534
  prompt: z.ZodString;
@@ -449,6 +541,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
449
541
  callerId?: string | undefined;
450
542
  callerType?: "agent" | "user" | "system" | undefined;
451
543
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
544
+ maxResultTokens?: number | null | undefined;
545
+ overflow?: "error" | "truncate" | null | undefined;
452
546
  sessionId?: string | undefined;
453
547
  branchAttributes?: Record<string, string> | undefined;
454
548
  }, {
@@ -458,6 +552,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
458
552
  callerId?: string | undefined;
459
553
  callerType?: "agent" | "user" | "system" | undefined;
460
554
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
555
+ maxResultTokens?: number | null | undefined;
556
+ overflow?: "error" | "truncate" | null | undefined;
461
557
  sessionId?: string | undefined;
462
558
  branchAttributes?: Record<string, string> | undefined;
463
559
  }>, z.ZodObject<{
@@ -465,6 +561,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
465
561
  callerId: z.ZodOptional<z.ZodString>;
466
562
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
467
563
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
564
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
565
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
468
566
  } & {
469
567
  action: z.ZodLiteral<"execute_tool">;
470
568
  tool: z.ZodString;
@@ -477,6 +575,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
477
575
  callerId?: string | undefined;
478
576
  callerType?: "agent" | "user" | "system" | undefined;
479
577
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
578
+ maxResultTokens?: number | null | undefined;
579
+ overflow?: "error" | "truncate" | null | undefined;
480
580
  }, {
481
581
  path: string;
482
582
  action: "execute_tool";
@@ -485,11 +585,15 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
485
585
  callerId?: string | undefined;
486
586
  callerType?: "agent" | "user" | "system" | undefined;
487
587
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
588
+ maxResultTokens?: number | null | undefined;
589
+ overflow?: "error" | "truncate" | null | undefined;
488
590
  }>, z.ZodObject<{
489
591
  path: z.ZodString;
490
592
  callerId: z.ZodOptional<z.ZodString>;
491
593
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
492
594
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
595
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
596
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
493
597
  } & {
494
598
  action: z.ZodLiteral<"describe_tools">;
495
599
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -501,6 +605,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
501
605
  callerId?: string | undefined;
502
606
  callerType?: "agent" | "user" | "system" | undefined;
503
607
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
608
+ maxResultTokens?: number | null | undefined;
609
+ overflow?: "error" | "truncate" | null | undefined;
504
610
  full?: boolean | undefined;
505
611
  }, {
506
612
  path: string;
@@ -509,12 +615,16 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
509
615
  callerId?: string | undefined;
510
616
  callerType?: "agent" | "user" | "system" | undefined;
511
617
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
618
+ maxResultTokens?: number | null | undefined;
619
+ overflow?: "error" | "truncate" | null | undefined;
512
620
  full?: boolean | undefined;
513
621
  }>, z.ZodObject<{
514
622
  path: z.ZodString;
515
623
  callerId: z.ZodOptional<z.ZodString>;
516
624
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
517
625
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
626
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
627
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
518
628
  } & {
519
629
  action: z.ZodLiteral<"load">;
520
630
  }, "strip", z.ZodTypeAny, {
@@ -523,17 +633,23 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
523
633
  callerId?: string | undefined;
524
634
  callerType?: "agent" | "user" | "system" | undefined;
525
635
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
636
+ maxResultTokens?: number | null | undefined;
637
+ overflow?: "error" | "truncate" | null | undefined;
526
638
  }, {
527
639
  path: string;
528
640
  action: "load";
529
641
  callerId?: string | undefined;
530
642
  callerType?: "agent" | "user" | "system" | undefined;
531
643
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
644
+ maxResultTokens?: number | null | undefined;
645
+ overflow?: "error" | "truncate" | null | undefined;
532
646
  }>, z.ZodObject<{
533
647
  path: z.ZodString;
534
648
  callerId: z.ZodOptional<z.ZodString>;
535
649
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
536
650
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
651
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
652
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
537
653
  } & {
538
654
  action: z.ZodLiteral<"list_resources">;
539
655
  }, "strip", z.ZodTypeAny, {
@@ -542,17 +658,23 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
542
658
  callerId?: string | undefined;
543
659
  callerType?: "agent" | "user" | "system" | undefined;
544
660
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
661
+ maxResultTokens?: number | null | undefined;
662
+ overflow?: "error" | "truncate" | null | undefined;
545
663
  }, {
546
664
  path: string;
547
665
  action: "list_resources";
548
666
  callerId?: string | undefined;
549
667
  callerType?: "agent" | "user" | "system" | undefined;
550
668
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
669
+ maxResultTokens?: number | null | undefined;
670
+ overflow?: "error" | "truncate" | null | undefined;
551
671
  }>, z.ZodObject<{
552
672
  path: z.ZodString;
553
673
  callerId: z.ZodOptional<z.ZodString>;
554
674
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
555
675
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
676
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
677
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
556
678
  } & {
557
679
  action: z.ZodLiteral<"read_resources">;
558
680
  uris: z.ZodArray<z.ZodString, "many">;
@@ -563,6 +685,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
563
685
  callerId?: string | undefined;
564
686
  callerType?: "agent" | "user" | "system" | undefined;
565
687
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
688
+ maxResultTokens?: number | null | undefined;
689
+ overflow?: "error" | "truncate" | null | undefined;
566
690
  }, {
567
691
  path: string;
568
692
  action: "read_resources";
@@ -570,6 +694,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
570
694
  callerId?: string | undefined;
571
695
  callerType?: "agent" | "user" | "system" | undefined;
572
696
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
697
+ maxResultTokens?: number | null | undefined;
698
+ overflow?: "error" | "truncate" | null | undefined;
573
699
  }>]>;
574
700
  }, "strip", z.ZodTypeAny, {
575
701
  request: {
@@ -579,6 +705,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
579
705
  callerId?: string | undefined;
580
706
  callerType?: "agent" | "user" | "system" | undefined;
581
707
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
708
+ maxResultTokens?: number | null | undefined;
709
+ overflow?: "error" | "truncate" | null | undefined;
582
710
  sessionId?: string | undefined;
583
711
  branchAttributes?: Record<string, string> | undefined;
584
712
  } | {
@@ -588,6 +716,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
588
716
  callerId?: string | undefined;
589
717
  callerType?: "agent" | "user" | "system" | undefined;
590
718
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
719
+ maxResultTokens?: number | null | undefined;
720
+ overflow?: "error" | "truncate" | null | undefined;
591
721
  sessionId?: string | undefined;
592
722
  branchAttributes?: Record<string, string> | undefined;
593
723
  } | {
@@ -598,6 +728,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
598
728
  callerId?: string | undefined;
599
729
  callerType?: "agent" | "user" | "system" | undefined;
600
730
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
731
+ maxResultTokens?: number | null | undefined;
732
+ overflow?: "error" | "truncate" | null | undefined;
601
733
  } | {
602
734
  path: string;
603
735
  action: "describe_tools";
@@ -605,6 +737,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
605
737
  callerId?: string | undefined;
606
738
  callerType?: "agent" | "user" | "system" | undefined;
607
739
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
740
+ maxResultTokens?: number | null | undefined;
741
+ overflow?: "error" | "truncate" | null | undefined;
608
742
  full?: boolean | undefined;
609
743
  } | {
610
744
  path: string;
@@ -612,12 +746,16 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
612
746
  callerId?: string | undefined;
613
747
  callerType?: "agent" | "user" | "system" | undefined;
614
748
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
749
+ maxResultTokens?: number | null | undefined;
750
+ overflow?: "error" | "truncate" | null | undefined;
615
751
  } | {
616
752
  path: string;
617
753
  action: "list_resources";
618
754
  callerId?: string | undefined;
619
755
  callerType?: "agent" | "user" | "system" | undefined;
620
756
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
757
+ maxResultTokens?: number | null | undefined;
758
+ overflow?: "error" | "truncate" | null | undefined;
621
759
  } | {
622
760
  path: string;
623
761
  action: "read_resources";
@@ -625,6 +763,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
625
763
  callerId?: string | undefined;
626
764
  callerType?: "agent" | "user" | "system" | undefined;
627
765
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
766
+ maxResultTokens?: number | null | undefined;
767
+ overflow?: "error" | "truncate" | null | undefined;
628
768
  };
629
769
  }, {
630
770
  request: {
@@ -634,6 +774,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
634
774
  callerId?: string | undefined;
635
775
  callerType?: "agent" | "user" | "system" | undefined;
636
776
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
777
+ maxResultTokens?: number | null | undefined;
778
+ overflow?: "error" | "truncate" | null | undefined;
637
779
  sessionId?: string | undefined;
638
780
  branchAttributes?: Record<string, string> | undefined;
639
781
  } | {
@@ -643,6 +785,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
643
785
  callerId?: string | undefined;
644
786
  callerType?: "agent" | "user" | "system" | undefined;
645
787
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
788
+ maxResultTokens?: number | null | undefined;
789
+ overflow?: "error" | "truncate" | null | undefined;
646
790
  sessionId?: string | undefined;
647
791
  branchAttributes?: Record<string, string> | undefined;
648
792
  } | {
@@ -653,6 +797,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
653
797
  callerId?: string | undefined;
654
798
  callerType?: "agent" | "user" | "system" | undefined;
655
799
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
800
+ maxResultTokens?: number | null | undefined;
801
+ overflow?: "error" | "truncate" | null | undefined;
656
802
  } | {
657
803
  path: string;
658
804
  action: "describe_tools";
@@ -660,6 +806,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
660
806
  callerId?: string | undefined;
661
807
  callerType?: "agent" | "user" | "system" | undefined;
662
808
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
809
+ maxResultTokens?: number | null | undefined;
810
+ overflow?: "error" | "truncate" | null | undefined;
663
811
  full?: boolean | undefined;
664
812
  } | {
665
813
  path: string;
@@ -667,12 +815,16 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
667
815
  callerId?: string | undefined;
668
816
  callerType?: "agent" | "user" | "system" | undefined;
669
817
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
818
+ maxResultTokens?: number | null | undefined;
819
+ overflow?: "error" | "truncate" | null | undefined;
670
820
  } | {
671
821
  path: string;
672
822
  action: "list_resources";
673
823
  callerId?: string | undefined;
674
824
  callerType?: "agent" | "user" | "system" | undefined;
675
825
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
826
+ maxResultTokens?: number | null | undefined;
827
+ overflow?: "error" | "truncate" | null | undefined;
676
828
  } | {
677
829
  path: string;
678
830
  action: "read_resources";
@@ -680,6 +832,8 @@ export declare const callAgentToolInputSchema: z.ZodObject<{
680
832
  callerId?: string | undefined;
681
833
  callerType?: "agent" | "user" | "system" | undefined;
682
834
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
835
+ maxResultTokens?: number | null | undefined;
836
+ overflow?: "error" | "truncate" | null | undefined;
683
837
  };
684
838
  }>;
685
839
  /**
@@ -700,6 +854,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
700
854
  callerId: z.ZodOptional<z.ZodString>;
701
855
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
702
856
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
857
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
858
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
703
859
  } & {
704
860
  action: z.ZodLiteral<"invoke">;
705
861
  prompt: z.ZodString;
@@ -712,6 +868,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
712
868
  callerId?: string | undefined;
713
869
  callerType?: "agent" | "user" | "system" | undefined;
714
870
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
871
+ maxResultTokens?: number | null | undefined;
872
+ overflow?: "error" | "truncate" | null | undefined;
715
873
  sessionId?: string | undefined;
716
874
  branchAttributes?: Record<string, string> | undefined;
717
875
  }, {
@@ -721,6 +879,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
721
879
  callerId?: string | undefined;
722
880
  callerType?: "agent" | "user" | "system" | undefined;
723
881
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
882
+ maxResultTokens?: number | null | undefined;
883
+ overflow?: "error" | "truncate" | null | undefined;
724
884
  sessionId?: string | undefined;
725
885
  branchAttributes?: Record<string, string> | undefined;
726
886
  }>, z.ZodObject<{
@@ -728,6 +888,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
728
888
  callerId: z.ZodOptional<z.ZodString>;
729
889
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
730
890
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
891
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
892
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
731
893
  } & {
732
894
  action: z.ZodLiteral<"ask">;
733
895
  prompt: z.ZodString;
@@ -740,6 +902,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
740
902
  callerId?: string | undefined;
741
903
  callerType?: "agent" | "user" | "system" | undefined;
742
904
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
905
+ maxResultTokens?: number | null | undefined;
906
+ overflow?: "error" | "truncate" | null | undefined;
743
907
  sessionId?: string | undefined;
744
908
  branchAttributes?: Record<string, string> | undefined;
745
909
  }, {
@@ -749,6 +913,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
749
913
  callerId?: string | undefined;
750
914
  callerType?: "agent" | "user" | "system" | undefined;
751
915
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
916
+ maxResultTokens?: number | null | undefined;
917
+ overflow?: "error" | "truncate" | null | undefined;
752
918
  sessionId?: string | undefined;
753
919
  branchAttributes?: Record<string, string> | undefined;
754
920
  }>, z.ZodObject<{
@@ -756,6 +922,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
756
922
  callerId: z.ZodOptional<z.ZodString>;
757
923
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
758
924
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
925
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
926
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
759
927
  } & {
760
928
  action: z.ZodLiteral<"execute_tool">;
761
929
  tool: z.ZodString;
@@ -768,6 +936,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
768
936
  callerId?: string | undefined;
769
937
  callerType?: "agent" | "user" | "system" | undefined;
770
938
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
939
+ maxResultTokens?: number | null | undefined;
940
+ overflow?: "error" | "truncate" | null | undefined;
771
941
  }, {
772
942
  path: string;
773
943
  action: "execute_tool";
@@ -776,11 +946,15 @@ export declare const callAgentValidationSchema: z.ZodObject<{
776
946
  callerId?: string | undefined;
777
947
  callerType?: "agent" | "user" | "system" | undefined;
778
948
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
949
+ maxResultTokens?: number | null | undefined;
950
+ overflow?: "error" | "truncate" | null | undefined;
779
951
  }>, z.ZodObject<{
780
952
  path: z.ZodString;
781
953
  callerId: z.ZodOptional<z.ZodString>;
782
954
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
783
955
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
956
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
957
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
784
958
  } & {
785
959
  action: z.ZodLiteral<"describe_tools">;
786
960
  tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -792,6 +966,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
792
966
  callerId?: string | undefined;
793
967
  callerType?: "agent" | "user" | "system" | undefined;
794
968
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
969
+ maxResultTokens?: number | null | undefined;
970
+ overflow?: "error" | "truncate" | null | undefined;
795
971
  full?: boolean | undefined;
796
972
  }, {
797
973
  path: string;
@@ -800,12 +976,16 @@ export declare const callAgentValidationSchema: z.ZodObject<{
800
976
  callerId?: string | undefined;
801
977
  callerType?: "agent" | "user" | "system" | undefined;
802
978
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
979
+ maxResultTokens?: number | null | undefined;
980
+ overflow?: "error" | "truncate" | null | undefined;
803
981
  full?: boolean | undefined;
804
982
  }>, z.ZodObject<{
805
983
  path: z.ZodString;
806
984
  callerId: z.ZodOptional<z.ZodString>;
807
985
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
808
986
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
987
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
988
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
809
989
  } & {
810
990
  action: z.ZodLiteral<"load">;
811
991
  }, "strip", z.ZodTypeAny, {
@@ -814,17 +994,23 @@ export declare const callAgentValidationSchema: z.ZodObject<{
814
994
  callerId?: string | undefined;
815
995
  callerType?: "agent" | "user" | "system" | undefined;
816
996
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
997
+ maxResultTokens?: number | null | undefined;
998
+ overflow?: "error" | "truncate" | null | undefined;
817
999
  }, {
818
1000
  path: string;
819
1001
  action: "load";
820
1002
  callerId?: string | undefined;
821
1003
  callerType?: "agent" | "user" | "system" | undefined;
822
1004
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1005
+ maxResultTokens?: number | null | undefined;
1006
+ overflow?: "error" | "truncate" | null | undefined;
823
1007
  }>, z.ZodObject<{
824
1008
  path: z.ZodString;
825
1009
  callerId: z.ZodOptional<z.ZodString>;
826
1010
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
827
1011
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1012
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1013
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
828
1014
  } & {
829
1015
  action: z.ZodLiteral<"list_resources">;
830
1016
  }, "strip", z.ZodTypeAny, {
@@ -833,17 +1019,23 @@ export declare const callAgentValidationSchema: z.ZodObject<{
833
1019
  callerId?: string | undefined;
834
1020
  callerType?: "agent" | "user" | "system" | undefined;
835
1021
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1022
+ maxResultTokens?: number | null | undefined;
1023
+ overflow?: "error" | "truncate" | null | undefined;
836
1024
  }, {
837
1025
  path: string;
838
1026
  action: "list_resources";
839
1027
  callerId?: string | undefined;
840
1028
  callerType?: "agent" | "user" | "system" | undefined;
841
1029
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1030
+ maxResultTokens?: number | null | undefined;
1031
+ overflow?: "error" | "truncate" | null | undefined;
842
1032
  }>, z.ZodObject<{
843
1033
  path: z.ZodString;
844
1034
  callerId: z.ZodOptional<z.ZodString>;
845
1035
  callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
846
1036
  metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1037
+ maxResultTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1038
+ overflow: z.ZodOptional<z.ZodNullable<z.ZodEnum<["error", "truncate"]>>>;
847
1039
  } & {
848
1040
  action: z.ZodLiteral<"read_resources">;
849
1041
  uris: z.ZodArray<z.ZodString, "many">;
@@ -854,6 +1046,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
854
1046
  callerId?: string | undefined;
855
1047
  callerType?: "agent" | "user" | "system" | undefined;
856
1048
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1049
+ maxResultTokens?: number | null | undefined;
1050
+ overflow?: "error" | "truncate" | null | undefined;
857
1051
  }, {
858
1052
  path: string;
859
1053
  action: "read_resources";
@@ -861,6 +1055,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
861
1055
  callerId?: string | undefined;
862
1056
  callerType?: "agent" | "user" | "system" | undefined;
863
1057
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1058
+ maxResultTokens?: number | null | undefined;
1059
+ overflow?: "error" | "truncate" | null | undefined;
864
1060
  }>]>;
865
1061
  }, "strip", z.ZodTypeAny, {
866
1062
  request: {
@@ -870,6 +1066,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
870
1066
  callerId?: string | undefined;
871
1067
  callerType?: "agent" | "user" | "system" | undefined;
872
1068
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1069
+ maxResultTokens?: number | null | undefined;
1070
+ overflow?: "error" | "truncate" | null | undefined;
873
1071
  sessionId?: string | undefined;
874
1072
  branchAttributes?: Record<string, string> | undefined;
875
1073
  } | {
@@ -879,6 +1077,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
879
1077
  callerId?: string | undefined;
880
1078
  callerType?: "agent" | "user" | "system" | undefined;
881
1079
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1080
+ maxResultTokens?: number | null | undefined;
1081
+ overflow?: "error" | "truncate" | null | undefined;
882
1082
  sessionId?: string | undefined;
883
1083
  branchAttributes?: Record<string, string> | undefined;
884
1084
  } | {
@@ -889,6 +1089,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
889
1089
  callerId?: string | undefined;
890
1090
  callerType?: "agent" | "user" | "system" | undefined;
891
1091
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1092
+ maxResultTokens?: number | null | undefined;
1093
+ overflow?: "error" | "truncate" | null | undefined;
892
1094
  } | {
893
1095
  path: string;
894
1096
  action: "describe_tools";
@@ -896,6 +1098,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
896
1098
  callerId?: string | undefined;
897
1099
  callerType?: "agent" | "user" | "system" | undefined;
898
1100
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1101
+ maxResultTokens?: number | null | undefined;
1102
+ overflow?: "error" | "truncate" | null | undefined;
899
1103
  full?: boolean | undefined;
900
1104
  } | {
901
1105
  path: string;
@@ -903,12 +1107,16 @@ export declare const callAgentValidationSchema: z.ZodObject<{
903
1107
  callerId?: string | undefined;
904
1108
  callerType?: "agent" | "user" | "system" | undefined;
905
1109
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1110
+ maxResultTokens?: number | null | undefined;
1111
+ overflow?: "error" | "truncate" | null | undefined;
906
1112
  } | {
907
1113
  path: string;
908
1114
  action: "list_resources";
909
1115
  callerId?: string | undefined;
910
1116
  callerType?: "agent" | "user" | "system" | undefined;
911
1117
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1118
+ maxResultTokens?: number | null | undefined;
1119
+ overflow?: "error" | "truncate" | null | undefined;
912
1120
  } | {
913
1121
  path: string;
914
1122
  action: "read_resources";
@@ -916,6 +1124,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
916
1124
  callerId?: string | undefined;
917
1125
  callerType?: "agent" | "user" | "system" | undefined;
918
1126
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1127
+ maxResultTokens?: number | null | undefined;
1128
+ overflow?: "error" | "truncate" | null | undefined;
919
1129
  };
920
1130
  }, {
921
1131
  request: {
@@ -925,6 +1135,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
925
1135
  callerId?: string | undefined;
926
1136
  callerType?: "agent" | "user" | "system" | undefined;
927
1137
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1138
+ maxResultTokens?: number | null | undefined;
1139
+ overflow?: "error" | "truncate" | null | undefined;
928
1140
  sessionId?: string | undefined;
929
1141
  branchAttributes?: Record<string, string> | undefined;
930
1142
  } | {
@@ -934,6 +1146,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
934
1146
  callerId?: string | undefined;
935
1147
  callerType?: "agent" | "user" | "system" | undefined;
936
1148
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1149
+ maxResultTokens?: number | null | undefined;
1150
+ overflow?: "error" | "truncate" | null | undefined;
937
1151
  sessionId?: string | undefined;
938
1152
  branchAttributes?: Record<string, string> | undefined;
939
1153
  } | {
@@ -944,6 +1158,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
944
1158
  callerId?: string | undefined;
945
1159
  callerType?: "agent" | "user" | "system" | undefined;
946
1160
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1161
+ maxResultTokens?: number | null | undefined;
1162
+ overflow?: "error" | "truncate" | null | undefined;
947
1163
  } | {
948
1164
  path: string;
949
1165
  action: "describe_tools";
@@ -951,6 +1167,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
951
1167
  callerId?: string | undefined;
952
1168
  callerType?: "agent" | "user" | "system" | undefined;
953
1169
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1170
+ maxResultTokens?: number | null | undefined;
1171
+ overflow?: "error" | "truncate" | null | undefined;
954
1172
  full?: boolean | undefined;
955
1173
  } | {
956
1174
  path: string;
@@ -958,12 +1176,16 @@ export declare const callAgentValidationSchema: z.ZodObject<{
958
1176
  callerId?: string | undefined;
959
1177
  callerType?: "agent" | "user" | "system" | undefined;
960
1178
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1179
+ maxResultTokens?: number | null | undefined;
1180
+ overflow?: "error" | "truncate" | null | undefined;
961
1181
  } | {
962
1182
  path: string;
963
1183
  action: "list_resources";
964
1184
  callerId?: string | undefined;
965
1185
  callerType?: "agent" | "user" | "system" | undefined;
966
1186
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1187
+ maxResultTokens?: number | null | undefined;
1188
+ overflow?: "error" | "truncate" | null | undefined;
967
1189
  } | {
968
1190
  path: string;
969
1191
  action: "read_resources";
@@ -971,6 +1193,8 @@ export declare const callAgentValidationSchema: z.ZodObject<{
971
1193
  callerId?: string | undefined;
972
1194
  callerType?: "agent" | "user" | "system" | undefined;
973
1195
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1196
+ maxResultTokens?: number | null | undefined;
1197
+ overflow?: "error" | "truncate" | null | undefined;
974
1198
  };
975
1199
  }>;
976
1200
  export declare const listAgentsToolInputSchema: z.ZodObject<{