@orq-ai/node 3.12.9 → 3.12.11
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.
- package/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/FUNCTIONS.md +19 -9
- package/packages/orq-rc/README.md +179 -123
- package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
- package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/creatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +139 -117
- package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievememory.ts +7 -4
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +577 -122
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +606 -109
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
- package/packages/orq-rc/src/sdk/agents.ts +2 -2
- package/packages/orq-rc/src/sdk/sdk.ts +1 -15
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +0 -30
- package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
- package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
- package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +0 -103
|
@@ -158,6 +158,53 @@ export type StreamRunAgentMessage = {
|
|
|
158
158
|
metadata?: { [k: string]: any } | undefined;
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
163
|
+
*/
|
|
164
|
+
export type StreamRunAgentMemory = {
|
|
165
|
+
/**
|
|
166
|
+
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
167
|
+
*/
|
|
168
|
+
entityId: string;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export const StreamRunAgentConfigurationAgentsType = {
|
|
172
|
+
Query: "query",
|
|
173
|
+
} as const;
|
|
174
|
+
export type StreamRunAgentConfigurationAgentsType = ClosedEnum<
|
|
175
|
+
typeof StreamRunAgentConfigurationAgentsType
|
|
176
|
+
>;
|
|
177
|
+
|
|
178
|
+
export type StreamRunAgentConfiguration2 = {
|
|
179
|
+
type: StreamRunAgentConfigurationAgentsType;
|
|
180
|
+
query: string;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const StreamRunAgentConfigurationType = {
|
|
184
|
+
LastUserMessage: "last_user_message",
|
|
185
|
+
} as const;
|
|
186
|
+
export type StreamRunAgentConfigurationType = ClosedEnum<
|
|
187
|
+
typeof StreamRunAgentConfigurationType
|
|
188
|
+
>;
|
|
189
|
+
|
|
190
|
+
export type StreamRunAgentConfiguration1 = {
|
|
191
|
+
type: StreamRunAgentConfigurationType;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
196
|
+
*/
|
|
197
|
+
export type StreamRunAgentConfiguration =
|
|
198
|
+
| StreamRunAgentConfiguration2
|
|
199
|
+
| StreamRunAgentConfiguration1;
|
|
200
|
+
|
|
201
|
+
export type StreamRunAgentKnowledgeBases = {
|
|
202
|
+
/**
|
|
203
|
+
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
204
|
+
*/
|
|
205
|
+
configuration: StreamRunAgentConfiguration2 | StreamRunAgentConfiguration1;
|
|
206
|
+
};
|
|
207
|
+
|
|
161
208
|
export type StreamRunAgentTeamOfAgents = {
|
|
162
209
|
id: string;
|
|
163
210
|
/**
|
|
@@ -166,11 +213,11 @@ export type StreamRunAgentTeamOfAgents = {
|
|
|
166
213
|
role?: string | undefined;
|
|
167
214
|
};
|
|
168
215
|
|
|
169
|
-
export const
|
|
216
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type = {
|
|
170
217
|
Function: "function",
|
|
171
218
|
} as const;
|
|
172
|
-
export type
|
|
173
|
-
ClosedEnum<typeof
|
|
219
|
+
export type StreamRunAgentToolsAgentsRequestRequestBodySettings13Type =
|
|
220
|
+
ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type>;
|
|
174
221
|
|
|
175
222
|
export type StreamRunAgentToolsFunction = {
|
|
176
223
|
name: string;
|
|
@@ -179,8 +226,8 @@ export type StreamRunAgentToolsFunction = {
|
|
|
179
226
|
parameters?: { [k: string]: any } | undefined;
|
|
180
227
|
};
|
|
181
228
|
|
|
182
|
-
export type
|
|
183
|
-
type:
|
|
229
|
+
export type Tools13 = {
|
|
230
|
+
type: StreamRunAgentToolsAgentsRequestRequestBodySettings13Type;
|
|
184
231
|
id?: string | undefined;
|
|
185
232
|
key: string;
|
|
186
233
|
displayName?: string | undefined;
|
|
@@ -203,11 +250,11 @@ export const ToolsStatus = {
|
|
|
203
250
|
*/
|
|
204
251
|
export type ToolsStatus = ClosedEnum<typeof ToolsStatus>;
|
|
205
252
|
|
|
206
|
-
export const
|
|
253
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type = {
|
|
207
254
|
Http: "http",
|
|
208
255
|
} as const;
|
|
209
|
-
export type
|
|
210
|
-
ClosedEnum<typeof
|
|
256
|
+
export type StreamRunAgentToolsAgentsRequestRequestBodySettings12Type =
|
|
257
|
+
ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type>;
|
|
211
258
|
|
|
212
259
|
/**
|
|
213
260
|
* The HTTP method to use.
|
|
@@ -248,7 +295,7 @@ export type ToolsBlueprint = {
|
|
|
248
295
|
/**
|
|
249
296
|
* The type of the argument.
|
|
250
297
|
*/
|
|
251
|
-
export const
|
|
298
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType = {
|
|
252
299
|
String: "string",
|
|
253
300
|
Number: "number",
|
|
254
301
|
Boolean: "boolean",
|
|
@@ -256,9 +303,9 @@ export const StreamRunAgentToolsAgentsRequestRequestBodySettings11HttpType = {
|
|
|
256
303
|
/**
|
|
257
304
|
* The type of the argument.
|
|
258
305
|
*/
|
|
259
|
-
export type
|
|
306
|
+
export type StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType =
|
|
260
307
|
ClosedEnum<
|
|
261
|
-
typeof
|
|
308
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
|
|
262
309
|
>;
|
|
263
310
|
|
|
264
311
|
/**
|
|
@@ -270,7 +317,7 @@ export type ToolsArguments = {
|
|
|
270
317
|
/**
|
|
271
318
|
* The type of the argument.
|
|
272
319
|
*/
|
|
273
|
-
type:
|
|
320
|
+
type: StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType;
|
|
274
321
|
/**
|
|
275
322
|
* A description of the argument.
|
|
276
323
|
*/
|
|
@@ -296,7 +343,7 @@ export type ToolsHttp = {
|
|
|
296
343
|
arguments?: { [k: string]: ToolsArguments } | undefined;
|
|
297
344
|
};
|
|
298
345
|
|
|
299
|
-
export type
|
|
346
|
+
export type Tools12 = {
|
|
300
347
|
id?: string | undefined;
|
|
301
348
|
/**
|
|
302
349
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
@@ -319,14 +366,25 @@ export type Tools11 = {
|
|
|
319
366
|
*/
|
|
320
367
|
status?: ToolsStatus | undefined;
|
|
321
368
|
versionHash?: string | undefined;
|
|
322
|
-
type:
|
|
369
|
+
type: StreamRunAgentToolsAgentsRequestRequestBodySettings12Type;
|
|
323
370
|
http: ToolsHttp;
|
|
324
371
|
requiresApproval?: boolean | undefined;
|
|
325
372
|
};
|
|
326
373
|
|
|
327
|
-
export const
|
|
374
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type = {
|
|
328
375
|
CurrentDate: "current_date",
|
|
329
376
|
} as const;
|
|
377
|
+
export type StreamRunAgentToolsAgentsRequestRequestBodySettings11Type =
|
|
378
|
+
ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type>;
|
|
379
|
+
|
|
380
|
+
export type Tools11 = {
|
|
381
|
+
type: StreamRunAgentToolsAgentsRequestRequestBodySettings11Type;
|
|
382
|
+
requiresApproval?: boolean | undefined;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings10Type = {
|
|
386
|
+
QueryKnowledgeBase: "query_knowledge_base",
|
|
387
|
+
} as const;
|
|
330
388
|
export type StreamRunAgentToolsAgentsRequestRequestBodySettings10Type =
|
|
331
389
|
ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings10Type>;
|
|
332
390
|
|
|
@@ -336,7 +394,7 @@ export type Tools10 = {
|
|
|
336
394
|
};
|
|
337
395
|
|
|
338
396
|
export const StreamRunAgentToolsAgentsRequestRequestBodySettings9Type = {
|
|
339
|
-
|
|
397
|
+
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
340
398
|
} as const;
|
|
341
399
|
export type StreamRunAgentToolsAgentsRequestRequestBodySettings9Type =
|
|
342
400
|
ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings9Type>;
|
|
@@ -347,7 +405,7 @@ export type Tools9 = {
|
|
|
347
405
|
};
|
|
348
406
|
|
|
349
407
|
export const StreamRunAgentToolsAgentsRequestRequestBodySettings8Type = {
|
|
350
|
-
|
|
408
|
+
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
351
409
|
} as const;
|
|
352
410
|
export type StreamRunAgentToolsAgentsRequestRequestBodySettings8Type =
|
|
353
411
|
ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings8Type>;
|
|
@@ -358,7 +416,7 @@ export type Tools8 = {
|
|
|
358
416
|
};
|
|
359
417
|
|
|
360
418
|
export const StreamRunAgentToolsAgentsRequestRequestBodySettings7Type = {
|
|
361
|
-
|
|
419
|
+
DeleteMemoryDocument: "delete_memory_document",
|
|
362
420
|
} as const;
|
|
363
421
|
export type StreamRunAgentToolsAgentsRequestRequestBodySettings7Type =
|
|
364
422
|
ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings7Type>;
|
|
@@ -439,8 +497,8 @@ export type StreamRunAgentTools1 = {
|
|
|
439
497
|
};
|
|
440
498
|
|
|
441
499
|
export type StreamRunAgentTools =
|
|
442
|
-
| Tools11
|
|
443
500
|
| Tools12
|
|
501
|
+
| Tools13
|
|
444
502
|
| StreamRunAgentTools1
|
|
445
503
|
| StreamRunAgentTools2
|
|
446
504
|
| StreamRunAgentTools3
|
|
@@ -450,7 +508,8 @@ export type StreamRunAgentTools =
|
|
|
450
508
|
| Tools7
|
|
451
509
|
| Tools8
|
|
452
510
|
| Tools9
|
|
453
|
-
| Tools10
|
|
511
|
+
| Tools10
|
|
512
|
+
| Tools11;
|
|
454
513
|
|
|
455
514
|
/**
|
|
456
515
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
@@ -469,8 +528,8 @@ export type StreamRunAgentToolApprovalRequired = ClosedEnum<
|
|
|
469
528
|
|
|
470
529
|
export type StreamRunAgentSettings = {
|
|
471
530
|
tools: Array<
|
|
472
|
-
| Tools11
|
|
473
531
|
| Tools12
|
|
532
|
+
| Tools13
|
|
474
533
|
| StreamRunAgentTools1
|
|
475
534
|
| StreamRunAgentTools2
|
|
476
535
|
| StreamRunAgentTools3
|
|
@@ -481,6 +540,7 @@ export type StreamRunAgentSettings = {
|
|
|
481
540
|
| Tools8
|
|
482
541
|
| Tools9
|
|
483
542
|
| Tools10
|
|
543
|
+
| Tools11
|
|
484
544
|
>;
|
|
485
545
|
/**
|
|
486
546
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
@@ -498,7 +558,7 @@ export type StreamRunAgentSettings = {
|
|
|
498
558
|
|
|
499
559
|
export type StreamRunAgentRequestBody = {
|
|
500
560
|
/**
|
|
501
|
-
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
561
|
+
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
502
562
|
*/
|
|
503
563
|
key: string;
|
|
504
564
|
/**
|
|
@@ -506,7 +566,7 @@ export type StreamRunAgentRequestBody = {
|
|
|
506
566
|
*/
|
|
507
567
|
taskId?: string | undefined;
|
|
508
568
|
/**
|
|
509
|
-
* The language model that powers the agent.
|
|
569
|
+
* The language model that powers the agent. The model must support tool calling capabilities.
|
|
510
570
|
*/
|
|
511
571
|
model: string;
|
|
512
572
|
/**
|
|
@@ -534,9 +594,9 @@ export type StreamRunAgentRequestBody = {
|
|
|
534
594
|
*/
|
|
535
595
|
contextId?: string | undefined;
|
|
536
596
|
/**
|
|
537
|
-
*
|
|
597
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
538
598
|
*/
|
|
539
|
-
|
|
599
|
+
memory?: StreamRunAgentMemory | undefined;
|
|
540
600
|
/**
|
|
541
601
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
542
602
|
*/
|
|
@@ -554,7 +614,7 @@ export type StreamRunAgentRequestBody = {
|
|
|
554
614
|
*/
|
|
555
615
|
systemPrompt?: string | undefined;
|
|
556
616
|
memoryStores?: Array<string> | undefined;
|
|
557
|
-
knowledgeBases?: Array<
|
|
617
|
+
knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
|
|
558
618
|
/**
|
|
559
619
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
560
620
|
*/
|
|
@@ -1441,6 +1501,350 @@ export function streamRunAgentMessageFromJSON(
|
|
|
1441
1501
|
);
|
|
1442
1502
|
}
|
|
1443
1503
|
|
|
1504
|
+
/** @internal */
|
|
1505
|
+
export const StreamRunAgentMemory$inboundSchema: z.ZodType<
|
|
1506
|
+
StreamRunAgentMemory,
|
|
1507
|
+
z.ZodTypeDef,
|
|
1508
|
+
unknown
|
|
1509
|
+
> = z.object({
|
|
1510
|
+
entity_id: z.string(),
|
|
1511
|
+
}).transform((v) => {
|
|
1512
|
+
return remap$(v, {
|
|
1513
|
+
"entity_id": "entityId",
|
|
1514
|
+
});
|
|
1515
|
+
});
|
|
1516
|
+
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export type StreamRunAgentMemory$Outbound = {
|
|
1519
|
+
entity_id: string;
|
|
1520
|
+
};
|
|
1521
|
+
|
|
1522
|
+
/** @internal */
|
|
1523
|
+
export const StreamRunAgentMemory$outboundSchema: z.ZodType<
|
|
1524
|
+
StreamRunAgentMemory$Outbound,
|
|
1525
|
+
z.ZodTypeDef,
|
|
1526
|
+
StreamRunAgentMemory
|
|
1527
|
+
> = z.object({
|
|
1528
|
+
entityId: z.string(),
|
|
1529
|
+
}).transform((v) => {
|
|
1530
|
+
return remap$(v, {
|
|
1531
|
+
entityId: "entity_id",
|
|
1532
|
+
});
|
|
1533
|
+
});
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* @internal
|
|
1537
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1538
|
+
*/
|
|
1539
|
+
export namespace StreamRunAgentMemory$ {
|
|
1540
|
+
/** @deprecated use `StreamRunAgentMemory$inboundSchema` instead. */
|
|
1541
|
+
export const inboundSchema = StreamRunAgentMemory$inboundSchema;
|
|
1542
|
+
/** @deprecated use `StreamRunAgentMemory$outboundSchema` instead. */
|
|
1543
|
+
export const outboundSchema = StreamRunAgentMemory$outboundSchema;
|
|
1544
|
+
/** @deprecated use `StreamRunAgentMemory$Outbound` instead. */
|
|
1545
|
+
export type Outbound = StreamRunAgentMemory$Outbound;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
export function streamRunAgentMemoryToJSON(
|
|
1549
|
+
streamRunAgentMemory: StreamRunAgentMemory,
|
|
1550
|
+
): string {
|
|
1551
|
+
return JSON.stringify(
|
|
1552
|
+
StreamRunAgentMemory$outboundSchema.parse(streamRunAgentMemory),
|
|
1553
|
+
);
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export function streamRunAgentMemoryFromJSON(
|
|
1557
|
+
jsonString: string,
|
|
1558
|
+
): SafeParseResult<StreamRunAgentMemory, SDKValidationError> {
|
|
1559
|
+
return safeParse(
|
|
1560
|
+
jsonString,
|
|
1561
|
+
(x) => StreamRunAgentMemory$inboundSchema.parse(JSON.parse(x)),
|
|
1562
|
+
`Failed to parse 'StreamRunAgentMemory' from JSON`,
|
|
1563
|
+
);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/** @internal */
|
|
1567
|
+
export const StreamRunAgentConfigurationAgentsType$inboundSchema:
|
|
1568
|
+
z.ZodNativeEnum<typeof StreamRunAgentConfigurationAgentsType> = z.nativeEnum(
|
|
1569
|
+
StreamRunAgentConfigurationAgentsType,
|
|
1570
|
+
);
|
|
1571
|
+
|
|
1572
|
+
/** @internal */
|
|
1573
|
+
export const StreamRunAgentConfigurationAgentsType$outboundSchema:
|
|
1574
|
+
z.ZodNativeEnum<typeof StreamRunAgentConfigurationAgentsType> =
|
|
1575
|
+
StreamRunAgentConfigurationAgentsType$inboundSchema;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* @internal
|
|
1579
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1580
|
+
*/
|
|
1581
|
+
export namespace StreamRunAgentConfigurationAgentsType$ {
|
|
1582
|
+
/** @deprecated use `StreamRunAgentConfigurationAgentsType$inboundSchema` instead. */
|
|
1583
|
+
export const inboundSchema =
|
|
1584
|
+
StreamRunAgentConfigurationAgentsType$inboundSchema;
|
|
1585
|
+
/** @deprecated use `StreamRunAgentConfigurationAgentsType$outboundSchema` instead. */
|
|
1586
|
+
export const outboundSchema =
|
|
1587
|
+
StreamRunAgentConfigurationAgentsType$outboundSchema;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
/** @internal */
|
|
1591
|
+
export const StreamRunAgentConfiguration2$inboundSchema: z.ZodType<
|
|
1592
|
+
StreamRunAgentConfiguration2,
|
|
1593
|
+
z.ZodTypeDef,
|
|
1594
|
+
unknown
|
|
1595
|
+
> = z.object({
|
|
1596
|
+
type: StreamRunAgentConfigurationAgentsType$inboundSchema,
|
|
1597
|
+
query: z.string(),
|
|
1598
|
+
});
|
|
1599
|
+
|
|
1600
|
+
/** @internal */
|
|
1601
|
+
export type StreamRunAgentConfiguration2$Outbound = {
|
|
1602
|
+
type: string;
|
|
1603
|
+
query: string;
|
|
1604
|
+
};
|
|
1605
|
+
|
|
1606
|
+
/** @internal */
|
|
1607
|
+
export const StreamRunAgentConfiguration2$outboundSchema: z.ZodType<
|
|
1608
|
+
StreamRunAgentConfiguration2$Outbound,
|
|
1609
|
+
z.ZodTypeDef,
|
|
1610
|
+
StreamRunAgentConfiguration2
|
|
1611
|
+
> = z.object({
|
|
1612
|
+
type: StreamRunAgentConfigurationAgentsType$outboundSchema,
|
|
1613
|
+
query: z.string(),
|
|
1614
|
+
});
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* @internal
|
|
1618
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1619
|
+
*/
|
|
1620
|
+
export namespace StreamRunAgentConfiguration2$ {
|
|
1621
|
+
/** @deprecated use `StreamRunAgentConfiguration2$inboundSchema` instead. */
|
|
1622
|
+
export const inboundSchema = StreamRunAgentConfiguration2$inboundSchema;
|
|
1623
|
+
/** @deprecated use `StreamRunAgentConfiguration2$outboundSchema` instead. */
|
|
1624
|
+
export const outboundSchema = StreamRunAgentConfiguration2$outboundSchema;
|
|
1625
|
+
/** @deprecated use `StreamRunAgentConfiguration2$Outbound` instead. */
|
|
1626
|
+
export type Outbound = StreamRunAgentConfiguration2$Outbound;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
export function streamRunAgentConfiguration2ToJSON(
|
|
1630
|
+
streamRunAgentConfiguration2: StreamRunAgentConfiguration2,
|
|
1631
|
+
): string {
|
|
1632
|
+
return JSON.stringify(
|
|
1633
|
+
StreamRunAgentConfiguration2$outboundSchema.parse(
|
|
1634
|
+
streamRunAgentConfiguration2,
|
|
1635
|
+
),
|
|
1636
|
+
);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
export function streamRunAgentConfiguration2FromJSON(
|
|
1640
|
+
jsonString: string,
|
|
1641
|
+
): SafeParseResult<StreamRunAgentConfiguration2, SDKValidationError> {
|
|
1642
|
+
return safeParse(
|
|
1643
|
+
jsonString,
|
|
1644
|
+
(x) => StreamRunAgentConfiguration2$inboundSchema.parse(JSON.parse(x)),
|
|
1645
|
+
`Failed to parse 'StreamRunAgentConfiguration2' from JSON`,
|
|
1646
|
+
);
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
/** @internal */
|
|
1650
|
+
export const StreamRunAgentConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1651
|
+
typeof StreamRunAgentConfigurationType
|
|
1652
|
+
> = z.nativeEnum(StreamRunAgentConfigurationType);
|
|
1653
|
+
|
|
1654
|
+
/** @internal */
|
|
1655
|
+
export const StreamRunAgentConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1656
|
+
typeof StreamRunAgentConfigurationType
|
|
1657
|
+
> = StreamRunAgentConfigurationType$inboundSchema;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* @internal
|
|
1661
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1662
|
+
*/
|
|
1663
|
+
export namespace StreamRunAgentConfigurationType$ {
|
|
1664
|
+
/** @deprecated use `StreamRunAgentConfigurationType$inboundSchema` instead. */
|
|
1665
|
+
export const inboundSchema = StreamRunAgentConfigurationType$inboundSchema;
|
|
1666
|
+
/** @deprecated use `StreamRunAgentConfigurationType$outboundSchema` instead. */
|
|
1667
|
+
export const outboundSchema = StreamRunAgentConfigurationType$outboundSchema;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
/** @internal */
|
|
1671
|
+
export const StreamRunAgentConfiguration1$inboundSchema: z.ZodType<
|
|
1672
|
+
StreamRunAgentConfiguration1,
|
|
1673
|
+
z.ZodTypeDef,
|
|
1674
|
+
unknown
|
|
1675
|
+
> = z.object({
|
|
1676
|
+
type: StreamRunAgentConfigurationType$inboundSchema,
|
|
1677
|
+
});
|
|
1678
|
+
|
|
1679
|
+
/** @internal */
|
|
1680
|
+
export type StreamRunAgentConfiguration1$Outbound = {
|
|
1681
|
+
type: string;
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
/** @internal */
|
|
1685
|
+
export const StreamRunAgentConfiguration1$outboundSchema: z.ZodType<
|
|
1686
|
+
StreamRunAgentConfiguration1$Outbound,
|
|
1687
|
+
z.ZodTypeDef,
|
|
1688
|
+
StreamRunAgentConfiguration1
|
|
1689
|
+
> = z.object({
|
|
1690
|
+
type: StreamRunAgentConfigurationType$outboundSchema,
|
|
1691
|
+
});
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* @internal
|
|
1695
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1696
|
+
*/
|
|
1697
|
+
export namespace StreamRunAgentConfiguration1$ {
|
|
1698
|
+
/** @deprecated use `StreamRunAgentConfiguration1$inboundSchema` instead. */
|
|
1699
|
+
export const inboundSchema = StreamRunAgentConfiguration1$inboundSchema;
|
|
1700
|
+
/** @deprecated use `StreamRunAgentConfiguration1$outboundSchema` instead. */
|
|
1701
|
+
export const outboundSchema = StreamRunAgentConfiguration1$outboundSchema;
|
|
1702
|
+
/** @deprecated use `StreamRunAgentConfiguration1$Outbound` instead. */
|
|
1703
|
+
export type Outbound = StreamRunAgentConfiguration1$Outbound;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export function streamRunAgentConfiguration1ToJSON(
|
|
1707
|
+
streamRunAgentConfiguration1: StreamRunAgentConfiguration1,
|
|
1708
|
+
): string {
|
|
1709
|
+
return JSON.stringify(
|
|
1710
|
+
StreamRunAgentConfiguration1$outboundSchema.parse(
|
|
1711
|
+
streamRunAgentConfiguration1,
|
|
1712
|
+
),
|
|
1713
|
+
);
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
export function streamRunAgentConfiguration1FromJSON(
|
|
1717
|
+
jsonString: string,
|
|
1718
|
+
): SafeParseResult<StreamRunAgentConfiguration1, SDKValidationError> {
|
|
1719
|
+
return safeParse(
|
|
1720
|
+
jsonString,
|
|
1721
|
+
(x) => StreamRunAgentConfiguration1$inboundSchema.parse(JSON.parse(x)),
|
|
1722
|
+
`Failed to parse 'StreamRunAgentConfiguration1' from JSON`,
|
|
1723
|
+
);
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
/** @internal */
|
|
1727
|
+
export const StreamRunAgentConfiguration$inboundSchema: z.ZodType<
|
|
1728
|
+
StreamRunAgentConfiguration,
|
|
1729
|
+
z.ZodTypeDef,
|
|
1730
|
+
unknown
|
|
1731
|
+
> = z.union([
|
|
1732
|
+
z.lazy(() => StreamRunAgentConfiguration2$inboundSchema),
|
|
1733
|
+
z.lazy(() => StreamRunAgentConfiguration1$inboundSchema),
|
|
1734
|
+
]);
|
|
1735
|
+
|
|
1736
|
+
/** @internal */
|
|
1737
|
+
export type StreamRunAgentConfiguration$Outbound =
|
|
1738
|
+
| StreamRunAgentConfiguration2$Outbound
|
|
1739
|
+
| StreamRunAgentConfiguration1$Outbound;
|
|
1740
|
+
|
|
1741
|
+
/** @internal */
|
|
1742
|
+
export const StreamRunAgentConfiguration$outboundSchema: z.ZodType<
|
|
1743
|
+
StreamRunAgentConfiguration$Outbound,
|
|
1744
|
+
z.ZodTypeDef,
|
|
1745
|
+
StreamRunAgentConfiguration
|
|
1746
|
+
> = z.union([
|
|
1747
|
+
z.lazy(() => StreamRunAgentConfiguration2$outboundSchema),
|
|
1748
|
+
z.lazy(() => StreamRunAgentConfiguration1$outboundSchema),
|
|
1749
|
+
]);
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* @internal
|
|
1753
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1754
|
+
*/
|
|
1755
|
+
export namespace StreamRunAgentConfiguration$ {
|
|
1756
|
+
/** @deprecated use `StreamRunAgentConfiguration$inboundSchema` instead. */
|
|
1757
|
+
export const inboundSchema = StreamRunAgentConfiguration$inboundSchema;
|
|
1758
|
+
/** @deprecated use `StreamRunAgentConfiguration$outboundSchema` instead. */
|
|
1759
|
+
export const outboundSchema = StreamRunAgentConfiguration$outboundSchema;
|
|
1760
|
+
/** @deprecated use `StreamRunAgentConfiguration$Outbound` instead. */
|
|
1761
|
+
export type Outbound = StreamRunAgentConfiguration$Outbound;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
export function streamRunAgentConfigurationToJSON(
|
|
1765
|
+
streamRunAgentConfiguration: StreamRunAgentConfiguration,
|
|
1766
|
+
): string {
|
|
1767
|
+
return JSON.stringify(
|
|
1768
|
+
StreamRunAgentConfiguration$outboundSchema.parse(
|
|
1769
|
+
streamRunAgentConfiguration,
|
|
1770
|
+
),
|
|
1771
|
+
);
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
export function streamRunAgentConfigurationFromJSON(
|
|
1775
|
+
jsonString: string,
|
|
1776
|
+
): SafeParseResult<StreamRunAgentConfiguration, SDKValidationError> {
|
|
1777
|
+
return safeParse(
|
|
1778
|
+
jsonString,
|
|
1779
|
+
(x) => StreamRunAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
1780
|
+
`Failed to parse 'StreamRunAgentConfiguration' from JSON`,
|
|
1781
|
+
);
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
/** @internal */
|
|
1785
|
+
export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
1786
|
+
StreamRunAgentKnowledgeBases,
|
|
1787
|
+
z.ZodTypeDef,
|
|
1788
|
+
unknown
|
|
1789
|
+
> = z.object({
|
|
1790
|
+
configuration: z.union([
|
|
1791
|
+
z.lazy(() => StreamRunAgentConfiguration2$inboundSchema),
|
|
1792
|
+
z.lazy(() => StreamRunAgentConfiguration1$inboundSchema),
|
|
1793
|
+
]),
|
|
1794
|
+
});
|
|
1795
|
+
|
|
1796
|
+
/** @internal */
|
|
1797
|
+
export type StreamRunAgentKnowledgeBases$Outbound = {
|
|
1798
|
+
configuration:
|
|
1799
|
+
| StreamRunAgentConfiguration2$Outbound
|
|
1800
|
+
| StreamRunAgentConfiguration1$Outbound;
|
|
1801
|
+
};
|
|
1802
|
+
|
|
1803
|
+
/** @internal */
|
|
1804
|
+
export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
1805
|
+
StreamRunAgentKnowledgeBases$Outbound,
|
|
1806
|
+
z.ZodTypeDef,
|
|
1807
|
+
StreamRunAgentKnowledgeBases
|
|
1808
|
+
> = z.object({
|
|
1809
|
+
configuration: z.union([
|
|
1810
|
+
z.lazy(() => StreamRunAgentConfiguration2$outboundSchema),
|
|
1811
|
+
z.lazy(() => StreamRunAgentConfiguration1$outboundSchema),
|
|
1812
|
+
]),
|
|
1813
|
+
});
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* @internal
|
|
1817
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1818
|
+
*/
|
|
1819
|
+
export namespace StreamRunAgentKnowledgeBases$ {
|
|
1820
|
+
/** @deprecated use `StreamRunAgentKnowledgeBases$inboundSchema` instead. */
|
|
1821
|
+
export const inboundSchema = StreamRunAgentKnowledgeBases$inboundSchema;
|
|
1822
|
+
/** @deprecated use `StreamRunAgentKnowledgeBases$outboundSchema` instead. */
|
|
1823
|
+
export const outboundSchema = StreamRunAgentKnowledgeBases$outboundSchema;
|
|
1824
|
+
/** @deprecated use `StreamRunAgentKnowledgeBases$Outbound` instead. */
|
|
1825
|
+
export type Outbound = StreamRunAgentKnowledgeBases$Outbound;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
export function streamRunAgentKnowledgeBasesToJSON(
|
|
1829
|
+
streamRunAgentKnowledgeBases: StreamRunAgentKnowledgeBases,
|
|
1830
|
+
): string {
|
|
1831
|
+
return JSON.stringify(
|
|
1832
|
+
StreamRunAgentKnowledgeBases$outboundSchema.parse(
|
|
1833
|
+
streamRunAgentKnowledgeBases,
|
|
1834
|
+
),
|
|
1835
|
+
);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
export function streamRunAgentKnowledgeBasesFromJSON(
|
|
1839
|
+
jsonString: string,
|
|
1840
|
+
): SafeParseResult<StreamRunAgentKnowledgeBases, SDKValidationError> {
|
|
1841
|
+
return safeParse(
|
|
1842
|
+
jsonString,
|
|
1843
|
+
(x) => StreamRunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1844
|
+
`Failed to parse 'StreamRunAgentKnowledgeBases' from JSON`,
|
|
1845
|
+
);
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1444
1848
|
/** @internal */
|
|
1445
1849
|
export const StreamRunAgentTeamOfAgents$inboundSchema: z.ZodType<
|
|
1446
1850
|
StreamRunAgentTeamOfAgents,
|
|
@@ -1507,28 +1911,28 @@ export function streamRunAgentTeamOfAgentsFromJSON(
|
|
|
1507
1911
|
}
|
|
1508
1912
|
|
|
1509
1913
|
/** @internal */
|
|
1510
|
-
export const
|
|
1914
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema:
|
|
1511
1915
|
z.ZodNativeEnum<
|
|
1512
|
-
typeof
|
|
1513
|
-
> = z.nativeEnum(
|
|
1916
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type
|
|
1917
|
+
> = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings13Type);
|
|
1514
1918
|
|
|
1515
1919
|
/** @internal */
|
|
1516
|
-
export const
|
|
1920
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema:
|
|
1517
1921
|
z.ZodNativeEnum<
|
|
1518
|
-
typeof
|
|
1519
|
-
> =
|
|
1922
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type
|
|
1923
|
+
> = StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
|
|
1520
1924
|
|
|
1521
1925
|
/**
|
|
1522
1926
|
* @internal
|
|
1523
1927
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1524
1928
|
*/
|
|
1525
|
-
export namespace
|
|
1526
|
-
/** @deprecated use `
|
|
1929
|
+
export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$ {
|
|
1930
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema` instead. */
|
|
1527
1931
|
export const inboundSchema =
|
|
1528
|
-
|
|
1529
|
-
/** @deprecated use `
|
|
1932
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
|
|
1933
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema` instead. */
|
|
1530
1934
|
export const outboundSchema =
|
|
1531
|
-
|
|
1935
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema;
|
|
1532
1936
|
}
|
|
1533
1937
|
|
|
1534
1938
|
/** @internal */
|
|
@@ -1597,10 +2001,10 @@ export function streamRunAgentToolsFunctionFromJSON(
|
|
|
1597
2001
|
}
|
|
1598
2002
|
|
|
1599
2003
|
/** @internal */
|
|
1600
|
-
export const
|
|
2004
|
+
export const Tools13$inboundSchema: z.ZodType<Tools13, z.ZodTypeDef, unknown> =
|
|
1601
2005
|
z.object({
|
|
1602
2006
|
type:
|
|
1603
|
-
|
|
2007
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema,
|
|
1604
2008
|
_id: z.string().optional(),
|
|
1605
2009
|
key: z.string(),
|
|
1606
2010
|
display_name: z.string().optional(),
|
|
@@ -1616,7 +2020,7 @@ export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
|
|
|
1616
2020
|
});
|
|
1617
2021
|
|
|
1618
2022
|
/** @internal */
|
|
1619
|
-
export type
|
|
2023
|
+
export type Tools13$Outbound = {
|
|
1620
2024
|
type: string;
|
|
1621
2025
|
_id?: string | undefined;
|
|
1622
2026
|
key: string;
|
|
@@ -1627,13 +2031,13 @@ export type Tools12$Outbound = {
|
|
|
1627
2031
|
};
|
|
1628
2032
|
|
|
1629
2033
|
/** @internal */
|
|
1630
|
-
export const
|
|
1631
|
-
|
|
2034
|
+
export const Tools13$outboundSchema: z.ZodType<
|
|
2035
|
+
Tools13$Outbound,
|
|
1632
2036
|
z.ZodTypeDef,
|
|
1633
|
-
|
|
2037
|
+
Tools13
|
|
1634
2038
|
> = z.object({
|
|
1635
2039
|
type:
|
|
1636
|
-
|
|
2040
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema,
|
|
1637
2041
|
id: z.string().optional(),
|
|
1638
2042
|
key: z.string(),
|
|
1639
2043
|
displayName: z.string().optional(),
|
|
@@ -1652,26 +2056,26 @@ export const Tools12$outboundSchema: z.ZodType<
|
|
|
1652
2056
|
* @internal
|
|
1653
2057
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1654
2058
|
*/
|
|
1655
|
-
export namespace
|
|
1656
|
-
/** @deprecated use `
|
|
1657
|
-
export const inboundSchema =
|
|
1658
|
-
/** @deprecated use `
|
|
1659
|
-
export const outboundSchema =
|
|
1660
|
-
/** @deprecated use `
|
|
1661
|
-
export type Outbound =
|
|
2059
|
+
export namespace Tools13$ {
|
|
2060
|
+
/** @deprecated use `Tools13$inboundSchema` instead. */
|
|
2061
|
+
export const inboundSchema = Tools13$inboundSchema;
|
|
2062
|
+
/** @deprecated use `Tools13$outboundSchema` instead. */
|
|
2063
|
+
export const outboundSchema = Tools13$outboundSchema;
|
|
2064
|
+
/** @deprecated use `Tools13$Outbound` instead. */
|
|
2065
|
+
export type Outbound = Tools13$Outbound;
|
|
1662
2066
|
}
|
|
1663
2067
|
|
|
1664
|
-
export function
|
|
1665
|
-
return JSON.stringify(
|
|
2068
|
+
export function tools13ToJSON(tools13: Tools13): string {
|
|
2069
|
+
return JSON.stringify(Tools13$outboundSchema.parse(tools13));
|
|
1666
2070
|
}
|
|
1667
2071
|
|
|
1668
|
-
export function
|
|
2072
|
+
export function tools13FromJSON(
|
|
1669
2073
|
jsonString: string,
|
|
1670
|
-
): SafeParseResult<
|
|
2074
|
+
): SafeParseResult<Tools13, SDKValidationError> {
|
|
1671
2075
|
return safeParse(
|
|
1672
2076
|
jsonString,
|
|
1673
|
-
(x) =>
|
|
1674
|
-
`Failed to parse '
|
|
2077
|
+
(x) => Tools13$inboundSchema.parse(JSON.parse(x)),
|
|
2078
|
+
`Failed to parse 'Tools13' from JSON`,
|
|
1675
2079
|
);
|
|
1676
2080
|
}
|
|
1677
2081
|
|
|
@@ -1695,28 +2099,28 @@ export namespace ToolsStatus$ {
|
|
|
1695
2099
|
}
|
|
1696
2100
|
|
|
1697
2101
|
/** @internal */
|
|
1698
|
-
export const
|
|
2102
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema:
|
|
1699
2103
|
z.ZodNativeEnum<
|
|
1700
|
-
typeof
|
|
1701
|
-
> = z.nativeEnum(
|
|
2104
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type
|
|
2105
|
+
> = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings12Type);
|
|
1702
2106
|
|
|
1703
2107
|
/** @internal */
|
|
1704
|
-
export const
|
|
2108
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema:
|
|
1705
2109
|
z.ZodNativeEnum<
|
|
1706
|
-
typeof
|
|
1707
|
-
> =
|
|
2110
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type
|
|
2111
|
+
> = StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
|
|
1708
2112
|
|
|
1709
2113
|
/**
|
|
1710
2114
|
* @internal
|
|
1711
2115
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1712
2116
|
*/
|
|
1713
|
-
export namespace
|
|
1714
|
-
/** @deprecated use `
|
|
2117
|
+
export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$ {
|
|
2118
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema` instead. */
|
|
1715
2119
|
export const inboundSchema =
|
|
1716
|
-
|
|
1717
|
-
/** @deprecated use `
|
|
2120
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
|
|
2121
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema` instead. */
|
|
1718
2122
|
export const outboundSchema =
|
|
1719
|
-
|
|
2123
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema;
|
|
1720
2124
|
}
|
|
1721
2125
|
|
|
1722
2126
|
/** @internal */
|
|
@@ -1798,31 +2202,31 @@ export function toolsBlueprintFromJSON(
|
|
|
1798
2202
|
}
|
|
1799
2203
|
|
|
1800
2204
|
/** @internal */
|
|
1801
|
-
export const
|
|
2205
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema:
|
|
1802
2206
|
z.ZodNativeEnum<
|
|
1803
|
-
typeof
|
|
2207
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
|
|
1804
2208
|
> = z.nativeEnum(
|
|
1805
|
-
|
|
2209
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType,
|
|
1806
2210
|
);
|
|
1807
2211
|
|
|
1808
2212
|
/** @internal */
|
|
1809
|
-
export const
|
|
2213
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema:
|
|
1810
2214
|
z.ZodNativeEnum<
|
|
1811
|
-
typeof
|
|
2215
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
|
|
1812
2216
|
> =
|
|
1813
|
-
|
|
2217
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
|
|
1814
2218
|
|
|
1815
2219
|
/**
|
|
1816
2220
|
* @internal
|
|
1817
2221
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1818
2222
|
*/
|
|
1819
|
-
export namespace
|
|
1820
|
-
/** @deprecated use `
|
|
2223
|
+
export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$ {
|
|
2224
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema` instead. */
|
|
1821
2225
|
export const inboundSchema =
|
|
1822
|
-
|
|
1823
|
-
/** @deprecated use `
|
|
2226
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
|
|
2227
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema` instead. */
|
|
1824
2228
|
export const outboundSchema =
|
|
1825
|
-
|
|
2229
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema;
|
|
1826
2230
|
}
|
|
1827
2231
|
|
|
1828
2232
|
/** @internal */
|
|
@@ -1880,7 +2284,7 @@ export const ToolsArguments$inboundSchema: z.ZodType<
|
|
|
1880
2284
|
unknown
|
|
1881
2285
|
> = z.object({
|
|
1882
2286
|
type:
|
|
1883
|
-
|
|
2287
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema,
|
|
1884
2288
|
description: z.string(),
|
|
1885
2289
|
send_to_model: z.boolean().default(true),
|
|
1886
2290
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1906,7 +2310,7 @@ export const ToolsArguments$outboundSchema: z.ZodType<
|
|
|
1906
2310
|
ToolsArguments
|
|
1907
2311
|
> = z.object({
|
|
1908
2312
|
type:
|
|
1909
|
-
|
|
2313
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema,
|
|
1910
2314
|
description: z.string(),
|
|
1911
2315
|
sendToModel: z.boolean().default(true),
|
|
1912
2316
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1998,9 +2402,9 @@ export function toolsHttpFromJSON(
|
|
|
1998
2402
|
}
|
|
1999
2403
|
|
|
2000
2404
|
/** @internal */
|
|
2001
|
-
export const
|
|
2405
|
+
export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
|
|
2002
2406
|
z.object({
|
|
2003
|
-
_id: z.string().default("
|
|
2407
|
+
_id: z.string().default("01K5ENCKT1J88RST8HW320MGM7"),
|
|
2004
2408
|
path: z.string(),
|
|
2005
2409
|
key: z.string(),
|
|
2006
2410
|
display_name: z.string(),
|
|
@@ -2008,7 +2412,7 @@ export const Tools11$inboundSchema: z.ZodType<Tools11, z.ZodTypeDef, unknown> =
|
|
|
2008
2412
|
status: ToolsStatus$inboundSchema.default("live"),
|
|
2009
2413
|
version_hash: z.string().optional(),
|
|
2010
2414
|
type:
|
|
2011
|
-
|
|
2415
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema,
|
|
2012
2416
|
http: z.lazy(() => ToolsHttp$inboundSchema),
|
|
2013
2417
|
requires_approval: z.boolean().default(false),
|
|
2014
2418
|
}).transform((v) => {
|
|
@@ -2021,7 +2425,7 @@ export const Tools11$inboundSchema: z.ZodType<Tools11, z.ZodTypeDef, unknown> =
|
|
|
2021
2425
|
});
|
|
2022
2426
|
|
|
2023
2427
|
/** @internal */
|
|
2024
|
-
export type
|
|
2428
|
+
export type Tools12$Outbound = {
|
|
2025
2429
|
_id: string;
|
|
2026
2430
|
path: string;
|
|
2027
2431
|
key: string;
|
|
@@ -2035,12 +2439,12 @@ export type Tools11$Outbound = {
|
|
|
2035
2439
|
};
|
|
2036
2440
|
|
|
2037
2441
|
/** @internal */
|
|
2038
|
-
export const
|
|
2039
|
-
|
|
2442
|
+
export const Tools12$outboundSchema: z.ZodType<
|
|
2443
|
+
Tools12$Outbound,
|
|
2040
2444
|
z.ZodTypeDef,
|
|
2041
|
-
|
|
2445
|
+
Tools12
|
|
2042
2446
|
> = z.object({
|
|
2043
|
-
id: z.string().default("
|
|
2447
|
+
id: z.string().default("01K5ENCKT1J88RST8HW320MGM7"),
|
|
2044
2448
|
path: z.string(),
|
|
2045
2449
|
key: z.string(),
|
|
2046
2450
|
displayName: z.string(),
|
|
@@ -2048,7 +2452,7 @@ export const Tools11$outboundSchema: z.ZodType<
|
|
|
2048
2452
|
status: ToolsStatus$outboundSchema.default("live"),
|
|
2049
2453
|
versionHash: z.string().optional(),
|
|
2050
2454
|
type:
|
|
2051
|
-
|
|
2455
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema,
|
|
2052
2456
|
http: z.lazy(() => ToolsHttp$outboundSchema),
|
|
2053
2457
|
requiresApproval: z.boolean().default(false),
|
|
2054
2458
|
}).transform((v) => {
|
|
@@ -2060,6 +2464,91 @@ export const Tools11$outboundSchema: z.ZodType<
|
|
|
2060
2464
|
});
|
|
2061
2465
|
});
|
|
2062
2466
|
|
|
2467
|
+
/**
|
|
2468
|
+
* @internal
|
|
2469
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2470
|
+
*/
|
|
2471
|
+
export namespace Tools12$ {
|
|
2472
|
+
/** @deprecated use `Tools12$inboundSchema` instead. */
|
|
2473
|
+
export const inboundSchema = Tools12$inboundSchema;
|
|
2474
|
+
/** @deprecated use `Tools12$outboundSchema` instead. */
|
|
2475
|
+
export const outboundSchema = Tools12$outboundSchema;
|
|
2476
|
+
/** @deprecated use `Tools12$Outbound` instead. */
|
|
2477
|
+
export type Outbound = Tools12$Outbound;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
export function tools12ToJSON(tools12: Tools12): string {
|
|
2481
|
+
return JSON.stringify(Tools12$outboundSchema.parse(tools12));
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
export function tools12FromJSON(
|
|
2485
|
+
jsonString: string,
|
|
2486
|
+
): SafeParseResult<Tools12, SDKValidationError> {
|
|
2487
|
+
return safeParse(
|
|
2488
|
+
jsonString,
|
|
2489
|
+
(x) => Tools12$inboundSchema.parse(JSON.parse(x)),
|
|
2490
|
+
`Failed to parse 'Tools12' from JSON`,
|
|
2491
|
+
);
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
/** @internal */
|
|
2495
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema:
|
|
2496
|
+
z.ZodNativeEnum<
|
|
2497
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type
|
|
2498
|
+
> = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings11Type);
|
|
2499
|
+
|
|
2500
|
+
/** @internal */
|
|
2501
|
+
export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema:
|
|
2502
|
+
z.ZodNativeEnum<
|
|
2503
|
+
typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type
|
|
2504
|
+
> = StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* @internal
|
|
2508
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2509
|
+
*/
|
|
2510
|
+
export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$ {
|
|
2511
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema` instead. */
|
|
2512
|
+
export const inboundSchema =
|
|
2513
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
|
|
2514
|
+
/** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema` instead. */
|
|
2515
|
+
export const outboundSchema =
|
|
2516
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema;
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
/** @internal */
|
|
2520
|
+
export const Tools11$inboundSchema: z.ZodType<Tools11, z.ZodTypeDef, unknown> =
|
|
2521
|
+
z.object({
|
|
2522
|
+
type:
|
|
2523
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema,
|
|
2524
|
+
requires_approval: z.boolean().default(false),
|
|
2525
|
+
}).transform((v) => {
|
|
2526
|
+
return remap$(v, {
|
|
2527
|
+
"requires_approval": "requiresApproval",
|
|
2528
|
+
});
|
|
2529
|
+
});
|
|
2530
|
+
|
|
2531
|
+
/** @internal */
|
|
2532
|
+
export type Tools11$Outbound = {
|
|
2533
|
+
type: string;
|
|
2534
|
+
requires_approval: boolean;
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2537
|
+
/** @internal */
|
|
2538
|
+
export const Tools11$outboundSchema: z.ZodType<
|
|
2539
|
+
Tools11$Outbound,
|
|
2540
|
+
z.ZodTypeDef,
|
|
2541
|
+
Tools11
|
|
2542
|
+
> = z.object({
|
|
2543
|
+
type:
|
|
2544
|
+
StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema,
|
|
2545
|
+
requiresApproval: z.boolean().default(false),
|
|
2546
|
+
}).transform((v) => {
|
|
2547
|
+
return remap$(v, {
|
|
2548
|
+
requiresApproval: "requires_approval",
|
|
2549
|
+
});
|
|
2550
|
+
});
|
|
2551
|
+
|
|
2063
2552
|
/**
|
|
2064
2553
|
* @internal
|
|
2065
2554
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -2953,8 +3442,8 @@ export const StreamRunAgentTools$inboundSchema: z.ZodType<
|
|
|
2953
3442
|
z.ZodTypeDef,
|
|
2954
3443
|
unknown
|
|
2955
3444
|
> = z.union([
|
|
2956
|
-
z.lazy(() => Tools11$inboundSchema),
|
|
2957
3445
|
z.lazy(() => Tools12$inboundSchema),
|
|
3446
|
+
z.lazy(() => Tools13$inboundSchema),
|
|
2958
3447
|
z.lazy(() => StreamRunAgentTools1$inboundSchema),
|
|
2959
3448
|
z.lazy(() => StreamRunAgentTools2$inboundSchema),
|
|
2960
3449
|
z.lazy(() => StreamRunAgentTools3$inboundSchema),
|
|
@@ -2965,12 +3454,13 @@ export const StreamRunAgentTools$inboundSchema: z.ZodType<
|
|
|
2965
3454
|
z.lazy(() => Tools8$inboundSchema),
|
|
2966
3455
|
z.lazy(() => Tools9$inboundSchema),
|
|
2967
3456
|
z.lazy(() => Tools10$inboundSchema),
|
|
3457
|
+
z.lazy(() => Tools11$inboundSchema),
|
|
2968
3458
|
]);
|
|
2969
3459
|
|
|
2970
3460
|
/** @internal */
|
|
2971
3461
|
export type StreamRunAgentTools$Outbound =
|
|
2972
|
-
| Tools11$Outbound
|
|
2973
3462
|
| Tools12$Outbound
|
|
3463
|
+
| Tools13$Outbound
|
|
2974
3464
|
| StreamRunAgentTools1$Outbound
|
|
2975
3465
|
| StreamRunAgentTools2$Outbound
|
|
2976
3466
|
| StreamRunAgentTools3$Outbound
|
|
@@ -2980,7 +3470,8 @@ export type StreamRunAgentTools$Outbound =
|
|
|
2980
3470
|
| Tools7$Outbound
|
|
2981
3471
|
| Tools8$Outbound
|
|
2982
3472
|
| Tools9$Outbound
|
|
2983
|
-
| Tools10$Outbound
|
|
3473
|
+
| Tools10$Outbound
|
|
3474
|
+
| Tools11$Outbound;
|
|
2984
3475
|
|
|
2985
3476
|
/** @internal */
|
|
2986
3477
|
export const StreamRunAgentTools$outboundSchema: z.ZodType<
|
|
@@ -2988,8 +3479,8 @@ export const StreamRunAgentTools$outboundSchema: z.ZodType<
|
|
|
2988
3479
|
z.ZodTypeDef,
|
|
2989
3480
|
StreamRunAgentTools
|
|
2990
3481
|
> = z.union([
|
|
2991
|
-
z.lazy(() => Tools11$outboundSchema),
|
|
2992
3482
|
z.lazy(() => Tools12$outboundSchema),
|
|
3483
|
+
z.lazy(() => Tools13$outboundSchema),
|
|
2993
3484
|
z.lazy(() => StreamRunAgentTools1$outboundSchema),
|
|
2994
3485
|
z.lazy(() => StreamRunAgentTools2$outboundSchema),
|
|
2995
3486
|
z.lazy(() => StreamRunAgentTools3$outboundSchema),
|
|
@@ -3000,6 +3491,7 @@ export const StreamRunAgentTools$outboundSchema: z.ZodType<
|
|
|
3000
3491
|
z.lazy(() => Tools8$outboundSchema),
|
|
3001
3492
|
z.lazy(() => Tools9$outboundSchema),
|
|
3002
3493
|
z.lazy(() => Tools10$outboundSchema),
|
|
3494
|
+
z.lazy(() => Tools11$outboundSchema),
|
|
3003
3495
|
]);
|
|
3004
3496
|
|
|
3005
3497
|
/**
|
|
@@ -3063,8 +3555,8 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
3063
3555
|
> = z.object({
|
|
3064
3556
|
tools: z.array(
|
|
3065
3557
|
z.union([
|
|
3066
|
-
z.lazy(() => Tools11$inboundSchema),
|
|
3067
3558
|
z.lazy(() => Tools12$inboundSchema),
|
|
3559
|
+
z.lazy(() => Tools13$inboundSchema),
|
|
3068
3560
|
z.lazy(() => StreamRunAgentTools1$inboundSchema),
|
|
3069
3561
|
z.lazy(() => StreamRunAgentTools2$inboundSchema),
|
|
3070
3562
|
z.lazy(() => StreamRunAgentTools3$inboundSchema),
|
|
@@ -3075,12 +3567,13 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
3075
3567
|
z.lazy(() => Tools8$inboundSchema),
|
|
3076
3568
|
z.lazy(() => Tools9$inboundSchema),
|
|
3077
3569
|
z.lazy(() => Tools10$inboundSchema),
|
|
3570
|
+
z.lazy(() => Tools11$inboundSchema),
|
|
3078
3571
|
]),
|
|
3079
3572
|
),
|
|
3080
3573
|
tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
|
|
3081
3574
|
.default("none"),
|
|
3082
|
-
max_iterations: z.number().default(15),
|
|
3083
|
-
max_execution_time: z.number().default(120),
|
|
3575
|
+
max_iterations: z.number().int().default(15),
|
|
3576
|
+
max_execution_time: z.number().int().default(120),
|
|
3084
3577
|
}).transform((v) => {
|
|
3085
3578
|
return remap$(v, {
|
|
3086
3579
|
"tool_approval_required": "toolApprovalRequired",
|
|
@@ -3092,8 +3585,8 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
3092
3585
|
/** @internal */
|
|
3093
3586
|
export type StreamRunAgentSettings$Outbound = {
|
|
3094
3587
|
tools: Array<
|
|
3095
|
-
| Tools11$Outbound
|
|
3096
3588
|
| Tools12$Outbound
|
|
3589
|
+
| Tools13$Outbound
|
|
3097
3590
|
| StreamRunAgentTools1$Outbound
|
|
3098
3591
|
| StreamRunAgentTools2$Outbound
|
|
3099
3592
|
| StreamRunAgentTools3$Outbound
|
|
@@ -3104,6 +3597,7 @@ export type StreamRunAgentSettings$Outbound = {
|
|
|
3104
3597
|
| Tools8$Outbound
|
|
3105
3598
|
| Tools9$Outbound
|
|
3106
3599
|
| Tools10$Outbound
|
|
3600
|
+
| Tools11$Outbound
|
|
3107
3601
|
>;
|
|
3108
3602
|
tool_approval_required: string;
|
|
3109
3603
|
max_iterations: number;
|
|
@@ -3118,8 +3612,8 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
3118
3612
|
> = z.object({
|
|
3119
3613
|
tools: z.array(
|
|
3120
3614
|
z.union([
|
|
3121
|
-
z.lazy(() => Tools11$outboundSchema),
|
|
3122
3615
|
z.lazy(() => Tools12$outboundSchema),
|
|
3616
|
+
z.lazy(() => Tools13$outboundSchema),
|
|
3123
3617
|
z.lazy(() => StreamRunAgentTools1$outboundSchema),
|
|
3124
3618
|
z.lazy(() => StreamRunAgentTools2$outboundSchema),
|
|
3125
3619
|
z.lazy(() => StreamRunAgentTools3$outboundSchema),
|
|
@@ -3130,12 +3624,13 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
3130
3624
|
z.lazy(() => Tools8$outboundSchema),
|
|
3131
3625
|
z.lazy(() => Tools9$outboundSchema),
|
|
3132
3626
|
z.lazy(() => Tools10$outboundSchema),
|
|
3627
|
+
z.lazy(() => Tools11$outboundSchema),
|
|
3133
3628
|
]),
|
|
3134
3629
|
),
|
|
3135
3630
|
toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema
|
|
3136
3631
|
.default("none"),
|
|
3137
|
-
maxIterations: z.number().default(15),
|
|
3138
|
-
maxExecutionTime: z.number().default(120),
|
|
3632
|
+
maxIterations: z.number().int().default(15),
|
|
3633
|
+
maxExecutionTime: z.number().int().default(120),
|
|
3139
3634
|
}).transform((v) => {
|
|
3140
3635
|
return remap$(v, {
|
|
3141
3636
|
toolApprovalRequired: "tool_approval_required",
|
|
@@ -3190,13 +3685,15 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3190
3685
|
message: z.lazy(() => StreamRunAgentMessage$inboundSchema),
|
|
3191
3686
|
variables: z.record(z.any()).optional(),
|
|
3192
3687
|
contextId: z.string().optional(),
|
|
3193
|
-
|
|
3688
|
+
memory: z.lazy(() => StreamRunAgentMemory$inboundSchema).optional(),
|
|
3194
3689
|
path: z.string(),
|
|
3195
3690
|
description: z.string().optional(),
|
|
3196
3691
|
iconUrl: z.string().optional(),
|
|
3197
3692
|
system_prompt: z.string().optional(),
|
|
3198
3693
|
memory_stores: z.array(z.string()).optional(),
|
|
3199
|
-
knowledge_bases: z.array(
|
|
3694
|
+
knowledge_bases: z.array(
|
|
3695
|
+
z.lazy(() => StreamRunAgentKnowledgeBases$inboundSchema),
|
|
3696
|
+
).optional(),
|
|
3200
3697
|
team_of_agents: z.array(
|
|
3201
3698
|
z.lazy(() => StreamRunAgentTeamOfAgents$inboundSchema),
|
|
3202
3699
|
).optional(),
|
|
@@ -3205,7 +3702,6 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3205
3702
|
}).transform((v) => {
|
|
3206
3703
|
return remap$(v, {
|
|
3207
3704
|
"fallback_models": "fallbackModels",
|
|
3208
|
-
"external_id": "externalId",
|
|
3209
3705
|
"system_prompt": "systemPrompt",
|
|
3210
3706
|
"memory_stores": "memoryStores",
|
|
3211
3707
|
"knowledge_bases": "knowledgeBases",
|
|
@@ -3225,13 +3721,13 @@ export type StreamRunAgentRequestBody$Outbound = {
|
|
|
3225
3721
|
message: StreamRunAgentMessage$Outbound;
|
|
3226
3722
|
variables?: { [k: string]: any } | undefined;
|
|
3227
3723
|
contextId?: string | undefined;
|
|
3228
|
-
|
|
3724
|
+
memory?: StreamRunAgentMemory$Outbound | undefined;
|
|
3229
3725
|
path: string;
|
|
3230
3726
|
description?: string | undefined;
|
|
3231
3727
|
iconUrl?: string | undefined;
|
|
3232
3728
|
system_prompt?: string | undefined;
|
|
3233
3729
|
memory_stores?: Array<string> | undefined;
|
|
3234
|
-
knowledge_bases?: Array<
|
|
3730
|
+
knowledge_bases?: Array<StreamRunAgentKnowledgeBases$Outbound> | undefined;
|
|
3235
3731
|
team_of_agents?: Array<StreamRunAgentTeamOfAgents$Outbound> | undefined;
|
|
3236
3732
|
settings: StreamRunAgentSettings$Outbound;
|
|
3237
3733
|
stream_timeout_seconds?: number | undefined;
|
|
@@ -3252,13 +3748,15 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
3252
3748
|
message: z.lazy(() => StreamRunAgentMessage$outboundSchema),
|
|
3253
3749
|
variables: z.record(z.any()).optional(),
|
|
3254
3750
|
contextId: z.string().optional(),
|
|
3255
|
-
|
|
3751
|
+
memory: z.lazy(() => StreamRunAgentMemory$outboundSchema).optional(),
|
|
3256
3752
|
path: z.string(),
|
|
3257
3753
|
description: z.string().optional(),
|
|
3258
3754
|
iconUrl: z.string().optional(),
|
|
3259
3755
|
systemPrompt: z.string().optional(),
|
|
3260
3756
|
memoryStores: z.array(z.string()).optional(),
|
|
3261
|
-
knowledgeBases: z.array(
|
|
3757
|
+
knowledgeBases: z.array(
|
|
3758
|
+
z.lazy(() => StreamRunAgentKnowledgeBases$outboundSchema),
|
|
3759
|
+
).optional(),
|
|
3262
3760
|
teamOfAgents: z.array(z.lazy(() => StreamRunAgentTeamOfAgents$outboundSchema))
|
|
3263
3761
|
.optional(),
|
|
3264
3762
|
settings: z.lazy(() => StreamRunAgentSettings$outboundSchema),
|
|
@@ -3266,7 +3764,6 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
3266
3764
|
}).transform((v) => {
|
|
3267
3765
|
return remap$(v, {
|
|
3268
3766
|
fallbackModels: "fallback_models",
|
|
3269
|
-
externalId: "external_id",
|
|
3270
3767
|
systemPrompt: "system_prompt",
|
|
3271
3768
|
memoryStores: "memory_stores",
|
|
3272
3769
|
knowledgeBases: "knowledge_bases",
|