@slashfi/agents-sdk 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,56 +1,506 @@
1
1
  /**
2
- * Shared JSON Schema for the `call_agent` MCP tool.
2
+ * Zod schemas for the `call_agent` MCP tool.
3
3
  *
4
- * Single source of truth — used by:
5
- * - `getToolDefinitions()` in server.ts (tools/list)
6
- * - Type definitions in types.ts (CallAgentRequest)
4
+ * SINGLE SOURCE OF TRUTH for:
5
+ * - Request TypeScript types (via z.infer)
6
+ * - JSON Schema for MCP tool definitions (via callAgentInputSchema)
7
+ * - Runtime validation
7
8
  *
8
- * When adding a new field to call_agent, update it HERE.
9
- * The handler in server.ts and the types in types.ts must also be updated,
10
- * but THIS file is the canonical schema for what the LLM sees.
9
+ * When adding a new action or field, update it HERE.
10
+ * Types and JSON schemas are derived automatically.
11
+ *
12
+ * Response types live in types.ts (they're output shapes, not validated input).
11
13
  */
14
+ import { z } from "zod";
15
+ export declare const callerTypeSchema: z.ZodEnum<["agent", "user", "system"]>;
16
+ /** Invoke: fire-and-forget */
17
+ export declare const invokeActionSchema: z.ZodObject<{
18
+ path: z.ZodString;
19
+ callerId: z.ZodOptional<z.ZodString>;
20
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
21
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
+ } & {
23
+ action: z.ZodLiteral<"invoke">;
24
+ prompt: z.ZodString;
25
+ sessionId: z.ZodOptional<z.ZodString>;
26
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ action: "invoke";
29
+ path: string;
30
+ prompt: string;
31
+ callerId?: string | undefined;
32
+ callerType?: "agent" | "user" | "system" | undefined;
33
+ metadata?: Record<string, unknown> | undefined;
34
+ sessionId?: string | undefined;
35
+ branchAttributes?: Record<string, string> | undefined;
36
+ }, {
37
+ action: "invoke";
38
+ path: string;
39
+ prompt: string;
40
+ callerId?: string | undefined;
41
+ callerType?: "agent" | "user" | "system" | undefined;
42
+ metadata?: Record<string, unknown> | undefined;
43
+ sessionId?: string | undefined;
44
+ branchAttributes?: Record<string, string> | undefined;
45
+ }>;
46
+ /** Ask: invoke and wait for response */
47
+ export declare const askActionSchema: z.ZodObject<{
48
+ path: z.ZodString;
49
+ callerId: z.ZodOptional<z.ZodString>;
50
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
51
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ } & {
53
+ action: z.ZodLiteral<"ask">;
54
+ prompt: z.ZodString;
55
+ sessionId: z.ZodOptional<z.ZodString>;
56
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ action: "ask";
59
+ path: string;
60
+ prompt: string;
61
+ callerId?: string | undefined;
62
+ callerType?: "agent" | "user" | "system" | undefined;
63
+ metadata?: Record<string, unknown> | undefined;
64
+ sessionId?: string | undefined;
65
+ branchAttributes?: Record<string, string> | undefined;
66
+ }, {
67
+ action: "ask";
68
+ path: string;
69
+ prompt: string;
70
+ callerId?: string | undefined;
71
+ callerType?: "agent" | "user" | "system" | undefined;
72
+ metadata?: Record<string, unknown> | undefined;
73
+ sessionId?: string | undefined;
74
+ branchAttributes?: Record<string, string> | undefined;
75
+ }>;
76
+ /** Execute a specific tool */
77
+ export declare const executeToolActionSchema: z.ZodObject<{
78
+ path: z.ZodString;
79
+ callerId: z.ZodOptional<z.ZodString>;
80
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
81
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
+ } & {
83
+ action: z.ZodLiteral<"execute_tool">;
84
+ tool: z.ZodString;
85
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ action: "execute_tool";
88
+ path: string;
89
+ tool: string;
90
+ callerId?: string | undefined;
91
+ callerType?: "agent" | "user" | "system" | undefined;
92
+ params?: Record<string, unknown> | undefined;
93
+ metadata?: Record<string, unknown> | undefined;
94
+ }, {
95
+ action: "execute_tool";
96
+ path: string;
97
+ tool: string;
98
+ callerId?: string | undefined;
99
+ callerType?: "agent" | "user" | "system" | undefined;
100
+ params?: Record<string, unknown> | undefined;
101
+ metadata?: Record<string, unknown> | undefined;
102
+ }>;
103
+ /** Get tool schemas for an agent */
104
+ export declare const describeToolsActionSchema: z.ZodObject<{
105
+ path: z.ZodString;
106
+ callerId: z.ZodOptional<z.ZodString>;
107
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
108
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ } & {
110
+ action: z.ZodLiteral<"describe_tools">;
111
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ action: "describe_tools";
114
+ path: string;
115
+ callerId?: string | undefined;
116
+ callerType?: "agent" | "user" | "system" | undefined;
117
+ metadata?: Record<string, unknown> | undefined;
118
+ tools?: string[] | undefined;
119
+ }, {
120
+ action: "describe_tools";
121
+ path: string;
122
+ callerId?: string | undefined;
123
+ callerType?: "agent" | "user" | "system" | undefined;
124
+ metadata?: Record<string, unknown> | undefined;
125
+ tools?: string[] | undefined;
126
+ }>;
127
+ /** Load: get agent definition */
128
+ export declare const loadActionSchema: z.ZodObject<{
129
+ path: z.ZodString;
130
+ callerId: z.ZodOptional<z.ZodString>;
131
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
132
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
133
+ } & {
134
+ action: z.ZodLiteral<"load">;
135
+ }, "strip", z.ZodTypeAny, {
136
+ action: "load";
137
+ path: string;
138
+ callerId?: string | undefined;
139
+ callerType?: "agent" | "user" | "system" | undefined;
140
+ metadata?: Record<string, unknown> | undefined;
141
+ }, {
142
+ action: "load";
143
+ path: string;
144
+ callerId?: string | undefined;
145
+ callerType?: "agent" | "user" | "system" | undefined;
146
+ metadata?: Record<string, unknown> | undefined;
147
+ }>;
148
+ export declare const callAgentRequestSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
149
+ path: z.ZodString;
150
+ callerId: z.ZodOptional<z.ZodString>;
151
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
152
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
153
+ } & {
154
+ action: z.ZodLiteral<"invoke">;
155
+ prompt: z.ZodString;
156
+ sessionId: z.ZodOptional<z.ZodString>;
157
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ action: "invoke";
160
+ path: string;
161
+ prompt: string;
162
+ callerId?: string | undefined;
163
+ callerType?: "agent" | "user" | "system" | undefined;
164
+ metadata?: Record<string, unknown> | undefined;
165
+ sessionId?: string | undefined;
166
+ branchAttributes?: Record<string, string> | undefined;
167
+ }, {
168
+ action: "invoke";
169
+ path: string;
170
+ prompt: string;
171
+ callerId?: string | undefined;
172
+ callerType?: "agent" | "user" | "system" | undefined;
173
+ metadata?: Record<string, unknown> | undefined;
174
+ sessionId?: string | undefined;
175
+ branchAttributes?: Record<string, string> | undefined;
176
+ }>, z.ZodObject<{
177
+ path: z.ZodString;
178
+ callerId: z.ZodOptional<z.ZodString>;
179
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
180
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
181
+ } & {
182
+ action: z.ZodLiteral<"ask">;
183
+ prompt: z.ZodString;
184
+ sessionId: z.ZodOptional<z.ZodString>;
185
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ action: "ask";
188
+ path: string;
189
+ prompt: string;
190
+ callerId?: string | undefined;
191
+ callerType?: "agent" | "user" | "system" | undefined;
192
+ metadata?: Record<string, unknown> | undefined;
193
+ sessionId?: string | undefined;
194
+ branchAttributes?: Record<string, string> | undefined;
195
+ }, {
196
+ action: "ask";
197
+ path: string;
198
+ prompt: string;
199
+ callerId?: string | undefined;
200
+ callerType?: "agent" | "user" | "system" | undefined;
201
+ metadata?: Record<string, unknown> | undefined;
202
+ sessionId?: string | undefined;
203
+ branchAttributes?: Record<string, string> | undefined;
204
+ }>, z.ZodObject<{
205
+ path: z.ZodString;
206
+ callerId: z.ZodOptional<z.ZodString>;
207
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
208
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
209
+ } & {
210
+ action: z.ZodLiteral<"execute_tool">;
211
+ tool: z.ZodString;
212
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ action: "execute_tool";
215
+ path: string;
216
+ tool: string;
217
+ callerId?: string | undefined;
218
+ callerType?: "agent" | "user" | "system" | undefined;
219
+ params?: Record<string, unknown> | undefined;
220
+ metadata?: Record<string, unknown> | undefined;
221
+ }, {
222
+ action: "execute_tool";
223
+ path: string;
224
+ tool: string;
225
+ callerId?: string | undefined;
226
+ callerType?: "agent" | "user" | "system" | undefined;
227
+ params?: Record<string, unknown> | undefined;
228
+ metadata?: Record<string, unknown> | undefined;
229
+ }>, z.ZodObject<{
230
+ path: z.ZodString;
231
+ callerId: z.ZodOptional<z.ZodString>;
232
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
233
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
234
+ } & {
235
+ action: z.ZodLiteral<"describe_tools">;
236
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ action: "describe_tools";
239
+ path: string;
240
+ callerId?: string | undefined;
241
+ callerType?: "agent" | "user" | "system" | undefined;
242
+ metadata?: Record<string, unknown> | undefined;
243
+ tools?: string[] | undefined;
244
+ }, {
245
+ action: "describe_tools";
246
+ path: string;
247
+ callerId?: string | undefined;
248
+ callerType?: "agent" | "user" | "system" | undefined;
249
+ metadata?: Record<string, unknown> | undefined;
250
+ tools?: string[] | undefined;
251
+ }>, z.ZodObject<{
252
+ path: z.ZodString;
253
+ callerId: z.ZodOptional<z.ZodString>;
254
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
255
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
256
+ } & {
257
+ action: z.ZodLiteral<"load">;
258
+ }, "strip", z.ZodTypeAny, {
259
+ action: "load";
260
+ path: string;
261
+ callerId?: string | undefined;
262
+ callerType?: "agent" | "user" | "system" | undefined;
263
+ metadata?: Record<string, unknown> | undefined;
264
+ }, {
265
+ action: "load";
266
+ path: string;
267
+ callerId?: string | undefined;
268
+ callerType?: "agent" | "user" | "system" | undefined;
269
+ metadata?: Record<string, unknown> | undefined;
270
+ }>]>;
271
+ export type CallAgentRequest = z.infer<typeof callAgentRequestSchema>;
272
+ export type CallAgentInvokeRequest = z.infer<typeof invokeActionSchema>;
273
+ export type CallAgentAskRequest = z.infer<typeof askActionSchema>;
274
+ export type CallAgentExecuteToolRequest = z.infer<typeof executeToolActionSchema>;
275
+ export type CallAgentDescribeToolsRequest = z.infer<typeof describeToolsActionSchema>;
276
+ export type CallAgentLoadRequest = z.infer<typeof loadActionSchema>;
277
+ /** All supported agent actions — derived from the schema. */
278
+ export type AgentAction = CallAgentRequest["action"];
279
+ /** CallerType — derived from the schema. */
280
+ export type CallerType = z.infer<typeof callerTypeSchema>;
281
+ /** All supported action strings as a const array. */
282
+ export declare const CALL_AGENT_ACTIONS: AgentAction[];
12
283
  /**
13
- * All actions supported by the call_agent handler.
14
- * Keep in sync with the switch cases in registry.ts `call()`.
284
+ * Zod schema for the full MCP tool input (wraps request in an outer object).
285
+ * This is the schema that gets converted to JSON Schema for the LLM.
15
286
  */
16
- export declare const CALL_AGENT_ACTIONS: readonly ["execute_tool", "describe_tools", "load", "invoke", "ask", "learn"];
287
+ export declare const callAgentToolInputSchema: z.ZodObject<{
288
+ request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
289
+ path: z.ZodString;
290
+ callerId: z.ZodOptional<z.ZodString>;
291
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
292
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
293
+ } & {
294
+ action: z.ZodLiteral<"invoke">;
295
+ prompt: z.ZodString;
296
+ sessionId: z.ZodOptional<z.ZodString>;
297
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ action: "invoke";
300
+ path: string;
301
+ prompt: string;
302
+ callerId?: string | undefined;
303
+ callerType?: "agent" | "user" | "system" | undefined;
304
+ metadata?: Record<string, unknown> | undefined;
305
+ sessionId?: string | undefined;
306
+ branchAttributes?: Record<string, string> | undefined;
307
+ }, {
308
+ action: "invoke";
309
+ path: string;
310
+ prompt: string;
311
+ callerId?: string | undefined;
312
+ callerType?: "agent" | "user" | "system" | undefined;
313
+ metadata?: Record<string, unknown> | undefined;
314
+ sessionId?: string | undefined;
315
+ branchAttributes?: Record<string, string> | undefined;
316
+ }>, z.ZodObject<{
317
+ path: z.ZodString;
318
+ callerId: z.ZodOptional<z.ZodString>;
319
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
320
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
321
+ } & {
322
+ action: z.ZodLiteral<"ask">;
323
+ prompt: z.ZodString;
324
+ sessionId: z.ZodOptional<z.ZodString>;
325
+ branchAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ action: "ask";
328
+ path: string;
329
+ prompt: string;
330
+ callerId?: string | undefined;
331
+ callerType?: "agent" | "user" | "system" | undefined;
332
+ metadata?: Record<string, unknown> | undefined;
333
+ sessionId?: string | undefined;
334
+ branchAttributes?: Record<string, string> | undefined;
335
+ }, {
336
+ action: "ask";
337
+ path: string;
338
+ prompt: string;
339
+ callerId?: string | undefined;
340
+ callerType?: "agent" | "user" | "system" | undefined;
341
+ metadata?: Record<string, unknown> | undefined;
342
+ sessionId?: string | undefined;
343
+ branchAttributes?: Record<string, string> | undefined;
344
+ }>, z.ZodObject<{
345
+ path: z.ZodString;
346
+ callerId: z.ZodOptional<z.ZodString>;
347
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
348
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
349
+ } & {
350
+ action: z.ZodLiteral<"execute_tool">;
351
+ tool: z.ZodString;
352
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ action: "execute_tool";
355
+ path: string;
356
+ tool: string;
357
+ callerId?: string | undefined;
358
+ callerType?: "agent" | "user" | "system" | undefined;
359
+ params?: Record<string, unknown> | undefined;
360
+ metadata?: Record<string, unknown> | undefined;
361
+ }, {
362
+ action: "execute_tool";
363
+ path: string;
364
+ tool: string;
365
+ callerId?: string | undefined;
366
+ callerType?: "agent" | "user" | "system" | undefined;
367
+ params?: Record<string, unknown> | undefined;
368
+ metadata?: Record<string, unknown> | undefined;
369
+ }>, z.ZodObject<{
370
+ path: z.ZodString;
371
+ callerId: z.ZodOptional<z.ZodString>;
372
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
373
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
374
+ } & {
375
+ action: z.ZodLiteral<"describe_tools">;
376
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ action: "describe_tools";
379
+ path: string;
380
+ callerId?: string | undefined;
381
+ callerType?: "agent" | "user" | "system" | undefined;
382
+ metadata?: Record<string, unknown> | undefined;
383
+ tools?: string[] | undefined;
384
+ }, {
385
+ action: "describe_tools";
386
+ path: string;
387
+ callerId?: string | undefined;
388
+ callerType?: "agent" | "user" | "system" | undefined;
389
+ metadata?: Record<string, unknown> | undefined;
390
+ tools?: string[] | undefined;
391
+ }>, z.ZodObject<{
392
+ path: z.ZodString;
393
+ callerId: z.ZodOptional<z.ZodString>;
394
+ callerType: z.ZodOptional<z.ZodEnum<["agent", "user", "system"]>>;
395
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
396
+ } & {
397
+ action: z.ZodLiteral<"load">;
398
+ }, "strip", z.ZodTypeAny, {
399
+ action: "load";
400
+ path: string;
401
+ callerId?: string | undefined;
402
+ callerType?: "agent" | "user" | "system" | undefined;
403
+ metadata?: Record<string, unknown> | undefined;
404
+ }, {
405
+ action: "load";
406
+ path: string;
407
+ callerId?: string | undefined;
408
+ callerType?: "agent" | "user" | "system" | undefined;
409
+ metadata?: Record<string, unknown> | undefined;
410
+ }>]>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ request: {
413
+ action: "invoke";
414
+ path: string;
415
+ prompt: string;
416
+ callerId?: string | undefined;
417
+ callerType?: "agent" | "user" | "system" | undefined;
418
+ metadata?: Record<string, unknown> | undefined;
419
+ sessionId?: string | undefined;
420
+ branchAttributes?: Record<string, string> | undefined;
421
+ } | {
422
+ action: "ask";
423
+ path: string;
424
+ prompt: string;
425
+ callerId?: string | undefined;
426
+ callerType?: "agent" | "user" | "system" | undefined;
427
+ metadata?: Record<string, unknown> | undefined;
428
+ sessionId?: string | undefined;
429
+ branchAttributes?: Record<string, string> | undefined;
430
+ } | {
431
+ action: "execute_tool";
432
+ path: string;
433
+ tool: string;
434
+ callerId?: string | undefined;
435
+ callerType?: "agent" | "user" | "system" | undefined;
436
+ params?: Record<string, unknown> | undefined;
437
+ metadata?: Record<string, unknown> | undefined;
438
+ } | {
439
+ action: "describe_tools";
440
+ path: string;
441
+ callerId?: string | undefined;
442
+ callerType?: "agent" | "user" | "system" | undefined;
443
+ metadata?: Record<string, unknown> | undefined;
444
+ tools?: string[] | undefined;
445
+ } | {
446
+ action: "load";
447
+ path: string;
448
+ callerId?: string | undefined;
449
+ callerType?: "agent" | "user" | "system" | undefined;
450
+ metadata?: Record<string, unknown> | undefined;
451
+ };
452
+ }, {
453
+ request: {
454
+ action: "invoke";
455
+ path: string;
456
+ prompt: string;
457
+ callerId?: string | undefined;
458
+ callerType?: "agent" | "user" | "system" | undefined;
459
+ metadata?: Record<string, unknown> | undefined;
460
+ sessionId?: string | undefined;
461
+ branchAttributes?: Record<string, string> | undefined;
462
+ } | {
463
+ action: "ask";
464
+ path: string;
465
+ prompt: string;
466
+ callerId?: string | undefined;
467
+ callerType?: "agent" | "user" | "system" | undefined;
468
+ metadata?: Record<string, unknown> | undefined;
469
+ sessionId?: string | undefined;
470
+ branchAttributes?: Record<string, string> | undefined;
471
+ } | {
472
+ action: "execute_tool";
473
+ path: string;
474
+ tool: string;
475
+ callerId?: string | undefined;
476
+ callerType?: "agent" | "user" | "system" | undefined;
477
+ params?: Record<string, unknown> | undefined;
478
+ metadata?: Record<string, unknown> | undefined;
479
+ } | {
480
+ action: "describe_tools";
481
+ path: string;
482
+ callerId?: string | undefined;
483
+ callerType?: "agent" | "user" | "system" | undefined;
484
+ metadata?: Record<string, unknown> | undefined;
485
+ tools?: string[] | undefined;
486
+ } | {
487
+ action: "load";
488
+ path: string;
489
+ callerId?: string | undefined;
490
+ callerType?: "agent" | "user" | "system" | undefined;
491
+ metadata?: Record<string, unknown> | undefined;
492
+ };
493
+ }>;
17
494
  /**
18
495
  * The MCP input schema for the `call_agent` tool.
19
496
  * This is what the LLM sees via `tools/list`.
497
+ *
498
+ * Fully derived from the zod schemas — no hand-written JSON Schema.
20
499
  */
21
- export declare const callAgentInputSchema: {
22
- type: "object";
23
- properties: {
24
- request: {
25
- type: "object";
26
- description: string;
27
- properties: {
28
- action: {
29
- type: "string";
30
- enum: ("invoke" | "ask" | "execute_tool" | "describe_tools" | "load" | "learn")[];
31
- description: string;
32
- };
33
- path: {
34
- type: "string";
35
- description: string;
36
- };
37
- tool: {
38
- type: "string";
39
- description: string;
40
- };
41
- params: {
42
- type: "object";
43
- description: string;
44
- additionalProperties: boolean;
45
- };
46
- prompt: {
47
- type: "string";
48
- description: string;
49
- };
50
- };
51
- required: readonly ["action", "path"];
52
- };
53
- };
54
- required: readonly ["request"];
500
+ export declare const callAgentInputSchema: object & {
501
+ $schema?: string | undefined;
502
+ definitions?: {
503
+ [key: string]: object;
504
+ } | undefined;
55
505
  };
56
506
  //# sourceMappingURL=call-agent-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"call-agent-schema.d.ts","sourceRoot":"","sources":["../src/call-agent-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,+EAOrB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC"}
1
+ {"version":3,"file":"call-agent-schema.d.ts","sourceRoot":"","sources":["../src/call-agent-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gBAAgB,wCAAsC,CAAC;AAapE,8BAA8B;AAC9B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAC;AAEH,wCAAwC;AACxC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;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