@mastra/server 1.0.0-beta.8 → 1.0.0-beta.9

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/chunk-HAJOEDNB.js +274 -0
  3. package/dist/chunk-HAJOEDNB.js.map +1 -0
  4. package/dist/chunk-IEYXQTUW.cjs +284 -0
  5. package/dist/chunk-IEYXQTUW.cjs.map +1 -0
  6. package/dist/{chunk-25K5B3GJ.cjs → chunk-VD3WO2TJ.cjs} +756 -2028
  7. package/dist/chunk-VD3WO2TJ.cjs.map +1 -0
  8. package/dist/{chunk-M55XXZ35.js → chunk-VDJHDTPP.js} +756 -2028
  9. package/dist/chunk-VDJHDTPP.js.map +1 -0
  10. package/dist/server/handlers/agent-builder.cjs +19 -19
  11. package/dist/server/handlers/agent-builder.js +1 -1
  12. package/dist/server/handlers/stored-agents.cjs +28 -0
  13. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  14. package/dist/server/handlers/stored-agents.d.ts +289 -0
  15. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  16. package/dist/server/handlers/stored-agents.js +3 -0
  17. package/dist/server/handlers/stored-agents.js.map +1 -0
  18. package/dist/server/handlers.cjs +2 -2
  19. package/dist/server/handlers.js +1 -1
  20. package/dist/server/schemas/stored-agents.d.ts +792 -0
  21. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  22. package/dist/server/server-adapter/index.cjs +34 -20
  23. package/dist/server/server-adapter/index.cjs.map +1 -1
  24. package/dist/server/server-adapter/index.js +16 -2
  25. package/dist/server/server-adapter/index.js.map +1 -1
  26. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  27. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  28. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  29. package/package.json +4 -4
  30. package/dist/chunk-25K5B3GJ.cjs.map +0 -1
  31. package/dist/chunk-M55XXZ35.js.map +0 -1
@@ -0,0 +1,792 @@
1
+ import z from 'zod';
2
+ /**
3
+ * Path parameter for stored agent ID
4
+ */
5
+ export declare const storedAgentIdPathParams: z.ZodObject<{
6
+ storedAgentId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ storedAgentId: string;
9
+ }, {
10
+ storedAgentId: string;
11
+ }>;
12
+ /**
13
+ * GET /api/storage/agents - List stored agents
14
+ */
15
+ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
16
+ perPage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
17
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18
+ } & {
19
+ orderBy: z.ZodOptional<z.ZodObject<{
20
+ field: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt"]>>;
21
+ direction: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ field?: "createdAt" | "updatedAt" | undefined;
24
+ direction?: "ASC" | "DESC" | undefined;
25
+ }, {
26
+ field?: "createdAt" | "updatedAt" | undefined;
27
+ direction?: "ASC" | "DESC" | undefined;
28
+ }>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ page: number;
31
+ perPage: number;
32
+ orderBy?: {
33
+ field?: "createdAt" | "updatedAt" | undefined;
34
+ direction?: "ASC" | "DESC" | undefined;
35
+ } | undefined;
36
+ }, {
37
+ page?: number | undefined;
38
+ perPage?: number | undefined;
39
+ orderBy?: {
40
+ field?: "createdAt" | "updatedAt" | undefined;
41
+ direction?: "ASC" | "DESC" | undefined;
42
+ } | undefined;
43
+ }> | z.ZodObject<{
44
+ perPage: z.ZodOptional<z.ZodNumber>;
45
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
46
+ } & {
47
+ orderBy: z.ZodOptional<z.ZodObject<{
48
+ field: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt"]>>;
49
+ direction: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ field?: "createdAt" | "updatedAt" | undefined;
52
+ direction?: "ASC" | "DESC" | undefined;
53
+ }, {
54
+ field?: "createdAt" | "updatedAt" | undefined;
55
+ direction?: "ASC" | "DESC" | undefined;
56
+ }>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ page: number;
59
+ perPage?: number | undefined;
60
+ orderBy?: {
61
+ field?: "createdAt" | "updatedAt" | undefined;
62
+ direction?: "ASC" | "DESC" | undefined;
63
+ } | undefined;
64
+ }, {
65
+ page?: number | undefined;
66
+ perPage?: number | undefined;
67
+ orderBy?: {
68
+ field?: "createdAt" | "updatedAt" | undefined;
69
+ direction?: "ASC" | "DESC" | undefined;
70
+ } | undefined;
71
+ }>;
72
+ /**
73
+ * POST /api/storage/agents - Create stored agent body
74
+ */
75
+ export declare const createStoredAgentBodySchema: z.ZodObject<{
76
+ name: z.ZodString;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ instructions: z.ZodString;
79
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
80
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
85
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
86
+ memory: z.ZodOptional<z.ZodString>;
87
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
88
+ sampling: z.ZodOptional<z.ZodObject<{
89
+ type: z.ZodEnum<["ratio", "count"]>;
90
+ rate: z.ZodOptional<z.ZodNumber>;
91
+ count: z.ZodOptional<z.ZodNumber>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: "count" | "ratio";
94
+ count?: number | undefined;
95
+ rate?: number | undefined;
96
+ }, {
97
+ type: "count" | "ratio";
98
+ count?: number | undefined;
99
+ rate?: number | undefined;
100
+ }>>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ sampling?: {
103
+ type: "count" | "ratio";
104
+ count?: number | undefined;
105
+ rate?: number | undefined;
106
+ } | undefined;
107
+ }, {
108
+ sampling?: {
109
+ type: "count" | "ratio";
110
+ count?: number | undefined;
111
+ rate?: number | undefined;
112
+ } | undefined;
113
+ }>>>;
114
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
+ } & {
116
+ id: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ name: string;
119
+ id: string;
120
+ model: Record<string, unknown>;
121
+ instructions: string;
122
+ metadata?: Record<string, unknown> | undefined;
123
+ description?: string | undefined;
124
+ tools?: string[] | undefined;
125
+ agents?: string[] | undefined;
126
+ workflows?: string[] | undefined;
127
+ inputProcessors?: Record<string, unknown>[] | undefined;
128
+ outputProcessors?: Record<string, unknown>[] | undefined;
129
+ defaultOptions?: Record<string, unknown> | undefined;
130
+ memory?: string | undefined;
131
+ scorers?: Record<string, {
132
+ sampling?: {
133
+ type: "count" | "ratio";
134
+ count?: number | undefined;
135
+ rate?: number | undefined;
136
+ } | undefined;
137
+ }> | undefined;
138
+ }, {
139
+ name: string;
140
+ id: string;
141
+ model: Record<string, unknown>;
142
+ instructions: string;
143
+ metadata?: Record<string, unknown> | undefined;
144
+ description?: string | undefined;
145
+ tools?: string[] | undefined;
146
+ agents?: string[] | undefined;
147
+ workflows?: string[] | undefined;
148
+ inputProcessors?: Record<string, unknown>[] | undefined;
149
+ outputProcessors?: Record<string, unknown>[] | undefined;
150
+ defaultOptions?: Record<string, unknown> | undefined;
151
+ memory?: string | undefined;
152
+ scorers?: Record<string, {
153
+ sampling?: {
154
+ type: "count" | "ratio";
155
+ count?: number | undefined;
156
+ rate?: number | undefined;
157
+ } | undefined;
158
+ }> | undefined;
159
+ }>;
160
+ /**
161
+ * PATCH /api/storage/agents/:storedAgentId - Update stored agent body
162
+ */
163
+ export declare const updateStoredAgentBodySchema: z.ZodObject<{
164
+ name: z.ZodOptional<z.ZodString>;
165
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
166
+ instructions: z.ZodOptional<z.ZodString>;
167
+ model: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168
+ tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
169
+ defaultOptions: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
170
+ workflows: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
171
+ agents: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
172
+ inputProcessors: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>>;
173
+ outputProcessors: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>>;
174
+ memory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
175
+ scorers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
176
+ sampling: z.ZodOptional<z.ZodObject<{
177
+ type: z.ZodEnum<["ratio", "count"]>;
178
+ rate: z.ZodOptional<z.ZodNumber>;
179
+ count: z.ZodOptional<z.ZodNumber>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ type: "count" | "ratio";
182
+ count?: number | undefined;
183
+ rate?: number | undefined;
184
+ }, {
185
+ type: "count" | "ratio";
186
+ count?: number | undefined;
187
+ rate?: number | undefined;
188
+ }>>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ sampling?: {
191
+ type: "count" | "ratio";
192
+ count?: number | undefined;
193
+ rate?: number | undefined;
194
+ } | undefined;
195
+ }, {
196
+ sampling?: {
197
+ type: "count" | "ratio";
198
+ count?: number | undefined;
199
+ rate?: number | undefined;
200
+ } | undefined;
201
+ }>>>>;
202
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ metadata?: Record<string, unknown> | undefined;
205
+ name?: string | undefined;
206
+ description?: string | undefined;
207
+ model?: Record<string, unknown> | undefined;
208
+ instructions?: string | undefined;
209
+ tools?: string[] | undefined;
210
+ agents?: string[] | undefined;
211
+ workflows?: string[] | undefined;
212
+ inputProcessors?: Record<string, unknown>[] | undefined;
213
+ outputProcessors?: Record<string, unknown>[] | undefined;
214
+ defaultOptions?: Record<string, unknown> | undefined;
215
+ memory?: string | undefined;
216
+ scorers?: Record<string, {
217
+ sampling?: {
218
+ type: "count" | "ratio";
219
+ count?: number | undefined;
220
+ rate?: number | undefined;
221
+ } | undefined;
222
+ }> | undefined;
223
+ }, {
224
+ metadata?: Record<string, unknown> | undefined;
225
+ name?: string | undefined;
226
+ description?: string | undefined;
227
+ model?: Record<string, unknown> | undefined;
228
+ instructions?: string | undefined;
229
+ tools?: string[] | undefined;
230
+ agents?: string[] | undefined;
231
+ workflows?: string[] | undefined;
232
+ inputProcessors?: Record<string, unknown>[] | undefined;
233
+ outputProcessors?: Record<string, unknown>[] | undefined;
234
+ defaultOptions?: Record<string, unknown> | undefined;
235
+ memory?: string | undefined;
236
+ scorers?: Record<string, {
237
+ sampling?: {
238
+ type: "count" | "ratio";
239
+ count?: number | undefined;
240
+ rate?: number | undefined;
241
+ } | undefined;
242
+ }> | undefined;
243
+ }>;
244
+ /**
245
+ * Stored agent object schema (full response)
246
+ */
247
+ export declare const storedAgentSchema: z.ZodObject<{
248
+ name: z.ZodString;
249
+ description: z.ZodOptional<z.ZodString>;
250
+ instructions: z.ZodString;
251
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
252
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
254
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
257
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
258
+ memory: z.ZodOptional<z.ZodString>;
259
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
260
+ sampling: z.ZodOptional<z.ZodObject<{
261
+ type: z.ZodEnum<["ratio", "count"]>;
262
+ rate: z.ZodOptional<z.ZodNumber>;
263
+ count: z.ZodOptional<z.ZodNumber>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ type: "count" | "ratio";
266
+ count?: number | undefined;
267
+ rate?: number | undefined;
268
+ }, {
269
+ type: "count" | "ratio";
270
+ count?: number | undefined;
271
+ rate?: number | undefined;
272
+ }>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ sampling?: {
275
+ type: "count" | "ratio";
276
+ count?: number | undefined;
277
+ rate?: number | undefined;
278
+ } | undefined;
279
+ }, {
280
+ sampling?: {
281
+ type: "count" | "ratio";
282
+ count?: number | undefined;
283
+ rate?: number | undefined;
284
+ } | undefined;
285
+ }>>>;
286
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
287
+ } & {
288
+ id: z.ZodString;
289
+ createdAt: z.ZodDate;
290
+ updatedAt: z.ZodDate;
291
+ }, "strip", z.ZodTypeAny, {
292
+ name: string;
293
+ id: string;
294
+ createdAt: Date;
295
+ updatedAt: Date;
296
+ model: Record<string, unknown>;
297
+ instructions: string;
298
+ metadata?: Record<string, unknown> | undefined;
299
+ description?: string | undefined;
300
+ tools?: string[] | undefined;
301
+ agents?: string[] | undefined;
302
+ workflows?: string[] | undefined;
303
+ inputProcessors?: Record<string, unknown>[] | undefined;
304
+ outputProcessors?: Record<string, unknown>[] | undefined;
305
+ defaultOptions?: Record<string, unknown> | undefined;
306
+ memory?: string | undefined;
307
+ scorers?: Record<string, {
308
+ sampling?: {
309
+ type: "count" | "ratio";
310
+ count?: number | undefined;
311
+ rate?: number | undefined;
312
+ } | undefined;
313
+ }> | undefined;
314
+ }, {
315
+ name: string;
316
+ id: string;
317
+ createdAt: Date;
318
+ updatedAt: Date;
319
+ model: Record<string, unknown>;
320
+ instructions: string;
321
+ metadata?: Record<string, unknown> | undefined;
322
+ description?: string | undefined;
323
+ tools?: string[] | undefined;
324
+ agents?: string[] | undefined;
325
+ workflows?: string[] | undefined;
326
+ inputProcessors?: Record<string, unknown>[] | undefined;
327
+ outputProcessors?: Record<string, unknown>[] | undefined;
328
+ defaultOptions?: Record<string, unknown> | undefined;
329
+ memory?: string | undefined;
330
+ scorers?: Record<string, {
331
+ sampling?: {
332
+ type: "count" | "ratio";
333
+ count?: number | undefined;
334
+ rate?: number | undefined;
335
+ } | undefined;
336
+ }> | undefined;
337
+ }>;
338
+ /**
339
+ * Response for GET /api/storage/agents
340
+ */
341
+ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
342
+ total: z.ZodNumber;
343
+ page: z.ZodNumber;
344
+ perPage: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>;
345
+ hasMore: z.ZodBoolean;
346
+ } & {
347
+ agents: z.ZodArray<z.ZodObject<{
348
+ name: z.ZodString;
349
+ description: z.ZodOptional<z.ZodString>;
350
+ instructions: z.ZodString;
351
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
352
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
354
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
357
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
358
+ memory: z.ZodOptional<z.ZodString>;
359
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
360
+ sampling: z.ZodOptional<z.ZodObject<{
361
+ type: z.ZodEnum<["ratio", "count"]>;
362
+ rate: z.ZodOptional<z.ZodNumber>;
363
+ count: z.ZodOptional<z.ZodNumber>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ type: "count" | "ratio";
366
+ count?: number | undefined;
367
+ rate?: number | undefined;
368
+ }, {
369
+ type: "count" | "ratio";
370
+ count?: number | undefined;
371
+ rate?: number | undefined;
372
+ }>>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ sampling?: {
375
+ type: "count" | "ratio";
376
+ count?: number | undefined;
377
+ rate?: number | undefined;
378
+ } | undefined;
379
+ }, {
380
+ sampling?: {
381
+ type: "count" | "ratio";
382
+ count?: number | undefined;
383
+ rate?: number | undefined;
384
+ } | undefined;
385
+ }>>>;
386
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
+ } & {
388
+ id: z.ZodString;
389
+ createdAt: z.ZodDate;
390
+ updatedAt: z.ZodDate;
391
+ }, "strip", z.ZodTypeAny, {
392
+ name: string;
393
+ id: string;
394
+ createdAt: Date;
395
+ updatedAt: Date;
396
+ model: Record<string, unknown>;
397
+ instructions: string;
398
+ metadata?: Record<string, unknown> | undefined;
399
+ description?: string | undefined;
400
+ tools?: string[] | undefined;
401
+ agents?: string[] | undefined;
402
+ workflows?: string[] | undefined;
403
+ inputProcessors?: Record<string, unknown>[] | undefined;
404
+ outputProcessors?: Record<string, unknown>[] | undefined;
405
+ defaultOptions?: Record<string, unknown> | undefined;
406
+ memory?: string | undefined;
407
+ scorers?: Record<string, {
408
+ sampling?: {
409
+ type: "count" | "ratio";
410
+ count?: number | undefined;
411
+ rate?: number | undefined;
412
+ } | undefined;
413
+ }> | undefined;
414
+ }, {
415
+ name: string;
416
+ id: string;
417
+ createdAt: Date;
418
+ updatedAt: Date;
419
+ model: Record<string, unknown>;
420
+ instructions: string;
421
+ metadata?: Record<string, unknown> | undefined;
422
+ description?: string | undefined;
423
+ tools?: string[] | undefined;
424
+ agents?: string[] | undefined;
425
+ workflows?: string[] | undefined;
426
+ inputProcessors?: Record<string, unknown>[] | undefined;
427
+ outputProcessors?: Record<string, unknown>[] | undefined;
428
+ defaultOptions?: Record<string, unknown> | undefined;
429
+ memory?: string | undefined;
430
+ scorers?: Record<string, {
431
+ sampling?: {
432
+ type: "count" | "ratio";
433
+ count?: number | undefined;
434
+ rate?: number | undefined;
435
+ } | undefined;
436
+ }> | undefined;
437
+ }>, "many">;
438
+ }, "strip", z.ZodTypeAny, {
439
+ total: number;
440
+ page: number;
441
+ perPage: number | false;
442
+ hasMore: boolean;
443
+ agents: {
444
+ name: string;
445
+ id: string;
446
+ createdAt: Date;
447
+ updatedAt: Date;
448
+ model: Record<string, unknown>;
449
+ instructions: string;
450
+ metadata?: Record<string, unknown> | undefined;
451
+ description?: string | undefined;
452
+ tools?: string[] | undefined;
453
+ agents?: string[] | undefined;
454
+ workflows?: string[] | undefined;
455
+ inputProcessors?: Record<string, unknown>[] | undefined;
456
+ outputProcessors?: Record<string, unknown>[] | undefined;
457
+ defaultOptions?: Record<string, unknown> | undefined;
458
+ memory?: string | undefined;
459
+ scorers?: Record<string, {
460
+ sampling?: {
461
+ type: "count" | "ratio";
462
+ count?: number | undefined;
463
+ rate?: number | undefined;
464
+ } | undefined;
465
+ }> | undefined;
466
+ }[];
467
+ }, {
468
+ total: number;
469
+ page: number;
470
+ perPage: number | false;
471
+ hasMore: boolean;
472
+ agents: {
473
+ name: string;
474
+ id: string;
475
+ createdAt: Date;
476
+ updatedAt: Date;
477
+ model: Record<string, unknown>;
478
+ instructions: string;
479
+ metadata?: Record<string, unknown> | undefined;
480
+ description?: string | undefined;
481
+ tools?: string[] | undefined;
482
+ agents?: string[] | undefined;
483
+ workflows?: string[] | undefined;
484
+ inputProcessors?: Record<string, unknown>[] | undefined;
485
+ outputProcessors?: Record<string, unknown>[] | undefined;
486
+ defaultOptions?: Record<string, unknown> | undefined;
487
+ memory?: string | undefined;
488
+ scorers?: Record<string, {
489
+ sampling?: {
490
+ type: "count" | "ratio";
491
+ count?: number | undefined;
492
+ rate?: number | undefined;
493
+ } | undefined;
494
+ }> | undefined;
495
+ }[];
496
+ }>;
497
+ /**
498
+ * Response for GET /api/storage/agents/:storedAgentId
499
+ */
500
+ export declare const getStoredAgentResponseSchema: z.ZodObject<{
501
+ name: z.ZodString;
502
+ description: z.ZodOptional<z.ZodString>;
503
+ instructions: z.ZodString;
504
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
505
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
506
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
507
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
508
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
509
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
510
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
511
+ memory: z.ZodOptional<z.ZodString>;
512
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
513
+ sampling: z.ZodOptional<z.ZodObject<{
514
+ type: z.ZodEnum<["ratio", "count"]>;
515
+ rate: z.ZodOptional<z.ZodNumber>;
516
+ count: z.ZodOptional<z.ZodNumber>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "count" | "ratio";
519
+ count?: number | undefined;
520
+ rate?: number | undefined;
521
+ }, {
522
+ type: "count" | "ratio";
523
+ count?: number | undefined;
524
+ rate?: number | undefined;
525
+ }>>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ sampling?: {
528
+ type: "count" | "ratio";
529
+ count?: number | undefined;
530
+ rate?: number | undefined;
531
+ } | undefined;
532
+ }, {
533
+ sampling?: {
534
+ type: "count" | "ratio";
535
+ count?: number | undefined;
536
+ rate?: number | undefined;
537
+ } | undefined;
538
+ }>>>;
539
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
540
+ } & {
541
+ id: z.ZodString;
542
+ createdAt: z.ZodDate;
543
+ updatedAt: z.ZodDate;
544
+ }, "strip", z.ZodTypeAny, {
545
+ name: string;
546
+ id: string;
547
+ createdAt: Date;
548
+ updatedAt: Date;
549
+ model: Record<string, unknown>;
550
+ instructions: string;
551
+ metadata?: Record<string, unknown> | undefined;
552
+ description?: string | undefined;
553
+ tools?: string[] | undefined;
554
+ agents?: string[] | undefined;
555
+ workflows?: string[] | undefined;
556
+ inputProcessors?: Record<string, unknown>[] | undefined;
557
+ outputProcessors?: Record<string, unknown>[] | undefined;
558
+ defaultOptions?: Record<string, unknown> | undefined;
559
+ memory?: string | undefined;
560
+ scorers?: Record<string, {
561
+ sampling?: {
562
+ type: "count" | "ratio";
563
+ count?: number | undefined;
564
+ rate?: number | undefined;
565
+ } | undefined;
566
+ }> | undefined;
567
+ }, {
568
+ name: string;
569
+ id: string;
570
+ createdAt: Date;
571
+ updatedAt: Date;
572
+ model: Record<string, unknown>;
573
+ instructions: string;
574
+ metadata?: Record<string, unknown> | undefined;
575
+ description?: string | undefined;
576
+ tools?: string[] | undefined;
577
+ agents?: string[] | undefined;
578
+ workflows?: string[] | undefined;
579
+ inputProcessors?: Record<string, unknown>[] | undefined;
580
+ outputProcessors?: Record<string, unknown>[] | undefined;
581
+ defaultOptions?: Record<string, unknown> | undefined;
582
+ memory?: string | undefined;
583
+ scorers?: Record<string, {
584
+ sampling?: {
585
+ type: "count" | "ratio";
586
+ count?: number | undefined;
587
+ rate?: number | undefined;
588
+ } | undefined;
589
+ }> | undefined;
590
+ }>;
591
+ /**
592
+ * Response for POST /api/storage/agents
593
+ */
594
+ export declare const createStoredAgentResponseSchema: z.ZodObject<{
595
+ name: z.ZodString;
596
+ description: z.ZodOptional<z.ZodString>;
597
+ instructions: z.ZodString;
598
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
599
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
600
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
601
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
602
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
603
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
604
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
605
+ memory: z.ZodOptional<z.ZodString>;
606
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
607
+ sampling: z.ZodOptional<z.ZodObject<{
608
+ type: z.ZodEnum<["ratio", "count"]>;
609
+ rate: z.ZodOptional<z.ZodNumber>;
610
+ count: z.ZodOptional<z.ZodNumber>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: "count" | "ratio";
613
+ count?: number | undefined;
614
+ rate?: number | undefined;
615
+ }, {
616
+ type: "count" | "ratio";
617
+ count?: number | undefined;
618
+ rate?: number | undefined;
619
+ }>>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ sampling?: {
622
+ type: "count" | "ratio";
623
+ count?: number | undefined;
624
+ rate?: number | undefined;
625
+ } | undefined;
626
+ }, {
627
+ sampling?: {
628
+ type: "count" | "ratio";
629
+ count?: number | undefined;
630
+ rate?: number | undefined;
631
+ } | undefined;
632
+ }>>>;
633
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
634
+ } & {
635
+ id: z.ZodString;
636
+ createdAt: z.ZodDate;
637
+ updatedAt: z.ZodDate;
638
+ }, "strip", z.ZodTypeAny, {
639
+ name: string;
640
+ id: string;
641
+ createdAt: Date;
642
+ updatedAt: Date;
643
+ model: Record<string, unknown>;
644
+ instructions: string;
645
+ metadata?: Record<string, unknown> | undefined;
646
+ description?: string | undefined;
647
+ tools?: string[] | undefined;
648
+ agents?: string[] | undefined;
649
+ workflows?: string[] | undefined;
650
+ inputProcessors?: Record<string, unknown>[] | undefined;
651
+ outputProcessors?: Record<string, unknown>[] | undefined;
652
+ defaultOptions?: Record<string, unknown> | undefined;
653
+ memory?: string | undefined;
654
+ scorers?: Record<string, {
655
+ sampling?: {
656
+ type: "count" | "ratio";
657
+ count?: number | undefined;
658
+ rate?: number | undefined;
659
+ } | undefined;
660
+ }> | undefined;
661
+ }, {
662
+ name: string;
663
+ id: string;
664
+ createdAt: Date;
665
+ updatedAt: Date;
666
+ model: Record<string, unknown>;
667
+ instructions: string;
668
+ metadata?: Record<string, unknown> | undefined;
669
+ description?: string | undefined;
670
+ tools?: string[] | undefined;
671
+ agents?: string[] | undefined;
672
+ workflows?: string[] | undefined;
673
+ inputProcessors?: Record<string, unknown>[] | undefined;
674
+ outputProcessors?: Record<string, unknown>[] | undefined;
675
+ defaultOptions?: Record<string, unknown> | undefined;
676
+ memory?: string | undefined;
677
+ scorers?: Record<string, {
678
+ sampling?: {
679
+ type: "count" | "ratio";
680
+ count?: number | undefined;
681
+ rate?: number | undefined;
682
+ } | undefined;
683
+ }> | undefined;
684
+ }>;
685
+ /**
686
+ * Response for PATCH /api/storage/agents/:storedAgentId
687
+ */
688
+ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
689
+ name: z.ZodString;
690
+ description: z.ZodOptional<z.ZodString>;
691
+ instructions: z.ZodString;
692
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
693
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
694
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
695
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
696
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
697
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
698
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
699
+ memory: z.ZodOptional<z.ZodString>;
700
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
701
+ sampling: z.ZodOptional<z.ZodObject<{
702
+ type: z.ZodEnum<["ratio", "count"]>;
703
+ rate: z.ZodOptional<z.ZodNumber>;
704
+ count: z.ZodOptional<z.ZodNumber>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ type: "count" | "ratio";
707
+ count?: number | undefined;
708
+ rate?: number | undefined;
709
+ }, {
710
+ type: "count" | "ratio";
711
+ count?: number | undefined;
712
+ rate?: number | undefined;
713
+ }>>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ sampling?: {
716
+ type: "count" | "ratio";
717
+ count?: number | undefined;
718
+ rate?: number | undefined;
719
+ } | undefined;
720
+ }, {
721
+ sampling?: {
722
+ type: "count" | "ratio";
723
+ count?: number | undefined;
724
+ rate?: number | undefined;
725
+ } | undefined;
726
+ }>>>;
727
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
728
+ } & {
729
+ id: z.ZodString;
730
+ createdAt: z.ZodDate;
731
+ updatedAt: z.ZodDate;
732
+ }, "strip", z.ZodTypeAny, {
733
+ name: string;
734
+ id: string;
735
+ createdAt: Date;
736
+ updatedAt: Date;
737
+ model: Record<string, unknown>;
738
+ instructions: string;
739
+ metadata?: Record<string, unknown> | undefined;
740
+ description?: string | undefined;
741
+ tools?: string[] | undefined;
742
+ agents?: string[] | undefined;
743
+ workflows?: string[] | undefined;
744
+ inputProcessors?: Record<string, unknown>[] | undefined;
745
+ outputProcessors?: Record<string, unknown>[] | undefined;
746
+ defaultOptions?: Record<string, unknown> | undefined;
747
+ memory?: string | undefined;
748
+ scorers?: Record<string, {
749
+ sampling?: {
750
+ type: "count" | "ratio";
751
+ count?: number | undefined;
752
+ rate?: number | undefined;
753
+ } | undefined;
754
+ }> | undefined;
755
+ }, {
756
+ name: string;
757
+ id: string;
758
+ createdAt: Date;
759
+ updatedAt: Date;
760
+ model: Record<string, unknown>;
761
+ instructions: string;
762
+ metadata?: Record<string, unknown> | undefined;
763
+ description?: string | undefined;
764
+ tools?: string[] | undefined;
765
+ agents?: string[] | undefined;
766
+ workflows?: string[] | undefined;
767
+ inputProcessors?: Record<string, unknown>[] | undefined;
768
+ outputProcessors?: Record<string, unknown>[] | undefined;
769
+ defaultOptions?: Record<string, unknown> | undefined;
770
+ memory?: string | undefined;
771
+ scorers?: Record<string, {
772
+ sampling?: {
773
+ type: "count" | "ratio";
774
+ count?: number | undefined;
775
+ rate?: number | undefined;
776
+ } | undefined;
777
+ }> | undefined;
778
+ }>;
779
+ /**
780
+ * Response for DELETE /api/storage/agents/:storedAgentId
781
+ */
782
+ export declare const deleteStoredAgentResponseSchema: z.ZodObject<{
783
+ success: z.ZodBoolean;
784
+ message: z.ZodString;
785
+ }, "strip", z.ZodTypeAny, {
786
+ message: string;
787
+ success: boolean;
788
+ }, {
789
+ message: string;
790
+ success: boolean;
791
+ }>;
792
+ //# sourceMappingURL=stored-agents.d.ts.map