@orq-ai/node 3.12.16 → 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 (159) hide show
  1. package/bin/mcp-server.js +112 -112
  2. package/bin/mcp-server.js.map +30 -30
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +2 -2
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/fileget.js +2 -2
  16. package/models/operations/filelist.js +2 -2
  17. package/models/operations/fileupload.js +2 -2
  18. package/models/operations/getbudget.js +2 -2
  19. package/models/operations/getevals.js +28 -28
  20. package/models/operations/listbudgets.js +2 -2
  21. package/models/operations/listcontacts.js +2 -2
  22. package/models/operations/listdatasetdatapoints.js +2 -2
  23. package/models/operations/listdatasets.js +2 -2
  24. package/models/operations/listdatasources.js +2 -2
  25. package/models/operations/retrievecontact.js +2 -2
  26. package/models/operations/retrievedatapoint.js +2 -2
  27. package/models/operations/retrievedataset.js +2 -2
  28. package/models/operations/retrievedatasource.js +2 -2
  29. package/models/operations/updatebudget.js +2 -2
  30. package/models/operations/updatecontact.js +2 -2
  31. package/models/operations/updatedatapoint.js +2 -2
  32. package/models/operations/updatedataset.js +2 -2
  33. package/models/operations/updatedatasource.js +2 -2
  34. package/models/operations/updateeval.js +16 -16
  35. package/package.json +1 -1
  36. package/packages/orq-rc/README.md +107 -90
  37. package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
  38. package/packages/orq-rc/examples/package-lock.json +1 -1
  39. package/packages/orq-rc/jsr.json +1 -1
  40. package/packages/orq-rc/package-lock.json +2 -2
  41. package/packages/orq-rc/package.json +1 -1
  42. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  43. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  44. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  45. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  46. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  47. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  48. package/packages/orq-rc/src/lib/config.ts +3 -3
  49. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  50. package/packages/orq-rc/src/mcp-server/server.ts +13 -1
  51. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  52. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  53. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  54. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  55. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  56. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  57. package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
  58. package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
  59. package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
  60. package/packages/orq-rc/src/models/components/deployments.ts +52 -45
  61. package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
  62. package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
  63. package/packages/orq-rc/src/models/components/httptool.ts +532 -0
  64. package/packages/orq-rc/src/models/components/index.ts +13 -0
  65. package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
  66. package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
  67. package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
  68. package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
  69. package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
  70. package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
  71. package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
  72. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  73. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  74. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  75. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
  81. package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
  82. package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
  83. package/packages/orq-rc/src/models/operations/createprompt.ts +631 -314
  84. package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
  85. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  86. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
  87. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +362 -194
  88. package/packages/orq-rc/src/models/operations/deployments.ts +329 -160
  89. package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
  90. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
  91. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
  95. package/packages/orq-rc/src/models/operations/getallprompts.ts +333 -168
  96. package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
  97. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  99. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
  100. package/packages/orq-rc/src/models/operations/getoneprompt.ts +329 -167
  101. package/packages/orq-rc/src/models/operations/getpromptversion.ts +337 -168
  102. package/packages/orq-rc/src/models/operations/index.ts +6 -0
  103. package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
  104. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
  107. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
  110. package/packages/orq-rc/src/models/operations/listpromptversions.ts +354 -183
  111. package/packages/orq-rc/src/models/operations/parse.ts +20 -335
  112. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
  114. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
  117. package/packages/orq-rc/src/models/operations/runagent.ts +412 -1375
  118. package/packages/orq-rc/src/models/operations/streamrunagent.ts +399 -1449
  119. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
  122. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
  125. package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
  126. package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
  127. package/packages/orq-rc/src/models/operations/updateprompt.ts +668 -335
  128. package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
  129. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  130. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  131. package/src/lib/config.ts +3 -3
  132. package/src/mcp-server/mcp-server.ts +1 -1
  133. package/src/mcp-server/server.ts +1 -1
  134. package/src/models/operations/createbudget.ts +2 -2
  135. package/src/models/operations/createcontact.ts +2 -2
  136. package/src/models/operations/createdataset.ts +2 -2
  137. package/src/models/operations/createdatasetitem.ts +2 -2
  138. package/src/models/operations/createdatasource.ts +2 -2
  139. package/src/models/operations/createeval.ts +16 -16
  140. package/src/models/operations/fileget.ts +2 -2
  141. package/src/models/operations/filelist.ts +2 -2
  142. package/src/models/operations/fileupload.ts +2 -2
  143. package/src/models/operations/getbudget.ts +2 -2
  144. package/src/models/operations/getevals.ts +28 -28
  145. package/src/models/operations/listbudgets.ts +2 -2
  146. package/src/models/operations/listcontacts.ts +2 -2
  147. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  148. package/src/models/operations/listdatasets.ts +2 -2
  149. package/src/models/operations/listdatasources.ts +2 -2
  150. package/src/models/operations/retrievecontact.ts +2 -2
  151. package/src/models/operations/retrievedatapoint.ts +2 -2
  152. package/src/models/operations/retrievedataset.ts +2 -2
  153. package/src/models/operations/retrievedatasource.ts +2 -2
  154. package/src/models/operations/updatebudget.ts +2 -2
  155. package/src/models/operations/updatecontact.ts +2 -2
  156. package/src/models/operations/updatedatapoint.ts +2 -2
  157. package/src/models/operations/updatedataset.ts +2 -2
  158. package/src/models/operations/updatedatasource.ts +2 -2
  159. 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 = {
@@ -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,12 +365,15 @@ 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.
394
375
  */
395
- path?: string | undefined;
376
+ path: string;
396
377
  /**
397
378
  * Unique key of the tool as it will be displayed in the UI
398
379
  */
@@ -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.
@@ -2094,175 +1957,6 @@ export function streamRunAgentTeamOfAgentsFromJSON(
2094
1957
  );
2095
1958
  }
2096
1959
 
2097
- /** @internal */
2098
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema:
2099
- z.ZodNativeEnum<
2100
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type
2101
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings13Type);
2102
-
2103
- /** @internal */
2104
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema:
2105
- z.ZodNativeEnum<
2106
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings13Type
2107
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
2108
-
2109
- /**
2110
- * @internal
2111
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2112
- */
2113
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$ {
2114
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema` instead. */
2115
- export const inboundSchema =
2116
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
2117
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema` instead. */
2118
- export const outboundSchema =
2119
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema;
2120
- }
2121
-
2122
- /** @internal */
2123
- export const StreamRunAgentToolsFunction$inboundSchema: z.ZodType<
2124
- StreamRunAgentToolsFunction,
2125
- z.ZodTypeDef,
2126
- unknown
2127
- > = z.object({
2128
- name: z.string(),
2129
- description: z.string().optional(),
2130
- strict: z.boolean().optional(),
2131
- parameters: z.record(z.any()).optional(),
2132
- });
2133
-
2134
- /** @internal */
2135
- export type StreamRunAgentToolsFunction$Outbound = {
2136
- name: string;
2137
- description?: string | undefined;
2138
- strict?: boolean | undefined;
2139
- parameters?: { [k: string]: any } | undefined;
2140
- };
2141
-
2142
- /** @internal */
2143
- export const StreamRunAgentToolsFunction$outboundSchema: z.ZodType<
2144
- StreamRunAgentToolsFunction$Outbound,
2145
- z.ZodTypeDef,
2146
- StreamRunAgentToolsFunction
2147
- > = z.object({
2148
- name: z.string(),
2149
- description: z.string().optional(),
2150
- strict: z.boolean().optional(),
2151
- parameters: z.record(z.any()).optional(),
2152
- });
2153
-
2154
- /**
2155
- * @internal
2156
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2157
- */
2158
- export namespace StreamRunAgentToolsFunction$ {
2159
- /** @deprecated use `StreamRunAgentToolsFunction$inboundSchema` instead. */
2160
- export const inboundSchema = StreamRunAgentToolsFunction$inboundSchema;
2161
- /** @deprecated use `StreamRunAgentToolsFunction$outboundSchema` instead. */
2162
- export const outboundSchema = StreamRunAgentToolsFunction$outboundSchema;
2163
- /** @deprecated use `StreamRunAgentToolsFunction$Outbound` instead. */
2164
- export type Outbound = StreamRunAgentToolsFunction$Outbound;
2165
- }
2166
-
2167
- export function streamRunAgentToolsFunctionToJSON(
2168
- streamRunAgentToolsFunction: StreamRunAgentToolsFunction,
2169
- ): string {
2170
- return JSON.stringify(
2171
- StreamRunAgentToolsFunction$outboundSchema.parse(
2172
- streamRunAgentToolsFunction,
2173
- ),
2174
- );
2175
- }
2176
-
2177
- export function streamRunAgentToolsFunctionFromJSON(
2178
- jsonString: string,
2179
- ): SafeParseResult<StreamRunAgentToolsFunction, SDKValidationError> {
2180
- return safeParse(
2181
- jsonString,
2182
- (x) => StreamRunAgentToolsFunction$inboundSchema.parse(JSON.parse(x)),
2183
- `Failed to parse 'StreamRunAgentToolsFunction' from JSON`,
2184
- );
2185
- }
2186
-
2187
- /** @internal */
2188
- export const Tools13$inboundSchema: z.ZodType<Tools13, z.ZodTypeDef, unknown> =
2189
- z.object({
2190
- type:
2191
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema,
2192
- _id: z.string().optional(),
2193
- key: z.string(),
2194
- display_name: z.string().optional(),
2195
- description: z.string().optional(),
2196
- requires_approval: z.boolean().default(false),
2197
- function: z.lazy(() => StreamRunAgentToolsFunction$inboundSchema),
2198
- }).transform((v) => {
2199
- return remap$(v, {
2200
- "_id": "id",
2201
- "display_name": "displayName",
2202
- "requires_approval": "requiresApproval",
2203
- });
2204
- });
2205
-
2206
- /** @internal */
2207
- export type Tools13$Outbound = {
2208
- type: string;
2209
- _id?: string | undefined;
2210
- key: string;
2211
- display_name?: string | undefined;
2212
- description?: string | undefined;
2213
- requires_approval: boolean;
2214
- function: StreamRunAgentToolsFunction$Outbound;
2215
- };
2216
-
2217
- /** @internal */
2218
- export const Tools13$outboundSchema: z.ZodType<
2219
- Tools13$Outbound,
2220
- z.ZodTypeDef,
2221
- Tools13
2222
- > = z.object({
2223
- type:
2224
- StreamRunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema,
2225
- id: z.string().optional(),
2226
- key: z.string(),
2227
- displayName: z.string().optional(),
2228
- description: z.string().optional(),
2229
- requiresApproval: z.boolean().default(false),
2230
- function: z.lazy(() => StreamRunAgentToolsFunction$outboundSchema),
2231
- }).transform((v) => {
2232
- return remap$(v, {
2233
- id: "_id",
2234
- displayName: "display_name",
2235
- requiresApproval: "requires_approval",
2236
- });
2237
- });
2238
-
2239
- /**
2240
- * @internal
2241
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2242
- */
2243
- export namespace Tools13$ {
2244
- /** @deprecated use `Tools13$inboundSchema` instead. */
2245
- export const inboundSchema = Tools13$inboundSchema;
2246
- /** @deprecated use `Tools13$outboundSchema` instead. */
2247
- export const outboundSchema = Tools13$outboundSchema;
2248
- /** @deprecated use `Tools13$Outbound` instead. */
2249
- export type Outbound = Tools13$Outbound;
2250
- }
2251
-
2252
- export function tools13ToJSON(tools13: Tools13): string {
2253
- return JSON.stringify(Tools13$outboundSchema.parse(tools13));
2254
- }
2255
-
2256
- export function tools13FromJSON(
2257
- jsonString: string,
2258
- ): SafeParseResult<Tools13, SDKValidationError> {
2259
- return safeParse(
2260
- jsonString,
2261
- (x) => Tools13$inboundSchema.parse(JSON.parse(x)),
2262
- `Failed to parse 'Tools13' from JSON`,
2263
- );
2264
- }
2265
-
2266
1960
  /** @internal */
2267
1961
  export const ToolsStatus$inboundSchema: z.ZodNativeEnum<typeof ToolsStatus> = z
2268
1962
  .nativeEnum(ToolsStatus);
@@ -2283,28 +1977,24 @@ export namespace ToolsStatus$ {
2283
1977
  }
2284
1978
 
2285
1979
  /** @internal */
2286
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema:
2287
- z.ZodNativeEnum<
2288
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type
2289
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings12Type);
1980
+ export const StreamRunAgentToolsType$inboundSchema: z.ZodNativeEnum<
1981
+ typeof StreamRunAgentToolsType
1982
+ > = z.nativeEnum(StreamRunAgentToolsType);
2290
1983
 
2291
1984
  /** @internal */
2292
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema:
2293
- z.ZodNativeEnum<
2294
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12Type
2295
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
1985
+ export const StreamRunAgentToolsType$outboundSchema: z.ZodNativeEnum<
1986
+ typeof StreamRunAgentToolsType
1987
+ > = StreamRunAgentToolsType$inboundSchema;
2296
1988
 
2297
1989
  /**
2298
1990
  * @internal
2299
1991
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2300
1992
  */
2301
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$ {
2302
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema` instead. */
2303
- export const inboundSchema =
2304
- StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
2305
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema` instead. */
2306
- export const outboundSchema =
2307
- 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;
2308
1998
  }
2309
1999
 
2310
2000
  /** @internal */
@@ -2386,31 +2076,24 @@ export function toolsBlueprintFromJSON(
2386
2076
  }
2387
2077
 
2388
2078
  /** @internal */
2389
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema:
2390
- z.ZodNativeEnum<
2391
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
2392
- > = z.nativeEnum(
2393
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType,
2394
- );
2079
+ export const StreamRunAgentToolsAgentsType$inboundSchema: z.ZodNativeEnum<
2080
+ typeof StreamRunAgentToolsAgentsType
2081
+ > = z.nativeEnum(StreamRunAgentToolsAgentsType);
2395
2082
 
2396
2083
  /** @internal */
2397
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema:
2398
- z.ZodNativeEnum<
2399
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType
2400
- > =
2401
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
2084
+ export const StreamRunAgentToolsAgentsType$outboundSchema: z.ZodNativeEnum<
2085
+ typeof StreamRunAgentToolsAgentsType
2086
+ > = StreamRunAgentToolsAgentsType$inboundSchema;
2402
2087
 
2403
2088
  /**
2404
2089
  * @internal
2405
2090
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2406
2091
  */
2407
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$ {
2408
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema` instead. */
2409
- export const inboundSchema =
2410
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
2411
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema` instead. */
2412
- export const outboundSchema =
2413
- 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;
2414
2097
  }
2415
2098
 
2416
2099
  /** @internal */
@@ -2467,8 +2150,7 @@ export const ToolsArguments$inboundSchema: z.ZodType<
2467
2150
  z.ZodTypeDef,
2468
2151
  unknown
2469
2152
  > = z.object({
2470
- type:
2471
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema,
2153
+ type: StreamRunAgentToolsAgentsType$inboundSchema,
2472
2154
  description: z.string(),
2473
2155
  send_to_model: z.boolean().default(true),
2474
2156
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2493,8 +2175,7 @@ export const ToolsArguments$outboundSchema: z.ZodType<
2493
2175
  z.ZodTypeDef,
2494
2176
  ToolsArguments
2495
2177
  > = z.object({
2496
- type:
2497
- StreamRunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema,
2178
+ type: StreamRunAgentToolsAgentsType$outboundSchema,
2498
2179
  description: z.string(),
2499
2180
  sendToModel: z.boolean().default(true),
2500
2181
  defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2586,17 +2267,16 @@ export function toolsHttpFromJSON(
2586
2267
  }
2587
2268
 
2588
2269
  /** @internal */
2589
- export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
2270
+ export const Tools24$inboundSchema: z.ZodType<Tools24, z.ZodTypeDef, unknown> =
2590
2271
  z.object({
2591
- _id: z.string().default("01K5X16BV6H39EVD4E4K07VQ12"),
2592
- path: z.string().optional(),
2272
+ _id: z.string().default("01K5ZT3CR3PWN9D2Z5RR1XF0A2"),
2273
+ path: z.string(),
2593
2274
  key: z.string(),
2594
2275
  display_name: z.string(),
2595
2276
  description: z.string(),
2596
2277
  status: ToolsStatus$inboundSchema.default("live"),
2597
2278
  version_hash: z.string().optional(),
2598
- type:
2599
- StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema,
2279
+ type: StreamRunAgentToolsType$inboundSchema,
2600
2280
  http: z.lazy(() => ToolsHttp$inboundSchema),
2601
2281
  requires_approval: z.boolean().default(false),
2602
2282
  }).transform((v) => {
@@ -2609,9 +2289,9 @@ export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
2609
2289
  });
2610
2290
 
2611
2291
  /** @internal */
2612
- export type Tools12$Outbound = {
2292
+ export type Tools24$Outbound = {
2613
2293
  _id: string;
2614
- path?: string | undefined;
2294
+ path: string;
2615
2295
  key: string;
2616
2296
  display_name: string;
2617
2297
  description: string;
@@ -2623,20 +2303,19 @@ export type Tools12$Outbound = {
2623
2303
  };
2624
2304
 
2625
2305
  /** @internal */
2626
- export const Tools12$outboundSchema: z.ZodType<
2627
- Tools12$Outbound,
2306
+ export const Tools24$outboundSchema: z.ZodType<
2307
+ Tools24$Outbound,
2628
2308
  z.ZodTypeDef,
2629
- Tools12
2309
+ Tools24
2630
2310
  > = z.object({
2631
- id: z.string().default("01K5X16BV6H39EVD4E4K07VQ12"),
2632
- path: z.string().optional(),
2311
+ id: z.string().default("01K5ZT3CR3PWN9D2Z5RR1XF0A2"),
2312
+ path: z.string(),
2633
2313
  key: z.string(),
2634
2314
  displayName: z.string(),
2635
2315
  description: z.string(),
2636
2316
  status: ToolsStatus$outboundSchema.default("live"),
2637
2317
  versionHash: z.string().optional(),
2638
- type:
2639
- StreamRunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema,
2318
+ type: StreamRunAgentToolsType$outboundSchema,
2640
2319
  http: z.lazy(() => ToolsHttp$outboundSchema),
2641
2320
  requiresApproval: z.boolean().default(false),
2642
2321
  }).transform((v) => {
@@ -2652,1010 +2331,119 @@ export const Tools12$outboundSchema: z.ZodType<
2652
2331
  * @internal
2653
2332
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2654
2333
  */
2655
- export namespace Tools12$ {
2656
- /** @deprecated use `Tools12$inboundSchema` instead. */
2657
- export const inboundSchema = Tools12$inboundSchema;
2658
- /** @deprecated use `Tools12$outboundSchema` instead. */
2659
- export const outboundSchema = Tools12$outboundSchema;
2660
- /** @deprecated use `Tools12$Outbound` instead. */
2661
- 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;
2662
2341
  }
2663
2342
 
2664
- export function tools12ToJSON(tools12: Tools12): string {
2665
- return JSON.stringify(Tools12$outboundSchema.parse(tools12));
2343
+ export function tools24ToJSON(tools24: Tools24): string {
2344
+ return JSON.stringify(Tools24$outboundSchema.parse(tools24));
2666
2345
  }
2667
2346
 
2668
- export function tools12FromJSON(
2347
+ export function tools24FromJSON(
2669
2348
  jsonString: string,
2670
- ): SafeParseResult<Tools12, SDKValidationError> {
2349
+ ): SafeParseResult<Tools24, SDKValidationError> {
2671
2350
  return safeParse(
2672
2351
  jsonString,
2673
- (x) => Tools12$inboundSchema.parse(JSON.parse(x)),
2674
- `Failed to parse 'Tools12' from JSON`,
2352
+ (x) => Tools24$inboundSchema.parse(JSON.parse(x)),
2353
+ `Failed to parse 'Tools24' from JSON`,
2675
2354
  );
2676
2355
  }
2677
2356
 
2678
2357
  /** @internal */
2679
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema:
2680
- z.ZodNativeEnum<
2681
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type
2682
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings11Type);
2358
+ export const StreamRunAgentTools$inboundSchema: z.ZodType<
2359
+ StreamRunAgentTools,
2360
+ z.ZodTypeDef,
2361
+ unknown
2362
+ > = z.union([
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
+ ),
2424
+ ]);
2683
2425
 
2684
2426
  /** @internal */
2685
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema:
2686
- z.ZodNativeEnum<
2687
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings11Type
2688
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
2689
-
2690
- /**
2691
- * @internal
2692
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2693
- */
2694
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$ {
2695
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema` instead. */
2696
- export const inboundSchema =
2697
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
2698
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema` instead. */
2699
- export const outboundSchema =
2700
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema;
2701
- }
2702
-
2703
- /** @internal */
2704
- export const Tools11$inboundSchema: z.ZodType<Tools11, z.ZodTypeDef, unknown> =
2705
- z.object({
2706
- type:
2707
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema,
2708
- requires_approval: z.boolean().default(false),
2709
- }).transform((v) => {
2710
- return remap$(v, {
2711
- "requires_approval": "requiresApproval",
2712
- });
2713
- });
2714
-
2715
- /** @internal */
2716
- export type Tools11$Outbound = {
2717
- type: string;
2718
- requires_approval: boolean;
2719
- };
2720
-
2721
- /** @internal */
2722
- export const Tools11$outboundSchema: z.ZodType<
2723
- Tools11$Outbound,
2724
- z.ZodTypeDef,
2725
- Tools11
2726
- > = z.object({
2727
- type:
2728
- StreamRunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema,
2729
- requiresApproval: z.boolean().default(false),
2730
- }).transform((v) => {
2731
- return remap$(v, {
2732
- requiresApproval: "requires_approval",
2733
- });
2734
- });
2735
-
2736
- /**
2737
- * @internal
2738
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2739
- */
2740
- export namespace Tools11$ {
2741
- /** @deprecated use `Tools11$inboundSchema` instead. */
2742
- export const inboundSchema = Tools11$inboundSchema;
2743
- /** @deprecated use `Tools11$outboundSchema` instead. */
2744
- export const outboundSchema = Tools11$outboundSchema;
2745
- /** @deprecated use `Tools11$Outbound` instead. */
2746
- export type Outbound = Tools11$Outbound;
2747
- }
2748
-
2749
- export function tools11ToJSON(tools11: Tools11): string {
2750
- return JSON.stringify(Tools11$outboundSchema.parse(tools11));
2751
- }
2752
-
2753
- export function tools11FromJSON(
2754
- jsonString: string,
2755
- ): SafeParseResult<Tools11, SDKValidationError> {
2756
- return safeParse(
2757
- jsonString,
2758
- (x) => Tools11$inboundSchema.parse(JSON.parse(x)),
2759
- `Failed to parse 'Tools11' from JSON`,
2760
- );
2761
- }
2762
-
2763
- /** @internal */
2764
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema:
2765
- z.ZodNativeEnum<
2766
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings10Type
2767
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings10Type);
2768
-
2769
- /** @internal */
2770
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema:
2771
- z.ZodNativeEnum<
2772
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings10Type
2773
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
2774
-
2775
- /**
2776
- * @internal
2777
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2778
- */
2779
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$ {
2780
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema` instead. */
2781
- export const inboundSchema =
2782
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
2783
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema` instead. */
2784
- export const outboundSchema =
2785
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema;
2786
- }
2787
-
2788
- /** @internal */
2789
- export const Tools10$inboundSchema: z.ZodType<Tools10, z.ZodTypeDef, unknown> =
2790
- z.object({
2791
- type:
2792
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema,
2793
- requires_approval: z.boolean().default(false),
2794
- }).transform((v) => {
2795
- return remap$(v, {
2796
- "requires_approval": "requiresApproval",
2797
- });
2798
- });
2799
-
2800
- /** @internal */
2801
- export type Tools10$Outbound = {
2802
- type: string;
2803
- requires_approval: boolean;
2804
- };
2805
-
2806
- /** @internal */
2807
- export const Tools10$outboundSchema: z.ZodType<
2808
- Tools10$Outbound,
2809
- z.ZodTypeDef,
2810
- Tools10
2811
- > = z.object({
2812
- type:
2813
- StreamRunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema,
2814
- requiresApproval: z.boolean().default(false),
2815
- }).transform((v) => {
2816
- return remap$(v, {
2817
- requiresApproval: "requires_approval",
2818
- });
2819
- });
2820
-
2821
- /**
2822
- * @internal
2823
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2824
- */
2825
- export namespace Tools10$ {
2826
- /** @deprecated use `Tools10$inboundSchema` instead. */
2827
- export const inboundSchema = Tools10$inboundSchema;
2828
- /** @deprecated use `Tools10$outboundSchema` instead. */
2829
- export const outboundSchema = Tools10$outboundSchema;
2830
- /** @deprecated use `Tools10$Outbound` instead. */
2831
- export type Outbound = Tools10$Outbound;
2832
- }
2833
-
2834
- export function tools10ToJSON(tools10: Tools10): string {
2835
- return JSON.stringify(Tools10$outboundSchema.parse(tools10));
2836
- }
2837
-
2838
- export function tools10FromJSON(
2839
- jsonString: string,
2840
- ): SafeParseResult<Tools10, SDKValidationError> {
2841
- return safeParse(
2842
- jsonString,
2843
- (x) => Tools10$inboundSchema.parse(JSON.parse(x)),
2844
- `Failed to parse 'Tools10' from JSON`,
2845
- );
2846
- }
2847
-
2848
- /** @internal */
2849
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema:
2850
- z.ZodNativeEnum<
2851
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings9Type
2852
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings9Type);
2853
-
2854
- /** @internal */
2855
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema:
2856
- z.ZodNativeEnum<
2857
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings9Type
2858
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
2859
-
2860
- /**
2861
- * @internal
2862
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2863
- */
2864
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$ {
2865
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema` instead. */
2866
- export const inboundSchema =
2867
- StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
2868
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema` instead. */
2869
- export const outboundSchema =
2870
- StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema;
2871
- }
2872
-
2873
- /** @internal */
2874
- export const Tools9$inboundSchema: z.ZodType<Tools9, z.ZodTypeDef, unknown> = z
2875
- .object({
2876
- type:
2877
- StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema,
2878
- requires_approval: z.boolean().default(false),
2879
- }).transform((v) => {
2880
- return remap$(v, {
2881
- "requires_approval": "requiresApproval",
2882
- });
2883
- });
2884
-
2885
- /** @internal */
2886
- export type Tools9$Outbound = {
2887
- type: string;
2888
- requires_approval: boolean;
2889
- };
2890
-
2891
- /** @internal */
2892
- export const Tools9$outboundSchema: z.ZodType<
2893
- Tools9$Outbound,
2894
- z.ZodTypeDef,
2895
- Tools9
2896
- > = z.object({
2897
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema,
2898
- requiresApproval: z.boolean().default(false),
2899
- }).transform((v) => {
2900
- return remap$(v, {
2901
- requiresApproval: "requires_approval",
2902
- });
2903
- });
2904
-
2905
- /**
2906
- * @internal
2907
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2908
- */
2909
- export namespace Tools9$ {
2910
- /** @deprecated use `Tools9$inboundSchema` instead. */
2911
- export const inboundSchema = Tools9$inboundSchema;
2912
- /** @deprecated use `Tools9$outboundSchema` instead. */
2913
- export const outboundSchema = Tools9$outboundSchema;
2914
- /** @deprecated use `Tools9$Outbound` instead. */
2915
- export type Outbound = Tools9$Outbound;
2916
- }
2917
-
2918
- export function tools9ToJSON(tools9: Tools9): string {
2919
- return JSON.stringify(Tools9$outboundSchema.parse(tools9));
2920
- }
2921
-
2922
- export function tools9FromJSON(
2923
- jsonString: string,
2924
- ): SafeParseResult<Tools9, SDKValidationError> {
2925
- return safeParse(
2926
- jsonString,
2927
- (x) => Tools9$inboundSchema.parse(JSON.parse(x)),
2928
- `Failed to parse 'Tools9' from JSON`,
2929
- );
2930
- }
2931
-
2932
- /** @internal */
2933
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema:
2934
- z.ZodNativeEnum<
2935
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings8Type
2936
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings8Type);
2937
-
2938
- /** @internal */
2939
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema:
2940
- z.ZodNativeEnum<
2941
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings8Type
2942
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
2943
-
2944
- /**
2945
- * @internal
2946
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2947
- */
2948
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$ {
2949
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema` instead. */
2950
- export const inboundSchema =
2951
- StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
2952
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema` instead. */
2953
- export const outboundSchema =
2954
- StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema;
2955
- }
2956
-
2957
- /** @internal */
2958
- export const Tools8$inboundSchema: z.ZodType<Tools8, z.ZodTypeDef, unknown> = z
2959
- .object({
2960
- type:
2961
- StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema,
2962
- requires_approval: z.boolean().default(false),
2963
- }).transform((v) => {
2964
- return remap$(v, {
2965
- "requires_approval": "requiresApproval",
2966
- });
2967
- });
2968
-
2969
- /** @internal */
2970
- export type Tools8$Outbound = {
2971
- type: string;
2972
- requires_approval: boolean;
2973
- };
2974
-
2975
- /** @internal */
2976
- export const Tools8$outboundSchema: z.ZodType<
2977
- Tools8$Outbound,
2978
- z.ZodTypeDef,
2979
- Tools8
2980
- > = z.object({
2981
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema,
2982
- requiresApproval: z.boolean().default(false),
2983
- }).transform((v) => {
2984
- return remap$(v, {
2985
- requiresApproval: "requires_approval",
2986
- });
2987
- });
2988
-
2989
- /**
2990
- * @internal
2991
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2992
- */
2993
- export namespace Tools8$ {
2994
- /** @deprecated use `Tools8$inboundSchema` instead. */
2995
- export const inboundSchema = Tools8$inboundSchema;
2996
- /** @deprecated use `Tools8$outboundSchema` instead. */
2997
- export const outboundSchema = Tools8$outboundSchema;
2998
- /** @deprecated use `Tools8$Outbound` instead. */
2999
- export type Outbound = Tools8$Outbound;
3000
- }
3001
-
3002
- export function tools8ToJSON(tools8: Tools8): string {
3003
- return JSON.stringify(Tools8$outboundSchema.parse(tools8));
3004
- }
3005
-
3006
- export function tools8FromJSON(
3007
- jsonString: string,
3008
- ): SafeParseResult<Tools8, SDKValidationError> {
3009
- return safeParse(
3010
- jsonString,
3011
- (x) => Tools8$inboundSchema.parse(JSON.parse(x)),
3012
- `Failed to parse 'Tools8' from JSON`,
3013
- );
3014
- }
3015
-
3016
- /** @internal */
3017
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema:
3018
- z.ZodNativeEnum<
3019
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings7Type
3020
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings7Type);
3021
-
3022
- /** @internal */
3023
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema:
3024
- z.ZodNativeEnum<
3025
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings7Type
3026
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
3027
-
3028
- /**
3029
- * @internal
3030
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3031
- */
3032
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$ {
3033
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema` instead. */
3034
- export const inboundSchema =
3035
- StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
3036
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema` instead. */
3037
- export const outboundSchema =
3038
- StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema;
3039
- }
3040
-
3041
- /** @internal */
3042
- export const Tools7$inboundSchema: z.ZodType<Tools7, z.ZodTypeDef, unknown> = z
3043
- .object({
3044
- type:
3045
- StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema,
3046
- requires_approval: z.boolean().default(false),
3047
- }).transform((v) => {
3048
- return remap$(v, {
3049
- "requires_approval": "requiresApproval",
3050
- });
3051
- });
3052
-
3053
- /** @internal */
3054
- export type Tools7$Outbound = {
3055
- type: string;
3056
- requires_approval: boolean;
3057
- };
3058
-
3059
- /** @internal */
3060
- export const Tools7$outboundSchema: z.ZodType<
3061
- Tools7$Outbound,
3062
- z.ZodTypeDef,
3063
- Tools7
3064
- > = z.object({
3065
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema,
3066
- requiresApproval: z.boolean().default(false),
3067
- }).transform((v) => {
3068
- return remap$(v, {
3069
- requiresApproval: "requires_approval",
3070
- });
3071
- });
3072
-
3073
- /**
3074
- * @internal
3075
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3076
- */
3077
- export namespace Tools7$ {
3078
- /** @deprecated use `Tools7$inboundSchema` instead. */
3079
- export const inboundSchema = Tools7$inboundSchema;
3080
- /** @deprecated use `Tools7$outboundSchema` instead. */
3081
- export const outboundSchema = Tools7$outboundSchema;
3082
- /** @deprecated use `Tools7$Outbound` instead. */
3083
- export type Outbound = Tools7$Outbound;
3084
- }
3085
-
3086
- export function tools7ToJSON(tools7: Tools7): string {
3087
- return JSON.stringify(Tools7$outboundSchema.parse(tools7));
3088
- }
3089
-
3090
- export function tools7FromJSON(
3091
- jsonString: string,
3092
- ): SafeParseResult<Tools7, SDKValidationError> {
3093
- return safeParse(
3094
- jsonString,
3095
- (x) => Tools7$inboundSchema.parse(JSON.parse(x)),
3096
- `Failed to parse 'Tools7' from JSON`,
3097
- );
3098
- }
3099
-
3100
- /** @internal */
3101
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema:
3102
- z.ZodNativeEnum<
3103
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings6Type
3104
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettings6Type);
3105
-
3106
- /** @internal */
3107
- export const StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema:
3108
- z.ZodNativeEnum<
3109
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettings6Type
3110
- > = StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema;
3111
-
3112
- /**
3113
- * @internal
3114
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3115
- */
3116
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$ {
3117
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema` instead. */
3118
- export const inboundSchema =
3119
- StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema;
3120
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema` instead. */
3121
- export const outboundSchema =
3122
- StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema;
3123
- }
3124
-
3125
- /** @internal */
3126
- export const Tools6$inboundSchema: z.ZodType<Tools6, z.ZodTypeDef, unknown> = z
3127
- .object({
3128
- type:
3129
- StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$inboundSchema,
3130
- requires_approval: z.boolean().default(false),
3131
- }).transform((v) => {
3132
- return remap$(v, {
3133
- "requires_approval": "requiresApproval",
3134
- });
3135
- });
3136
-
3137
- /** @internal */
3138
- export type Tools6$Outbound = {
3139
- type: string;
3140
- requires_approval: boolean;
3141
- };
3142
-
3143
- /** @internal */
3144
- export const Tools6$outboundSchema: z.ZodType<
3145
- Tools6$Outbound,
3146
- z.ZodTypeDef,
3147
- Tools6
3148
- > = z.object({
3149
- type: StreamRunAgentToolsAgentsRequestRequestBodySettings6Type$outboundSchema,
3150
- requiresApproval: z.boolean().default(false),
3151
- }).transform((v) => {
3152
- return remap$(v, {
3153
- requiresApproval: "requires_approval",
3154
- });
3155
- });
3156
-
3157
- /**
3158
- * @internal
3159
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3160
- */
3161
- export namespace Tools6$ {
3162
- /** @deprecated use `Tools6$inboundSchema` instead. */
3163
- export const inboundSchema = Tools6$inboundSchema;
3164
- /** @deprecated use `Tools6$outboundSchema` instead. */
3165
- export const outboundSchema = Tools6$outboundSchema;
3166
- /** @deprecated use `Tools6$Outbound` instead. */
3167
- export type Outbound = Tools6$Outbound;
3168
- }
3169
-
3170
- export function tools6ToJSON(tools6: Tools6): string {
3171
- return JSON.stringify(Tools6$outboundSchema.parse(tools6));
3172
- }
3173
-
3174
- export function tools6FromJSON(
3175
- jsonString: string,
3176
- ): SafeParseResult<Tools6, SDKValidationError> {
3177
- return safeParse(
3178
- jsonString,
3179
- (x) => Tools6$inboundSchema.parse(JSON.parse(x)),
3180
- `Failed to parse 'Tools6' from JSON`,
3181
- );
3182
- }
3183
-
3184
- /** @internal */
3185
- export const StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema:
3186
- z.ZodNativeEnum<
3187
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettingsType
3188
- > = z.nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodySettingsType);
3189
-
3190
- /** @internal */
3191
- export const StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema:
3192
- z.ZodNativeEnum<
3193
- typeof StreamRunAgentToolsAgentsRequestRequestBodySettingsType
3194
- > = StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
3195
-
3196
- /**
3197
- * @internal
3198
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3199
- */
3200
- export namespace StreamRunAgentToolsAgentsRequestRequestBodySettingsType$ {
3201
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3202
- export const inboundSchema =
3203
- StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
3204
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3205
- export const outboundSchema =
3206
- StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema;
3207
- }
3208
-
3209
- /** @internal */
3210
- export const StreamRunAgentTools5$inboundSchema: z.ZodType<
3211
- StreamRunAgentTools5,
3212
- z.ZodTypeDef,
3213
- unknown
3214
- > = z.object({
3215
- type: StreamRunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema,
3216
- requires_approval: z.boolean().default(false),
3217
- }).transform((v) => {
3218
- return remap$(v, {
3219
- "requires_approval": "requiresApproval",
3220
- });
3221
- });
3222
-
3223
- /** @internal */
3224
- export type StreamRunAgentTools5$Outbound = {
3225
- type: string;
3226
- requires_approval: boolean;
3227
- };
3228
-
3229
- /** @internal */
3230
- export const StreamRunAgentTools5$outboundSchema: z.ZodType<
3231
- StreamRunAgentTools5$Outbound,
3232
- z.ZodTypeDef,
3233
- StreamRunAgentTools5
3234
- > = z.object({
3235
- type: StreamRunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema,
3236
- requiresApproval: z.boolean().default(false),
3237
- }).transform((v) => {
3238
- return remap$(v, {
3239
- requiresApproval: "requires_approval",
3240
- });
3241
- });
3242
-
3243
- /**
3244
- * @internal
3245
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3246
- */
3247
- export namespace StreamRunAgentTools5$ {
3248
- /** @deprecated use `StreamRunAgentTools5$inboundSchema` instead. */
3249
- export const inboundSchema = StreamRunAgentTools5$inboundSchema;
3250
- /** @deprecated use `StreamRunAgentTools5$outboundSchema` instead. */
3251
- export const outboundSchema = StreamRunAgentTools5$outboundSchema;
3252
- /** @deprecated use `StreamRunAgentTools5$Outbound` instead. */
3253
- export type Outbound = StreamRunAgentTools5$Outbound;
3254
- }
3255
-
3256
- export function streamRunAgentTools5ToJSON(
3257
- streamRunAgentTools5: StreamRunAgentTools5,
3258
- ): string {
3259
- return JSON.stringify(
3260
- StreamRunAgentTools5$outboundSchema.parse(streamRunAgentTools5),
3261
- );
3262
- }
3263
-
3264
- export function streamRunAgentTools5FromJSON(
3265
- jsonString: string,
3266
- ): SafeParseResult<StreamRunAgentTools5, SDKValidationError> {
3267
- return safeParse(
3268
- jsonString,
3269
- (x) => StreamRunAgentTools5$inboundSchema.parse(JSON.parse(x)),
3270
- `Failed to parse 'StreamRunAgentTools5' from JSON`,
3271
- );
3272
- }
3273
-
3274
- /** @internal */
3275
- export const StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema:
3276
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodyType> = z
3277
- .nativeEnum(StreamRunAgentToolsAgentsRequestRequestBodyType);
3278
-
3279
- /** @internal */
3280
- export const StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema:
3281
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestRequestBodyType> =
3282
- StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
3283
-
3284
- /**
3285
- * @internal
3286
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3287
- */
3288
- export namespace StreamRunAgentToolsAgentsRequestRequestBodyType$ {
3289
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema` instead. */
3290
- export const inboundSchema =
3291
- StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
3292
- /** @deprecated use `StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema` instead. */
3293
- export const outboundSchema =
3294
- StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema;
3295
- }
3296
-
3297
- /** @internal */
3298
- export const StreamRunAgentTools4$inboundSchema: z.ZodType<
3299
- StreamRunAgentTools4,
3300
- z.ZodTypeDef,
3301
- unknown
3302
- > = z.object({
3303
- type: StreamRunAgentToolsAgentsRequestRequestBodyType$inboundSchema,
3304
- requires_approval: z.boolean().default(false),
3305
- }).transform((v) => {
3306
- return remap$(v, {
3307
- "requires_approval": "requiresApproval",
3308
- });
3309
- });
3310
-
3311
- /** @internal */
3312
- export type StreamRunAgentTools4$Outbound = {
3313
- type: string;
3314
- requires_approval: boolean;
3315
- };
3316
-
3317
- /** @internal */
3318
- export const StreamRunAgentTools4$outboundSchema: z.ZodType<
3319
- StreamRunAgentTools4$Outbound,
3320
- z.ZodTypeDef,
3321
- StreamRunAgentTools4
3322
- > = z.object({
3323
- type: StreamRunAgentToolsAgentsRequestRequestBodyType$outboundSchema,
3324
- requiresApproval: z.boolean().default(false),
3325
- }).transform((v) => {
3326
- return remap$(v, {
3327
- requiresApproval: "requires_approval",
3328
- });
3329
- });
3330
-
3331
- /**
3332
- * @internal
3333
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3334
- */
3335
- export namespace StreamRunAgentTools4$ {
3336
- /** @deprecated use `StreamRunAgentTools4$inboundSchema` instead. */
3337
- export const inboundSchema = StreamRunAgentTools4$inboundSchema;
3338
- /** @deprecated use `StreamRunAgentTools4$outboundSchema` instead. */
3339
- export const outboundSchema = StreamRunAgentTools4$outboundSchema;
3340
- /** @deprecated use `StreamRunAgentTools4$Outbound` instead. */
3341
- export type Outbound = StreamRunAgentTools4$Outbound;
3342
- }
3343
-
3344
- export function streamRunAgentTools4ToJSON(
3345
- streamRunAgentTools4: StreamRunAgentTools4,
3346
- ): string {
3347
- return JSON.stringify(
3348
- StreamRunAgentTools4$outboundSchema.parse(streamRunAgentTools4),
3349
- );
3350
- }
3351
-
3352
- export function streamRunAgentTools4FromJSON(
3353
- jsonString: string,
3354
- ): SafeParseResult<StreamRunAgentTools4, SDKValidationError> {
3355
- return safeParse(
3356
- jsonString,
3357
- (x) => StreamRunAgentTools4$inboundSchema.parse(JSON.parse(x)),
3358
- `Failed to parse 'StreamRunAgentTools4' from JSON`,
3359
- );
3360
- }
3361
-
3362
- /** @internal */
3363
- export const StreamRunAgentToolsAgentsRequestType$inboundSchema:
3364
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestType> = z.nativeEnum(
3365
- StreamRunAgentToolsAgentsRequestType,
3366
- );
3367
-
3368
- /** @internal */
3369
- export const StreamRunAgentToolsAgentsRequestType$outboundSchema:
3370
- z.ZodNativeEnum<typeof StreamRunAgentToolsAgentsRequestType> =
3371
- StreamRunAgentToolsAgentsRequestType$inboundSchema;
3372
-
3373
- /**
3374
- * @internal
3375
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3376
- */
3377
- export namespace StreamRunAgentToolsAgentsRequestType$ {
3378
- /** @deprecated use `StreamRunAgentToolsAgentsRequestType$inboundSchema` instead. */
3379
- export const inboundSchema =
3380
- StreamRunAgentToolsAgentsRequestType$inboundSchema;
3381
- /** @deprecated use `StreamRunAgentToolsAgentsRequestType$outboundSchema` instead. */
3382
- export const outboundSchema =
3383
- StreamRunAgentToolsAgentsRequestType$outboundSchema;
3384
- }
3385
-
3386
- /** @internal */
3387
- export const StreamRunAgentTools3$inboundSchema: z.ZodType<
3388
- StreamRunAgentTools3,
3389
- z.ZodTypeDef,
3390
- unknown
3391
- > = z.object({
3392
- type: StreamRunAgentToolsAgentsRequestType$inboundSchema,
3393
- requires_approval: z.boolean().default(false),
3394
- }).transform((v) => {
3395
- return remap$(v, {
3396
- "requires_approval": "requiresApproval",
3397
- });
3398
- });
3399
-
3400
- /** @internal */
3401
- export type StreamRunAgentTools3$Outbound = {
3402
- type: string;
3403
- requires_approval: boolean;
3404
- };
3405
-
3406
- /** @internal */
3407
- export const StreamRunAgentTools3$outboundSchema: z.ZodType<
3408
- StreamRunAgentTools3$Outbound,
3409
- z.ZodTypeDef,
3410
- StreamRunAgentTools3
3411
- > = z.object({
3412
- type: StreamRunAgentToolsAgentsRequestType$outboundSchema,
3413
- requiresApproval: z.boolean().default(false),
3414
- }).transform((v) => {
3415
- return remap$(v, {
3416
- requiresApproval: "requires_approval",
3417
- });
3418
- });
3419
-
3420
- /**
3421
- * @internal
3422
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3423
- */
3424
- export namespace StreamRunAgentTools3$ {
3425
- /** @deprecated use `StreamRunAgentTools3$inboundSchema` instead. */
3426
- export const inboundSchema = StreamRunAgentTools3$inboundSchema;
3427
- /** @deprecated use `StreamRunAgentTools3$outboundSchema` instead. */
3428
- export const outboundSchema = StreamRunAgentTools3$outboundSchema;
3429
- /** @deprecated use `StreamRunAgentTools3$Outbound` instead. */
3430
- export type Outbound = StreamRunAgentTools3$Outbound;
3431
- }
3432
-
3433
- export function streamRunAgentTools3ToJSON(
3434
- streamRunAgentTools3: StreamRunAgentTools3,
3435
- ): string {
3436
- return JSON.stringify(
3437
- StreamRunAgentTools3$outboundSchema.parse(streamRunAgentTools3),
3438
- );
3439
- }
3440
-
3441
- export function streamRunAgentTools3FromJSON(
3442
- jsonString: string,
3443
- ): SafeParseResult<StreamRunAgentTools3, SDKValidationError> {
3444
- return safeParse(
3445
- jsonString,
3446
- (x) => StreamRunAgentTools3$inboundSchema.parse(JSON.parse(x)),
3447
- `Failed to parse 'StreamRunAgentTools3' from JSON`,
3448
- );
3449
- }
3450
-
3451
- /** @internal */
3452
- export const StreamRunAgentToolsAgentsType$inboundSchema: z.ZodNativeEnum<
3453
- typeof StreamRunAgentToolsAgentsType
3454
- > = z.nativeEnum(StreamRunAgentToolsAgentsType);
3455
-
3456
- /** @internal */
3457
- export const StreamRunAgentToolsAgentsType$outboundSchema: z.ZodNativeEnum<
3458
- typeof StreamRunAgentToolsAgentsType
3459
- > = StreamRunAgentToolsAgentsType$inboundSchema;
3460
-
3461
- /**
3462
- * @internal
3463
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3464
- */
3465
- export namespace StreamRunAgentToolsAgentsType$ {
3466
- /** @deprecated use `StreamRunAgentToolsAgentsType$inboundSchema` instead. */
3467
- export const inboundSchema = StreamRunAgentToolsAgentsType$inboundSchema;
3468
- /** @deprecated use `StreamRunAgentToolsAgentsType$outboundSchema` instead. */
3469
- export const outboundSchema = StreamRunAgentToolsAgentsType$outboundSchema;
3470
- }
3471
-
3472
- /** @internal */
3473
- export const StreamRunAgentTools2$inboundSchema: z.ZodType<
3474
- StreamRunAgentTools2,
3475
- z.ZodTypeDef,
3476
- unknown
3477
- > = z.object({
3478
- type: StreamRunAgentToolsAgentsType$inboundSchema,
3479
- requires_approval: z.boolean().default(false),
3480
- }).transform((v) => {
3481
- return remap$(v, {
3482
- "requires_approval": "requiresApproval",
3483
- });
3484
- });
3485
-
3486
- /** @internal */
3487
- export type StreamRunAgentTools2$Outbound = {
3488
- type: string;
3489
- requires_approval: boolean;
3490
- };
3491
-
3492
- /** @internal */
3493
- export const StreamRunAgentTools2$outboundSchema: z.ZodType<
3494
- StreamRunAgentTools2$Outbound,
3495
- z.ZodTypeDef,
3496
- StreamRunAgentTools2
3497
- > = z.object({
3498
- type: StreamRunAgentToolsAgentsType$outboundSchema,
3499
- requiresApproval: z.boolean().default(false),
3500
- }).transform((v) => {
3501
- return remap$(v, {
3502
- requiresApproval: "requires_approval",
3503
- });
3504
- });
3505
-
3506
- /**
3507
- * @internal
3508
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3509
- */
3510
- export namespace StreamRunAgentTools2$ {
3511
- /** @deprecated use `StreamRunAgentTools2$inboundSchema` instead. */
3512
- export const inboundSchema = StreamRunAgentTools2$inboundSchema;
3513
- /** @deprecated use `StreamRunAgentTools2$outboundSchema` instead. */
3514
- export const outboundSchema = StreamRunAgentTools2$outboundSchema;
3515
- /** @deprecated use `StreamRunAgentTools2$Outbound` instead. */
3516
- export type Outbound = StreamRunAgentTools2$Outbound;
3517
- }
3518
-
3519
- export function streamRunAgentTools2ToJSON(
3520
- streamRunAgentTools2: StreamRunAgentTools2,
3521
- ): string {
3522
- return JSON.stringify(
3523
- StreamRunAgentTools2$outboundSchema.parse(streamRunAgentTools2),
3524
- );
3525
- }
3526
-
3527
- export function streamRunAgentTools2FromJSON(
3528
- jsonString: string,
3529
- ): SafeParseResult<StreamRunAgentTools2, SDKValidationError> {
3530
- return safeParse(
3531
- jsonString,
3532
- (x) => StreamRunAgentTools2$inboundSchema.parse(JSON.parse(x)),
3533
- `Failed to parse 'StreamRunAgentTools2' from JSON`,
3534
- );
3535
- }
3536
-
3537
- /** @internal */
3538
- export const StreamRunAgentToolsType$inboundSchema: z.ZodNativeEnum<
3539
- typeof StreamRunAgentToolsType
3540
- > = z.nativeEnum(StreamRunAgentToolsType);
3541
-
3542
- /** @internal */
3543
- export const StreamRunAgentToolsType$outboundSchema: z.ZodNativeEnum<
3544
- typeof StreamRunAgentToolsType
3545
- > = StreamRunAgentToolsType$inboundSchema;
3546
-
3547
- /**
3548
- * @internal
3549
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3550
- */
3551
- export namespace StreamRunAgentToolsType$ {
3552
- /** @deprecated use `StreamRunAgentToolsType$inboundSchema` instead. */
3553
- export const inboundSchema = StreamRunAgentToolsType$inboundSchema;
3554
- /** @deprecated use `StreamRunAgentToolsType$outboundSchema` instead. */
3555
- export const outboundSchema = StreamRunAgentToolsType$outboundSchema;
3556
- }
3557
-
3558
- /** @internal */
3559
- export const StreamRunAgentTools1$inboundSchema: z.ZodType<
3560
- StreamRunAgentTools1,
3561
- z.ZodTypeDef,
3562
- unknown
3563
- > = z.object({
3564
- type: StreamRunAgentToolsType$inboundSchema,
3565
- requires_approval: z.boolean().default(false),
3566
- }).transform((v) => {
3567
- return remap$(v, {
3568
- "requires_approval": "requiresApproval",
3569
- });
3570
- });
3571
-
3572
- /** @internal */
3573
- export type StreamRunAgentTools1$Outbound = {
3574
- type: string;
3575
- requires_approval: boolean;
3576
- };
3577
-
3578
- /** @internal */
3579
- export const StreamRunAgentTools1$outboundSchema: z.ZodType<
3580
- StreamRunAgentTools1$Outbound,
3581
- z.ZodTypeDef,
3582
- StreamRunAgentTools1
3583
- > = z.object({
3584
- type: StreamRunAgentToolsType$outboundSchema,
3585
- requiresApproval: z.boolean().default(false),
3586
- }).transform((v) => {
3587
- return remap$(v, {
3588
- requiresApproval: "requires_approval",
3589
- });
3590
- });
3591
-
3592
- /**
3593
- * @internal
3594
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3595
- */
3596
- export namespace StreamRunAgentTools1$ {
3597
- /** @deprecated use `StreamRunAgentTools1$inboundSchema` instead. */
3598
- export const inboundSchema = StreamRunAgentTools1$inboundSchema;
3599
- /** @deprecated use `StreamRunAgentTools1$outboundSchema` instead. */
3600
- export const outboundSchema = StreamRunAgentTools1$outboundSchema;
3601
- /** @deprecated use `StreamRunAgentTools1$Outbound` instead. */
3602
- export type Outbound = StreamRunAgentTools1$Outbound;
3603
- }
3604
-
3605
- export function streamRunAgentTools1ToJSON(
3606
- streamRunAgentTools1: StreamRunAgentTools1,
3607
- ): string {
3608
- return JSON.stringify(
3609
- StreamRunAgentTools1$outboundSchema.parse(streamRunAgentTools1),
3610
- );
3611
- }
3612
-
3613
- export function streamRunAgentTools1FromJSON(
3614
- jsonString: string,
3615
- ): SafeParseResult<StreamRunAgentTools1, SDKValidationError> {
3616
- return safeParse(
3617
- jsonString,
3618
- (x) => StreamRunAgentTools1$inboundSchema.parse(JSON.parse(x)),
3619
- `Failed to parse 'StreamRunAgentTools1' from JSON`,
3620
- );
3621
- }
3622
-
3623
- /** @internal */
3624
- export const StreamRunAgentTools$inboundSchema: z.ZodType<
3625
- StreamRunAgentTools,
3626
- z.ZodTypeDef,
3627
- unknown
3628
- > = z.union([
3629
- z.lazy(() => Tools12$inboundSchema),
3630
- z.lazy(() => Tools13$inboundSchema),
3631
- z.lazy(() => StreamRunAgentTools1$inboundSchema),
3632
- z.lazy(() => StreamRunAgentTools2$inboundSchema),
3633
- z.lazy(() => StreamRunAgentTools3$inboundSchema),
3634
- z.lazy(() => StreamRunAgentTools4$inboundSchema),
3635
- z.lazy(() => StreamRunAgentTools5$inboundSchema),
3636
- z.lazy(() => Tools6$inboundSchema),
3637
- z.lazy(() => Tools7$inboundSchema),
3638
- z.lazy(() => Tools8$inboundSchema),
3639
- z.lazy(() => Tools9$inboundSchema),
3640
- z.lazy(() => Tools10$inboundSchema),
3641
- z.lazy(() => Tools11$inboundSchema),
3642
- ]);
3643
-
3644
- /** @internal */
3645
- export type StreamRunAgentTools$Outbound =
3646
- | Tools12$Outbound
3647
- | Tools13$Outbound
3648
- | StreamRunAgentTools1$Outbound
3649
- | StreamRunAgentTools2$Outbound
3650
- | StreamRunAgentTools3$Outbound
3651
- | StreamRunAgentTools4$Outbound
3652
- | StreamRunAgentTools5$Outbound
3653
- | Tools6$Outbound
3654
- | Tools7$Outbound
3655
- | Tools8$Outbound
3656
- | Tools9$Outbound
3657
- | Tools10$Outbound
3658
- | Tools11$Outbound;
2427
+ export type StreamRunAgentTools$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" });
3659
2447
 
3660
2448
  /** @internal */
3661
2449
  export const StreamRunAgentTools$outboundSchema: z.ZodType<
@@ -3663,19 +2451,67 @@ export const StreamRunAgentTools$outboundSchema: z.ZodType<
3663
2451
  z.ZodTypeDef,
3664
2452
  StreamRunAgentTools
3665
2453
  > = z.union([
3666
- z.lazy(() => Tools12$outboundSchema),
3667
- z.lazy(() => Tools13$outboundSchema),
3668
- z.lazy(() => StreamRunAgentTools1$outboundSchema),
3669
- z.lazy(() => StreamRunAgentTools2$outboundSchema),
3670
- z.lazy(() => StreamRunAgentTools3$outboundSchema),
3671
- z.lazy(() => StreamRunAgentTools4$outboundSchema),
3672
- z.lazy(() => StreamRunAgentTools5$outboundSchema),
3673
- z.lazy(() => Tools6$outboundSchema),
3674
- z.lazy(() => Tools7$outboundSchema),
3675
- z.lazy(() => Tools8$outboundSchema),
3676
- z.lazy(() => Tools9$outboundSchema),
3677
- z.lazy(() => Tools10$outboundSchema),
3678
- 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
+ ),
3679
2515
  ]);
3680
2516
 
3681
2517
  /**
@@ -3739,19 +2575,71 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
3739
2575
  > = z.object({
3740
2576
  tools: z.array(
3741
2577
  z.union([
3742
- z.lazy(() => Tools12$inboundSchema),
3743
- z.lazy(() => Tools13$inboundSchema),
3744
- z.lazy(() => StreamRunAgentTools1$inboundSchema),
3745
- z.lazy(() => StreamRunAgentTools2$inboundSchema),
3746
- z.lazy(() => StreamRunAgentTools3$inboundSchema),
3747
- z.lazy(() => StreamRunAgentTools4$inboundSchema),
3748
- z.lazy(() => StreamRunAgentTools5$inboundSchema),
3749
- z.lazy(() => Tools6$inboundSchema),
3750
- z.lazy(() => Tools7$inboundSchema),
3751
- z.lazy(() => Tools8$inboundSchema),
3752
- z.lazy(() => Tools9$inboundSchema),
3753
- z.lazy(() => Tools10$inboundSchema),
3754
- 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
+ ),
3755
2643
  ]),
3756
2644
  ),
3757
2645
  tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
@@ -3769,19 +2657,29 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
3769
2657
  /** @internal */
3770
2658
  export type StreamRunAgentSettings$Outbound = {
3771
2659
  tools: Array<
3772
- | Tools12$Outbound
3773
- | Tools13$Outbound
3774
- | StreamRunAgentTools1$Outbound
3775
- | StreamRunAgentTools2$Outbound
3776
- | StreamRunAgentTools3$Outbound
3777
- | StreamRunAgentTools4$Outbound
3778
- | StreamRunAgentTools5$Outbound
3779
- | Tools6$Outbound
3780
- | Tools7$Outbound
3781
- | Tools8$Outbound
3782
- | Tools9$Outbound
3783
- | Tools10$Outbound
3784
- | 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" })
3785
2683
  >;
3786
2684
  tool_approval_required: string;
3787
2685
  max_iterations: number;
@@ -3796,19 +2694,71 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
3796
2694
  > = z.object({
3797
2695
  tools: z.array(
3798
2696
  z.union([
3799
- z.lazy(() => Tools12$outboundSchema),
3800
- z.lazy(() => Tools13$outboundSchema),
3801
- z.lazy(() => StreamRunAgentTools1$outboundSchema),
3802
- z.lazy(() => StreamRunAgentTools2$outboundSchema),
3803
- z.lazy(() => StreamRunAgentTools3$outboundSchema),
3804
- z.lazy(() => StreamRunAgentTools4$outboundSchema),
3805
- z.lazy(() => StreamRunAgentTools5$outboundSchema),
3806
- z.lazy(() => Tools6$outboundSchema),
3807
- z.lazy(() => Tools7$outboundSchema),
3808
- z.lazy(() => Tools8$outboundSchema),
3809
- z.lazy(() => Tools9$outboundSchema),
3810
- z.lazy(() => Tools10$outboundSchema),
3811
- 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
+ ),
3812
2762
  ]),
3813
2763
  ),
3814
2764
  toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema