@orq-ai/node 3.12.14 → 3.12.17

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 (167) hide show
  1. package/README.md +1 -4
  2. package/bin/mcp-server.js +113 -113
  3. package/bin/mcp-server.js.map +31 -31
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/url.js +1 -1
  9. package/lib/url.js.map +1 -1
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/createbudget.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +16 -16
  18. package/models/operations/fileget.js +2 -2
  19. package/models/operations/filelist.js +2 -2
  20. package/models/operations/fileupload.js +2 -2
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +2 -2
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +2 -2
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/updatebudget.js +2 -2
  33. package/models/operations/updatecontact.js +2 -2
  34. package/models/operations/updatedatapoint.js +2 -2
  35. package/models/operations/updatedataset.js +2 -2
  36. package/models/operations/updatedatasource.js +2 -2
  37. package/models/operations/updateeval.js +16 -16
  38. package/package.json +1 -1
  39. package/packages/orq-rc/README.md +108 -94
  40. package/packages/orq-rc/docs/sdks/agents/README.md +8 -2
  41. package/packages/orq-rc/docs/sdks/evals/README.md +2 -0
  42. package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
  43. package/packages/orq-rc/examples/package-lock.json +1 -1
  44. package/packages/orq-rc/jsr.json +1 -1
  45. package/packages/orq-rc/package-lock.json +2 -2
  46. package/packages/orq-rc/package.json +1 -1
  47. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  48. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  49. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  50. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  51. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  52. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  53. package/packages/orq-rc/src/lib/config.ts +3 -3
  54. package/packages/orq-rc/src/lib/url.ts +1 -1
  55. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  56. package/packages/orq-rc/src/mcp-server/server.ts +13 -1
  57. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  58. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  59. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  60. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  61. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  62. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  63. package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
  64. package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
  65. package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
  66. package/packages/orq-rc/src/models/components/deployments.ts +52 -45
  67. package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
  68. package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
  69. package/packages/orq-rc/src/models/components/httptool.ts +532 -0
  70. package/packages/orq-rc/src/models/components/index.ts +13 -0
  71. package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
  72. package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
  73. package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
  74. package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
  75. package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
  76. package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
  77. package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
  78. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  79. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  80. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  81. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
  85. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/createeval.ts +199 -56
  87. package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
  88. package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
  89. package/packages/orq-rc/src/models/operations/createprompt.ts +633 -314
  90. package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
  91. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  92. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
  93. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +363 -194
  94. package/packages/orq-rc/src/models/operations/deployments.ts +330 -160
  95. package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
  96. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
  97. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
  101. package/packages/orq-rc/src/models/operations/getallprompts.ts +334 -168
  102. package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
  103. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  105. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
  106. package/packages/orq-rc/src/models/operations/getoneprompt.ts +330 -167
  107. package/packages/orq-rc/src/models/operations/getpromptversion.ts +338 -168
  108. package/packages/orq-rc/src/models/operations/index.ts +6 -0
  109. package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
  110. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
  113. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
  116. package/packages/orq-rc/src/models/operations/listpromptversions.ts +355 -183
  117. package/packages/orq-rc/src/models/operations/parse.ts +20 -335
  118. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
  120. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
  123. package/packages/orq-rc/src/models/operations/runagent.ts +428 -1384
  124. package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/streamrunagent.ts +409 -1452
  126. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  127. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
  129. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/updateeval.ts +210 -57
  132. package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
  133. package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
  134. package/packages/orq-rc/src/models/operations/updateprompt.ts +670 -335
  135. package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
  136. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  137. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  138. package/src/lib/config.ts +3 -3
  139. package/src/lib/url.ts +1 -1
  140. package/src/mcp-server/mcp-server.ts +1 -1
  141. package/src/mcp-server/server.ts +1 -1
  142. package/src/models/operations/createbudget.ts +2 -2
  143. package/src/models/operations/createcontact.ts +2 -2
  144. package/src/models/operations/createdataset.ts +2 -2
  145. package/src/models/operations/createdatasetitem.ts +2 -2
  146. package/src/models/operations/createdatasource.ts +2 -2
  147. package/src/models/operations/createeval.ts +16 -16
  148. package/src/models/operations/fileget.ts +2 -2
  149. package/src/models/operations/filelist.ts +2 -2
  150. package/src/models/operations/fileupload.ts +2 -2
  151. package/src/models/operations/getbudget.ts +2 -2
  152. package/src/models/operations/getevals.ts +28 -28
  153. package/src/models/operations/listbudgets.ts +2 -2
  154. package/src/models/operations/listcontacts.ts +2 -2
  155. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  156. package/src/models/operations/listdatasets.ts +2 -2
  157. package/src/models/operations/listdatasources.ts +2 -2
  158. package/src/models/operations/retrievecontact.ts +2 -2
  159. package/src/models/operations/retrievedatapoint.ts +2 -2
  160. package/src/models/operations/retrievedataset.ts +2 -2
  161. package/src/models/operations/retrievedatasource.ts +2 -2
  162. package/src/models/operations/updatebudget.ts +2 -2
  163. package/src/models/operations/updatecontact.ts +2 -2
  164. package/src/models/operations/updatedatapoint.ts +2 -2
  165. package/src/models/operations/updatedataset.ts +2 -2
  166. package/src/models/operations/updatedatasource.ts +2 -2
  167. package/src/models/operations/updateeval.ts +16 -16
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  export const StreamRunAgentRole2 = {
@@ -107,7 +108,7 @@ export type StreamRunAgentPartsAgentsKind = ClosedEnum<
107
108
 
108
109
  export type StreamRunAgentParts2 = {
109
110
  kind: StreamRunAgentPartsAgentsKind;
110
- data?: any | undefined;
111
+ data: { [k: string]: any };
111
112
  metadata?: { [k: string]: any } | undefined;
112
113
  };
113
114
 
@@ -126,9 +127,9 @@ export type StreamRunAgentParts1 = {
126
127
  export type StreamRunAgentParts =
127
128
  | StreamRunAgentParts4
128
129
  | StreamRunAgentParts1
130
+ | StreamRunAgentParts2
129
131
  | StreamRunAgentParts3
130
- | Parts5
131
- | StreamRunAgentParts2;
132
+ | Parts5;
132
133
 
133
134
  /**
134
135
  * The A2A format message containing the task for the agent to perform.
@@ -148,9 +149,9 @@ export type StreamRunAgentMessage = {
148
149
  parts: Array<
149
150
  | StreamRunAgentParts4
150
151
  | StreamRunAgentParts1
152
+ | StreamRunAgentParts2
151
153
  | StreamRunAgentParts3
152
154
  | Parts5
153
- | StreamRunAgentParts2
154
155
  >;
155
156
  /**
156
157
  * Optional message metadata
@@ -257,29 +258,6 @@ export type StreamRunAgentTeamOfAgents = {
257
258
  role?: string | undefined;
258
259
  };
259
260
 
260
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type = {
261
- Function: "function",
262
- } as const;
263
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings13Type =
264
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type>;
265
-
266
- export type StreamRunAgentToolsFunction = {
267
- name: string;
268
- description?: string | undefined;
269
- strict?: boolean | undefined;
270
- parameters?: { [k: string]: any } | undefined;
271
- };
272
-
273
- export type Tools13 = {
274
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings13Type;
275
- id?: string | undefined;
276
- key: string;
277
- displayName?: string | undefined;
278
- description?: string | undefined;
279
- requiresApproval?: boolean | undefined;
280
- function: StreamRunAgentToolsFunction;
281
- };
282
-
283
261
  /**
284
262
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
285
263
  */
@@ -294,11 +272,12 @@ export const ToolsStatus = {
294
272
  */
295
273
  export type ToolsStatus = ClosedEnum<typeof ToolsStatus>;
296
274
 
297
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type = {
275
+ export const StreamRunAgentToolsType = {
298
276
  Http: "http",
299
277
  } as const;
300
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings12Type =
301
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type>;
278
+ export type StreamRunAgentToolsType = ClosedEnum<
279
+ typeof StreamRunAgentToolsType
280
+ >;
302
281
 
303
282
  /**
304
283
  * The HTTP method to use.
@@ -339,7 +318,7 @@ export type ToolsBlueprint = {
339
318
  /**
340
319
  * The type of the argument.
341
320
  */
342
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType = {
321
+ export const StreamRunAgentToolsAgentsType = {
343
322
  String: "string",
344
323
  Number: "number",
345
324
  Boolean: "boolean",
@@ -347,10 +326,9 @@ export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType = {
347
326
  /**
348
327
  * The type of the argument.
349
328
  */
350
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType =
351
- ClosedEnum<
352
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
353
- >;
329
+ export type StreamRunAgentToolsAgentsType = ClosedEnum<
330
+ typeof StreamRunAgentToolsAgentsType
331
+ >;
354
332
 
355
333
  /**
356
334
  * The default value of the argument.
@@ -361,7 +339,7 @@ export type ToolsArguments = {
361
339
  /**
362
340
  * The type of the argument.
363
341
  */
364
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType;
342
+ type: StreamRunAgentToolsAgentsType;
365
343
  /**
366
344
  * A description of the argument.
367
345
  */
@@ -387,7 +365,10 @@ export type ToolsHttp = {
387
365
  arguments?: { [k: string]: ToolsArguments } | undefined;
388
366
  };
389
367
 
390
- export type Tools12 = {
368
+ /**
369
+ * Makes HTTP requests to external APIs
370
+ */
371
+ export type Tools24 = {
391
372
  id?: string | undefined;
392
373
  /**
393
374
  * 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.
@@ -410,150 +391,30 @@ export type Tools12 = {
410
391
  */
411
392
  status?: ToolsStatus | undefined;
412
393
  versionHash?: string | undefined;
413
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings12Type;
414
- http: ToolsHttp;
415
- requiresApproval?: boolean | undefined;
416
- };
417
-
418
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type = {
419
- CurrentDate: "current_date",
420
- } as const;
421
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings11Type =
422
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type>;
423
-
424
- export type Tools11 = {
425
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings11Type;
426
- requiresApproval?: boolean | undefined;
427
- };
428
-
429
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings10Type = {
430
- QueryKnowledgeBase: "query_knowledge_base",
431
- } as const;
432
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings10Type =
433
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings10Type>;
434
-
435
- export type Tools10 = {
436
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings10Type;
437
- requiresApproval?: boolean | undefined;
438
- };
439
-
440
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings9Type = {
441
- RetrieveKnowledgeBases: "retrieve_knowledge_bases",
442
- } as const;
443
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings9Type =
444
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings9Type>;
445
-
446
- export type Tools9 = {
447
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings9Type;
448
- requiresApproval?: boolean | undefined;
449
- };
450
-
451
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings8Type = {
452
- RetrieveMemoryStores: "retrieve_memory_stores",
453
- } as const;
454
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings8Type =
455
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings8Type>;
456
-
457
- export type Tools8 = {
458
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings8Type;
459
- requiresApproval?: boolean | undefined;
460
- };
461
-
462
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings7Type = {
463
- DeleteMemoryDocument: "delete_memory_document",
464
- } as const;
465
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings7Type =
466
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings7Type>;
467
-
468
- export type Tools7 = {
469
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings7Type;
470
- requiresApproval?: boolean | undefined;
471
- };
472
-
473
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings6Type = {
474
- WriteMemoryStore: "write_memory_store",
475
- } as const;
476
- export type StreamRunAgentToolsAgentsRequestRequestBodySettings6Type =
477
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettings6Type>;
478
-
479
- export type Tools6 = {
480
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings6Type;
481
- requiresApproval?: boolean | undefined;
482
- };
483
-
484
- export const StreamRunAgentToolsAgentsRequestRequestBodySettingsType = {
485
- QueryMemoryStore: "query_memory_store",
486
- } as const;
487
- export type StreamRunAgentToolsAgentsRequestRequestBodySettingsType =
488
- ClosedEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodySettingsType>;
489
-
490
- export type StreamRunAgentTools5 = {
491
- type: StreamRunAgentToolsAgentsRequestRequestBodySettingsType;
492
- requiresApproval?: boolean | undefined;
493
- };
494
-
495
- export const StreamRunAgentToolsAgentsRequestRequestBodyType = {
496
- RetrieveAgents: "retrieve_agents",
497
- } as const;
498
- export type StreamRunAgentToolsAgentsRequestRequestBodyType = ClosedEnum<
499
- typeof StreamRunAgentToolsAgentsRequestRequestBodyType
500
- >;
501
-
502
- export type StreamRunAgentTools4 = {
503
- type: StreamRunAgentToolsAgentsRequestRequestBodyType;
504
- requiresApproval?: boolean | undefined;
505
- };
506
-
507
- export const StreamRunAgentToolsAgentsRequestType = {
508
- CallSubAgent: "call_sub_agent",
509
- } as const;
510
- export type StreamRunAgentToolsAgentsRequestType = ClosedEnum<
511
- typeof StreamRunAgentToolsAgentsRequestType
512
- >;
513
-
514
- export type StreamRunAgentTools3 = {
515
- type: StreamRunAgentToolsAgentsRequestType;
516
- requiresApproval?: boolean | undefined;
517
- };
518
-
519
- export const StreamRunAgentToolsAgentsType = {
520
- WebScraper: "web_scraper",
521
- } as const;
522
- export type StreamRunAgentToolsAgentsType = ClosedEnum<
523
- typeof StreamRunAgentToolsAgentsType
524
- >;
525
-
526
- export type StreamRunAgentTools2 = {
527
- type: StreamRunAgentToolsAgentsType;
528
- requiresApproval?: boolean | undefined;
529
- };
530
-
531
- export const StreamRunAgentToolsType = {
532
- GoogleSearch: "google_search",
533
- } as const;
534
- export type StreamRunAgentToolsType = ClosedEnum<
535
- typeof StreamRunAgentToolsType
536
- >;
537
-
538
- export type StreamRunAgentTools1 = {
539
394
  type: StreamRunAgentToolsType;
395
+ http: ToolsHttp;
540
396
  requiresApproval?: boolean | undefined;
541
397
  };
542
398
 
399
+ /**
400
+ * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
401
+ */
543
402
  export type StreamRunAgentTools =
544
- | Tools12
545
- | Tools13
546
- | StreamRunAgentTools1
547
- | StreamRunAgentTools2
548
- | StreamRunAgentTools3
549
- | StreamRunAgentTools4
550
- | StreamRunAgentTools5
551
- | Tools6
552
- | Tools7
553
- | Tools8
554
- | Tools9
555
- | Tools10
556
- | Tools11;
403
+ | (components.HttpTool & { type: "http" })
404
+ | (components.CodeExecutionTool & { type: "code" })
405
+ | (components.FunctionTool & { type: "function" })
406
+ | (components.GoogleSearchTool & { type: "google_search" })
407
+ | (components.WebScraperTool & { type: "web_scraper" })
408
+ | (components.CallSubAgentTool & { type: "call_sub_agent" })
409
+ | (components.RetrieveAgentsTool & { type: "retrieve_agents" })
410
+ | (components.QueryMemoryStoreTool & { type: "query_memory_store" })
411
+ | (components.WriteMemoryStoreTool & { type: "write_memory_store" })
412
+ | (components.RetrieveMemoryStoresTool & { type: "retrieve_memory_stores" })
413
+ | (components.RetrieveKnowledgeBasesTool & {
414
+ type: "retrieve_knowledge_bases";
415
+ })
416
+ | (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
417
+ | (components.CurrentDateTool & { type: "current_date" });
557
418
 
558
419
  /**
559
420
  * 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.
@@ -572,19 +433,21 @@ export type StreamRunAgentToolApprovalRequired = ClosedEnum<
572
433
 
573
434
  export type StreamRunAgentSettings = {
574
435
  tools: Array<
575
- | Tools12
576
- | Tools13
577
- | StreamRunAgentTools1
578
- | StreamRunAgentTools2
579
- | StreamRunAgentTools3
580
- | StreamRunAgentTools4
581
- | StreamRunAgentTools5
582
- | Tools6
583
- | Tools7
584
- | Tools8
585
- | Tools9
586
- | Tools10
587
- | Tools11
436
+ | (components.HttpTool & { type: "http" })
437
+ | (components.CodeExecutionTool & { type: "code" })
438
+ | (components.FunctionTool & { type: "function" })
439
+ | (components.GoogleSearchTool & { type: "google_search" })
440
+ | (components.WebScraperTool & { type: "web_scraper" })
441
+ | (components.CallSubAgentTool & { type: "call_sub_agent" })
442
+ | (components.RetrieveAgentsTool & { type: "retrieve_agents" })
443
+ | (components.QueryMemoryStoreTool & { type: "query_memory_store" })
444
+ | (components.WriteMemoryStoreTool & { type: "write_memory_store" })
445
+ | (components.RetrieveMemoryStoresTool & { type: "retrieve_memory_stores" })
446
+ | (components.RetrieveKnowledgeBasesTool & {
447
+ type: "retrieve_knowledge_bases";
448
+ })
449
+ | (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
450
+ | (components.CurrentDateTool & { type: "current_date" })
588
451
  >;
589
452
  /**
590
453
  * 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.
@@ -664,6 +527,10 @@ export type StreamRunAgentRequestBody = {
664
527
  */
665
528
  teamOfAgents?: Array<StreamRunAgentTeamOfAgents> | undefined;
666
529
  settings: StreamRunAgentSettings;
530
+ /**
531
+ * Optional metadata for the agent run as key-value pairs that will be included in traces
532
+ */
533
+ metadata?: { [k: string]: any } | undefined;
667
534
  /**
668
535
  * Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
669
536
  */
@@ -1258,14 +1125,14 @@ export const StreamRunAgentParts2$inboundSchema: z.ZodType<
1258
1125
  unknown
1259
1126
  > = z.object({
1260
1127
  kind: StreamRunAgentPartsAgentsKind$inboundSchema,
1261
- data: z.any().optional(),
1128
+ data: z.record(z.any()),
1262
1129
  metadata: z.record(z.any()).optional(),
1263
1130
  });
1264
1131
 
1265
1132
  /** @internal */
1266
1133
  export type StreamRunAgentParts2$Outbound = {
1267
1134
  kind: string;
1268
- data?: any | undefined;
1135
+ data: { [k: string]: any };
1269
1136
  metadata?: { [k: string]: any } | undefined;
1270
1137
  };
1271
1138
 
@@ -1276,7 +1143,7 @@ export const StreamRunAgentParts2$outboundSchema: z.ZodType<
1276
1143
  StreamRunAgentParts2
1277
1144
  > = z.object({
1278
1145
  kind: StreamRunAgentPartsAgentsKind$outboundSchema,
1279
- data: z.any().optional(),
1146
+ data: z.record(z.any()),
1280
1147
  metadata: z.record(z.any()).optional(),
1281
1148
  });
1282
1149
 
@@ -1397,18 +1264,18 @@ export const StreamRunAgentParts$inboundSchema: z.ZodType<
1397
1264
  > = z.union([
1398
1265
  z.lazy(() => StreamRunAgentParts4$inboundSchema),
1399
1266
  z.lazy(() => StreamRunAgentParts1$inboundSchema),
1267
+ z.lazy(() => StreamRunAgentParts2$inboundSchema),
1400
1268
  z.lazy(() => StreamRunAgentParts3$inboundSchema),
1401
1269
  z.lazy(() => Parts5$inboundSchema),
1402
- z.lazy(() => StreamRunAgentParts2$inboundSchema),
1403
1270
  ]);
1404
1271
 
1405
1272
  /** @internal */
1406
1273
  export type StreamRunAgentParts$Outbound =
1407
1274
  | StreamRunAgentParts4$Outbound
1408
1275
  | StreamRunAgentParts1$Outbound
1276
+ | StreamRunAgentParts2$Outbound
1409
1277
  | StreamRunAgentParts3$Outbound
1410
- | Parts5$Outbound
1411
- | StreamRunAgentParts2$Outbound;
1278
+ | Parts5$Outbound;
1412
1279
 
1413
1280
  /** @internal */
1414
1281
  export const StreamRunAgentParts$outboundSchema: z.ZodType<
@@ -1418,9 +1285,9 @@ export const StreamRunAgentParts$outboundSchema: z.ZodType<
1418
1285
  > = z.union([
1419
1286
  z.lazy(() => StreamRunAgentParts4$outboundSchema),
1420
1287
  z.lazy(() => StreamRunAgentParts1$outboundSchema),
1288
+ z.lazy(() => StreamRunAgentParts2$outboundSchema),
1421
1289
  z.lazy(() => StreamRunAgentParts3$outboundSchema),
1422
1290
  z.lazy(() => Parts5$outboundSchema),
1423
- z.lazy(() => StreamRunAgentParts2$outboundSchema),
1424
1291
  ]);
1425
1292
 
1426
1293
  /**
@@ -1469,9 +1336,9 @@ export const StreamRunAgentMessage$inboundSchema: z.ZodType<
1469
1336
  z.union([
1470
1337
  z.lazy(() => StreamRunAgentParts4$inboundSchema),
1471
1338
  z.lazy(() => StreamRunAgentParts1$inboundSchema),
1339
+ z.lazy(() => StreamRunAgentParts2$inboundSchema),
1472
1340
  z.lazy(() => StreamRunAgentParts3$inboundSchema),
1473
1341
  z.lazy(() => Parts5$inboundSchema),
1474
- z.lazy(() => StreamRunAgentParts2$inboundSchema),
1475
1342
  ]),
1476
1343
  ),
1477
1344
  metadata: z.record(z.any()).optional(),
@@ -1484,9 +1351,9 @@ export type StreamRunAgentMessage$Outbound = {
1484
1351
  parts: Array<
1485
1352
  | StreamRunAgentParts4$Outbound
1486
1353
  | StreamRunAgentParts1$Outbound
1354
+ | StreamRunAgentParts2$Outbound
1487
1355
  | StreamRunAgentParts3$Outbound
1488
1356
  | Parts5$Outbound
1489
- | StreamRunAgentParts2$Outbound
1490
1357
  >;
1491
1358
  metadata?: { [k: string]: any } | undefined;
1492
1359
  };
@@ -1506,9 +1373,9 @@ export const StreamRunAgentMessage$outboundSchema: z.ZodType<
1506
1373
  z.union([
1507
1374
  z.lazy(() => StreamRunAgentParts4$outboundSchema),
1508
1375
  z.lazy(() => StreamRunAgentParts1$outboundSchema),
1376
+ z.lazy(() => StreamRunAgentParts2$outboundSchema),
1509
1377
  z.lazy(() => StreamRunAgentParts3$outboundSchema),
1510
1378
  z.lazy(() => Parts5$outboundSchema),
1511
- z.lazy(() => StreamRunAgentParts2$outboundSchema),
1512
1379
  ]),
1513
1380
  ),
1514
1381
  metadata: z.record(z.any()).optional(),
@@ -2090,175 +1957,6 @@ export function streamRunAgentTeamOfAgentsFromJSON(
2090
1957
  );
2091
1958
  }
2092
1959
 
2093
- /** @internal */
2094
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema:
2095
- z.ZodNativeEnum<
2096
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type
2097
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings13Type);
2098
-
2099
- /** @internal */
2100
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema:
2101
- z.ZodNativeEnum<
2102
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type
2103
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
2104
-
2105
- /**
2106
- * @internal
2107
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2108
- */
2109
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$ {
2110
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema` instead. */
2111
- export const inboundSchema =
2112
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
2113
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema` instead. */
2114
- export const outboundSchema =
2115
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema;
2116
- }
2117
-
2118
- /** @internal */
2119
- export const StreamRunAgentToolsFunction$inboundSchema: z.ZodType<
2120
- StreamRunAgentToolsFunction,
2121
- z.ZodTypeDef,
2122
- unknown
2123
- > = z.object({
2124
- name: z.string(),
2125
- description: z.string().optional(),
2126
- strict: z.boolean().optional(),
2127
- parameters: z.record(z.any()).optional(),
2128
- });
2129
-
2130
- /** @internal */
2131
- export type StreamRunAgentToolsFunction$Outbound = {
2132
- name: string;
2133
- description?: string | undefined;
2134
- strict?: boolean | undefined;
2135
- parameters?: { [k: string]: any } | undefined;
2136
- };
2137
-
2138
- /** @internal */
2139
- export const StreamRunAgentToolsFunction$outboundSchema: z.ZodType<
2140
- StreamRunAgentToolsFunction$Outbound,
2141
- z.ZodTypeDef,
2142
- StreamRunAgentToolsFunction
2143
- > = z.object({
2144
- name: z.string(),
2145
- description: z.string().optional(),
2146
- strict: z.boolean().optional(),
2147
- parameters: z.record(z.any()).optional(),
2148
- });
2149
-
2150
- /**
2151
- * @internal
2152
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2153
- */
2154
- export namespace StreamRunAgentToolsFunction$ {
2155
- /** @deprecated use `StreamRunAgentToolsFunction$inboundSchema` instead. */
2156
- export const inboundSchema = StreamRunAgentToolsFunction$inboundSchema;
2157
- /** @deprecated use `StreamRunAgentToolsFunction$outboundSchema` instead. */
2158
- export const outboundSchema = StreamRunAgentToolsFunction$outboundSchema;
2159
- /** @deprecated use `StreamRunAgentToolsFunction$Outbound` instead. */
2160
- export type Outbound = StreamRunAgentToolsFunction$Outbound;
2161
- }
2162
-
2163
- export function streamRunAgentToolsFunctionToJSON(
2164
- streamRunAgentToolsFunction: StreamRunAgentToolsFunction,
2165
- ): string {
2166
- return JSON.stringify(
2167
- StreamRunAgentToolsFunction$outboundSchema.parse(
2168
- streamRunAgentToolsFunction,
2169
- ),
2170
- );
2171
- }
2172
-
2173
- export function streamRunAgentToolsFunctionFromJSON(
2174
- jsonString: string,
2175
- ): SafeParseResult<StreamRunAgentToolsFunction, SDKValidationError> {
2176
- return safeParse(
2177
- jsonString,
2178
- (x) => StreamRunAgentToolsFunction$inboundSchema.parse(JSON.parse(x)),
2179
- `Failed to parse 'StreamRunAgentToolsFunction' from JSON`,
2180
- );
2181
- }
2182
-
2183
- /** @internal */
2184
- export const Tools13$inboundSchema: z.ZodType<Tools13, z.ZodTypeDef, unknown> =
2185
- z.object({
2186
- type:
2187
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema,
2188
- _id: z.string().optional(),
2189
- key: z.string(),
2190
- display_name: z.string().optional(),
2191
- description: z.string().optional(),
2192
- requires_approval: z.boolean().default(false),
2193
- function: z.lazy(() => StreamRunAgentToolsFunction$inboundSchema),
2194
- }).transform((v) => {
2195
- return remap$(v, {
2196
- "_id": "id",
2197
- "display_name": "displayName",
2198
- "requires_approval": "requiresApproval",
2199
- });
2200
- });
2201
-
2202
- /** @internal */
2203
- export type Tools13$Outbound = {
2204
- type: string;
2205
- _id?: string | undefined;
2206
- key: string;
2207
- display_name?: string | undefined;
2208
- description?: string | undefined;
2209
- requires_approval: boolean;
2210
- function: StreamRunAgentToolsFunction$Outbound;
2211
- };
2212
-
2213
- /** @internal */
2214
- export const Tools13$outboundSchema: z.ZodType<
2215
- Tools13$Outbound,
2216
- z.ZodTypeDef,
2217
- Tools13
2218
- > = z.object({
2219
- type:
2220
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema,
2221
- id: z.string().optional(),
2222
- key: z.string(),
2223
- displayName: z.string().optional(),
2224
- description: z.string().optional(),
2225
- requiresApproval: z.boolean().default(false),
2226
- function: z.lazy(() => StreamRunAgentToolsFunction$outboundSchema),
2227
- }).transform((v) => {
2228
- return remap$(v, {
2229
- id: "_id",
2230
- displayName: "display_name",
2231
- requiresApproval: "requires_approval",
2232
- });
2233
- });
2234
-
2235
- /**
2236
- * @internal
2237
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2238
- */
2239
- export namespace Tools13$ {
2240
- /** @deprecated use `Tools13$inboundSchema` instead. */
2241
- export const inboundSchema = Tools13$inboundSchema;
2242
- /** @deprecated use `Tools13$outboundSchema` instead. */
2243
- export const outboundSchema = Tools13$outboundSchema;
2244
- /** @deprecated use `Tools13$Outbound` instead. */
2245
- export type Outbound = Tools13$Outbound;
2246
- }
2247
-
2248
- export function tools13ToJSON(tools13: Tools13): string {
2249
- return JSON.stringify(Tools13$outboundSchema.parse(tools13));
2250
- }
2251
-
2252
- export function tools13FromJSON(
2253
- jsonString: string,
2254
- ): SafeParseResult<Tools13, SDKValidationError> {
2255
- return safeParse(
2256
- jsonString,
2257
- (x) => Tools13$inboundSchema.parse(JSON.parse(x)),
2258
- `Failed to parse 'Tools13' from JSON`,
2259
- );
2260
- }
2261
-
2262
1960
  /** @internal */
2263
1961
  export const ToolsStatus$inboundSchema: z.ZodNativeEnum<typeof ToolsStatus> = z
2264
1962
  .nativeEnum(ToolsStatus);
@@ -2279,28 +1977,24 @@ export namespace ToolsStatus$ {
2279
1977
  }
2280
1978
 
2281
1979
  /** @internal */
2282
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema:
2283
- z.ZodNativeEnum<
2284
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type
2285
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings12Type);
1980
+ export const StreamRunAgentToolsType$inboundSchema: z.ZodNativeEnum<
1981
+ typeof StreamRunAgentToolsType
1982
+ > = z.nativeEnum(StreamRunAgentToolsType);
2286
1983
 
2287
1984
  /** @internal */
2288
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema:
2289
- z.ZodNativeEnum<
2290
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type
2291
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
1985
+ export const StreamRunAgentToolsType$outboundSchema: z.ZodNativeEnum<
1986
+ typeof StreamRunAgentToolsType
1987
+ > = StreamRunAgentToolsType$inboundSchema;
2292
1988
 
2293
1989
  /**
2294
1990
  * @internal
2295
1991
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2296
1992
  */
2297
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$ {
2298
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema` instead. */
2299
- export const inboundSchema =
2300
- StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
2301
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema` instead. */
2302
- export const outboundSchema =
2303
- StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema;
1993
+ export namespace StreamRunAgentToolsType$ {
1994
+ /** @deprecated use `StreamRunAgentToolsType$inboundSchema` instead. */
1995
+ export const inboundSchema = StreamRunAgentToolsType$inboundSchema;
1996
+ /** @deprecated use `StreamRunAgentToolsType$outboundSchema` instead. */
1997
+ export const outboundSchema = StreamRunAgentToolsType$outboundSchema;
2304
1998
  }
2305
1999
 
2306
2000
  /** @internal */
@@ -2382,31 +2076,24 @@ export function toolsBlueprintFromJSON(
2382
2076
  }
2383
2077
 
2384
2078
  /** @internal */
2385
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema:
2386
- z.ZodNativeEnum<
2387
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
2388
- > = z.nativeEnum(
2389
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType,
2390
- );
2079
+ export const StreamRunAgentToolsAgentsType$inboundSchema: z.ZodNativeEnum<
2080
+ typeof StreamRunAgentToolsAgentsType
2081
+ > = z.nativeEnum(StreamRunAgentToolsAgentsType);
2391
2082
 
2392
2083
  /** @internal */
2393
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema:
2394
- z.ZodNativeEnum<
2395
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
2396
- > =
2397
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
2084
+ export const StreamRunAgentToolsAgentsType$outboundSchema: z.ZodNativeEnum<
2085
+ typeof StreamRunAgentToolsAgentsType
2086
+ > = StreamRunAgentToolsAgentsType$inboundSchema;
2398
2087
 
2399
2088
  /**
2400
2089
  * @internal
2401
2090
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2402
2091
  */
2403
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$ {
2404
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema` instead. */
2405
- export const inboundSchema =
2406
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
2407
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema` instead. */
2408
- export const outboundSchema =
2409
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema;
2092
+ export namespace StreamRunAgentToolsAgentsType$ {
2093
+ /** @deprecated use `StreamRunAgentToolsAgentsType$inboundSchema` instead. */
2094
+ export const inboundSchema = StreamRunAgentToolsAgentsType$inboundSchema;
2095
+ /** @deprecated use `StreamRunAgentToolsAgentsType$outboundSchema` instead. */
2096
+ export const outboundSchema = StreamRunAgentToolsAgentsType$outboundSchema;
2410
2097
  }
2411
2098
 
2412
2099
  /** @internal */
@@ -2463,8 +2150,7 @@ export const ToolsArguments$inboundSchema: z.ZodType<
2463
2150
  z.ZodTypeDef,
2464
2151
  unknown
2465
2152
  > = z.object({
2466
- type:
2467
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema,
2153
+ type: StreamRunAgentToolsAgentsType$inboundSchema,
2468
2154
  description: z.string(),
2469
2155
  send_to_model: z.boolean().default(true),
2470
2156
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2489,8 +2175,7 @@ export const ToolsArguments$outboundSchema: z.ZodType<
2489
2175
  z.ZodTypeDef,
2490
2176
  ToolsArguments
2491
2177
  > = z.object({
2492
- type:
2493
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema,
2178
+ type: StreamRunAgentToolsAgentsType$outboundSchema,
2494
2179
  description: z.string(),
2495
2180
  sendToModel: z.boolean().default(true),
2496
2181
  defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2582,17 +2267,16 @@ export function toolsHttpFromJSON(
2582
2267
  }
2583
2268
 
2584
2269
  /** @internal */
2585
- export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
2270
+ export const Tools24$inboundSchema: z.ZodType<Tools24, z.ZodTypeDef, unknown> =
2586
2271
  z.object({
2587
- _id: z.string().default("01K5RWRYMHES6MPJH5HNX0Y052"),
2272
+ _id: z.string().default("01K5ZT3CR3PWN9D2Z5RR1XF0A2"),
2588
2273
  path: z.string(),
2589
2274
  key: z.string(),
2590
2275
  display_name: z.string(),
2591
2276
  description: z.string(),
2592
2277
  status: ToolsStatus$inboundSchema.default("live"),
2593
2278
  version_hash: z.string().optional(),
2594
- type:
2595
- StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema,
2279
+ type: StreamRunAgentToolsType$inboundSchema,
2596
2280
  http: z.lazy(() => ToolsHttp$inboundSchema),
2597
2281
  requires_approval: z.boolean().default(false),
2598
2282
  }).transform((v) => {
@@ -2605,7 +2289,7 @@ export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
2605
2289
  });
2606
2290
 
2607
2291
  /** @internal */
2608
- export type Tools12$Outbound = {
2292
+ export type Tools24$Outbound = {
2609
2293
  _id: string;
2610
2294
  path: string;
2611
2295
  key: string;
@@ -2619,20 +2303,19 @@ export type Tools12$Outbound = {
2619
2303
  };
2620
2304
 
2621
2305
  /** @internal */
2622
- export const Tools12$outboundSchema: z.ZodType<
2623
- Tools12$Outbound,
2306
+ export const Tools24$outboundSchema: z.ZodType<
2307
+ Tools24$Outbound,
2624
2308
  z.ZodTypeDef,
2625
- Tools12
2309
+ Tools24
2626
2310
  > = z.object({
2627
- id: z.string().default("01K5RWRYMHES6MPJH5HNX0Y052"),
2311
+ id: z.string().default("01K5ZT3CR3PWN9D2Z5RR1XF0A2"),
2628
2312
  path: z.string(),
2629
2313
  key: z.string(),
2630
2314
  displayName: z.string(),
2631
2315
  description: z.string(),
2632
2316
  status: ToolsStatus$outboundSchema.default("live"),
2633
2317
  versionHash: z.string().optional(),
2634
- type:
2635
- StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema,
2318
+ type: StreamRunAgentToolsType$outboundSchema,
2636
2319
  http: z.lazy(() => ToolsHttp$outboundSchema),
2637
2320
  requiresApproval: z.boolean().default(false),
2638
2321
  }).transform((v) => {
@@ -2648,971 +2331,26 @@ export const Tools12$outboundSchema: z.ZodType<
2648
2331
  * @internal
2649
2332
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2650
2333
  */
2651
- export namespace Tools12$ {
2652
- /** @deprecated use `Tools12$inboundSchema` instead. */
2653
- export const inboundSchema = Tools12$inboundSchema;
2654
- /** @deprecated use `Tools12$outboundSchema` instead. */
2655
- export const outboundSchema = Tools12$outboundSchema;
2656
- /** @deprecated use `Tools12$Outbound` instead. */
2657
- export type Outbound = Tools12$Outbound;
2334
+ export namespace Tools24$ {
2335
+ /** @deprecated use `Tools24$inboundSchema` instead. */
2336
+ export const inboundSchema = Tools24$inboundSchema;
2337
+ /** @deprecated use `Tools24$outboundSchema` instead. */
2338
+ export const outboundSchema = Tools24$outboundSchema;
2339
+ /** @deprecated use `Tools24$Outbound` instead. */
2340
+ export type Outbound = Tools24$Outbound;
2658
2341
  }
2659
2342
 
2660
- export function tools12ToJSON(tools12: Tools12): string {
2661
- return JSON.stringify(Tools12$outboundSchema.parse(tools12));
2343
+ export function tools24ToJSON(tools24: Tools24): string {
2344
+ return JSON.stringify(Tools24$outboundSchema.parse(tools24));
2662
2345
  }
2663
2346
 
2664
- export function tools12FromJSON(
2347
+ export function tools24FromJSON(
2665
2348
  jsonString: string,
2666
- ): SafeParseResult<Tools12, SDKValidationError> {
2349
+ ): SafeParseResult<Tools24, SDKValidationError> {
2667
2350
  return safeParse(
2668
2351
  jsonString,
2669
- (x) => Tools12$inboundSchema.parse(JSON.parse(x)),
2670
- `Failed to parse 'Tools12' from JSON`,
2671
- );
2672
- }
2673
-
2674
- /** @internal */
2675
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema:
2676
- z.ZodNativeEnum<
2677
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type
2678
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings11Type);
2679
-
2680
- /** @internal */
2681
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema:
2682
- z.ZodNativeEnum<
2683
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type
2684
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
2685
-
2686
- /**
2687
- * @internal
2688
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2689
- */
2690
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$ {
2691
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema` instead. */
2692
- export const inboundSchema =
2693
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
2694
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema` instead. */
2695
- export const outboundSchema =
2696
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema;
2697
- }
2698
-
2699
- /** @internal */
2700
- export const Tools11$inboundSchema: z.ZodType<Tools11, z.ZodTypeDef, unknown> =
2701
- z.object({
2702
- type:
2703
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema,
2704
- requires_approval: z.boolean().default(false),
2705
- }).transform((v) => {
2706
- return remap$(v, {
2707
- "requires_approval": "requiresApproval",
2708
- });
2709
- });
2710
-
2711
- /** @internal */
2712
- export type Tools11$Outbound = {
2713
- type: string;
2714
- requires_approval: boolean;
2715
- };
2716
-
2717
- /** @internal */
2718
- export const Tools11$outboundSchema: z.ZodType<
2719
- Tools11$Outbound,
2720
- z.ZodTypeDef,
2721
- Tools11
2722
- > = z.object({
2723
- type:
2724
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema,
2725
- requiresApproval: z.boolean().default(false),
2726
- }).transform((v) => {
2727
- return remap$(v, {
2728
- requiresApproval: "requires_approval",
2729
- });
2730
- });
2731
-
2732
- /**
2733
- * @internal
2734
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2735
- */
2736
- export namespace Tools11$ {
2737
- /** @deprecated use `Tools11$inboundSchema` instead. */
2738
- export const inboundSchema = Tools11$inboundSchema;
2739
- /** @deprecated use `Tools11$outboundSchema` instead. */
2740
- export const outboundSchema = Tools11$outboundSchema;
2741
- /** @deprecated use `Tools11$Outbound` instead. */
2742
- export type Outbound = Tools11$Outbound;
2743
- }
2744
-
2745
- export function tools11ToJSON(tools11: Tools11): string {
2746
- return JSON.stringify(Tools11$outboundSchema.parse(tools11));
2747
- }
2748
-
2749
- export function tools11FromJSON(
2750
- jsonString: string,
2751
- ): SafeParseResult<Tools11, SDKValidationError> {
2752
- return safeParse(
2753
- jsonString,
2754
- (x) => Tools11$inboundSchema.parse(JSON.parse(x)),
2755
- `Failed to parse 'Tools11' from JSON`,
2756
- );
2757
- }
2758
-
2759
- /** @internal */
2760
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema:
2761
- z.ZodNativeEnum<
2762
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings10Type
2763
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings10Type);
2764
-
2765
- /** @internal */
2766
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema:
2767
- z.ZodNativeEnum<
2768
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings10Type
2769
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
2770
-
2771
- /**
2772
- * @internal
2773
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2774
- */
2775
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$ {
2776
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema` instead. */
2777
- export const inboundSchema =
2778
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
2779
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema` instead. */
2780
- export const outboundSchema =
2781
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema;
2782
- }
2783
-
2784
- /** @internal */
2785
- export const Tools10$inboundSchema: z.ZodType<Tools10, z.ZodTypeDef, unknown> =
2786
- z.object({
2787
- type:
2788
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema,
2789
- requires_approval: z.boolean().default(false),
2790
- }).transform((v) => {
2791
- return remap$(v, {
2792
- "requires_approval": "requiresApproval",
2793
- });
2794
- });
2795
-
2796
- /** @internal */
2797
- export type Tools10$Outbound = {
2798
- type: string;
2799
- requires_approval: boolean;
2800
- };
2801
-
2802
- /** @internal */
2803
- export const Tools10$outboundSchema: z.ZodType<
2804
- Tools10$Outbound,
2805
- z.ZodTypeDef,
2806
- Tools10
2807
- > = z.object({
2808
- type:
2809
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema,
2810
- requiresApproval: z.boolean().default(false),
2811
- }).transform((v) => {
2812
- return remap$(v, {
2813
- requiresApproval: "requires_approval",
2814
- });
2815
- });
2816
-
2817
- /**
2818
- * @internal
2819
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2820
- */
2821
- export namespace Tools10$ {
2822
- /** @deprecated use `Tools10$inboundSchema` instead. */
2823
- export const inboundSchema = Tools10$inboundSchema;
2824
- /** @deprecated use `Tools10$outboundSchema` instead. */
2825
- export const outboundSchema = Tools10$outboundSchema;
2826
- /** @deprecated use `Tools10$Outbound` instead. */
2827
- export type Outbound = Tools10$Outbound;
2828
- }
2829
-
2830
- export function tools10ToJSON(tools10: Tools10): string {
2831
- return JSON.stringify(Tools10$outboundSchema.parse(tools10));
2832
- }
2833
-
2834
- export function tools10FromJSON(
2835
- jsonString: string,
2836
- ): SafeParseResult<Tools10, SDKValidationError> {
2837
- return safeParse(
2838
- jsonString,
2839
- (x) => Tools10$inboundSchema.parse(JSON.parse(x)),
2840
- `Failed to parse 'Tools10' from JSON`,
2841
- );
2842
- }
2843
-
2844
- /** @internal */
2845
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema:
2846
- z.ZodNativeEnum<
2847
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings9Type
2848
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings9Type);
2849
-
2850
- /** @internal */
2851
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema:
2852
- z.ZodNativeEnum<
2853
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings9Type
2854
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
2855
-
2856
- /**
2857
- * @internal
2858
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2859
- */
2860
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$ {
2861
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema` instead. */
2862
- export const inboundSchema =
2863
- StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
2864
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema` instead. */
2865
- export const outboundSchema =
2866
- StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema;
2867
- }
2868
-
2869
- /** @internal */
2870
- export const Tools9$inboundSchema: z.ZodType<Tools9, z.ZodTypeDef, unknown> = z
2871
- .object({
2872
- type:
2873
- StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema,
2874
- requires_approval: z.boolean().default(false),
2875
- }).transform((v) => {
2876
- return remap$(v, {
2877
- "requires_approval": "requiresApproval",
2878
- });
2879
- });
2880
-
2881
- /** @internal */
2882
- export type Tools9$Outbound = {
2883
- type: string;
2884
- requires_approval: boolean;
2885
- };
2886
-
2887
- /** @internal */
2888
- export const Tools9$outboundSchema: z.ZodType<
2889
- Tools9$Outbound,
2890
- z.ZodTypeDef,
2891
- Tools9
2892
- > = z.object({
2893
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema,
2894
- requiresApproval: z.boolean().default(false),
2895
- }).transform((v) => {
2896
- return remap$(v, {
2897
- requiresApproval: "requires_approval",
2898
- });
2899
- });
2900
-
2901
- /**
2902
- * @internal
2903
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2904
- */
2905
- export namespace Tools9$ {
2906
- /** @deprecated use `Tools9$inboundSchema` instead. */
2907
- export const inboundSchema = Tools9$inboundSchema;
2908
- /** @deprecated use `Tools9$outboundSchema` instead. */
2909
- export const outboundSchema = Tools9$outboundSchema;
2910
- /** @deprecated use `Tools9$Outbound` instead. */
2911
- export type Outbound = Tools9$Outbound;
2912
- }
2913
-
2914
- export function tools9ToJSON(tools9: Tools9): string {
2915
- return JSON.stringify(Tools9$outboundSchema.parse(tools9));
2916
- }
2917
-
2918
- export function tools9FromJSON(
2919
- jsonString: string,
2920
- ): SafeParseResult<Tools9, SDKValidationError> {
2921
- return safeParse(
2922
- jsonString,
2923
- (x) => Tools9$inboundSchema.parse(JSON.parse(x)),
2924
- `Failed to parse 'Tools9' from JSON`,
2925
- );
2926
- }
2927
-
2928
- /** @internal */
2929
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema:
2930
- z.ZodNativeEnum<
2931
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings8Type
2932
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings8Type);
2933
-
2934
- /** @internal */
2935
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema:
2936
- z.ZodNativeEnum<
2937
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings8Type
2938
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
2939
-
2940
- /**
2941
- * @internal
2942
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2943
- */
2944
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$ {
2945
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema` instead. */
2946
- export const inboundSchema =
2947
- StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
2948
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema` instead. */
2949
- export const outboundSchema =
2950
- StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema;
2951
- }
2952
-
2953
- /** @internal */
2954
- export const Tools8$inboundSchema: z.ZodType<Tools8, z.ZodTypeDef, unknown> = z
2955
- .object({
2956
- type:
2957
- StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema,
2958
- requires_approval: z.boolean().default(false),
2959
- }).transform((v) => {
2960
- return remap$(v, {
2961
- "requires_approval": "requiresApproval",
2962
- });
2963
- });
2964
-
2965
- /** @internal */
2966
- export type Tools8$Outbound = {
2967
- type: string;
2968
- requires_approval: boolean;
2969
- };
2970
-
2971
- /** @internal */
2972
- export const Tools8$outboundSchema: z.ZodType<
2973
- Tools8$Outbound,
2974
- z.ZodTypeDef,
2975
- Tools8
2976
- > = z.object({
2977
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema,
2978
- requiresApproval: z.boolean().default(false),
2979
- }).transform((v) => {
2980
- return remap$(v, {
2981
- requiresApproval: "requires_approval",
2982
- });
2983
- });
2984
-
2985
- /**
2986
- * @internal
2987
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2988
- */
2989
- export namespace Tools8$ {
2990
- /** @deprecated use `Tools8$inboundSchema` instead. */
2991
- export const inboundSchema = Tools8$inboundSchema;
2992
- /** @deprecated use `Tools8$outboundSchema` instead. */
2993
- export const outboundSchema = Tools8$outboundSchema;
2994
- /** @deprecated use `Tools8$Outbound` instead. */
2995
- export type Outbound = Tools8$Outbound;
2996
- }
2997
-
2998
- export function tools8ToJSON(tools8: Tools8): string {
2999
- return JSON.stringify(Tools8$outboundSchema.parse(tools8));
3000
- }
3001
-
3002
- export function tools8FromJSON(
3003
- jsonString: string,
3004
- ): SafeParseResult<Tools8, SDKValidationError> {
3005
- return safeParse(
3006
- jsonString,
3007
- (x) => Tools8$inboundSchema.parse(JSON.parse(x)),
3008
- `Failed to parse 'Tools8' from JSON`,
3009
- );
3010
- }
3011
-
3012
- /** @internal */
3013
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema:
3014
- z.ZodNativeEnum<
3015
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings7Type
3016
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings7Type);
3017
-
3018
- /** @internal */
3019
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema:
3020
- z.ZodNativeEnum<
3021
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings7Type
3022
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
3023
-
3024
- /**
3025
- * @internal
3026
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3027
- */
3028
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$ {
3029
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema` instead. */
3030
- export const inboundSchema =
3031
- StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
3032
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema` instead. */
3033
- export const outboundSchema =
3034
- StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema;
3035
- }
3036
-
3037
- /** @internal */
3038
- export const Tools7$inboundSchema: z.ZodType<Tools7, z.ZodTypeDef, unknown> = z
3039
- .object({
3040
- type:
3041
- StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema,
3042
- requires_approval: z.boolean().default(false),
3043
- }).transform((v) => {
3044
- return remap$(v, {
3045
- "requires_approval": "requiresApproval",
3046
- });
3047
- });
3048
-
3049
- /** @internal */
3050
- export type Tools7$Outbound = {
3051
- type: string;
3052
- requires_approval: boolean;
3053
- };
3054
-
3055
- /** @internal */
3056
- export const Tools7$outboundSchema: z.ZodType<
3057
- Tools7$Outbound,
3058
- z.ZodTypeDef,
3059
- Tools7
3060
- > = z.object({
3061
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema,
3062
- requiresApproval: z.boolean().default(false),
3063
- }).transform((v) => {
3064
- return remap$(v, {
3065
- requiresApproval: "requires_approval",
3066
- });
3067
- });
3068
-
3069
- /**
3070
- * @internal
3071
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3072
- */
3073
- export namespace Tools7$ {
3074
- /** @deprecated use `Tools7$inboundSchema` instead. */
3075
- export const inboundSchema = Tools7$inboundSchema;
3076
- /** @deprecated use `Tools7$outboundSchema` instead. */
3077
- export const outboundSchema = Tools7$outboundSchema;
3078
- /** @deprecated use `Tools7$Outbound` instead. */
3079
- export type Outbound = Tools7$Outbound;
3080
- }
3081
-
3082
- export function tools7ToJSON(tools7: Tools7): string {
3083
- return JSON.stringify(Tools7$outboundSchema.parse(tools7));
3084
- }
3085
-
3086
- export function tools7FromJSON(
3087
- jsonString: string,
3088
- ): SafeParseResult<Tools7, SDKValidationError> {
3089
- return safeParse(
3090
- jsonString,
3091
- (x) => Tools7$inboundSchema.parse(JSON.parse(x)),
3092
- `Failed to parse 'Tools7' from JSON`,
3093
- );
3094
- }
3095
-
3096
- /** @internal */
3097
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema:
3098
- z.ZodNativeEnum<
3099
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings6Type
3100
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings6Type);
3101
-
3102
- /** @internal */
3103
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema:
3104
- z.ZodNativeEnum<
3105
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings6Type
3106
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema;
3107
-
3108
- /**
3109
- * @internal
3110
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3111
- */
3112
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$ {
3113
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema` instead. */
3114
- export const inboundSchema =
3115
- StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema;
3116
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema` instead. */
3117
- export const outboundSchema =
3118
- StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema;
3119
- }
3120
-
3121
- /** @internal */
3122
- export const Tools6$inboundSchema: z.ZodType<Tools6, z.ZodTypeDef, unknown> = z
3123
- .object({
3124
- type:
3125
- StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema,
3126
- requires_approval: z.boolean().default(false),
3127
- }).transform((v) => {
3128
- return remap$(v, {
3129
- "requires_approval": "requiresApproval",
3130
- });
3131
- });
3132
-
3133
- /** @internal */
3134
- export type Tools6$Outbound = {
3135
- type: string;
3136
- requires_approval: boolean;
3137
- };
3138
-
3139
- /** @internal */
3140
- export const Tools6$outboundSchema: z.ZodType<
3141
- Tools6$Outbound,
3142
- z.ZodTypeDef,
3143
- Tools6
3144
- > = z.object({
3145
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema,
3146
- requiresApproval: z.boolean().default(false),
3147
- }).transform((v) => {
3148
- return remap$(v, {
3149
- requiresApproval: "requires_approval",
3150
- });
3151
- });
3152
-
3153
- /**
3154
- * @internal
3155
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3156
- */
3157
- export namespace Tools6$ {
3158
- /** @deprecated use `Tools6$inboundSchema` instead. */
3159
- export const inboundSchema = Tools6$inboundSchema;
3160
- /** @deprecated use `Tools6$outboundSchema` instead. */
3161
- export const outboundSchema = Tools6$outboundSchema;
3162
- /** @deprecated use `Tools6$Outbound` instead. */
3163
- export type Outbound = Tools6$Outbound;
3164
- }
3165
-
3166
- export function tools6ToJSON(tools6: Tools6): string {
3167
- return JSON.stringify(Tools6$outboundSchema.parse(tools6));
3168
- }
3169
-
3170
- export function tools6FromJSON(
3171
- jsonString: string,
3172
- ): SafeParseResult<Tools6, SDKValidationError> {
3173
- return safeParse(
3174
- jsonString,
3175
- (x) => Tools6$inboundSchema.parse(JSON.parse(x)),
3176
- `Failed to parse 'Tools6' from JSON`,
3177
- );
3178
- }
3179
-
3180
- /** @internal */
3181
- export const StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema:
3182
- z.ZodNativeEnum<
3183
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettingsType
3184
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettingsType);
3185
-
3186
- /** @internal */
3187
- export const StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema:
3188
- z.ZodNativeEnum<
3189
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettingsType
3190
- > = StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
3191
-
3192
- /**
3193
- * @internal
3194
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3195
- */
3196
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettingsType$ {
3197
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3198
- export const inboundSchema =
3199
- StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
3200
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3201
- export const outboundSchema =
3202
- StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema;
3203
- }
3204
-
3205
- /** @internal */
3206
- export const StreamRunAgentTools5$inboundSchema: z.ZodType<
3207
- StreamRunAgentTools5,
3208
- z.ZodTypeDef,
3209
- unknown
3210
- > = z.object({
3211
- type: StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema,
3212
- requires_approval: z.boolean().default(false),
3213
- }).transform((v) => {
3214
- return remap$(v, {
3215
- "requires_approval": "requiresApproval",
3216
- });
3217
- });
3218
-
3219
- /** @internal */
3220
- export type StreamRunAgentTools5$Outbound = {
3221
- type: string;
3222
- requires_approval: boolean;
3223
- };
3224
-
3225
- /** @internal */
3226
- export const StreamRunAgentTools5$outboundSchema: z.ZodType<
3227
- StreamRunAgentTools5$Outbound,
3228
- z.ZodTypeDef,
3229
- StreamRunAgentTools5
3230
- > = z.object({
3231
- type: StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema,
3232
- requiresApproval: z.boolean().default(false),
3233
- }).transform((v) => {
3234
- return remap$(v, {
3235
- requiresApproval: "requires_approval",
3236
- });
3237
- });
3238
-
3239
- /**
3240
- * @internal
3241
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3242
- */
3243
- export namespace StreamRunAgentTools5$ {
3244
- /** @deprecated use `StreamRunAgentTools5$inboundSchema` instead. */
3245
- export const inboundSchema = StreamRunAgentTools5$inboundSchema;
3246
- /** @deprecated use `StreamRunAgentTools5$outboundSchema` instead. */
3247
- export const outboundSchema = StreamRunAgentTools5$outboundSchema;
3248
- /** @deprecated use `StreamRunAgentTools5$Outbound` instead. */
3249
- export type Outbound = StreamRunAgentTools5$Outbound;
3250
- }
3251
-
3252
- export function streamRunAgentTools5ToJSON(
3253
- streamRunAgentTools5: StreamRunAgentTools5,
3254
- ): string {
3255
- return JSON.stringify(
3256
- StreamRunAgentTools5$outboundSchema.parse(streamRunAgentTools5),
3257
- );
3258
- }
3259
-
3260
- export function streamRunAgentTools5FromJSON(
3261
- jsonString: string,
3262
- ): SafeParseResult<StreamRunAgentTools5, SDKValidationError> {
3263
- return safeParse(
3264
- jsonString,
3265
- (x) => StreamRunAgentTools5$inboundSchema.parse(JSON.parse(x)),
3266
- `Failed to parse 'StreamRunAgentTools5' from JSON`,
3267
- );
3268
- }
3269
-
3270
- /** @internal */
3271
- export const StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema:
3272
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodyType> = z
3273
- .nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodyType);
3274
-
3275
- /** @internal */
3276
- export const StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema:
3277
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodyType> =
3278
- StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
3279
-
3280
- /**
3281
- * @internal
3282
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3283
- */
3284
- export namespace StreamRunAgentToolsAgentsRequestRequestBodyType$ {
3285
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema` instead. */
3286
- export const inboundSchema =
3287
- StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
3288
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema` instead. */
3289
- export const outboundSchema =
3290
- StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema;
3291
- }
3292
-
3293
- /** @internal */
3294
- export const StreamRunAgentTools4$inboundSchema: z.ZodType<
3295
- StreamRunAgentTools4,
3296
- z.ZodTypeDef,
3297
- unknown
3298
- > = z.object({
3299
- type: StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema,
3300
- requires_approval: z.boolean().default(false),
3301
- }).transform((v) => {
3302
- return remap$(v, {
3303
- "requires_approval": "requiresApproval",
3304
- });
3305
- });
3306
-
3307
- /** @internal */
3308
- export type StreamRunAgentTools4$Outbound = {
3309
- type: string;
3310
- requires_approval: boolean;
3311
- };
3312
-
3313
- /** @internal */
3314
- export const StreamRunAgentTools4$outboundSchema: z.ZodType<
3315
- StreamRunAgentTools4$Outbound,
3316
- z.ZodTypeDef,
3317
- StreamRunAgentTools4
3318
- > = z.object({
3319
- type: StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema,
3320
- requiresApproval: z.boolean().default(false),
3321
- }).transform((v) => {
3322
- return remap$(v, {
3323
- requiresApproval: "requires_approval",
3324
- });
3325
- });
3326
-
3327
- /**
3328
- * @internal
3329
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3330
- */
3331
- export namespace StreamRunAgentTools4$ {
3332
- /** @deprecated use `StreamRunAgentTools4$inboundSchema` instead. */
3333
- export const inboundSchema = StreamRunAgentTools4$inboundSchema;
3334
- /** @deprecated use `StreamRunAgentTools4$outboundSchema` instead. */
3335
- export const outboundSchema = StreamRunAgentTools4$outboundSchema;
3336
- /** @deprecated use `StreamRunAgentTools4$Outbound` instead. */
3337
- export type Outbound = StreamRunAgentTools4$Outbound;
3338
- }
3339
-
3340
- export function streamRunAgentTools4ToJSON(
3341
- streamRunAgentTools4: StreamRunAgentTools4,
3342
- ): string {
3343
- return JSON.stringify(
3344
- StreamRunAgentTools4$outboundSchema.parse(streamRunAgentTools4),
3345
- );
3346
- }
3347
-
3348
- export function streamRunAgentTools4FromJSON(
3349
- jsonString: string,
3350
- ): SafeParseResult<StreamRunAgentTools4, SDKValidationError> {
3351
- return safeParse(
3352
- jsonString,
3353
- (x) => StreamRunAgentTools4$inboundSchema.parse(JSON.parse(x)),
3354
- `Failed to parse 'StreamRunAgentTools4' from JSON`,
3355
- );
3356
- }
3357
-
3358
- /** @internal */
3359
- export const StreamRunAgentToolsAgentsRequestType$inboundSchema:
3360
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestType> = z.nativeEnum(
3361
- StreamRunAgentToolsAgentsRequestType,
3362
- );
3363
-
3364
- /** @internal */
3365
- export const StreamRunAgentToolsAgentsRequestType$outboundSchema:
3366
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestType> =
3367
- StreamRunAgentToolsAgentsRequestType$inboundSchema;
3368
-
3369
- /**
3370
- * @internal
3371
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3372
- */
3373
- export namespace StreamRunAgentToolsAgentsRequestType$ {
3374
- /** @deprecated use `StreamRunAgentToolsAgentsRequestType$inboundSchema` instead. */
3375
- export const inboundSchema =
3376
- StreamRunAgentToolsAgentsRequestType$inboundSchema;
3377
- /** @deprecated use `StreamRunAgentToolsAgentsRequestType$outboundSchema` instead. */
3378
- export const outboundSchema =
3379
- StreamRunAgentToolsAgentsRequestType$outboundSchema;
3380
- }
3381
-
3382
- /** @internal */
3383
- export const StreamRunAgentTools3$inboundSchema: z.ZodType<
3384
- StreamRunAgentTools3,
3385
- z.ZodTypeDef,
3386
- unknown
3387
- > = z.object({
3388
- type: StreamRunAgentToolsAgentsRequestType$inboundSchema,
3389
- requires_approval: z.boolean().default(false),
3390
- }).transform((v) => {
3391
- return remap$(v, {
3392
- "requires_approval": "requiresApproval",
3393
- });
3394
- });
3395
-
3396
- /** @internal */
3397
- export type StreamRunAgentTools3$Outbound = {
3398
- type: string;
3399
- requires_approval: boolean;
3400
- };
3401
-
3402
- /** @internal */
3403
- export const StreamRunAgentTools3$outboundSchema: z.ZodType<
3404
- StreamRunAgentTools3$Outbound,
3405
- z.ZodTypeDef,
3406
- StreamRunAgentTools3
3407
- > = z.object({
3408
- type: StreamRunAgentToolsAgentsRequestType$outboundSchema,
3409
- requiresApproval: z.boolean().default(false),
3410
- }).transform((v) => {
3411
- return remap$(v, {
3412
- requiresApproval: "requires_approval",
3413
- });
3414
- });
3415
-
3416
- /**
3417
- * @internal
3418
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3419
- */
3420
- export namespace StreamRunAgentTools3$ {
3421
- /** @deprecated use `StreamRunAgentTools3$inboundSchema` instead. */
3422
- export const inboundSchema = StreamRunAgentTools3$inboundSchema;
3423
- /** @deprecated use `StreamRunAgentTools3$outboundSchema` instead. */
3424
- export const outboundSchema = StreamRunAgentTools3$outboundSchema;
3425
- /** @deprecated use `StreamRunAgentTools3$Outbound` instead. */
3426
- export type Outbound = StreamRunAgentTools3$Outbound;
3427
- }
3428
-
3429
- export function streamRunAgentTools3ToJSON(
3430
- streamRunAgentTools3: StreamRunAgentTools3,
3431
- ): string {
3432
- return JSON.stringify(
3433
- StreamRunAgentTools3$outboundSchema.parse(streamRunAgentTools3),
3434
- );
3435
- }
3436
-
3437
- export function streamRunAgentTools3FromJSON(
3438
- jsonString: string,
3439
- ): SafeParseResult<StreamRunAgentTools3, SDKValidationError> {
3440
- return safeParse(
3441
- jsonString,
3442
- (x) => StreamRunAgentTools3$inboundSchema.parse(JSON.parse(x)),
3443
- `Failed to parse 'StreamRunAgentTools3' from JSON`,
3444
- );
3445
- }
3446
-
3447
- /** @internal */
3448
- export const StreamRunAgentToolsAgentsType$inboundSchema: z.ZodNativeEnum<
3449
- typeof StreamRunAgentToolsAgentsType
3450
- > = z.nativeEnum(StreamRunAgentToolsAgentsType);
3451
-
3452
- /** @internal */
3453
- export const StreamRunAgentToolsAgentsType$outboundSchema: z.ZodNativeEnum<
3454
- typeof StreamRunAgentToolsAgentsType
3455
- > = StreamRunAgentToolsAgentsType$inboundSchema;
3456
-
3457
- /**
3458
- * @internal
3459
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3460
- */
3461
- export namespace StreamRunAgentToolsAgentsType$ {
3462
- /** @deprecated use `StreamRunAgentToolsAgentsType$inboundSchema` instead. */
3463
- export const inboundSchema = StreamRunAgentToolsAgentsType$inboundSchema;
3464
- /** @deprecated use `StreamRunAgentToolsAgentsType$outboundSchema` instead. */
3465
- export const outboundSchema = StreamRunAgentToolsAgentsType$outboundSchema;
3466
- }
3467
-
3468
- /** @internal */
3469
- export const StreamRunAgentTools2$inboundSchema: z.ZodType<
3470
- StreamRunAgentTools2,
3471
- z.ZodTypeDef,
3472
- unknown
3473
- > = z.object({
3474
- type: StreamRunAgentToolsAgentsType$inboundSchema,
3475
- requires_approval: z.boolean().default(false),
3476
- }).transform((v) => {
3477
- return remap$(v, {
3478
- "requires_approval": "requiresApproval",
3479
- });
3480
- });
3481
-
3482
- /** @internal */
3483
- export type StreamRunAgentTools2$Outbound = {
3484
- type: string;
3485
- requires_approval: boolean;
3486
- };
3487
-
3488
- /** @internal */
3489
- export const StreamRunAgentTools2$outboundSchema: z.ZodType<
3490
- StreamRunAgentTools2$Outbound,
3491
- z.ZodTypeDef,
3492
- StreamRunAgentTools2
3493
- > = z.object({
3494
- type: StreamRunAgentToolsAgentsType$outboundSchema,
3495
- requiresApproval: z.boolean().default(false),
3496
- }).transform((v) => {
3497
- return remap$(v, {
3498
- requiresApproval: "requires_approval",
3499
- });
3500
- });
3501
-
3502
- /**
3503
- * @internal
3504
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3505
- */
3506
- export namespace StreamRunAgentTools2$ {
3507
- /** @deprecated use `StreamRunAgentTools2$inboundSchema` instead. */
3508
- export const inboundSchema = StreamRunAgentTools2$inboundSchema;
3509
- /** @deprecated use `StreamRunAgentTools2$outboundSchema` instead. */
3510
- export const outboundSchema = StreamRunAgentTools2$outboundSchema;
3511
- /** @deprecated use `StreamRunAgentTools2$Outbound` instead. */
3512
- export type Outbound = StreamRunAgentTools2$Outbound;
3513
- }
3514
-
3515
- export function streamRunAgentTools2ToJSON(
3516
- streamRunAgentTools2: StreamRunAgentTools2,
3517
- ): string {
3518
- return JSON.stringify(
3519
- StreamRunAgentTools2$outboundSchema.parse(streamRunAgentTools2),
3520
- );
3521
- }
3522
-
3523
- export function streamRunAgentTools2FromJSON(
3524
- jsonString: string,
3525
- ): SafeParseResult<StreamRunAgentTools2, SDKValidationError> {
3526
- return safeParse(
3527
- jsonString,
3528
- (x) => StreamRunAgentTools2$inboundSchema.parse(JSON.parse(x)),
3529
- `Failed to parse 'StreamRunAgentTools2' from JSON`,
3530
- );
3531
- }
3532
-
3533
- /** @internal */
3534
- export const StreamRunAgentToolsType$inboundSchema: z.ZodNativeEnum<
3535
- typeof StreamRunAgentToolsType
3536
- > = z.nativeEnum(StreamRunAgentToolsType);
3537
-
3538
- /** @internal */
3539
- export const StreamRunAgentToolsType$outboundSchema: z.ZodNativeEnum<
3540
- typeof StreamRunAgentToolsType
3541
- > = StreamRunAgentToolsType$inboundSchema;
3542
-
3543
- /**
3544
- * @internal
3545
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3546
- */
3547
- export namespace StreamRunAgentToolsType$ {
3548
- /** @deprecated use `StreamRunAgentToolsType$inboundSchema` instead. */
3549
- export const inboundSchema = StreamRunAgentToolsType$inboundSchema;
3550
- /** @deprecated use `StreamRunAgentToolsType$outboundSchema` instead. */
3551
- export const outboundSchema = StreamRunAgentToolsType$outboundSchema;
3552
- }
3553
-
3554
- /** @internal */
3555
- export const StreamRunAgentTools1$inboundSchema: z.ZodType<
3556
- StreamRunAgentTools1,
3557
- z.ZodTypeDef,
3558
- unknown
3559
- > = z.object({
3560
- type: StreamRunAgentToolsType$inboundSchema,
3561
- requires_approval: z.boolean().default(false),
3562
- }).transform((v) => {
3563
- return remap$(v, {
3564
- "requires_approval": "requiresApproval",
3565
- });
3566
- });
3567
-
3568
- /** @internal */
3569
- export type StreamRunAgentTools1$Outbound = {
3570
- type: string;
3571
- requires_approval: boolean;
3572
- };
3573
-
3574
- /** @internal */
3575
- export const StreamRunAgentTools1$outboundSchema: z.ZodType<
3576
- StreamRunAgentTools1$Outbound,
3577
- z.ZodTypeDef,
3578
- StreamRunAgentTools1
3579
- > = z.object({
3580
- type: StreamRunAgentToolsType$outboundSchema,
3581
- requiresApproval: z.boolean().default(false),
3582
- }).transform((v) => {
3583
- return remap$(v, {
3584
- requiresApproval: "requires_approval",
3585
- });
3586
- });
3587
-
3588
- /**
3589
- * @internal
3590
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3591
- */
3592
- export namespace StreamRunAgentTools1$ {
3593
- /** @deprecated use `StreamRunAgentTools1$inboundSchema` instead. */
3594
- export const inboundSchema = StreamRunAgentTools1$inboundSchema;
3595
- /** @deprecated use `StreamRunAgentTools1$outboundSchema` instead. */
3596
- export const outboundSchema = StreamRunAgentTools1$outboundSchema;
3597
- /** @deprecated use `StreamRunAgentTools1$Outbound` instead. */
3598
- export type Outbound = StreamRunAgentTools1$Outbound;
3599
- }
3600
-
3601
- export function streamRunAgentTools1ToJSON(
3602
- streamRunAgentTools1: StreamRunAgentTools1,
3603
- ): string {
3604
- return JSON.stringify(
3605
- StreamRunAgentTools1$outboundSchema.parse(streamRunAgentTools1),
3606
- );
3607
- }
3608
-
3609
- export function streamRunAgentTools1FromJSON(
3610
- jsonString: string,
3611
- ): SafeParseResult<StreamRunAgentTools1, SDKValidationError> {
3612
- return safeParse(
3613
- jsonString,
3614
- (x) => StreamRunAgentTools1$inboundSchema.parse(JSON.parse(x)),
3615
- `Failed to parse 'StreamRunAgentTools1' from JSON`,
2352
+ (x) => Tools24$inboundSchema.parse(JSON.parse(x)),
2353
+ `Failed to parse 'Tools24' from JSON`,
3616
2354
  );
3617
2355
  }
3618
2356
 
@@ -3622,36 +2360,90 @@ export const StreamRunAgentTools$inboundSchema: z.ZodType<
3622
2360
  z.ZodTypeDef,
3623
2361
  unknown
3624
2362
  > = z.union([
3625
- z.lazy(() => Tools12$inboundSchema),
3626
- z.lazy(() => Tools13$inboundSchema),
3627
- z.lazy(() => StreamRunAgentTools1$inboundSchema),
3628
- z.lazy(() => StreamRunAgentTools2$inboundSchema),
3629
- z.lazy(() => StreamRunAgentTools3$inboundSchema),
3630
- z.lazy(() => StreamRunAgentTools4$inboundSchema),
3631
- z.lazy(() => StreamRunAgentTools5$inboundSchema),
3632
- z.lazy(() => Tools6$inboundSchema),
3633
- z.lazy(() => Tools7$inboundSchema),
3634
- z.lazy(() => Tools8$inboundSchema),
3635
- z.lazy(() => Tools9$inboundSchema),
3636
- z.lazy(() => Tools10$inboundSchema),
3637
- z.lazy(() => Tools11$inboundSchema),
2363
+ components.HttpTool$inboundSchema.and(
2364
+ z.object({ type: z.literal("http") }).transform((v) => ({ type: v.type })),
2365
+ ),
2366
+ components.CodeExecutionTool$inboundSchema.and(
2367
+ z.object({ type: z.literal("code") }).transform((v) => ({ type: v.type })),
2368
+ ),
2369
+ components.FunctionTool$inboundSchema.and(
2370
+ z.object({ type: z.literal("function") }).transform((v) => ({
2371
+ type: v.type,
2372
+ })),
2373
+ ),
2374
+ components.GoogleSearchTool$inboundSchema.and(
2375
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2376
+ type: v.type,
2377
+ })),
2378
+ ),
2379
+ components.WebScraperTool$inboundSchema.and(
2380
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2381
+ type: v.type,
2382
+ })),
2383
+ ),
2384
+ components.CallSubAgentTool$inboundSchema.and(
2385
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2386
+ type: v.type,
2387
+ })),
2388
+ ),
2389
+ components.RetrieveAgentsTool$inboundSchema.and(
2390
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2391
+ type: v.type,
2392
+ })),
2393
+ ),
2394
+ components.QueryMemoryStoreTool$inboundSchema.and(
2395
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2396
+ type: v.type,
2397
+ })),
2398
+ ),
2399
+ components.WriteMemoryStoreTool$inboundSchema.and(
2400
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2401
+ type: v.type,
2402
+ })),
2403
+ ),
2404
+ components.RetrieveMemoryStoresTool$inboundSchema.and(
2405
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((v) => ({
2406
+ type: v.type,
2407
+ })),
2408
+ ),
2409
+ components.RetrieveKnowledgeBasesTool$inboundSchema.and(
2410
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2411
+ v,
2412
+ ) => ({ type: v.type })),
2413
+ ),
2414
+ components.QueryKnowledgeBaseTool$inboundSchema.and(
2415
+ z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
2416
+ type: v.type,
2417
+ })),
2418
+ ),
2419
+ components.CurrentDateTool$inboundSchema.and(
2420
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2421
+ type: v.type,
2422
+ })),
2423
+ ),
3638
2424
  ]);
3639
2425
 
3640
2426
  /** @internal */
3641
2427
  export type StreamRunAgentTools$Outbound =
3642
- | Tools12$Outbound
3643
- | Tools13$Outbound
3644
- | StreamRunAgentTools1$Outbound
3645
- | StreamRunAgentTools2$Outbound
3646
- | StreamRunAgentTools3$Outbound
3647
- | StreamRunAgentTools4$Outbound
3648
- | StreamRunAgentTools5$Outbound
3649
- | Tools6$Outbound
3650
- | Tools7$Outbound
3651
- | Tools8$Outbound
3652
- | Tools9$Outbound
3653
- | Tools10$Outbound
3654
- | Tools11$Outbound;
2428
+ | (components.HttpTool$Outbound & { type: "http" })
2429
+ | (components.CodeExecutionTool$Outbound & { type: "code" })
2430
+ | (components.FunctionTool$Outbound & { type: "function" })
2431
+ | (components.GoogleSearchTool$Outbound & { type: "google_search" })
2432
+ | (components.WebScraperTool$Outbound & { type: "web_scraper" })
2433
+ | (components.CallSubAgentTool$Outbound & { type: "call_sub_agent" })
2434
+ | (components.RetrieveAgentsTool$Outbound & { type: "retrieve_agents" })
2435
+ | (components.QueryMemoryStoreTool$Outbound & { type: "query_memory_store" })
2436
+ | (components.WriteMemoryStoreTool$Outbound & { type: "write_memory_store" })
2437
+ | (components.RetrieveMemoryStoresTool$Outbound & {
2438
+ type: "retrieve_memory_stores";
2439
+ })
2440
+ | (components.RetrieveKnowledgeBasesTool$Outbound & {
2441
+ type: "retrieve_knowledge_bases";
2442
+ })
2443
+ | (components.QueryKnowledgeBaseTool$Outbound & {
2444
+ type: "query_knowledge_base";
2445
+ })
2446
+ | (components.CurrentDateTool$Outbound & { type: "current_date" });
3655
2447
 
3656
2448
  /** @internal */
3657
2449
  export const StreamRunAgentTools$outboundSchema: z.ZodType<
@@ -3659,19 +2451,67 @@ export const StreamRunAgentTools$outboundSchema: z.ZodType<
3659
2451
  z.ZodTypeDef,
3660
2452
  StreamRunAgentTools
3661
2453
  > = z.union([
3662
- z.lazy(() => Tools12$outboundSchema),
3663
- z.lazy(() => Tools13$outboundSchema),
3664
- z.lazy(() => StreamRunAgentTools1$outboundSchema),
3665
- z.lazy(() => StreamRunAgentTools2$outboundSchema),
3666
- z.lazy(() => StreamRunAgentTools3$outboundSchema),
3667
- z.lazy(() => StreamRunAgentTools4$outboundSchema),
3668
- z.lazy(() => StreamRunAgentTools5$outboundSchema),
3669
- z.lazy(() => Tools6$outboundSchema),
3670
- z.lazy(() => Tools7$outboundSchema),
3671
- z.lazy(() => Tools8$outboundSchema),
3672
- z.lazy(() => Tools9$outboundSchema),
3673
- z.lazy(() => Tools10$outboundSchema),
3674
- z.lazy(() => Tools11$outboundSchema),
2454
+ components.HttpTool$outboundSchema.and(
2455
+ z.object({ type: z.literal("http") }).transform((v) => ({ type: v.type })),
2456
+ ),
2457
+ components.CodeExecutionTool$outboundSchema.and(
2458
+ z.object({ type: z.literal("code") }).transform((v) => ({ type: v.type })),
2459
+ ),
2460
+ components.FunctionTool$outboundSchema.and(
2461
+ z.object({ type: z.literal("function") }).transform((v) => ({
2462
+ type: v.type,
2463
+ })),
2464
+ ),
2465
+ components.GoogleSearchTool$outboundSchema.and(
2466
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2467
+ type: v.type,
2468
+ })),
2469
+ ),
2470
+ components.WebScraperTool$outboundSchema.and(
2471
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2472
+ type: v.type,
2473
+ })),
2474
+ ),
2475
+ components.CallSubAgentTool$outboundSchema.and(
2476
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2477
+ type: v.type,
2478
+ })),
2479
+ ),
2480
+ components.RetrieveAgentsTool$outboundSchema.and(
2481
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2482
+ type: v.type,
2483
+ })),
2484
+ ),
2485
+ components.QueryMemoryStoreTool$outboundSchema.and(
2486
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2487
+ type: v.type,
2488
+ })),
2489
+ ),
2490
+ components.WriteMemoryStoreTool$outboundSchema.and(
2491
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2492
+ type: v.type,
2493
+ })),
2494
+ ),
2495
+ components.RetrieveMemoryStoresTool$outboundSchema.and(
2496
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((v) => ({
2497
+ type: v.type,
2498
+ })),
2499
+ ),
2500
+ components.RetrieveKnowledgeBasesTool$outboundSchema.and(
2501
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2502
+ v,
2503
+ ) => ({ type: v.type })),
2504
+ ),
2505
+ components.QueryKnowledgeBaseTool$outboundSchema.and(
2506
+ z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
2507
+ type: v.type,
2508
+ })),
2509
+ ),
2510
+ components.CurrentDateTool$outboundSchema.and(
2511
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2512
+ type: v.type,
2513
+ })),
2514
+ ),
3675
2515
  ]);
3676
2516
 
3677
2517
  /**
@@ -3735,19 +2575,71 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
3735
2575
  > = z.object({
3736
2576
  tools: z.array(
3737
2577
  z.union([
3738
- z.lazy(() => Tools12$inboundSchema),
3739
- z.lazy(() => Tools13$inboundSchema),
3740
- z.lazy(() => StreamRunAgentTools1$inboundSchema),
3741
- z.lazy(() => StreamRunAgentTools2$inboundSchema),
3742
- z.lazy(() => StreamRunAgentTools3$inboundSchema),
3743
- z.lazy(() => StreamRunAgentTools4$inboundSchema),
3744
- z.lazy(() => StreamRunAgentTools5$inboundSchema),
3745
- z.lazy(() => Tools6$inboundSchema),
3746
- z.lazy(() => Tools7$inboundSchema),
3747
- z.lazy(() => Tools8$inboundSchema),
3748
- z.lazy(() => Tools9$inboundSchema),
3749
- z.lazy(() => Tools10$inboundSchema),
3750
- z.lazy(() => Tools11$inboundSchema),
2578
+ components.HttpTool$inboundSchema.and(
2579
+ z.object({ type: z.literal("http") }).transform((v) => ({
2580
+ type: v.type,
2581
+ })),
2582
+ ),
2583
+ components.CodeExecutionTool$inboundSchema.and(
2584
+ z.object({ type: z.literal("code") }).transform((v) => ({
2585
+ type: v.type,
2586
+ })),
2587
+ ),
2588
+ components.FunctionTool$inboundSchema.and(
2589
+ z.object({ type: z.literal("function") }).transform((v) => ({
2590
+ type: v.type,
2591
+ })),
2592
+ ),
2593
+ components.GoogleSearchTool$inboundSchema.and(
2594
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2595
+ type: v.type,
2596
+ })),
2597
+ ),
2598
+ components.WebScraperTool$inboundSchema.and(
2599
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2600
+ type: v.type,
2601
+ })),
2602
+ ),
2603
+ components.CallSubAgentTool$inboundSchema.and(
2604
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2605
+ type: v.type,
2606
+ })),
2607
+ ),
2608
+ components.RetrieveAgentsTool$inboundSchema.and(
2609
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2610
+ type: v.type,
2611
+ })),
2612
+ ),
2613
+ components.QueryMemoryStoreTool$inboundSchema.and(
2614
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2615
+ type: v.type,
2616
+ })),
2617
+ ),
2618
+ components.WriteMemoryStoreTool$inboundSchema.and(
2619
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2620
+ type: v.type,
2621
+ })),
2622
+ ),
2623
+ components.RetrieveMemoryStoresTool$inboundSchema.and(
2624
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((
2625
+ v,
2626
+ ) => ({ type: v.type })),
2627
+ ),
2628
+ components.RetrieveKnowledgeBasesTool$inboundSchema.and(
2629
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2630
+ v,
2631
+ ) => ({ type: v.type })),
2632
+ ),
2633
+ components.QueryKnowledgeBaseTool$inboundSchema.and(
2634
+ z.object({ type: z.literal("query_knowledge_base") }).transform((
2635
+ v,
2636
+ ) => ({ type: v.type })),
2637
+ ),
2638
+ components.CurrentDateTool$inboundSchema.and(
2639
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2640
+ type: v.type,
2641
+ })),
2642
+ ),
3751
2643
  ]),
3752
2644
  ),
3753
2645
  tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
@@ -3765,19 +2657,29 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
3765
2657
  /** @internal */
3766
2658
  export type StreamRunAgentSettings$Outbound = {
3767
2659
  tools: Array<
3768
- | Tools12$Outbound
3769
- | Tools13$Outbound
3770
- | StreamRunAgentTools1$Outbound
3771
- | StreamRunAgentTools2$Outbound
3772
- | StreamRunAgentTools3$Outbound
3773
- | StreamRunAgentTools4$Outbound
3774
- | StreamRunAgentTools5$Outbound
3775
- | Tools6$Outbound
3776
- | Tools7$Outbound
3777
- | Tools8$Outbound
3778
- | Tools9$Outbound
3779
- | Tools10$Outbound
3780
- | Tools11$Outbound
2660
+ | (components.HttpTool$Outbound & { type: "http" })
2661
+ | (components.CodeExecutionTool$Outbound & { type: "code" })
2662
+ | (components.FunctionTool$Outbound & { type: "function" })
2663
+ | (components.GoogleSearchTool$Outbound & { type: "google_search" })
2664
+ | (components.WebScraperTool$Outbound & { type: "web_scraper" })
2665
+ | (components.CallSubAgentTool$Outbound & { type: "call_sub_agent" })
2666
+ | (components.RetrieveAgentsTool$Outbound & { type: "retrieve_agents" })
2667
+ | (components.QueryMemoryStoreTool$Outbound & {
2668
+ type: "query_memory_store";
2669
+ })
2670
+ | (components.WriteMemoryStoreTool$Outbound & {
2671
+ type: "write_memory_store";
2672
+ })
2673
+ | (components.RetrieveMemoryStoresTool$Outbound & {
2674
+ type: "retrieve_memory_stores";
2675
+ })
2676
+ | (components.RetrieveKnowledgeBasesTool$Outbound & {
2677
+ type: "retrieve_knowledge_bases";
2678
+ })
2679
+ | (components.QueryKnowledgeBaseTool$Outbound & {
2680
+ type: "query_knowledge_base";
2681
+ })
2682
+ | (components.CurrentDateTool$Outbound & { type: "current_date" })
3781
2683
  >;
3782
2684
  tool_approval_required: string;
3783
2685
  max_iterations: number;
@@ -3792,19 +2694,71 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
3792
2694
  > = z.object({
3793
2695
  tools: z.array(
3794
2696
  z.union([
3795
- z.lazy(() => Tools12$outboundSchema),
3796
- z.lazy(() => Tools13$outboundSchema),
3797
- z.lazy(() => StreamRunAgentTools1$outboundSchema),
3798
- z.lazy(() => StreamRunAgentTools2$outboundSchema),
3799
- z.lazy(() => StreamRunAgentTools3$outboundSchema),
3800
- z.lazy(() => StreamRunAgentTools4$outboundSchema),
3801
- z.lazy(() => StreamRunAgentTools5$outboundSchema),
3802
- z.lazy(() => Tools6$outboundSchema),
3803
- z.lazy(() => Tools7$outboundSchema),
3804
- z.lazy(() => Tools8$outboundSchema),
3805
- z.lazy(() => Tools9$outboundSchema),
3806
- z.lazy(() => Tools10$outboundSchema),
3807
- z.lazy(() => Tools11$outboundSchema),
2697
+ components.HttpTool$outboundSchema.and(
2698
+ z.object({ type: z.literal("http") }).transform((v) => ({
2699
+ type: v.type,
2700
+ })),
2701
+ ),
2702
+ components.CodeExecutionTool$outboundSchema.and(
2703
+ z.object({ type: z.literal("code") }).transform((v) => ({
2704
+ type: v.type,
2705
+ })),
2706
+ ),
2707
+ components.FunctionTool$outboundSchema.and(
2708
+ z.object({ type: z.literal("function") }).transform((v) => ({
2709
+ type: v.type,
2710
+ })),
2711
+ ),
2712
+ components.GoogleSearchTool$outboundSchema.and(
2713
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2714
+ type: v.type,
2715
+ })),
2716
+ ),
2717
+ components.WebScraperTool$outboundSchema.and(
2718
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2719
+ type: v.type,
2720
+ })),
2721
+ ),
2722
+ components.CallSubAgentTool$outboundSchema.and(
2723
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2724
+ type: v.type,
2725
+ })),
2726
+ ),
2727
+ components.RetrieveAgentsTool$outboundSchema.and(
2728
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2729
+ type: v.type,
2730
+ })),
2731
+ ),
2732
+ components.QueryMemoryStoreTool$outboundSchema.and(
2733
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2734
+ type: v.type,
2735
+ })),
2736
+ ),
2737
+ components.WriteMemoryStoreTool$outboundSchema.and(
2738
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2739
+ type: v.type,
2740
+ })),
2741
+ ),
2742
+ components.RetrieveMemoryStoresTool$outboundSchema.and(
2743
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((
2744
+ v,
2745
+ ) => ({ type: v.type })),
2746
+ ),
2747
+ components.RetrieveKnowledgeBasesTool$outboundSchema.and(
2748
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2749
+ v,
2750
+ ) => ({ type: v.type })),
2751
+ ),
2752
+ components.QueryKnowledgeBaseTool$outboundSchema.and(
2753
+ z.object({ type: z.literal("query_knowledge_base") }).transform((
2754
+ v,
2755
+ ) => ({ type: v.type })),
2756
+ ),
2757
+ components.CurrentDateTool$outboundSchema.and(
2758
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2759
+ type: v.type,
2760
+ })),
2761
+ ),
3808
2762
  ]),
3809
2763
  ),
3810
2764
  toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema
@@ -3878,6 +2832,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
3878
2832
  z.lazy(() => StreamRunAgentTeamOfAgents$inboundSchema),
3879
2833
  ).optional(),
3880
2834
  settings: z.lazy(() => StreamRunAgentSettings$inboundSchema),
2835
+ metadata: z.record(z.any()).optional(),
3881
2836
  stream_timeout_seconds: z.number().optional(),
3882
2837
  }).transform((v) => {
3883
2838
  return remap$(v, {
@@ -3910,6 +2865,7 @@ export type StreamRunAgentRequestBody$Outbound = {
3910
2865
  knowledge_bases?: Array<StreamRunAgentKnowledgeBases$Outbound> | undefined;
3911
2866
  team_of_agents?: Array<StreamRunAgentTeamOfAgents$Outbound> | undefined;
3912
2867
  settings: StreamRunAgentSettings$Outbound;
2868
+ metadata?: { [k: string]: any } | undefined;
3913
2869
  stream_timeout_seconds?: number | undefined;
3914
2870
  };
3915
2871
 
@@ -3940,6 +2896,7 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
3940
2896
  teamOfAgents: z.array(z.lazy(() => StreamRunAgentTeamOfAgents$outboundSchema))
3941
2897
  .optional(),
3942
2898
  settings: z.lazy(() => StreamRunAgentSettings$outboundSchema),
2899
+ metadata: z.record(z.any()).optional(),
3943
2900
  streamTimeoutSeconds: z.number().optional(),
3944
2901
  }).transform((v) => {
3945
2902
  return remap$(v, {