@orq-ai/node 3.12.14 → 3.12.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +1 -4
  2. package/bin/mcp-server.js +113 -113
  3. package/bin/mcp-server.js.map +31 -31
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/url.js +1 -1
  9. package/lib/url.js.map +1 -1
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/createbudget.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +16 -16
  18. package/models/operations/fileget.js +2 -2
  19. package/models/operations/filelist.js +2 -2
  20. package/models/operations/fileupload.js +2 -2
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +2 -2
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +2 -2
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/updatebudget.js +2 -2
  33. package/models/operations/updatecontact.js +2 -2
  34. package/models/operations/updatedatapoint.js +2 -2
  35. package/models/operations/updatedataset.js +2 -2
  36. package/models/operations/updatedatasource.js +2 -2
  37. package/models/operations/updateeval.js +16 -16
  38. package/package.json +1 -1
  39. package/packages/orq-rc/README.md +108 -94
  40. package/packages/orq-rc/docs/sdks/agents/README.md +8 -2
  41. package/packages/orq-rc/docs/sdks/evals/README.md +2 -0
  42. package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
  43. package/packages/orq-rc/examples/package-lock.json +1 -1
  44. package/packages/orq-rc/jsr.json +1 -1
  45. package/packages/orq-rc/package-lock.json +2 -2
  46. package/packages/orq-rc/package.json +1 -1
  47. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  48. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  49. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  50. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  51. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  52. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  53. package/packages/orq-rc/src/lib/config.ts +3 -3
  54. package/packages/orq-rc/src/lib/url.ts +1 -1
  55. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  56. package/packages/orq-rc/src/mcp-server/server.ts +13 -1
  57. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  58. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  59. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  60. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  61. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  62. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  63. package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
  64. package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
  65. package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
  66. package/packages/orq-rc/src/models/components/deployments.ts +52 -45
  67. package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
  68. package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
  69. package/packages/orq-rc/src/models/components/httptool.ts +532 -0
  70. package/packages/orq-rc/src/models/components/index.ts +13 -0
  71. package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
  72. package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
  73. package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
  74. package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
  75. package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
  76. package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
  77. package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
  78. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  79. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  80. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  81. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
  85. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/createeval.ts +199 -56
  87. package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
  88. package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
  89. package/packages/orq-rc/src/models/operations/createprompt.ts +633 -314
  90. package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
  91. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  92. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
  93. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +363 -194
  94. package/packages/orq-rc/src/models/operations/deployments.ts +330 -160
  95. package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
  96. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
  97. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
  101. package/packages/orq-rc/src/models/operations/getallprompts.ts +334 -168
  102. package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
  103. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  105. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
  106. package/packages/orq-rc/src/models/operations/getoneprompt.ts +330 -167
  107. package/packages/orq-rc/src/models/operations/getpromptversion.ts +338 -168
  108. package/packages/orq-rc/src/models/operations/index.ts +6 -0
  109. package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
  110. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
  113. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
  116. package/packages/orq-rc/src/models/operations/listpromptversions.ts +355 -183
  117. package/packages/orq-rc/src/models/operations/parse.ts +20 -335
  118. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
  120. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
  123. package/packages/orq-rc/src/models/operations/runagent.ts +428 -1384
  124. package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/streamrunagent.ts +409 -1452
  126. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  127. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
  129. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/updateeval.ts +210 -57
  132. package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
  133. package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
  134. package/packages/orq-rc/src/models/operations/updateprompt.ts +670 -335
  135. package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
  136. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  137. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  138. package/src/lib/config.ts +3 -3
  139. package/src/lib/url.ts +1 -1
  140. package/src/mcp-server/mcp-server.ts +1 -1
  141. package/src/mcp-server/server.ts +1 -1
  142. package/src/models/operations/createbudget.ts +2 -2
  143. package/src/models/operations/createcontact.ts +2 -2
  144. package/src/models/operations/createdataset.ts +2 -2
  145. package/src/models/operations/createdatasetitem.ts +2 -2
  146. package/src/models/operations/createdatasource.ts +2 -2
  147. package/src/models/operations/createeval.ts +16 -16
  148. package/src/models/operations/fileget.ts +2 -2
  149. package/src/models/operations/filelist.ts +2 -2
  150. package/src/models/operations/fileupload.ts +2 -2
  151. package/src/models/operations/getbudget.ts +2 -2
  152. package/src/models/operations/getevals.ts +28 -28
  153. package/src/models/operations/listbudgets.ts +2 -2
  154. package/src/models/operations/listcontacts.ts +2 -2
  155. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  156. package/src/models/operations/listdatasets.ts +2 -2
  157. package/src/models/operations/listdatasources.ts +2 -2
  158. package/src/models/operations/retrievecontact.ts +2 -2
  159. package/src/models/operations/retrievedatapoint.ts +2 -2
  160. package/src/models/operations/retrievedataset.ts +2 -2
  161. package/src/models/operations/retrievedatasource.ts +2 -2
  162. package/src/models/operations/updatebudget.ts +2 -2
  163. package/src/models/operations/updatecontact.ts +2 -2
  164. package/src/models/operations/updatedatapoint.ts +2 -2
  165. package/src/models/operations/updatedataset.ts +2 -2
  166. package/src/models/operations/updatedatasource.ts +2 -2
  167. package/src/models/operations/updateeval.ts +16 -16
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  export const Role2 = {
@@ -103,7 +104,7 @@ export type PartsKind = ClosedEnum<typeof PartsKind>;
103
104
 
104
105
  export type Parts2 = {
105
106
  kind: PartsKind;
106
- data?: any | undefined;
107
+ data: { [k: string]: any };
107
108
  metadata?: { [k: string]: any } | undefined;
108
109
  };
109
110
 
@@ -117,7 +118,7 @@ export type Parts1 = {
117
118
  text: string;
118
119
  };
119
120
 
120
- export type Parts = Parts4 | Parts1 | Parts3 | Five | Parts2;
121
+ export type Parts = Parts4 | Parts1 | Parts2 | Parts3 | Five;
121
122
 
122
123
  /**
123
124
  * The A2A format message containing the task for the agent to perform.
@@ -134,7 +135,7 @@ export type Message = {
134
135
  /**
135
136
  * A2A message parts
136
137
  */
137
- parts: Array<Parts4 | Parts1 | Parts3 | Five | Parts2>;
138
+ parts: Array<Parts4 | Parts1 | Parts2 | Parts3 | Five>;
138
139
  /**
139
140
  * Optional message metadata
140
141
  */
@@ -236,30 +237,6 @@ export type TeamOfAgents = {
236
237
  role?: string | undefined;
237
238
  };
238
239
 
239
- export const RunAgentToolsAgentsRequestRequestBodySettings13Type = {
240
- Function: "function",
241
- } as const;
242
- export type RunAgentToolsAgentsRequestRequestBodySettings13Type = ClosedEnum<
243
- typeof RunAgentToolsAgentsRequestRequestBodySettings13Type
244
- >;
245
-
246
- export type ToolsFunction = {
247
- name: string;
248
- description?: string | undefined;
249
- strict?: boolean | undefined;
250
- parameters?: { [k: string]: any } | undefined;
251
- };
252
-
253
- export type Thirteen = {
254
- type: RunAgentToolsAgentsRequestRequestBodySettings13Type;
255
- id?: string | undefined;
256
- key: string;
257
- displayName?: string | undefined;
258
- description?: string | undefined;
259
- requiresApproval?: boolean | undefined;
260
- function: ToolsFunction;
261
- };
262
-
263
240
  /**
264
241
  * 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.
265
242
  */
@@ -274,12 +251,10 @@ export const Status = {
274
251
  */
275
252
  export type Status = ClosedEnum<typeof Status>;
276
253
 
277
- export const RunAgentToolsAgentsRequestRequestBodySettings12Type = {
254
+ export const ToolsType = {
278
255
  Http: "http",
279
256
  } as const;
280
- export type RunAgentToolsAgentsRequestRequestBodySettings12Type = ClosedEnum<
281
- typeof RunAgentToolsAgentsRequestRequestBodySettings12Type
282
- >;
257
+ export type ToolsType = ClosedEnum<typeof ToolsType>;
283
258
 
284
259
  /**
285
260
  * The HTTP method to use.
@@ -320,7 +295,7 @@ export type Blueprint = {
320
295
  /**
321
296
  * The type of the argument.
322
297
  */
323
- export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType = {
298
+ export const RunAgentToolsType = {
324
299
  String: "string",
325
300
  Number: "number",
326
301
  Boolean: "boolean",
@@ -328,8 +303,7 @@ export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType = {
328
303
  /**
329
304
  * The type of the argument.
330
305
  */
331
- export type RunAgentToolsAgentsRequestRequestBodySettings12HttpType =
332
- ClosedEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings12HttpType>;
306
+ export type RunAgentToolsType = ClosedEnum<typeof RunAgentToolsType>;
333
307
 
334
308
  /**
335
309
  * The default value of the argument.
@@ -340,7 +314,7 @@ export type Arguments = {
340
314
  /**
341
315
  * The type of the argument.
342
316
  */
343
- type: RunAgentToolsAgentsRequestRequestBodySettings12HttpType;
317
+ type: RunAgentToolsType;
344
318
  /**
345
319
  * A description of the argument.
346
320
  */
@@ -366,7 +340,10 @@ export type Http = {
366
340
  arguments?: { [k: string]: Arguments } | undefined;
367
341
  };
368
342
 
369
- export type Twelve = {
343
+ /**
344
+ * Makes HTTP requests to external APIs
345
+ */
346
+ export type TwentyFour = {
370
347
  id?: string | undefined;
371
348
  /**
372
349
  * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
@@ -389,153 +366,30 @@ export type Twelve = {
389
366
  */
390
367
  status?: Status | undefined;
391
368
  versionHash?: string | undefined;
392
- type: RunAgentToolsAgentsRequestRequestBodySettings12Type;
393
- http: Http;
394
- requiresApproval?: boolean | undefined;
395
- };
396
-
397
- export const RunAgentToolsAgentsRequestRequestBodySettings11Type = {
398
- CurrentDate: "current_date",
399
- } as const;
400
- export type RunAgentToolsAgentsRequestRequestBodySettings11Type = ClosedEnum<
401
- typeof RunAgentToolsAgentsRequestRequestBodySettings11Type
402
- >;
403
-
404
- export type Eleven = {
405
- type: RunAgentToolsAgentsRequestRequestBodySettings11Type;
406
- requiresApproval?: boolean | undefined;
407
- };
408
-
409
- export const RunAgentToolsAgentsRequestRequestBodySettings10Type = {
410
- QueryKnowledgeBase: "query_knowledge_base",
411
- } as const;
412
- export type RunAgentToolsAgentsRequestRequestBodySettings10Type = ClosedEnum<
413
- typeof RunAgentToolsAgentsRequestRequestBodySettings10Type
414
- >;
415
-
416
- export type Ten = {
417
- type: RunAgentToolsAgentsRequestRequestBodySettings10Type;
418
- requiresApproval?: boolean | undefined;
419
- };
420
-
421
- export const RunAgentToolsAgentsRequestRequestBodySettings9Type = {
422
- RetrieveKnowledgeBases: "retrieve_knowledge_bases",
423
- } as const;
424
- export type RunAgentToolsAgentsRequestRequestBodySettings9Type = ClosedEnum<
425
- typeof RunAgentToolsAgentsRequestRequestBodySettings9Type
426
- >;
427
-
428
- export type Nine = {
429
- type: RunAgentToolsAgentsRequestRequestBodySettings9Type;
430
- requiresApproval?: boolean | undefined;
431
- };
432
-
433
- export const RunAgentToolsAgentsRequestRequestBodySettings8Type = {
434
- RetrieveMemoryStores: "retrieve_memory_stores",
435
- } as const;
436
- export type RunAgentToolsAgentsRequestRequestBodySettings8Type = ClosedEnum<
437
- typeof RunAgentToolsAgentsRequestRequestBodySettings8Type
438
- >;
439
-
440
- export type Eight = {
441
- type: RunAgentToolsAgentsRequestRequestBodySettings8Type;
442
- requiresApproval?: boolean | undefined;
443
- };
444
-
445
- export const RunAgentToolsAgentsRequestRequestBodySettings7Type = {
446
- DeleteMemoryDocument: "delete_memory_document",
447
- } as const;
448
- export type RunAgentToolsAgentsRequestRequestBodySettings7Type = ClosedEnum<
449
- typeof RunAgentToolsAgentsRequestRequestBodySettings7Type
450
- >;
451
-
452
- export type Seven = {
453
- type: RunAgentToolsAgentsRequestRequestBodySettings7Type;
454
- requiresApproval?: boolean | undefined;
455
- };
456
-
457
- export const RunAgentToolsAgentsRequestRequestBodySettingsType = {
458
- WriteMemoryStore: "write_memory_store",
459
- } as const;
460
- export type RunAgentToolsAgentsRequestRequestBodySettingsType = ClosedEnum<
461
- typeof RunAgentToolsAgentsRequestRequestBodySettingsType
462
- >;
463
-
464
- export type Six = {
465
- type: RunAgentToolsAgentsRequestRequestBodySettingsType;
466
- requiresApproval?: boolean | undefined;
467
- };
468
-
469
- export const RunAgentToolsAgentsRequestRequestBodyType = {
470
- QueryMemoryStore: "query_memory_store",
471
- } as const;
472
- export type RunAgentToolsAgentsRequestRequestBodyType = ClosedEnum<
473
- typeof RunAgentToolsAgentsRequestRequestBodyType
474
- >;
475
-
476
- export type Tools5 = {
477
- type: RunAgentToolsAgentsRequestRequestBodyType;
478
- requiresApproval?: boolean | undefined;
479
- };
480
-
481
- export const RunAgentToolsAgentsRequestType = {
482
- RetrieveAgents: "retrieve_agents",
483
- } as const;
484
- export type RunAgentToolsAgentsRequestType = ClosedEnum<
485
- typeof RunAgentToolsAgentsRequestType
486
- >;
487
-
488
- export type Tools4 = {
489
- type: RunAgentToolsAgentsRequestType;
490
- requiresApproval?: boolean | undefined;
491
- };
492
-
493
- export const RunAgentToolsAgentsType = {
494
- CallSubAgent: "call_sub_agent",
495
- } as const;
496
- export type RunAgentToolsAgentsType = ClosedEnum<
497
- typeof RunAgentToolsAgentsType
498
- >;
499
-
500
- export type Tools3 = {
501
- type: RunAgentToolsAgentsType;
502
- requiresApproval?: boolean | undefined;
503
- };
504
-
505
- export const RunAgentToolsType = {
506
- WebScraper: "web_scraper",
507
- } as const;
508
- export type RunAgentToolsType = ClosedEnum<typeof RunAgentToolsType>;
509
-
510
- export type Tools2 = {
511
- type: RunAgentToolsType;
512
- requiresApproval?: boolean | undefined;
513
- };
514
-
515
- export const ToolsType = {
516
- GoogleSearch: "google_search",
517
- } as const;
518
- export type ToolsType = ClosedEnum<typeof ToolsType>;
519
-
520
- export type Tools1 = {
521
369
  type: ToolsType;
370
+ http: Http;
522
371
  requiresApproval?: boolean | undefined;
523
372
  };
524
373
 
374
+ /**
375
+ * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
376
+ */
525
377
  export type Tools =
526
- | Twelve
527
- | Thirteen
528
- | Tools1
529
- | Tools2
530
- | Tools3
531
- | Tools4
532
- | Tools5
533
- | Six
534
- | Seven
535
- | Eight
536
- | Nine
537
- | Ten
538
- | Eleven;
378
+ | (components.HttpTool & { type: "http" })
379
+ | (components.CodeExecutionTool & { type: "code" })
380
+ | (components.FunctionTool & { type: "function" })
381
+ | (components.GoogleSearchTool & { type: "google_search" })
382
+ | (components.WebScraperTool & { type: "web_scraper" })
383
+ | (components.CallSubAgentTool & { type: "call_sub_agent" })
384
+ | (components.RetrieveAgentsTool & { type: "retrieve_agents" })
385
+ | (components.QueryMemoryStoreTool & { type: "query_memory_store" })
386
+ | (components.WriteMemoryStoreTool & { type: "write_memory_store" })
387
+ | (components.RetrieveMemoryStoresTool & { type: "retrieve_memory_stores" })
388
+ | (components.RetrieveKnowledgeBasesTool & {
389
+ type: "retrieve_knowledge_bases";
390
+ })
391
+ | (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
392
+ | (components.CurrentDateTool & { type: "current_date" });
539
393
 
540
394
  /**
541
395
  * 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.
@@ -552,19 +406,21 @@ export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
552
406
 
553
407
  export type Settings = {
554
408
  tools: Array<
555
- | Twelve
556
- | Thirteen
557
- | Tools1
558
- | Tools2
559
- | Tools3
560
- | Tools4
561
- | Tools5
562
- | Six
563
- | Seven
564
- | Eight
565
- | Nine
566
- | Ten
567
- | Eleven
409
+ | (components.HttpTool & { type: "http" })
410
+ | (components.CodeExecutionTool & { type: "code" })
411
+ | (components.FunctionTool & { type: "function" })
412
+ | (components.GoogleSearchTool & { type: "google_search" })
413
+ | (components.WebScraperTool & { type: "web_scraper" })
414
+ | (components.CallSubAgentTool & { type: "call_sub_agent" })
415
+ | (components.RetrieveAgentsTool & { type: "retrieve_agents" })
416
+ | (components.QueryMemoryStoreTool & { type: "query_memory_store" })
417
+ | (components.WriteMemoryStoreTool & { type: "write_memory_store" })
418
+ | (components.RetrieveMemoryStoresTool & { type: "retrieve_memory_stores" })
419
+ | (components.RetrieveKnowledgeBasesTool & {
420
+ type: "retrieve_knowledge_bases";
421
+ })
422
+ | (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
423
+ | (components.CurrentDateTool & { type: "current_date" })
568
424
  >;
569
425
  /**
570
426
  * 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.
@@ -644,6 +500,10 @@ export type RunAgentRequestBody = {
644
500
  */
645
501
  teamOfAgents?: Array<TeamOfAgents> | undefined;
646
502
  settings: Settings;
503
+ /**
504
+ * Optional metadata for the agent run as key-value pairs that will be included in traces
505
+ */
506
+ metadata?: { [k: string]: any } | undefined;
647
507
  };
648
508
 
649
509
  /**
@@ -1267,14 +1127,14 @@ export namespace PartsKind$ {
1267
1127
  export const Parts2$inboundSchema: z.ZodType<Parts2, z.ZodTypeDef, unknown> = z
1268
1128
  .object({
1269
1129
  kind: PartsKind$inboundSchema,
1270
- data: z.any().optional(),
1130
+ data: z.record(z.any()),
1271
1131
  metadata: z.record(z.any()).optional(),
1272
1132
  });
1273
1133
 
1274
1134
  /** @internal */
1275
1135
  export type Parts2$Outbound = {
1276
1136
  kind: string;
1277
- data?: any | undefined;
1137
+ data: { [k: string]: any };
1278
1138
  metadata?: { [k: string]: any } | undefined;
1279
1139
  };
1280
1140
 
@@ -1285,7 +1145,7 @@ export const Parts2$outboundSchema: z.ZodType<
1285
1145
  Parts2
1286
1146
  > = z.object({
1287
1147
  kind: PartsKind$outboundSchema,
1288
- data: z.any().optional(),
1148
+ data: z.record(z.any()),
1289
1149
  metadata: z.record(z.any()).optional(),
1290
1150
  });
1291
1151
 
@@ -1391,18 +1251,18 @@ export const Parts$inboundSchema: z.ZodType<Parts, z.ZodTypeDef, unknown> = z
1391
1251
  .union([
1392
1252
  z.lazy(() => Parts4$inboundSchema),
1393
1253
  z.lazy(() => Parts1$inboundSchema),
1254
+ z.lazy(() => Parts2$inboundSchema),
1394
1255
  z.lazy(() => Parts3$inboundSchema),
1395
1256
  z.lazy(() => Five$inboundSchema),
1396
- z.lazy(() => Parts2$inboundSchema),
1397
1257
  ]);
1398
1258
 
1399
1259
  /** @internal */
1400
1260
  export type Parts$Outbound =
1401
1261
  | Parts4$Outbound
1402
1262
  | Parts1$Outbound
1263
+ | Parts2$Outbound
1403
1264
  | Parts3$Outbound
1404
- | Five$Outbound
1405
- | Parts2$Outbound;
1265
+ | Five$Outbound;
1406
1266
 
1407
1267
  /** @internal */
1408
1268
  export const Parts$outboundSchema: z.ZodType<
@@ -1412,9 +1272,9 @@ export const Parts$outboundSchema: z.ZodType<
1412
1272
  > = z.union([
1413
1273
  z.lazy(() => Parts4$outboundSchema),
1414
1274
  z.lazy(() => Parts1$outboundSchema),
1275
+ z.lazy(() => Parts2$outboundSchema),
1415
1276
  z.lazy(() => Parts3$outboundSchema),
1416
1277
  z.lazy(() => Five$outboundSchema),
1417
- z.lazy(() => Parts2$outboundSchema),
1418
1278
  ]);
1419
1279
 
1420
1280
  /**
@@ -1453,9 +1313,9 @@ export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
1453
1313
  z.union([
1454
1314
  z.lazy(() => Parts4$inboundSchema),
1455
1315
  z.lazy(() => Parts1$inboundSchema),
1316
+ z.lazy(() => Parts2$inboundSchema),
1456
1317
  z.lazy(() => Parts3$inboundSchema),
1457
1318
  z.lazy(() => Five$inboundSchema),
1458
- z.lazy(() => Parts2$inboundSchema),
1459
1319
  ]),
1460
1320
  ),
1461
1321
  metadata: z.record(z.any()).optional(),
@@ -1468,9 +1328,9 @@ export type Message$Outbound = {
1468
1328
  parts: Array<
1469
1329
  | Parts4$Outbound
1470
1330
  | Parts1$Outbound
1331
+ | Parts2$Outbound
1471
1332
  | Parts3$Outbound
1472
1333
  | Five$Outbound
1473
- | Parts2$Outbound
1474
1334
  >;
1475
1335
  metadata?: { [k: string]: any } | undefined;
1476
1336
  };
@@ -1487,9 +1347,9 @@ export const Message$outboundSchema: z.ZodType<
1487
1347
  z.union([
1488
1348
  z.lazy(() => Parts4$outboundSchema),
1489
1349
  z.lazy(() => Parts1$outboundSchema),
1350
+ z.lazy(() => Parts2$outboundSchema),
1490
1351
  z.lazy(() => Parts3$outboundSchema),
1491
1352
  z.lazy(() => Five$outboundSchema),
1492
- z.lazy(() => Parts2$outboundSchema),
1493
1353
  ]),
1494
1354
  ),
1495
1355
  metadata: z.record(z.any()).optional(),
@@ -2016,168 +1876,6 @@ export function teamOfAgentsFromJSON(
2016
1876
  );
2017
1877
  }
2018
1878
 
2019
- /** @internal */
2020
- export const RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema:
2021
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings13Type> =
2022
- z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings13Type);
2023
-
2024
- /** @internal */
2025
- export const RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema:
2026
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings13Type> =
2027
- RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
2028
-
2029
- /**
2030
- * @internal
2031
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2032
- */
2033
- export namespace RunAgentToolsAgentsRequestRequestBodySettings13Type$ {
2034
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema` instead. */
2035
- export const inboundSchema =
2036
- RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
2037
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema` instead. */
2038
- export const outboundSchema =
2039
- RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema;
2040
- }
2041
-
2042
- /** @internal */
2043
- export const ToolsFunction$inboundSchema: z.ZodType<
2044
- ToolsFunction,
2045
- z.ZodTypeDef,
2046
- unknown
2047
- > = z.object({
2048
- name: z.string(),
2049
- description: z.string().optional(),
2050
- strict: z.boolean().optional(),
2051
- parameters: z.record(z.any()).optional(),
2052
- });
2053
-
2054
- /** @internal */
2055
- export type ToolsFunction$Outbound = {
2056
- name: string;
2057
- description?: string | undefined;
2058
- strict?: boolean | undefined;
2059
- parameters?: { [k: string]: any } | undefined;
2060
- };
2061
-
2062
- /** @internal */
2063
- export const ToolsFunction$outboundSchema: z.ZodType<
2064
- ToolsFunction$Outbound,
2065
- z.ZodTypeDef,
2066
- ToolsFunction
2067
- > = z.object({
2068
- name: z.string(),
2069
- description: z.string().optional(),
2070
- strict: z.boolean().optional(),
2071
- parameters: z.record(z.any()).optional(),
2072
- });
2073
-
2074
- /**
2075
- * @internal
2076
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2077
- */
2078
- export namespace ToolsFunction$ {
2079
- /** @deprecated use `ToolsFunction$inboundSchema` instead. */
2080
- export const inboundSchema = ToolsFunction$inboundSchema;
2081
- /** @deprecated use `ToolsFunction$outboundSchema` instead. */
2082
- export const outboundSchema = ToolsFunction$outboundSchema;
2083
- /** @deprecated use `ToolsFunction$Outbound` instead. */
2084
- export type Outbound = ToolsFunction$Outbound;
2085
- }
2086
-
2087
- export function toolsFunctionToJSON(toolsFunction: ToolsFunction): string {
2088
- return JSON.stringify(ToolsFunction$outboundSchema.parse(toolsFunction));
2089
- }
2090
-
2091
- export function toolsFunctionFromJSON(
2092
- jsonString: string,
2093
- ): SafeParseResult<ToolsFunction, SDKValidationError> {
2094
- return safeParse(
2095
- jsonString,
2096
- (x) => ToolsFunction$inboundSchema.parse(JSON.parse(x)),
2097
- `Failed to parse 'ToolsFunction' from JSON`,
2098
- );
2099
- }
2100
-
2101
- /** @internal */
2102
- export const Thirteen$inboundSchema: z.ZodType<
2103
- Thirteen,
2104
- z.ZodTypeDef,
2105
- unknown
2106
- > = z.object({
2107
- type: RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema,
2108
- _id: z.string().optional(),
2109
- key: z.string(),
2110
- display_name: z.string().optional(),
2111
- description: z.string().optional(),
2112
- requires_approval: z.boolean().default(false),
2113
- function: z.lazy(() => ToolsFunction$inboundSchema),
2114
- }).transform((v) => {
2115
- return remap$(v, {
2116
- "_id": "id",
2117
- "display_name": "displayName",
2118
- "requires_approval": "requiresApproval",
2119
- });
2120
- });
2121
-
2122
- /** @internal */
2123
- export type Thirteen$Outbound = {
2124
- type: string;
2125
- _id?: string | undefined;
2126
- key: string;
2127
- display_name?: string | undefined;
2128
- description?: string | undefined;
2129
- requires_approval: boolean;
2130
- function: ToolsFunction$Outbound;
2131
- };
2132
-
2133
- /** @internal */
2134
- export const Thirteen$outboundSchema: z.ZodType<
2135
- Thirteen$Outbound,
2136
- z.ZodTypeDef,
2137
- Thirteen
2138
- > = z.object({
2139
- type: RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema,
2140
- id: z.string().optional(),
2141
- key: z.string(),
2142
- displayName: z.string().optional(),
2143
- description: z.string().optional(),
2144
- requiresApproval: z.boolean().default(false),
2145
- function: z.lazy(() => ToolsFunction$outboundSchema),
2146
- }).transform((v) => {
2147
- return remap$(v, {
2148
- id: "_id",
2149
- displayName: "display_name",
2150
- requiresApproval: "requires_approval",
2151
- });
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 Thirteen$ {
2159
- /** @deprecated use `Thirteen$inboundSchema` instead. */
2160
- export const inboundSchema = Thirteen$inboundSchema;
2161
- /** @deprecated use `Thirteen$outboundSchema` instead. */
2162
- export const outboundSchema = Thirteen$outboundSchema;
2163
- /** @deprecated use `Thirteen$Outbound` instead. */
2164
- export type Outbound = Thirteen$Outbound;
2165
- }
2166
-
2167
- export function thirteenToJSON(thirteen: Thirteen): string {
2168
- return JSON.stringify(Thirteen$outboundSchema.parse(thirteen));
2169
- }
2170
-
2171
- export function thirteenFromJSON(
2172
- jsonString: string,
2173
- ): SafeParseResult<Thirteen, SDKValidationError> {
2174
- return safeParse(
2175
- jsonString,
2176
- (x) => Thirteen$inboundSchema.parse(JSON.parse(x)),
2177
- `Failed to parse 'Thirteen' from JSON`,
2178
- );
2179
- }
2180
-
2181
1879
  /** @internal */
2182
1880
  export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
2183
1881
  .nativeEnum(Status);
@@ -2198,26 +1896,22 @@ export namespace Status$ {
2198
1896
  }
2199
1897
 
2200
1898
  /** @internal */
2201
- export const RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema:
2202
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings12Type> =
2203
- z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings12Type);
1899
+ export const ToolsType$inboundSchema: z.ZodNativeEnum<typeof ToolsType> = z
1900
+ .nativeEnum(ToolsType);
2204
1901
 
2205
1902
  /** @internal */
2206
- export const RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema:
2207
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings12Type> =
2208
- RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
1903
+ export const ToolsType$outboundSchema: z.ZodNativeEnum<typeof ToolsType> =
1904
+ ToolsType$inboundSchema;
2209
1905
 
2210
1906
  /**
2211
1907
  * @internal
2212
1908
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2213
1909
  */
2214
- export namespace RunAgentToolsAgentsRequestRequestBodySettings12Type$ {
2215
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema` instead. */
2216
- export const inboundSchema =
2217
- RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
2218
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema` instead. */
2219
- export const outboundSchema =
2220
- RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema;
1910
+ export namespace ToolsType$ {
1911
+ /** @deprecated use `ToolsType$inboundSchema` instead. */
1912
+ export const inboundSchema = ToolsType$inboundSchema;
1913
+ /** @deprecated use `ToolsType$outboundSchema` instead. */
1914
+ export const outboundSchema = ToolsType$outboundSchema;
2221
1915
  }
2222
1916
 
2223
1917
  /** @internal */
@@ -2299,28 +1993,24 @@ export function blueprintFromJSON(
2299
1993
  }
2300
1994
 
2301
1995
  /** @internal */
2302
- export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema:
2303
- z.ZodNativeEnum<
2304
- typeof RunAgentToolsAgentsRequestRequestBodySettings12HttpType
2305
- > = z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings12HttpType);
1996
+ export const RunAgentToolsType$inboundSchema: z.ZodNativeEnum<
1997
+ typeof RunAgentToolsType
1998
+ > = z.nativeEnum(RunAgentToolsType);
2306
1999
 
2307
2000
  /** @internal */
2308
- export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema:
2309
- z.ZodNativeEnum<
2310
- typeof RunAgentToolsAgentsRequestRequestBodySettings12HttpType
2311
- > = RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
2001
+ export const RunAgentToolsType$outboundSchema: z.ZodNativeEnum<
2002
+ typeof RunAgentToolsType
2003
+ > = RunAgentToolsType$inboundSchema;
2312
2004
 
2313
2005
  /**
2314
2006
  * @internal
2315
2007
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2316
2008
  */
2317
- export namespace RunAgentToolsAgentsRequestRequestBodySettings12HttpType$ {
2318
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema` instead. */
2319
- export const inboundSchema =
2320
- RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
2321
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema` instead. */
2322
- export const outboundSchema =
2323
- RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema;
2009
+ export namespace RunAgentToolsType$ {
2010
+ /** @deprecated use `RunAgentToolsType$inboundSchema` instead. */
2011
+ export const inboundSchema = RunAgentToolsType$inboundSchema;
2012
+ /** @deprecated use `RunAgentToolsType$outboundSchema` instead. */
2013
+ export const outboundSchema = RunAgentToolsType$outboundSchema;
2324
2014
  }
2325
2015
 
2326
2016
  /** @internal */
@@ -2373,7 +2063,7 @@ export const Arguments$inboundSchema: z.ZodType<
2373
2063
  z.ZodTypeDef,
2374
2064
  unknown
2375
2065
  > = z.object({
2376
- type: RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema,
2066
+ type: RunAgentToolsType$inboundSchema,
2377
2067
  description: z.string(),
2378
2068
  send_to_model: z.boolean().default(true),
2379
2069
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2398,7 +2088,7 @@ export const Arguments$outboundSchema: z.ZodType<
2398
2088
  z.ZodTypeDef,
2399
2089
  Arguments
2400
2090
  > = z.object({
2401
- type: RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema,
2091
+ type: RunAgentToolsType$outboundSchema,
2402
2092
  description: z.string(),
2403
2093
  sendToModel: z.boolean().default(true),
2404
2094
  defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2484,29 +2174,32 @@ export function httpFromJSON(
2484
2174
  }
2485
2175
 
2486
2176
  /** @internal */
2487
- export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
2488
- .object({
2489
- _id: z.string().default("01K5RWRYMC1SRKM5MT11ATVJHN"),
2490
- path: z.string(),
2491
- key: z.string(),
2492
- display_name: z.string(),
2493
- description: z.string(),
2494
- status: Status$inboundSchema.default("live"),
2495
- version_hash: z.string().optional(),
2496
- type: RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema,
2497
- http: z.lazy(() => Http$inboundSchema),
2498
- requires_approval: z.boolean().default(false),
2499
- }).transform((v) => {
2500
- return remap$(v, {
2501
- "_id": "id",
2502
- "display_name": "displayName",
2503
- "version_hash": "versionHash",
2504
- "requires_approval": "requiresApproval",
2505
- });
2177
+ export const TwentyFour$inboundSchema: z.ZodType<
2178
+ TwentyFour,
2179
+ z.ZodTypeDef,
2180
+ unknown
2181
+ > = z.object({
2182
+ _id: z.string().default("01K5ZT3CQZFBXVN2YQ8CKRJ1MW"),
2183
+ path: z.string(),
2184
+ key: z.string(),
2185
+ display_name: z.string(),
2186
+ description: z.string(),
2187
+ status: Status$inboundSchema.default("live"),
2188
+ version_hash: z.string().optional(),
2189
+ type: ToolsType$inboundSchema,
2190
+ http: z.lazy(() => Http$inboundSchema),
2191
+ requires_approval: z.boolean().default(false),
2192
+ }).transform((v) => {
2193
+ return remap$(v, {
2194
+ "_id": "id",
2195
+ "display_name": "displayName",
2196
+ "version_hash": "versionHash",
2197
+ "requires_approval": "requiresApproval",
2506
2198
  });
2199
+ });
2507
2200
 
2508
2201
  /** @internal */
2509
- export type Twelve$Outbound = {
2202
+ export type TwentyFour$Outbound = {
2510
2203
  _id: string;
2511
2204
  path: string;
2512
2205
  key: string;
@@ -2520,19 +2213,19 @@ export type Twelve$Outbound = {
2520
2213
  };
2521
2214
 
2522
2215
  /** @internal */
2523
- export const Twelve$outboundSchema: z.ZodType<
2524
- Twelve$Outbound,
2216
+ export const TwentyFour$outboundSchema: z.ZodType<
2217
+ TwentyFour$Outbound,
2525
2218
  z.ZodTypeDef,
2526
- Twelve
2219
+ TwentyFour
2527
2220
  > = z.object({
2528
- id: z.string().default("01K5RWRYMC1SRKM5MT11ATVJHN"),
2221
+ id: z.string().default("01K5ZT3CQZFBXVN2YQ8CKRJ1MW"),
2529
2222
  path: z.string(),
2530
2223
  key: z.string(),
2531
2224
  displayName: z.string(),
2532
2225
  description: z.string(),
2533
2226
  status: Status$outboundSchema.default("live"),
2534
2227
  versionHash: z.string().optional(),
2535
- type: RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema,
2228
+ type: ToolsType$outboundSchema,
2536
2229
  http: z.lazy(() => Http$outboundSchema),
2537
2230
  requiresApproval: z.boolean().default(false),
2538
2231
  }).transform((v) => {
@@ -2548,934 +2241,120 @@ export const Twelve$outboundSchema: z.ZodType<
2548
2241
  * @internal
2549
2242
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2550
2243
  */
2551
- export namespace Twelve$ {
2552
- /** @deprecated use `Twelve$inboundSchema` instead. */
2553
- export const inboundSchema = Twelve$inboundSchema;
2554
- /** @deprecated use `Twelve$outboundSchema` instead. */
2555
- export const outboundSchema = Twelve$outboundSchema;
2556
- /** @deprecated use `Twelve$Outbound` instead. */
2557
- export type Outbound = Twelve$Outbound;
2244
+ export namespace TwentyFour$ {
2245
+ /** @deprecated use `TwentyFour$inboundSchema` instead. */
2246
+ export const inboundSchema = TwentyFour$inboundSchema;
2247
+ /** @deprecated use `TwentyFour$outboundSchema` instead. */
2248
+ export const outboundSchema = TwentyFour$outboundSchema;
2249
+ /** @deprecated use `TwentyFour$Outbound` instead. */
2250
+ export type Outbound = TwentyFour$Outbound;
2558
2251
  }
2559
2252
 
2560
- export function twelveToJSON(twelve: Twelve): string {
2561
- return JSON.stringify(Twelve$outboundSchema.parse(twelve));
2253
+ export function twentyFourToJSON(twentyFour: TwentyFour): string {
2254
+ return JSON.stringify(TwentyFour$outboundSchema.parse(twentyFour));
2562
2255
  }
2563
2256
 
2564
- export function twelveFromJSON(
2257
+ export function twentyFourFromJSON(
2565
2258
  jsonString: string,
2566
- ): SafeParseResult<Twelve, SDKValidationError> {
2259
+ ): SafeParseResult<TwentyFour, SDKValidationError> {
2567
2260
  return safeParse(
2568
2261
  jsonString,
2569
- (x) => Twelve$inboundSchema.parse(JSON.parse(x)),
2570
- `Failed to parse 'Twelve' from JSON`,
2262
+ (x) => TwentyFour$inboundSchema.parse(JSON.parse(x)),
2263
+ `Failed to parse 'TwentyFour' from JSON`,
2571
2264
  );
2572
2265
  }
2573
2266
 
2574
2267
  /** @internal */
2575
- export const RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema:
2576
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings11Type> =
2577
- z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings11Type);
2578
-
2579
- /** @internal */
2580
- export const RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema:
2581
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings11Type> =
2582
- RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
2583
-
2584
- /**
2585
- * @internal
2586
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2587
- */
2588
- export namespace RunAgentToolsAgentsRequestRequestBodySettings11Type$ {
2589
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema` instead. */
2590
- export const inboundSchema =
2591
- RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
2592
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema` instead. */
2593
- export const outboundSchema =
2594
- RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema;
2595
- }
2596
-
2597
- /** @internal */
2598
- export const Eleven$inboundSchema: z.ZodType<Eleven, z.ZodTypeDef, unknown> = z
2599
- .object({
2600
- type: RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema,
2601
- requires_approval: z.boolean().default(false),
2602
- }).transform((v) => {
2603
- return remap$(v, {
2604
- "requires_approval": "requiresApproval",
2605
- });
2606
- });
2607
-
2608
- /** @internal */
2609
- export type Eleven$Outbound = {
2610
- type: string;
2611
- requires_approval: boolean;
2612
- };
2613
-
2614
- /** @internal */
2615
- export const Eleven$outboundSchema: z.ZodType<
2616
- Eleven$Outbound,
2617
- z.ZodTypeDef,
2618
- Eleven
2619
- > = z.object({
2620
- type: RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema,
2621
- requiresApproval: z.boolean().default(false),
2622
- }).transform((v) => {
2623
- return remap$(v, {
2624
- requiresApproval: "requires_approval",
2625
- });
2626
- });
2627
-
2628
- /**
2629
- * @internal
2630
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2631
- */
2632
- export namespace Eleven$ {
2633
- /** @deprecated use `Eleven$inboundSchema` instead. */
2634
- export const inboundSchema = Eleven$inboundSchema;
2635
- /** @deprecated use `Eleven$outboundSchema` instead. */
2636
- export const outboundSchema = Eleven$outboundSchema;
2637
- /** @deprecated use `Eleven$Outbound` instead. */
2638
- export type Outbound = Eleven$Outbound;
2639
- }
2640
-
2641
- export function elevenToJSON(eleven: Eleven): string {
2642
- return JSON.stringify(Eleven$outboundSchema.parse(eleven));
2643
- }
2644
-
2645
- export function elevenFromJSON(
2646
- jsonString: string,
2647
- ): SafeParseResult<Eleven, SDKValidationError> {
2648
- return safeParse(
2649
- jsonString,
2650
- (x) => Eleven$inboundSchema.parse(JSON.parse(x)),
2651
- `Failed to parse 'Eleven' from JSON`,
2652
- );
2653
- }
2654
-
2655
- /** @internal */
2656
- export const RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema:
2657
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings10Type> =
2658
- z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings10Type);
2659
-
2660
- /** @internal */
2661
- export const RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema:
2662
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings10Type> =
2663
- RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
2664
-
2665
- /**
2666
- * @internal
2667
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2668
- */
2669
- export namespace RunAgentToolsAgentsRequestRequestBodySettings10Type$ {
2670
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema` instead. */
2671
- export const inboundSchema =
2672
- RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
2673
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema` instead. */
2674
- export const outboundSchema =
2675
- RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema;
2676
- }
2677
-
2678
- /** @internal */
2679
- export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
2680
- .object({
2681
- type: RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema,
2682
- requires_approval: z.boolean().default(false),
2683
- }).transform((v) => {
2684
- return remap$(v, {
2685
- "requires_approval": "requiresApproval",
2686
- });
2687
- });
2688
-
2689
- /** @internal */
2690
- export type Ten$Outbound = {
2691
- type: string;
2692
- requires_approval: boolean;
2693
- };
2694
-
2695
- /** @internal */
2696
- export const Ten$outboundSchema: z.ZodType<Ten$Outbound, z.ZodTypeDef, Ten> = z
2697
- .object({
2698
- type: RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema,
2699
- requiresApproval: z.boolean().default(false),
2700
- }).transform((v) => {
2701
- return remap$(v, {
2702
- requiresApproval: "requires_approval",
2703
- });
2704
- });
2705
-
2706
- /**
2707
- * @internal
2708
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2709
- */
2710
- export namespace Ten$ {
2711
- /** @deprecated use `Ten$inboundSchema` instead. */
2712
- export const inboundSchema = Ten$inboundSchema;
2713
- /** @deprecated use `Ten$outboundSchema` instead. */
2714
- export const outboundSchema = Ten$outboundSchema;
2715
- /** @deprecated use `Ten$Outbound` instead. */
2716
- export type Outbound = Ten$Outbound;
2717
- }
2718
-
2719
- export function tenToJSON(ten: Ten): string {
2720
- return JSON.stringify(Ten$outboundSchema.parse(ten));
2721
- }
2722
-
2723
- export function tenFromJSON(
2724
- jsonString: string,
2725
- ): SafeParseResult<Ten, SDKValidationError> {
2726
- return safeParse(
2727
- jsonString,
2728
- (x) => Ten$inboundSchema.parse(JSON.parse(x)),
2729
- `Failed to parse 'Ten' from JSON`,
2730
- );
2731
- }
2732
-
2733
- /** @internal */
2734
- export const RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema:
2735
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings9Type> = z
2736
- .nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings9Type);
2737
-
2738
- /** @internal */
2739
- export const RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema:
2740
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings9Type> =
2741
- RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
2742
-
2743
- /**
2744
- * @internal
2745
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2746
- */
2747
- export namespace RunAgentToolsAgentsRequestRequestBodySettings9Type$ {
2748
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema` instead. */
2749
- export const inboundSchema =
2750
- RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
2751
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema` instead. */
2752
- export const outboundSchema =
2753
- RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema;
2754
- }
2755
-
2756
- /** @internal */
2757
- export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
2758
- .object({
2759
- type: RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema,
2760
- requires_approval: z.boolean().default(false),
2761
- }).transform((v) => {
2762
- return remap$(v, {
2763
- "requires_approval": "requiresApproval",
2764
- });
2765
- });
2766
-
2767
- /** @internal */
2768
- export type Nine$Outbound = {
2769
- type: string;
2770
- requires_approval: boolean;
2771
- };
2772
-
2773
- /** @internal */
2774
- export const Nine$outboundSchema: z.ZodType<Nine$Outbound, z.ZodTypeDef, Nine> =
2775
- z.object({
2776
- type: RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema,
2777
- requiresApproval: z.boolean().default(false),
2778
- }).transform((v) => {
2779
- return remap$(v, {
2780
- requiresApproval: "requires_approval",
2781
- });
2782
- });
2783
-
2784
- /**
2785
- * @internal
2786
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2787
- */
2788
- export namespace Nine$ {
2789
- /** @deprecated use `Nine$inboundSchema` instead. */
2790
- export const inboundSchema = Nine$inboundSchema;
2791
- /** @deprecated use `Nine$outboundSchema` instead. */
2792
- export const outboundSchema = Nine$outboundSchema;
2793
- /** @deprecated use `Nine$Outbound` instead. */
2794
- export type Outbound = Nine$Outbound;
2795
- }
2796
-
2797
- export function nineToJSON(nine: Nine): string {
2798
- return JSON.stringify(Nine$outboundSchema.parse(nine));
2799
- }
2800
-
2801
- export function nineFromJSON(
2802
- jsonString: string,
2803
- ): SafeParseResult<Nine, SDKValidationError> {
2804
- return safeParse(
2805
- jsonString,
2806
- (x) => Nine$inboundSchema.parse(JSON.parse(x)),
2807
- `Failed to parse 'Nine' from JSON`,
2808
- );
2809
- }
2810
-
2811
- /** @internal */
2812
- export const RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema:
2813
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings8Type> = z
2814
- .nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings8Type);
2815
-
2816
- /** @internal */
2817
- export const RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema:
2818
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings8Type> =
2819
- RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
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 RunAgentToolsAgentsRequestRequestBodySettings8Type$ {
2826
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema` instead. */
2827
- export const inboundSchema =
2828
- RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
2829
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema` instead. */
2830
- export const outboundSchema =
2831
- RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema;
2832
- }
2833
-
2834
- /** @internal */
2835
- export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
2836
- .object({
2837
- type: RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema,
2838
- requires_approval: z.boolean().default(false),
2839
- }).transform((v) => {
2840
- return remap$(v, {
2841
- "requires_approval": "requiresApproval",
2842
- });
2843
- });
2844
-
2845
- /** @internal */
2846
- export type Eight$Outbound = {
2847
- type: string;
2848
- requires_approval: boolean;
2849
- };
2850
-
2851
- /** @internal */
2852
- export const Eight$outboundSchema: z.ZodType<
2853
- Eight$Outbound,
2854
- z.ZodTypeDef,
2855
- Eight
2856
- > = z.object({
2857
- type: RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema,
2858
- requiresApproval: z.boolean().default(false),
2859
- }).transform((v) => {
2860
- return remap$(v, {
2861
- requiresApproval: "requires_approval",
2862
- });
2863
- });
2864
-
2865
- /**
2866
- * @internal
2867
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2868
- */
2869
- export namespace Eight$ {
2870
- /** @deprecated use `Eight$inboundSchema` instead. */
2871
- export const inboundSchema = Eight$inboundSchema;
2872
- /** @deprecated use `Eight$outboundSchema` instead. */
2873
- export const outboundSchema = Eight$outboundSchema;
2874
- /** @deprecated use `Eight$Outbound` instead. */
2875
- export type Outbound = Eight$Outbound;
2876
- }
2877
-
2878
- export function eightToJSON(eight: Eight): string {
2879
- return JSON.stringify(Eight$outboundSchema.parse(eight));
2880
- }
2881
-
2882
- export function eightFromJSON(
2883
- jsonString: string,
2884
- ): SafeParseResult<Eight, SDKValidationError> {
2885
- return safeParse(
2886
- jsonString,
2887
- (x) => Eight$inboundSchema.parse(JSON.parse(x)),
2888
- `Failed to parse 'Eight' from JSON`,
2889
- );
2890
- }
2891
-
2892
- /** @internal */
2893
- export const RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema:
2894
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings7Type> = z
2895
- .nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings7Type);
2896
-
2897
- /** @internal */
2898
- export const RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema:
2899
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings7Type> =
2900
- RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
2901
-
2902
- /**
2903
- * @internal
2904
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2905
- */
2906
- export namespace RunAgentToolsAgentsRequestRequestBodySettings7Type$ {
2907
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema` instead. */
2908
- export const inboundSchema =
2909
- RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
2910
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema` instead. */
2911
- export const outboundSchema =
2912
- RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema;
2913
- }
2914
-
2915
- /** @internal */
2916
- export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
2917
- .object({
2918
- type: RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema,
2919
- requires_approval: z.boolean().default(false),
2920
- }).transform((v) => {
2921
- return remap$(v, {
2922
- "requires_approval": "requiresApproval",
2923
- });
2924
- });
2925
-
2926
- /** @internal */
2927
- export type Seven$Outbound = {
2928
- type: string;
2929
- requires_approval: boolean;
2930
- };
2931
-
2932
- /** @internal */
2933
- export const Seven$outboundSchema: z.ZodType<
2934
- Seven$Outbound,
2935
- z.ZodTypeDef,
2936
- Seven
2937
- > = z.object({
2938
- type: RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema,
2939
- requiresApproval: z.boolean().default(false),
2940
- }).transform((v) => {
2941
- return remap$(v, {
2942
- requiresApproval: "requires_approval",
2943
- });
2944
- });
2945
-
2946
- /**
2947
- * @internal
2948
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2949
- */
2950
- export namespace Seven$ {
2951
- /** @deprecated use `Seven$inboundSchema` instead. */
2952
- export const inboundSchema = Seven$inboundSchema;
2953
- /** @deprecated use `Seven$outboundSchema` instead. */
2954
- export const outboundSchema = Seven$outboundSchema;
2955
- /** @deprecated use `Seven$Outbound` instead. */
2956
- export type Outbound = Seven$Outbound;
2957
- }
2958
-
2959
- export function sevenToJSON(seven: Seven): string {
2960
- return JSON.stringify(Seven$outboundSchema.parse(seven));
2961
- }
2962
-
2963
- export function sevenFromJSON(
2964
- jsonString: string,
2965
- ): SafeParseResult<Seven, SDKValidationError> {
2966
- return safeParse(
2967
- jsonString,
2968
- (x) => Seven$inboundSchema.parse(JSON.parse(x)),
2969
- `Failed to parse 'Seven' from JSON`,
2970
- );
2971
- }
2972
-
2973
- /** @internal */
2974
- export const RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema:
2975
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettingsType> = z
2976
- .nativeEnum(RunAgentToolsAgentsRequestRequestBodySettingsType);
2977
-
2978
- /** @internal */
2979
- export const RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema:
2980
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettingsType> =
2981
- RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
2982
-
2983
- /**
2984
- * @internal
2985
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2986
- */
2987
- export namespace RunAgentToolsAgentsRequestRequestBodySettingsType$ {
2988
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
2989
- export const inboundSchema =
2990
- RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
2991
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
2992
- export const outboundSchema =
2993
- RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema;
2994
- }
2995
-
2996
- /** @internal */
2997
- export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
2998
- .object({
2999
- type: RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema,
3000
- requires_approval: z.boolean().default(false),
3001
- }).transform((v) => {
3002
- return remap$(v, {
3003
- "requires_approval": "requiresApproval",
3004
- });
3005
- });
3006
-
3007
- /** @internal */
3008
- export type Six$Outbound = {
3009
- type: string;
3010
- requires_approval: boolean;
3011
- };
3012
-
3013
- /** @internal */
3014
- export const Six$outboundSchema: z.ZodType<Six$Outbound, z.ZodTypeDef, Six> = z
3015
- .object({
3016
- type: RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema,
3017
- requiresApproval: z.boolean().default(false),
3018
- }).transform((v) => {
3019
- return remap$(v, {
3020
- requiresApproval: "requires_approval",
3021
- });
3022
- });
3023
-
3024
- /**
3025
- * @internal
3026
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3027
- */
3028
- export namespace Six$ {
3029
- /** @deprecated use `Six$inboundSchema` instead. */
3030
- export const inboundSchema = Six$inboundSchema;
3031
- /** @deprecated use `Six$outboundSchema` instead. */
3032
- export const outboundSchema = Six$outboundSchema;
3033
- /** @deprecated use `Six$Outbound` instead. */
3034
- export type Outbound = Six$Outbound;
3035
- }
3036
-
3037
- export function sixToJSON(six: Six): string {
3038
- return JSON.stringify(Six$outboundSchema.parse(six));
3039
- }
3040
-
3041
- export function sixFromJSON(
3042
- jsonString: string,
3043
- ): SafeParseResult<Six, SDKValidationError> {
3044
- return safeParse(
3045
- jsonString,
3046
- (x) => Six$inboundSchema.parse(JSON.parse(x)),
3047
- `Failed to parse 'Six' from JSON`,
3048
- );
3049
- }
3050
-
3051
- /** @internal */
3052
- export const RunAgentToolsAgentsRequestRequestBodyType$inboundSchema:
3053
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodyType> = z
3054
- .nativeEnum(RunAgentToolsAgentsRequestRequestBodyType);
3055
-
3056
- /** @internal */
3057
- export const RunAgentToolsAgentsRequestRequestBodyType$outboundSchema:
3058
- z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodyType> =
3059
- RunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
3060
-
3061
- /**
3062
- * @internal
3063
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3064
- */
3065
- export namespace RunAgentToolsAgentsRequestRequestBodyType$ {
3066
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodyType$inboundSchema` instead. */
3067
- export const inboundSchema =
3068
- RunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
3069
- /** @deprecated use `RunAgentToolsAgentsRequestRequestBodyType$outboundSchema` instead. */
3070
- export const outboundSchema =
3071
- RunAgentToolsAgentsRequestRequestBodyType$outboundSchema;
3072
- }
3073
-
3074
- /** @internal */
3075
- export const Tools5$inboundSchema: z.ZodType<Tools5, z.ZodTypeDef, unknown> = z
3076
- .object({
3077
- type: RunAgentToolsAgentsRequestRequestBodyType$inboundSchema,
3078
- requires_approval: z.boolean().default(false),
3079
- }).transform((v) => {
3080
- return remap$(v, {
3081
- "requires_approval": "requiresApproval",
3082
- });
3083
- });
3084
-
3085
- /** @internal */
3086
- export type Tools5$Outbound = {
3087
- type: string;
3088
- requires_approval: boolean;
3089
- };
3090
-
3091
- /** @internal */
3092
- export const Tools5$outboundSchema: z.ZodType<
3093
- Tools5$Outbound,
3094
- z.ZodTypeDef,
3095
- Tools5
3096
- > = z.object({
3097
- type: RunAgentToolsAgentsRequestRequestBodyType$outboundSchema,
3098
- requiresApproval: z.boolean().default(false),
3099
- }).transform((v) => {
3100
- return remap$(v, {
3101
- requiresApproval: "requires_approval",
3102
- });
3103
- });
3104
-
3105
- /**
3106
- * @internal
3107
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3108
- */
3109
- export namespace Tools5$ {
3110
- /** @deprecated use `Tools5$inboundSchema` instead. */
3111
- export const inboundSchema = Tools5$inboundSchema;
3112
- /** @deprecated use `Tools5$outboundSchema` instead. */
3113
- export const outboundSchema = Tools5$outboundSchema;
3114
- /** @deprecated use `Tools5$Outbound` instead. */
3115
- export type Outbound = Tools5$Outbound;
3116
- }
3117
-
3118
- export function tools5ToJSON(tools5: Tools5): string {
3119
- return JSON.stringify(Tools5$outboundSchema.parse(tools5));
3120
- }
3121
-
3122
- export function tools5FromJSON(
3123
- jsonString: string,
3124
- ): SafeParseResult<Tools5, SDKValidationError> {
3125
- return safeParse(
3126
- jsonString,
3127
- (x) => Tools5$inboundSchema.parse(JSON.parse(x)),
3128
- `Failed to parse 'Tools5' from JSON`,
3129
- );
3130
- }
3131
-
3132
- /** @internal */
3133
- export const RunAgentToolsAgentsRequestType$inboundSchema: z.ZodNativeEnum<
3134
- typeof RunAgentToolsAgentsRequestType
3135
- > = z.nativeEnum(RunAgentToolsAgentsRequestType);
3136
-
3137
- /** @internal */
3138
- export const RunAgentToolsAgentsRequestType$outboundSchema: z.ZodNativeEnum<
3139
- typeof RunAgentToolsAgentsRequestType
3140
- > = RunAgentToolsAgentsRequestType$inboundSchema;
3141
-
3142
- /**
3143
- * @internal
3144
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3145
- */
3146
- export namespace RunAgentToolsAgentsRequestType$ {
3147
- /** @deprecated use `RunAgentToolsAgentsRequestType$inboundSchema` instead. */
3148
- export const inboundSchema = RunAgentToolsAgentsRequestType$inboundSchema;
3149
- /** @deprecated use `RunAgentToolsAgentsRequestType$outboundSchema` instead. */
3150
- export const outboundSchema = RunAgentToolsAgentsRequestType$outboundSchema;
3151
- }
3152
-
3153
- /** @internal */
3154
- export const Tools4$inboundSchema: z.ZodType<Tools4, z.ZodTypeDef, unknown> = z
3155
- .object({
3156
- type: RunAgentToolsAgentsRequestType$inboundSchema,
3157
- requires_approval: z.boolean().default(false),
3158
- }).transform((v) => {
3159
- return remap$(v, {
3160
- "requires_approval": "requiresApproval",
3161
- });
3162
- });
3163
-
3164
- /** @internal */
3165
- export type Tools4$Outbound = {
3166
- type: string;
3167
- requires_approval: boolean;
3168
- };
3169
-
3170
- /** @internal */
3171
- export const Tools4$outboundSchema: z.ZodType<
3172
- Tools4$Outbound,
3173
- z.ZodTypeDef,
3174
- Tools4
3175
- > = z.object({
3176
- type: RunAgentToolsAgentsRequestType$outboundSchema,
3177
- requiresApproval: z.boolean().default(false),
3178
- }).transform((v) => {
3179
- return remap$(v, {
3180
- requiresApproval: "requires_approval",
3181
- });
3182
- });
3183
-
3184
- /**
3185
- * @internal
3186
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3187
- */
3188
- export namespace Tools4$ {
3189
- /** @deprecated use `Tools4$inboundSchema` instead. */
3190
- export const inboundSchema = Tools4$inboundSchema;
3191
- /** @deprecated use `Tools4$outboundSchema` instead. */
3192
- export const outboundSchema = Tools4$outboundSchema;
3193
- /** @deprecated use `Tools4$Outbound` instead. */
3194
- export type Outbound = Tools4$Outbound;
3195
- }
3196
-
3197
- export function tools4ToJSON(tools4: Tools4): string {
3198
- return JSON.stringify(Tools4$outboundSchema.parse(tools4));
3199
- }
3200
-
3201
- export function tools4FromJSON(
3202
- jsonString: string,
3203
- ): SafeParseResult<Tools4, SDKValidationError> {
3204
- return safeParse(
3205
- jsonString,
3206
- (x) => Tools4$inboundSchema.parse(JSON.parse(x)),
3207
- `Failed to parse 'Tools4' from JSON`,
3208
- );
3209
- }
3210
-
3211
- /** @internal */
3212
- export const RunAgentToolsAgentsType$inboundSchema: z.ZodNativeEnum<
3213
- typeof RunAgentToolsAgentsType
3214
- > = z.nativeEnum(RunAgentToolsAgentsType);
3215
-
3216
- /** @internal */
3217
- export const RunAgentToolsAgentsType$outboundSchema: z.ZodNativeEnum<
3218
- typeof RunAgentToolsAgentsType
3219
- > = RunAgentToolsAgentsType$inboundSchema;
3220
-
3221
- /**
3222
- * @internal
3223
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3224
- */
3225
- export namespace RunAgentToolsAgentsType$ {
3226
- /** @deprecated use `RunAgentToolsAgentsType$inboundSchema` instead. */
3227
- export const inboundSchema = RunAgentToolsAgentsType$inboundSchema;
3228
- /** @deprecated use `RunAgentToolsAgentsType$outboundSchema` instead. */
3229
- export const outboundSchema = RunAgentToolsAgentsType$outboundSchema;
3230
- }
3231
-
3232
- /** @internal */
3233
- export const Tools3$inboundSchema: z.ZodType<Tools3, z.ZodTypeDef, unknown> = z
3234
- .object({
3235
- type: RunAgentToolsAgentsType$inboundSchema,
3236
- requires_approval: z.boolean().default(false),
3237
- }).transform((v) => {
3238
- return remap$(v, {
3239
- "requires_approval": "requiresApproval",
3240
- });
3241
- });
3242
-
3243
- /** @internal */
3244
- export type Tools3$Outbound = {
3245
- type: string;
3246
- requires_approval: boolean;
3247
- };
3248
-
3249
- /** @internal */
3250
- export const Tools3$outboundSchema: z.ZodType<
3251
- Tools3$Outbound,
3252
- z.ZodTypeDef,
3253
- Tools3
3254
- > = z.object({
3255
- type: RunAgentToolsAgentsType$outboundSchema,
3256
- requiresApproval: z.boolean().default(false),
3257
- }).transform((v) => {
3258
- return remap$(v, {
3259
- requiresApproval: "requires_approval",
3260
- });
3261
- });
3262
-
3263
- /**
3264
- * @internal
3265
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3266
- */
3267
- export namespace Tools3$ {
3268
- /** @deprecated use `Tools3$inboundSchema` instead. */
3269
- export const inboundSchema = Tools3$inboundSchema;
3270
- /** @deprecated use `Tools3$outboundSchema` instead. */
3271
- export const outboundSchema = Tools3$outboundSchema;
3272
- /** @deprecated use `Tools3$Outbound` instead. */
3273
- export type Outbound = Tools3$Outbound;
3274
- }
3275
-
3276
- export function tools3ToJSON(tools3: Tools3): string {
3277
- return JSON.stringify(Tools3$outboundSchema.parse(tools3));
3278
- }
3279
-
3280
- export function tools3FromJSON(
3281
- jsonString: string,
3282
- ): SafeParseResult<Tools3, SDKValidationError> {
3283
- return safeParse(
3284
- jsonString,
3285
- (x) => Tools3$inboundSchema.parse(JSON.parse(x)),
3286
- `Failed to parse 'Tools3' from JSON`,
3287
- );
3288
- }
3289
-
3290
- /** @internal */
3291
- export const RunAgentToolsType$inboundSchema: z.ZodNativeEnum<
3292
- typeof RunAgentToolsType
3293
- > = z.nativeEnum(RunAgentToolsType);
3294
-
3295
- /** @internal */
3296
- export const RunAgentToolsType$outboundSchema: z.ZodNativeEnum<
3297
- typeof RunAgentToolsType
3298
- > = RunAgentToolsType$inboundSchema;
3299
-
3300
- /**
3301
- * @internal
3302
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3303
- */
3304
- export namespace RunAgentToolsType$ {
3305
- /** @deprecated use `RunAgentToolsType$inboundSchema` instead. */
3306
- export const inboundSchema = RunAgentToolsType$inboundSchema;
3307
- /** @deprecated use `RunAgentToolsType$outboundSchema` instead. */
3308
- export const outboundSchema = RunAgentToolsType$outboundSchema;
3309
- }
3310
-
3311
- /** @internal */
3312
- export const Tools2$inboundSchema: z.ZodType<Tools2, z.ZodTypeDef, unknown> = z
3313
- .object({
3314
- type: RunAgentToolsType$inboundSchema,
3315
- requires_approval: z.boolean().default(false),
3316
- }).transform((v) => {
3317
- return remap$(v, {
3318
- "requires_approval": "requiresApproval",
3319
- });
3320
- });
3321
-
3322
- /** @internal */
3323
- export type Tools2$Outbound = {
3324
- type: string;
3325
- requires_approval: boolean;
3326
- };
3327
-
3328
- /** @internal */
3329
- export const Tools2$outboundSchema: z.ZodType<
3330
- Tools2$Outbound,
3331
- z.ZodTypeDef,
3332
- Tools2
3333
- > = z.object({
3334
- type: RunAgentToolsType$outboundSchema,
3335
- requiresApproval: z.boolean().default(false),
3336
- }).transform((v) => {
3337
- return remap$(v, {
3338
- requiresApproval: "requires_approval",
3339
- });
3340
- });
3341
-
3342
- /**
3343
- * @internal
3344
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3345
- */
3346
- export namespace Tools2$ {
3347
- /** @deprecated use `Tools2$inboundSchema` instead. */
3348
- export const inboundSchema = Tools2$inboundSchema;
3349
- /** @deprecated use `Tools2$outboundSchema` instead. */
3350
- export const outboundSchema = Tools2$outboundSchema;
3351
- /** @deprecated use `Tools2$Outbound` instead. */
3352
- export type Outbound = Tools2$Outbound;
3353
- }
3354
-
3355
- export function tools2ToJSON(tools2: Tools2): string {
3356
- return JSON.stringify(Tools2$outboundSchema.parse(tools2));
3357
- }
3358
-
3359
- export function tools2FromJSON(
3360
- jsonString: string,
3361
- ): SafeParseResult<Tools2, SDKValidationError> {
3362
- return safeParse(
3363
- jsonString,
3364
- (x) => Tools2$inboundSchema.parse(JSON.parse(x)),
3365
- `Failed to parse 'Tools2' from JSON`,
3366
- );
3367
- }
3368
-
3369
- /** @internal */
3370
- export const ToolsType$inboundSchema: z.ZodNativeEnum<typeof ToolsType> = z
3371
- .nativeEnum(ToolsType);
3372
-
3373
- /** @internal */
3374
- export const ToolsType$outboundSchema: z.ZodNativeEnum<typeof ToolsType> =
3375
- ToolsType$inboundSchema;
3376
-
3377
- /**
3378
- * @internal
3379
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3380
- */
3381
- export namespace ToolsType$ {
3382
- /** @deprecated use `ToolsType$inboundSchema` instead. */
3383
- export const inboundSchema = ToolsType$inboundSchema;
3384
- /** @deprecated use `ToolsType$outboundSchema` instead. */
3385
- export const outboundSchema = ToolsType$outboundSchema;
3386
- }
3387
-
3388
- /** @internal */
3389
- export const Tools1$inboundSchema: z.ZodType<Tools1, z.ZodTypeDef, unknown> = z
3390
- .object({
3391
- type: ToolsType$inboundSchema,
3392
- requires_approval: z.boolean().default(false),
3393
- }).transform((v) => {
3394
- return remap$(v, {
3395
- "requires_approval": "requiresApproval",
3396
- });
3397
- });
3398
-
3399
- /** @internal */
3400
- export type Tools1$Outbound = {
3401
- type: string;
3402
- requires_approval: boolean;
3403
- };
3404
-
3405
- /** @internal */
3406
- export const Tools1$outboundSchema: z.ZodType<
3407
- Tools1$Outbound,
3408
- z.ZodTypeDef,
3409
- Tools1
3410
- > = z.object({
3411
- type: ToolsType$outboundSchema,
3412
- requiresApproval: z.boolean().default(false),
3413
- }).transform((v) => {
3414
- return remap$(v, {
3415
- requiresApproval: "requires_approval",
3416
- });
3417
- });
3418
-
3419
- /**
3420
- * @internal
3421
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3422
- */
3423
- export namespace Tools1$ {
3424
- /** @deprecated use `Tools1$inboundSchema` instead. */
3425
- export const inboundSchema = Tools1$inboundSchema;
3426
- /** @deprecated use `Tools1$outboundSchema` instead. */
3427
- export const outboundSchema = Tools1$outboundSchema;
3428
- /** @deprecated use `Tools1$Outbound` instead. */
3429
- export type Outbound = Tools1$Outbound;
3430
- }
3431
-
3432
- export function tools1ToJSON(tools1: Tools1): string {
3433
- return JSON.stringify(Tools1$outboundSchema.parse(tools1));
3434
- }
3435
-
3436
- export function tools1FromJSON(
3437
- jsonString: string,
3438
- ): SafeParseResult<Tools1, SDKValidationError> {
3439
- return safeParse(
3440
- jsonString,
3441
- (x) => Tools1$inboundSchema.parse(JSON.parse(x)),
3442
- `Failed to parse 'Tools1' from JSON`,
3443
- );
3444
- }
3445
-
3446
- /** @internal */
3447
- export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
3448
- .union([
3449
- z.lazy(() => Twelve$inboundSchema),
3450
- z.lazy(() => Thirteen$inboundSchema),
3451
- z.lazy(() => Tools1$inboundSchema),
3452
- z.lazy(() => Tools2$inboundSchema),
3453
- z.lazy(() => Tools3$inboundSchema),
3454
- z.lazy(() => Tools4$inboundSchema),
3455
- z.lazy(() => Tools5$inboundSchema),
3456
- z.lazy(() => Six$inboundSchema),
3457
- z.lazy(() => Seven$inboundSchema),
3458
- z.lazy(() => Eight$inboundSchema),
3459
- z.lazy(() => Nine$inboundSchema),
3460
- z.lazy(() => Ten$inboundSchema),
3461
- z.lazy(() => Eleven$inboundSchema),
3462
- ]);
2268
+ export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
2269
+ .union([
2270
+ components.HttpTool$inboundSchema.and(
2271
+ z.object({ type: z.literal("http") }).transform((v) => ({
2272
+ type: v.type,
2273
+ })),
2274
+ ),
2275
+ components.CodeExecutionTool$inboundSchema.and(
2276
+ z.object({ type: z.literal("code") }).transform((v) => ({
2277
+ type: v.type,
2278
+ })),
2279
+ ),
2280
+ components.FunctionTool$inboundSchema.and(
2281
+ z.object({ type: z.literal("function") }).transform((v) => ({
2282
+ type: v.type,
2283
+ })),
2284
+ ),
2285
+ components.GoogleSearchTool$inboundSchema.and(
2286
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2287
+ type: v.type,
2288
+ })),
2289
+ ),
2290
+ components.WebScraperTool$inboundSchema.and(
2291
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2292
+ type: v.type,
2293
+ })),
2294
+ ),
2295
+ components.CallSubAgentTool$inboundSchema.and(
2296
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2297
+ type: v.type,
2298
+ })),
2299
+ ),
2300
+ components.RetrieveAgentsTool$inboundSchema.and(
2301
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2302
+ type: v.type,
2303
+ })),
2304
+ ),
2305
+ components.QueryMemoryStoreTool$inboundSchema.and(
2306
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2307
+ type: v.type,
2308
+ })),
2309
+ ),
2310
+ components.WriteMemoryStoreTool$inboundSchema.and(
2311
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2312
+ type: v.type,
2313
+ })),
2314
+ ),
2315
+ components.RetrieveMemoryStoresTool$inboundSchema.and(
2316
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((
2317
+ v,
2318
+ ) => ({ type: v.type })),
2319
+ ),
2320
+ components.RetrieveKnowledgeBasesTool$inboundSchema.and(
2321
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2322
+ v,
2323
+ ) => ({ type: v.type })),
2324
+ ),
2325
+ components.QueryKnowledgeBaseTool$inboundSchema.and(
2326
+ z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
2327
+ type: v.type,
2328
+ })),
2329
+ ),
2330
+ components.CurrentDateTool$inboundSchema.and(
2331
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2332
+ type: v.type,
2333
+ })),
2334
+ ),
2335
+ ]);
3463
2336
 
3464
2337
  /** @internal */
3465
2338
  export type Tools$Outbound =
3466
- | Twelve$Outbound
3467
- | Thirteen$Outbound
3468
- | Tools1$Outbound
3469
- | Tools2$Outbound
3470
- | Tools3$Outbound
3471
- | Tools4$Outbound
3472
- | Tools5$Outbound
3473
- | Six$Outbound
3474
- | Seven$Outbound
3475
- | Eight$Outbound
3476
- | Nine$Outbound
3477
- | Ten$Outbound
3478
- | Eleven$Outbound;
2339
+ | (components.HttpTool$Outbound & { type: "http" })
2340
+ | (components.CodeExecutionTool$Outbound & { type: "code" })
2341
+ | (components.FunctionTool$Outbound & { type: "function" })
2342
+ | (components.GoogleSearchTool$Outbound & { type: "google_search" })
2343
+ | (components.WebScraperTool$Outbound & { type: "web_scraper" })
2344
+ | (components.CallSubAgentTool$Outbound & { type: "call_sub_agent" })
2345
+ | (components.RetrieveAgentsTool$Outbound & { type: "retrieve_agents" })
2346
+ | (components.QueryMemoryStoreTool$Outbound & { type: "query_memory_store" })
2347
+ | (components.WriteMemoryStoreTool$Outbound & { type: "write_memory_store" })
2348
+ | (components.RetrieveMemoryStoresTool$Outbound & {
2349
+ type: "retrieve_memory_stores";
2350
+ })
2351
+ | (components.RetrieveKnowledgeBasesTool$Outbound & {
2352
+ type: "retrieve_knowledge_bases";
2353
+ })
2354
+ | (components.QueryKnowledgeBaseTool$Outbound & {
2355
+ type: "query_knowledge_base";
2356
+ })
2357
+ | (components.CurrentDateTool$Outbound & { type: "current_date" });
3479
2358
 
3480
2359
  /** @internal */
3481
2360
  export const Tools$outboundSchema: z.ZodType<
@@ -3483,19 +2362,67 @@ export const Tools$outboundSchema: z.ZodType<
3483
2362
  z.ZodTypeDef,
3484
2363
  Tools
3485
2364
  > = z.union([
3486
- z.lazy(() => Twelve$outboundSchema),
3487
- z.lazy(() => Thirteen$outboundSchema),
3488
- z.lazy(() => Tools1$outboundSchema),
3489
- z.lazy(() => Tools2$outboundSchema),
3490
- z.lazy(() => Tools3$outboundSchema),
3491
- z.lazy(() => Tools4$outboundSchema),
3492
- z.lazy(() => Tools5$outboundSchema),
3493
- z.lazy(() => Six$outboundSchema),
3494
- z.lazy(() => Seven$outboundSchema),
3495
- z.lazy(() => Eight$outboundSchema),
3496
- z.lazy(() => Nine$outboundSchema),
3497
- z.lazy(() => Ten$outboundSchema),
3498
- z.lazy(() => Eleven$outboundSchema),
2365
+ components.HttpTool$outboundSchema.and(
2366
+ z.object({ type: z.literal("http") }).transform((v) => ({ type: v.type })),
2367
+ ),
2368
+ components.CodeExecutionTool$outboundSchema.and(
2369
+ z.object({ type: z.literal("code") }).transform((v) => ({ type: v.type })),
2370
+ ),
2371
+ components.FunctionTool$outboundSchema.and(
2372
+ z.object({ type: z.literal("function") }).transform((v) => ({
2373
+ type: v.type,
2374
+ })),
2375
+ ),
2376
+ components.GoogleSearchTool$outboundSchema.and(
2377
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2378
+ type: v.type,
2379
+ })),
2380
+ ),
2381
+ components.WebScraperTool$outboundSchema.and(
2382
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2383
+ type: v.type,
2384
+ })),
2385
+ ),
2386
+ components.CallSubAgentTool$outboundSchema.and(
2387
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2388
+ type: v.type,
2389
+ })),
2390
+ ),
2391
+ components.RetrieveAgentsTool$outboundSchema.and(
2392
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2393
+ type: v.type,
2394
+ })),
2395
+ ),
2396
+ components.QueryMemoryStoreTool$outboundSchema.and(
2397
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2398
+ type: v.type,
2399
+ })),
2400
+ ),
2401
+ components.WriteMemoryStoreTool$outboundSchema.and(
2402
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2403
+ type: v.type,
2404
+ })),
2405
+ ),
2406
+ components.RetrieveMemoryStoresTool$outboundSchema.and(
2407
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((v) => ({
2408
+ type: v.type,
2409
+ })),
2410
+ ),
2411
+ components.RetrieveKnowledgeBasesTool$outboundSchema.and(
2412
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2413
+ v,
2414
+ ) => ({ type: v.type })),
2415
+ ),
2416
+ components.QueryKnowledgeBaseTool$outboundSchema.and(
2417
+ z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
2418
+ type: v.type,
2419
+ })),
2420
+ ),
2421
+ components.CurrentDateTool$outboundSchema.and(
2422
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2423
+ type: v.type,
2424
+ })),
2425
+ ),
3499
2426
  ]);
3500
2427
 
3501
2428
  /**
@@ -3554,19 +2481,71 @@ export const Settings$inboundSchema: z.ZodType<
3554
2481
  > = z.object({
3555
2482
  tools: z.array(
3556
2483
  z.union([
3557
- z.lazy(() => Twelve$inboundSchema),
3558
- z.lazy(() => Thirteen$inboundSchema),
3559
- z.lazy(() => Tools1$inboundSchema),
3560
- z.lazy(() => Tools2$inboundSchema),
3561
- z.lazy(() => Tools3$inboundSchema),
3562
- z.lazy(() => Tools4$inboundSchema),
3563
- z.lazy(() => Tools5$inboundSchema),
3564
- z.lazy(() => Six$inboundSchema),
3565
- z.lazy(() => Seven$inboundSchema),
3566
- z.lazy(() => Eight$inboundSchema),
3567
- z.lazy(() => Nine$inboundSchema),
3568
- z.lazy(() => Ten$inboundSchema),
3569
- z.lazy(() => Eleven$inboundSchema),
2484
+ components.HttpTool$inboundSchema.and(
2485
+ z.object({ type: z.literal("http") }).transform((v) => ({
2486
+ type: v.type,
2487
+ })),
2488
+ ),
2489
+ components.CodeExecutionTool$inboundSchema.and(
2490
+ z.object({ type: z.literal("code") }).transform((v) => ({
2491
+ type: v.type,
2492
+ })),
2493
+ ),
2494
+ components.FunctionTool$inboundSchema.and(
2495
+ z.object({ type: z.literal("function") }).transform((v) => ({
2496
+ type: v.type,
2497
+ })),
2498
+ ),
2499
+ components.GoogleSearchTool$inboundSchema.and(
2500
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2501
+ type: v.type,
2502
+ })),
2503
+ ),
2504
+ components.WebScraperTool$inboundSchema.and(
2505
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2506
+ type: v.type,
2507
+ })),
2508
+ ),
2509
+ components.CallSubAgentTool$inboundSchema.and(
2510
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2511
+ type: v.type,
2512
+ })),
2513
+ ),
2514
+ components.RetrieveAgentsTool$inboundSchema.and(
2515
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2516
+ type: v.type,
2517
+ })),
2518
+ ),
2519
+ components.QueryMemoryStoreTool$inboundSchema.and(
2520
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2521
+ type: v.type,
2522
+ })),
2523
+ ),
2524
+ components.WriteMemoryStoreTool$inboundSchema.and(
2525
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2526
+ type: v.type,
2527
+ })),
2528
+ ),
2529
+ components.RetrieveMemoryStoresTool$inboundSchema.and(
2530
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((
2531
+ v,
2532
+ ) => ({ type: v.type })),
2533
+ ),
2534
+ components.RetrieveKnowledgeBasesTool$inboundSchema.and(
2535
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2536
+ v,
2537
+ ) => ({ type: v.type })),
2538
+ ),
2539
+ components.QueryKnowledgeBaseTool$inboundSchema.and(
2540
+ z.object({ type: z.literal("query_knowledge_base") }).transform((
2541
+ v,
2542
+ ) => ({ type: v.type })),
2543
+ ),
2544
+ components.CurrentDateTool$inboundSchema.and(
2545
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2546
+ type: v.type,
2547
+ })),
2548
+ ),
3570
2549
  ]),
3571
2550
  ),
3572
2551
  tool_approval_required: ToolApprovalRequired$inboundSchema.default("none"),
@@ -3583,19 +2562,29 @@ export const Settings$inboundSchema: z.ZodType<
3583
2562
  /** @internal */
3584
2563
  export type Settings$Outbound = {
3585
2564
  tools: Array<
3586
- | Twelve$Outbound
3587
- | Thirteen$Outbound
3588
- | Tools1$Outbound
3589
- | Tools2$Outbound
3590
- | Tools3$Outbound
3591
- | Tools4$Outbound
3592
- | Tools5$Outbound
3593
- | Six$Outbound
3594
- | Seven$Outbound
3595
- | Eight$Outbound
3596
- | Nine$Outbound
3597
- | Ten$Outbound
3598
- | Eleven$Outbound
2565
+ | (components.HttpTool$Outbound & { type: "http" })
2566
+ | (components.CodeExecutionTool$Outbound & { type: "code" })
2567
+ | (components.FunctionTool$Outbound & { type: "function" })
2568
+ | (components.GoogleSearchTool$Outbound & { type: "google_search" })
2569
+ | (components.WebScraperTool$Outbound & { type: "web_scraper" })
2570
+ | (components.CallSubAgentTool$Outbound & { type: "call_sub_agent" })
2571
+ | (components.RetrieveAgentsTool$Outbound & { type: "retrieve_agents" })
2572
+ | (components.QueryMemoryStoreTool$Outbound & {
2573
+ type: "query_memory_store";
2574
+ })
2575
+ | (components.WriteMemoryStoreTool$Outbound & {
2576
+ type: "write_memory_store";
2577
+ })
2578
+ | (components.RetrieveMemoryStoresTool$Outbound & {
2579
+ type: "retrieve_memory_stores";
2580
+ })
2581
+ | (components.RetrieveKnowledgeBasesTool$Outbound & {
2582
+ type: "retrieve_knowledge_bases";
2583
+ })
2584
+ | (components.QueryKnowledgeBaseTool$Outbound & {
2585
+ type: "query_knowledge_base";
2586
+ })
2587
+ | (components.CurrentDateTool$Outbound & { type: "current_date" })
3599
2588
  >;
3600
2589
  tool_approval_required: string;
3601
2590
  max_iterations: number;
@@ -3610,19 +2599,71 @@ export const Settings$outboundSchema: z.ZodType<
3610
2599
  > = z.object({
3611
2600
  tools: z.array(
3612
2601
  z.union([
3613
- z.lazy(() => Twelve$outboundSchema),
3614
- z.lazy(() => Thirteen$outboundSchema),
3615
- z.lazy(() => Tools1$outboundSchema),
3616
- z.lazy(() => Tools2$outboundSchema),
3617
- z.lazy(() => Tools3$outboundSchema),
3618
- z.lazy(() => Tools4$outboundSchema),
3619
- z.lazy(() => Tools5$outboundSchema),
3620
- z.lazy(() => Six$outboundSchema),
3621
- z.lazy(() => Seven$outboundSchema),
3622
- z.lazy(() => Eight$outboundSchema),
3623
- z.lazy(() => Nine$outboundSchema),
3624
- z.lazy(() => Ten$outboundSchema),
3625
- z.lazy(() => Eleven$outboundSchema),
2602
+ components.HttpTool$outboundSchema.and(
2603
+ z.object({ type: z.literal("http") }).transform((v) => ({
2604
+ type: v.type,
2605
+ })),
2606
+ ),
2607
+ components.CodeExecutionTool$outboundSchema.and(
2608
+ z.object({ type: z.literal("code") }).transform((v) => ({
2609
+ type: v.type,
2610
+ })),
2611
+ ),
2612
+ components.FunctionTool$outboundSchema.and(
2613
+ z.object({ type: z.literal("function") }).transform((v) => ({
2614
+ type: v.type,
2615
+ })),
2616
+ ),
2617
+ components.GoogleSearchTool$outboundSchema.and(
2618
+ z.object({ type: z.literal("google_search") }).transform((v) => ({
2619
+ type: v.type,
2620
+ })),
2621
+ ),
2622
+ components.WebScraperTool$outboundSchema.and(
2623
+ z.object({ type: z.literal("web_scraper") }).transform((v) => ({
2624
+ type: v.type,
2625
+ })),
2626
+ ),
2627
+ components.CallSubAgentTool$outboundSchema.and(
2628
+ z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
2629
+ type: v.type,
2630
+ })),
2631
+ ),
2632
+ components.RetrieveAgentsTool$outboundSchema.and(
2633
+ z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
2634
+ type: v.type,
2635
+ })),
2636
+ ),
2637
+ components.QueryMemoryStoreTool$outboundSchema.and(
2638
+ z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
2639
+ type: v.type,
2640
+ })),
2641
+ ),
2642
+ components.WriteMemoryStoreTool$outboundSchema.and(
2643
+ z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
2644
+ type: v.type,
2645
+ })),
2646
+ ),
2647
+ components.RetrieveMemoryStoresTool$outboundSchema.and(
2648
+ z.object({ type: z.literal("retrieve_memory_stores") }).transform((
2649
+ v,
2650
+ ) => ({ type: v.type })),
2651
+ ),
2652
+ components.RetrieveKnowledgeBasesTool$outboundSchema.and(
2653
+ z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
2654
+ v,
2655
+ ) => ({ type: v.type })),
2656
+ ),
2657
+ components.QueryKnowledgeBaseTool$outboundSchema.and(
2658
+ z.object({ type: z.literal("query_knowledge_base") }).transform((
2659
+ v,
2660
+ ) => ({ type: v.type })),
2661
+ ),
2662
+ components.CurrentDateTool$outboundSchema.and(
2663
+ z.object({ type: z.literal("current_date") }).transform((v) => ({
2664
+ type: v.type,
2665
+ })),
2666
+ ),
3626
2667
  ]),
3627
2668
  ),
3628
2669
  toolApprovalRequired: ToolApprovalRequired$outboundSchema.default("none"),
@@ -3688,6 +2729,7 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
3688
2729
  .optional(),
3689
2730
  team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
3690
2731
  settings: z.lazy(() => Settings$inboundSchema),
2732
+ metadata: z.record(z.any()).optional(),
3691
2733
  }).transform((v) => {
3692
2734
  return remap$(v, {
3693
2735
  "fallback_models": "fallbackModels",
@@ -3718,6 +2760,7 @@ export type RunAgentRequestBody$Outbound = {
3718
2760
  knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
3719
2761
  team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
3720
2762
  settings: Settings$Outbound;
2763
+ metadata?: { [k: string]: any } | undefined;
3721
2764
  };
3722
2765
 
3723
2766
  /** @internal */
@@ -3745,6 +2788,7 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
3745
2788
  .optional(),
3746
2789
  teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
3747
2790
  settings: z.lazy(() => Settings$outboundSchema),
2791
+ metadata: z.record(z.any()).optional(),
3748
2792
  }).transform((v) => {
3749
2793
  return remap$(v, {
3750
2794
  fallbackModels: "fallback_models",