@orq-ai/node 4.5.0-rc.26 → 4.5.0-rc.33

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 (222) hide show
  1. package/README.md +38 -28
  2. package/funcs/agentsList.d.ts +1 -1
  3. package/funcs/agentsList.d.ts.map +1 -1
  4. package/funcs/agentsList.js +5 -3
  5. package/funcs/agentsList.js.map +1 -1
  6. package/funcs/agentsPostV2AgentsA2a.d.ts +18 -0
  7. package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -0
  8. package/funcs/agentsPostV2AgentsA2a.js +120 -0
  9. package/funcs/agentsPostV2AgentsA2a.js.map +1 -0
  10. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts +18 -0
  11. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -0
  12. package/funcs/agentsPostV2AgentsKeyCardRefresh.js +124 -0
  13. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -0
  14. package/funcs/agentsResponsesGet.d.ts +19 -0
  15. package/funcs/agentsResponsesGet.d.ts.map +1 -0
  16. package/funcs/agentsResponsesGet.js +128 -0
  17. package/funcs/agentsResponsesGet.js.map +1 -0
  18. package/funcs/agentsUpdate.d.ts +1 -1
  19. package/funcs/agentsUpdate.d.ts.map +1 -1
  20. package/funcs/agentsUpdate.js.map +1 -1
  21. package/jsr.json +1 -1
  22. package/lib/config.d.ts +3 -3
  23. package/lib/config.js +3 -3
  24. package/models/components/extendedmessage.d.ts +71 -0
  25. package/models/components/extendedmessage.d.ts.map +1 -0
  26. package/models/components/extendedmessage.js +98 -0
  27. package/models/components/extendedmessage.js.map +1 -0
  28. package/models/components/getagentresponse.d.ts +157 -0
  29. package/models/components/getagentresponse.d.ts.map +1 -0
  30. package/models/components/getagentresponse.js +175 -0
  31. package/models/components/getagentresponse.js.map +1 -0
  32. package/models/components/index.d.ts +2 -0
  33. package/models/components/index.d.ts.map +1 -1
  34. package/models/components/index.js +2 -0
  35. package/models/components/index.js.map +1 -1
  36. package/models/components/partdoneevent.js +1 -1
  37. package/models/components/reasoningpart.js +1 -1
  38. package/models/errors/index.d.ts +2 -0
  39. package/models/errors/index.d.ts.map +1 -1
  40. package/models/errors/index.js +2 -0
  41. package/models/errors/index.js.map +1 -1
  42. package/models/errors/postv2agentsa2a.d.ts +43 -0
  43. package/models/errors/postv2agentsa2a.d.ts.map +1 -0
  44. package/models/errors/postv2agentsa2a.js +94 -0
  45. package/models/errors/postv2agentsa2a.js.map +1 -0
  46. package/models/errors/postv2agentskeycardrefresh.d.ts +43 -0
  47. package/models/errors/postv2agentskeycardrefresh.d.ts.map +1 -0
  48. package/models/errors/postv2agentskeycardrefresh.js +94 -0
  49. package/models/errors/postv2agentskeycardrefresh.js.map +1 -0
  50. package/models/operations/createagentrequest.d.ts +309 -142
  51. package/models/operations/createagentrequest.d.ts.map +1 -1
  52. package/models/operations/createagentrequest.js +292 -160
  53. package/models/operations/createagentrequest.js.map +1 -1
  54. package/models/operations/createagentresponserequest.d.ts +22 -1
  55. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  56. package/models/operations/createagentresponserequest.js +10 -1
  57. package/models/operations/createagentresponserequest.js.map +1 -1
  58. package/models/operations/createannotation.d.ts +1 -1
  59. package/models/operations/createannotation.d.ts.map +1 -1
  60. package/models/operations/createannotation.js +4 -0
  61. package/models/operations/createannotation.js.map +1 -1
  62. package/models/operations/createcontact.js +1 -1
  63. package/models/operations/createdataset.js +1 -1
  64. package/models/operations/createdatasetitem.js +4 -4
  65. package/models/operations/createdatasource.js +1 -1
  66. package/models/operations/createeval.js +16 -16
  67. package/models/operations/createidentity.js +1 -1
  68. package/models/operations/createknowledge.d.ts +7 -7
  69. package/models/operations/createknowledge.d.ts.map +1 -1
  70. package/models/operations/createknowledge.js +11 -11
  71. package/models/operations/createknowledge.js.map +1 -1
  72. package/models/operations/createtool.d.ts +39 -39
  73. package/models/operations/createtool.d.ts.map +1 -1
  74. package/models/operations/createtool.js +52 -49
  75. package/models/operations/createtool.js.map +1 -1
  76. package/models/operations/deploymentinvoke.d.ts +14 -0
  77. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  78. package/models/operations/deploymentinvoke.js +16 -1
  79. package/models/operations/deploymentinvoke.js.map +1 -1
  80. package/models/operations/deploymentstream.d.ts +14 -0
  81. package/models/operations/deploymentstream.d.ts.map +1 -1
  82. package/models/operations/deploymentstream.js +16 -1
  83. package/models/operations/deploymentstream.js.map +1 -1
  84. package/models/operations/fileget.js +1 -1
  85. package/models/operations/filelist.js +1 -1
  86. package/models/operations/fileupload.js +1 -1
  87. package/models/operations/getagentresponse.d.ts +20 -0
  88. package/models/operations/getagentresponse.d.ts.map +1 -0
  89. package/models/operations/getagentresponse.js +56 -0
  90. package/models/operations/getagentresponse.js.map +1 -0
  91. package/models/operations/getalltools.d.ts +39 -39
  92. package/models/operations/getalltools.d.ts.map +1 -1
  93. package/models/operations/getalltools.js +49 -47
  94. package/models/operations/getalltools.js.map +1 -1
  95. package/models/operations/getevals.js +16 -16
  96. package/models/operations/index.d.ts +3 -0
  97. package/models/operations/index.d.ts.map +1 -1
  98. package/models/operations/index.js +3 -0
  99. package/models/operations/index.js.map +1 -1
  100. package/models/operations/invokeagent.d.ts +26 -1
  101. package/models/operations/invokeagent.d.ts.map +1 -1
  102. package/models/operations/invokeagent.js +12 -1
  103. package/models/operations/invokeagent.js.map +1 -1
  104. package/models/operations/listagents.d.ts +331 -147
  105. package/models/operations/listagents.d.ts.map +1 -1
  106. package/models/operations/listagents.js +314 -171
  107. package/models/operations/listagents.js.map +1 -1
  108. package/models/operations/listdatasetdatapoints.js +4 -4
  109. package/models/operations/listdatasets.js +1 -1
  110. package/models/operations/listdatasources.js +1 -1
  111. package/models/operations/listidentities.js +1 -1
  112. package/models/operations/listknowledgebases.d.ts +8 -8
  113. package/models/operations/listknowledgebases.d.ts.map +1 -1
  114. package/models/operations/listknowledgebases.js +13 -15
  115. package/models/operations/listknowledgebases.js.map +1 -1
  116. package/models/operations/postv2agentsa2a.d.ts +119 -0
  117. package/models/operations/postv2agentsa2a.d.ts.map +1 -0
  118. package/models/operations/postv2agentsa2a.js +147 -0
  119. package/models/operations/postv2agentsa2a.js.map +1 -0
  120. package/models/operations/postv2agentskeycardrefresh.d.ts +35 -0
  121. package/models/operations/postv2agentskeycardrefresh.d.ts.map +1 -0
  122. package/models/operations/postv2agentskeycardrefresh.js +71 -0
  123. package/models/operations/postv2agentskeycardrefresh.js.map +1 -0
  124. package/models/operations/retrieveagentrequest.d.ts +316 -150
  125. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  126. package/models/operations/retrieveagentrequest.js +307 -173
  127. package/models/operations/retrieveagentrequest.js.map +1 -1
  128. package/models/operations/retrievedatapoint.js +4 -4
  129. package/models/operations/retrievedataset.js +1 -1
  130. package/models/operations/retrievedatasource.js +1 -1
  131. package/models/operations/retrieveidentity.js +1 -1
  132. package/models/operations/retrievetool.js +6 -6
  133. package/models/operations/runagent.d.ts +15 -11
  134. package/models/operations/runagent.d.ts.map +1 -1
  135. package/models/operations/runagent.js +12 -12
  136. package/models/operations/runagent.js.map +1 -1
  137. package/models/operations/streamagent.d.ts +22 -1
  138. package/models/operations/streamagent.d.ts.map +1 -1
  139. package/models/operations/streamagent.js +11 -1
  140. package/models/operations/streamagent.js.map +1 -1
  141. package/models/operations/streamrunagent.d.ts +1 -1
  142. package/models/operations/streamrunagent.js +1 -1
  143. package/models/operations/updateagent.d.ts +370 -157
  144. package/models/operations/updateagent.d.ts.map +1 -1
  145. package/models/operations/updateagent.js +336 -179
  146. package/models/operations/updateagent.js.map +1 -1
  147. package/models/operations/updatedatapoint.js +4 -4
  148. package/models/operations/updatedataset.js +1 -1
  149. package/models/operations/updatedatasource.js +1 -1
  150. package/models/operations/updateeval.js +16 -16
  151. package/models/operations/updateidentity.js +1 -1
  152. package/models/operations/updatetool.js +7 -7
  153. package/package.json +1 -1
  154. package/sdk/agents.d.ts +16 -2
  155. package/sdk/agents.d.ts.map +1 -1
  156. package/sdk/agents.js +22 -2
  157. package/sdk/agents.js.map +1 -1
  158. package/sdk/responses.d.ts +8 -0
  159. package/sdk/responses.d.ts.map +1 -1
  160. package/sdk/responses.js +10 -0
  161. package/sdk/responses.js.map +1 -1
  162. package/src/funcs/agentsList.ts +5 -0
  163. package/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  164. package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  165. package/src/funcs/agentsResponsesGet.ts +182 -0
  166. package/src/funcs/agentsUpdate.ts +2 -2
  167. package/src/lib/config.ts +3 -3
  168. package/src/models/components/extendedmessage.ts +146 -0
  169. package/src/models/components/getagentresponse.ts +348 -0
  170. package/src/models/components/index.ts +2 -0
  171. package/src/models/components/partdoneevent.ts +1 -1
  172. package/src/models/components/reasoningpart.ts +1 -1
  173. package/src/models/errors/index.ts +2 -0
  174. package/src/models/errors/postv2agentsa2a.ts +96 -0
  175. package/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  176. package/src/models/operations/createagentrequest.ts +714 -360
  177. package/src/models/operations/createagentresponserequest.ts +35 -1
  178. package/src/models/operations/createannotation.ts +5 -1
  179. package/src/models/operations/createcontact.ts +1 -1
  180. package/src/models/operations/createdataset.ts +1 -1
  181. package/src/models/operations/createdatasetitem.ts +4 -4
  182. package/src/models/operations/createdatasource.ts +1 -1
  183. package/src/models/operations/createeval.ts +16 -16
  184. package/src/models/operations/createidentity.ts +1 -1
  185. package/src/models/operations/createknowledge.ts +19 -17
  186. package/src/models/operations/createtool.ts +103 -91
  187. package/src/models/operations/deploymentinvoke.ts +38 -0
  188. package/src/models/operations/deploymentstream.ts +38 -0
  189. package/src/models/operations/fileget.ts +1 -1
  190. package/src/models/operations/filelist.ts +1 -1
  191. package/src/models/operations/fileupload.ts +1 -1
  192. package/src/models/operations/getagentresponse.ts +46 -0
  193. package/src/models/operations/getalltools.ts +93 -87
  194. package/src/models/operations/getevals.ts +16 -16
  195. package/src/models/operations/index.ts +3 -0
  196. package/src/models/operations/invokeagent.ts +45 -1
  197. package/src/models/operations/listagents.ts +723 -366
  198. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  199. package/src/models/operations/listdatasets.ts +1 -1
  200. package/src/models/operations/listdatasources.ts +1 -1
  201. package/src/models/operations/listidentities.ts +1 -1
  202. package/src/models/operations/listknowledgebases.ts +72 -64
  203. package/src/models/operations/postv2agentsa2a.ts +252 -0
  204. package/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  205. package/src/models/operations/retrieveagentrequest.ts +975 -468
  206. package/src/models/operations/retrievedatapoint.ts +4 -4
  207. package/src/models/operations/retrievedataset.ts +1 -1
  208. package/src/models/operations/retrievedatasource.ts +1 -1
  209. package/src/models/operations/retrieveidentity.ts +1 -1
  210. package/src/models/operations/retrievetool.ts +6 -6
  211. package/src/models/operations/runagent.ts +35 -21
  212. package/src/models/operations/streamagent.ts +40 -1
  213. package/src/models/operations/streamrunagent.ts +2 -2
  214. package/src/models/operations/updateagent.ts +876 -385
  215. package/src/models/operations/updatedatapoint.ts +4 -4
  216. package/src/models/operations/updatedataset.ts +1 -1
  217. package/src/models/operations/updatedatasource.ts +1 -1
  218. package/src/models/operations/updateeval.ts +16 -16
  219. package/src/models/operations/updateidentity.ts +1 -1
  220. package/src/models/operations/updatetool.ts +7 -7
  221. package/src/sdk/agents.ts +39 -1
  222. package/src/sdk/responses.ts +19 -0
@@ -1458,7 +1458,7 @@ export type CreateAgentRequestRequestBody = {
1458
1458
  /**
1459
1459
  * The status of the agent. `Live` is the latest version of the agent. `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.
1460
1460
  */
1461
- export const CreateAgentRequestStatus = {
1461
+ export const ResponseBodyStatus = {
1462
1462
  Live: "live",
1463
1463
  Draft: "draft",
1464
1464
  Pending: "pending",
@@ -1467,14 +1467,188 @@ export const CreateAgentRequestStatus = {
1467
1467
  /**
1468
1468
  * The status of the agent. `Live` is the latest version of the agent. `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.
1469
1469
  */
1470
- export type CreateAgentRequestStatus = ClosedEnum<
1471
- typeof CreateAgentRequestStatus
1470
+ export type ResponseBodyStatus = ClosedEnum<typeof ResponseBodyStatus>;
1471
+
1472
+ export type CreateAgentRequestResponseBodyTeamOfAgents = {
1473
+ /**
1474
+ * The unique key of the agent within the workspace
1475
+ */
1476
+ key: string;
1477
+ /**
1478
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1479
+ */
1480
+ role?: string | undefined;
1481
+ };
1482
+
1483
+ export type CreateAgentRequestResponseBodyMetrics = {
1484
+ totalCost: number;
1485
+ };
1486
+
1487
+ export type CreateAgentRequestResponseBodyKnowledgeBases = {
1488
+ /**
1489
+ * Unique identifier of the knowledge base to search
1490
+ */
1491
+ knowledgeId: string;
1492
+ };
1493
+
1494
+ export const CreateAgentRequestResponseBodySource = {
1495
+ Internal: "internal",
1496
+ External: "external",
1497
+ Experiment: "experiment",
1498
+ } as const;
1499
+ export type CreateAgentRequestResponseBodySource = ClosedEnum<
1500
+ typeof CreateAgentRequestResponseBodySource
1472
1501
  >;
1473
1502
 
1503
+ export type ResponseBodyHeaders = {
1504
+ /**
1505
+ * Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
1506
+ */
1507
+ value: string;
1508
+ encrypted: boolean;
1509
+ };
1510
+
1511
+ /**
1512
+ * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
1513
+ */
1514
+ export type A2AAgentConfiguration = {
1515
+ /**
1516
+ * The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
1517
+ */
1518
+ agentUrl: string;
1519
+ /**
1520
+ * Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
1521
+ */
1522
+ cardUrl?: string | undefined;
1523
+ /**
1524
+ * HTTP headers for A2A agent requests with encryption support (max 20 headers). **Update behavior**: Empty string values preserve existing encrypted headers, allowing partial updates without credential re-entry.
1525
+ */
1526
+ headers?: { [k: string]: ResponseBodyHeaders } | undefined;
1527
+ /**
1528
+ * Cached agent card from discovery. Refreshed periodically.
1529
+ */
1530
+ cachedCard?: any | undefined;
1531
+ };
1532
+
1533
+ export type ResponseBody2 = {
1534
+ id: string;
1535
+ /**
1536
+ * Unique identifier for the agent within the workspace
1537
+ */
1538
+ key: string;
1539
+ displayName?: string | undefined;
1540
+ projectId: string;
1541
+ createdById?: string | null | undefined;
1542
+ updatedById?: string | null | undefined;
1543
+ created?: string | undefined;
1544
+ updated?: string | undefined;
1545
+ /**
1546
+ * The status of the agent. `Live` is the latest version of the agent. `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.
1547
+ */
1548
+ status: ResponseBodyStatus;
1549
+ versionHash?: string | undefined;
1550
+ /**
1551
+ * Entity storage path in the format: `project/folder/subfolder/...`
1552
+ *
1553
+ * @remarks
1554
+ *
1555
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
1556
+ *
1557
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1558
+ */
1559
+ path: string;
1560
+ /**
1561
+ * Array of memory store identifiers. Accepts both memory store IDs and keys.
1562
+ */
1563
+ memoryStores?: Array<string> | undefined;
1564
+ /**
1565
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1566
+ */
1567
+ teamOfAgents?: Array<CreateAgentRequestResponseBodyTeamOfAgents> | undefined;
1568
+ metrics?: CreateAgentRequestResponseBodyMetrics | undefined;
1569
+ /**
1570
+ * Extracted variables from agent instructions
1571
+ */
1572
+ variables?: { [k: string]: any } | undefined;
1573
+ /**
1574
+ * Agent knowledge bases reference
1575
+ */
1576
+ knowledgeBases?:
1577
+ | Array<CreateAgentRequestResponseBodyKnowledgeBases>
1578
+ | undefined;
1579
+ source?: CreateAgentRequestResponseBodySource | undefined;
1580
+ /**
1581
+ * External A2A-compliant agent
1582
+ */
1583
+ type: "a2a";
1584
+ /**
1585
+ * Role fetched from agent card name or user-provided
1586
+ */
1587
+ role: string;
1588
+ /**
1589
+ * Description fetched from agent card or user-provided
1590
+ */
1591
+ description: string;
1592
+ systemPrompt?: string | undefined;
1593
+ /**
1594
+ * Instructions from agent card description or user-provided
1595
+ */
1596
+ instructions: string;
1597
+ /**
1598
+ * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
1599
+ */
1600
+ a2a: A2AAgentConfiguration;
1601
+ };
1602
+
1603
+ /**
1604
+ * The status of the agent. `Live` is the latest version of the agent. `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.
1605
+ */
1606
+ export const CreateAgentRequestResponseBodyStatus = {
1607
+ Live: "live",
1608
+ Draft: "draft",
1609
+ Pending: "pending",
1610
+ Published: "published",
1611
+ } as const;
1612
+ /**
1613
+ * The status of the agent. `Live` is the latest version of the agent. `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.
1614
+ */
1615
+ export type CreateAgentRequestResponseBodyStatus = ClosedEnum<
1616
+ typeof CreateAgentRequestResponseBodyStatus
1617
+ >;
1618
+
1619
+ export type ResponseBodyTeamOfAgents = {
1620
+ /**
1621
+ * The unique key of the agent within the workspace
1622
+ */
1623
+ key: string;
1624
+ /**
1625
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1626
+ */
1627
+ role?: string | undefined;
1628
+ };
1629
+
1630
+ export type ResponseBodyMetrics = {
1631
+ totalCost: number;
1632
+ };
1633
+
1634
+ export type ResponseBodyKnowledgeBases = {
1635
+ /**
1636
+ * Unique identifier of the knowledge base to search
1637
+ */
1638
+ knowledgeId: string;
1639
+ };
1640
+
1641
+ export const ResponseBodySource = {
1642
+ Internal: "internal",
1643
+ External: "external",
1644
+ Experiment: "experiment",
1645
+ } as const;
1646
+ export type ResponseBodySource = ClosedEnum<typeof ResponseBodySource>;
1647
+
1474
1648
  /**
1475
1649
  * 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.
1476
1650
  */
1477
- export const CreateAgentRequestToolApprovalRequired = {
1651
+ export const ResponseBodyToolApprovalRequired = {
1478
1652
  All: "all",
1479
1653
  RespectTool: "respect_tool",
1480
1654
  None: "none",
@@ -1482,8 +1656,8 @@ export const CreateAgentRequestToolApprovalRequired = {
1482
1656
  /**
1483
1657
  * 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.
1484
1658
  */
1485
- export type CreateAgentRequestToolApprovalRequired = ClosedEnum<
1486
- typeof CreateAgentRequestToolApprovalRequired
1659
+ export type ResponseBodyToolApprovalRequired = ClosedEnum<
1660
+ typeof ResponseBodyToolApprovalRequired
1487
1661
  >;
1488
1662
 
1489
1663
  export type Conditions = {
@@ -1501,7 +1675,7 @@ export type Conditions = {
1501
1675
  value: string;
1502
1676
  };
1503
1677
 
1504
- export type CreateAgentRequestTools = {
1678
+ export type ResponseBodyTools = {
1505
1679
  /**
1506
1680
  * The id of the resource
1507
1681
  */
@@ -1531,18 +1705,16 @@ export type CreateAgentRequestTools = {
1531
1705
  /**
1532
1706
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1533
1707
  */
1534
- export const CreateAgentRequestAgentsResponseExecuteOn = {
1708
+ export const ResponseBodyExecuteOn = {
1535
1709
  Input: "input",
1536
1710
  Output: "output",
1537
1711
  } as const;
1538
1712
  /**
1539
1713
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1540
1714
  */
1541
- export type CreateAgentRequestAgentsResponseExecuteOn = ClosedEnum<
1542
- typeof CreateAgentRequestAgentsResponseExecuteOn
1543
- >;
1715
+ export type ResponseBodyExecuteOn = ClosedEnum<typeof ResponseBodyExecuteOn>;
1544
1716
 
1545
- export type CreateAgentRequestEvaluators = {
1717
+ export type ResponseBodyEvaluators = {
1546
1718
  /**
1547
1719
  * Unique key or identifier of the evaluator
1548
1720
  */
@@ -1554,24 +1726,24 @@ export type CreateAgentRequestEvaluators = {
1554
1726
  /**
1555
1727
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1556
1728
  */
1557
- executeOn: CreateAgentRequestAgentsResponseExecuteOn;
1729
+ executeOn: ResponseBodyExecuteOn;
1558
1730
  };
1559
1731
 
1560
1732
  /**
1561
1733
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1562
1734
  */
1563
- export const CreateAgentRequestAgentsResponse201ExecuteOn = {
1735
+ export const CreateAgentRequestResponseBodyExecuteOn = {
1564
1736
  Input: "input",
1565
1737
  Output: "output",
1566
1738
  } as const;
1567
1739
  /**
1568
1740
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1569
1741
  */
1570
- export type CreateAgentRequestAgentsResponse201ExecuteOn = ClosedEnum<
1571
- typeof CreateAgentRequestAgentsResponse201ExecuteOn
1742
+ export type CreateAgentRequestResponseBodyExecuteOn = ClosedEnum<
1743
+ typeof CreateAgentRequestResponseBodyExecuteOn
1572
1744
  >;
1573
1745
 
1574
- export type CreateAgentRequestAgentsGuardrails = {
1746
+ export type ResponseBodyGuardrails = {
1575
1747
  /**
1576
1748
  * Unique key or identifier of the evaluator
1577
1749
  */
@@ -1583,10 +1755,10 @@ export type CreateAgentRequestAgentsGuardrails = {
1583
1755
  /**
1584
1756
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1585
1757
  */
1586
- executeOn: CreateAgentRequestAgentsResponse201ExecuteOn;
1758
+ executeOn: CreateAgentRequestResponseBodyExecuteOn;
1587
1759
  };
1588
1760
 
1589
- export type CreateAgentRequestSettings = {
1761
+ export type ResponseBodySettings = {
1590
1762
  /**
1591
1763
  * Maximum iterations(llm calls) before the agent will stop executing.
1592
1764
  */
@@ -1602,16 +1774,16 @@ export type CreateAgentRequestSettings = {
1602
1774
  /**
1603
1775
  * 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.
1604
1776
  */
1605
- toolApprovalRequired: CreateAgentRequestToolApprovalRequired;
1606
- tools?: Array<CreateAgentRequestTools> | undefined;
1777
+ toolApprovalRequired: ResponseBodyToolApprovalRequired;
1778
+ tools?: Array<ResponseBodyTools> | undefined;
1607
1779
  /**
1608
1780
  * Configuration for an evaluator applied to the agent
1609
1781
  */
1610
- evaluators?: Array<CreateAgentRequestEvaluators> | undefined;
1782
+ evaluators?: Array<ResponseBodyEvaluators> | undefined;
1611
1783
  /**
1612
1784
  * Configuration for a guardrail applied to the agent
1613
1785
  */
1614
- guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
1786
+ guardrails?: Array<ResponseBodyGuardrails> | undefined;
1615
1787
  };
1616
1788
 
1617
1789
  export type CreateAgentRequestResponseFormatAgentsResponseJsonSchema = {
@@ -1664,7 +1836,7 @@ export type CreateAgentRequestResponseFormatText = {
1664
1836
  /**
1665
1837
  * An object specifying the format that the model must output
1666
1838
  */
1667
- export type CreateAgentRequestResponseFormat =
1839
+ export type ResponseBodyResponseFormat =
1668
1840
  | CreateAgentRequestResponseFormatText
1669
1841
  | CreateAgentRequestResponseFormatJSONObject
1670
1842
  | CreateAgentRequestResponseFormatAgentsResponse201JSONSchema;
@@ -1681,7 +1853,7 @@ export type CreateAgentRequestResponseFormat =
1681
1853
  *
1682
1854
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1683
1855
  */
1684
- export const CreateAgentRequestReasoningEffort = {
1856
+ export const ResponseBodyReasoningEffort = {
1685
1857
  None: "none",
1686
1858
  Minimal: "minimal",
1687
1859
  Low: "low",
@@ -1701,16 +1873,16 @@ export const CreateAgentRequestReasoningEffort = {
1701
1873
  *
1702
1874
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1703
1875
  */
1704
- export type CreateAgentRequestReasoningEffort = ClosedEnum<
1705
- typeof CreateAgentRequestReasoningEffort
1876
+ export type ResponseBodyReasoningEffort = ClosedEnum<
1877
+ typeof ResponseBodyReasoningEffort
1706
1878
  >;
1707
1879
 
1708
1880
  /**
1709
1881
  * Up to 4 sequences where the API will stop generating further tokens.
1710
1882
  */
1711
- export type CreateAgentRequestStop = string | Array<string>;
1883
+ export type ResponseBodyStop = string | Array<string>;
1712
1884
 
1713
- export type CreateAgentRequestThinking =
1885
+ export type ResponseBodyThinking =
1714
1886
  | components.ThinkingConfigDisabledSchema
1715
1887
  | components.ThinkingConfigEnabledSchema;
1716
1888
 
@@ -1754,17 +1926,15 @@ export type CreateAgentRequestToolChoiceAgents1 = ClosedEnum<
1754
1926
  /**
1755
1927
  * Controls which (if any) tool is called by the model.
1756
1928
  */
1757
- export type CreateAgentRequestToolChoice =
1929
+ export type ResponseBodyToolChoice =
1758
1930
  | CreateAgentRequestToolChoiceAgents2
1759
1931
  | CreateAgentRequestToolChoiceAgents1;
1760
1932
 
1761
- export const CreateAgentRequestModalities = {
1933
+ export const ResponseBodyModalities = {
1762
1934
  Text: "text",
1763
1935
  Audio: "audio",
1764
1936
  } as const;
1765
- export type CreateAgentRequestModalities = ClosedEnum<
1766
- typeof CreateAgentRequestModalities
1767
- >;
1937
+ export type ResponseBodyModalities = ClosedEnum<typeof ResponseBodyModalities>;
1768
1938
 
1769
1939
  /**
1770
1940
  * The key of the guardrail.
@@ -1781,52 +1951,53 @@ export type CreateAgentRequestIdAgents1 = ClosedEnum<
1781
1951
  typeof CreateAgentRequestIdAgents1
1782
1952
  >;
1783
1953
 
1784
- export type CreateAgentRequestId = CreateAgentRequestIdAgents1 | string;
1954
+ export type ResponseBodyId = CreateAgentRequestIdAgents1 | string;
1785
1955
 
1786
1956
  /**
1787
1957
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1788
1958
  */
1789
- export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn = {
1959
+ export const CreateAgentRequestResponseBodyAgentsExecuteOn = {
1790
1960
  Input: "input",
1791
1961
  Output: "output",
1792
1962
  } as const;
1793
1963
  /**
1794
1964
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1795
1965
  */
1796
- export type CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn =
1797
- ClosedEnum<
1798
- typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
1799
- >;
1966
+ export type CreateAgentRequestResponseBodyAgentsExecuteOn = ClosedEnum<
1967
+ typeof CreateAgentRequestResponseBodyAgentsExecuteOn
1968
+ >;
1800
1969
 
1801
- export type CreateAgentRequestAgentsResponseGuardrails = {
1970
+ export type CreateAgentRequestResponseBodyGuardrails = {
1802
1971
  id: CreateAgentRequestIdAgents1 | string;
1803
1972
  /**
1804
1973
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1805
1974
  */
1806
- executeOn: CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn;
1975
+ executeOn: CreateAgentRequestResponseBodyAgentsExecuteOn;
1807
1976
  };
1808
1977
 
1809
- export type CreateAgentRequestFallbacks = {
1978
+ export type ResponseBodyFallbacks = {
1810
1979
  /**
1811
1980
  * Fallback model identifier
1812
1981
  */
1813
1982
  model: string;
1814
1983
  };
1815
1984
 
1816
- export const CreateAgentRequestType = {
1985
+ export const CreateAgentRequestResponseBodyAgentsResponseType = {
1817
1986
  ExactMatch: "exact_match",
1818
1987
  } as const;
1819
- export type CreateAgentRequestType = ClosedEnum<typeof CreateAgentRequestType>;
1988
+ export type CreateAgentRequestResponseBodyAgentsResponseType = ClosedEnum<
1989
+ typeof CreateAgentRequestResponseBodyAgentsResponseType
1990
+ >;
1820
1991
 
1821
1992
  /**
1822
1993
  * Cache configuration for the request.
1823
1994
  */
1824
- export type CreateAgentRequestCache = {
1995
+ export type ResponseBodyCache = {
1825
1996
  /**
1826
1997
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
1827
1998
  */
1828
1999
  ttl: number;
1829
- type: CreateAgentRequestType;
2000
+ type: CreateAgentRequestResponseBodyAgentsResponseType;
1830
2001
  };
1831
2002
 
1832
2003
  export const CreateAgentRequestLoadBalancerAgentsType = {
@@ -1855,13 +2026,12 @@ export type CreateAgentRequestLoadBalancerAgents1 = {
1855
2026
  /**
1856
2027
  * Load balancer configuration for the request.
1857
2028
  */
1858
- export type CreateAgentRequestLoadBalancer =
1859
- CreateAgentRequestLoadBalancerAgents1;
2029
+ export type ResponseBodyLoadBalancer = CreateAgentRequestLoadBalancerAgents1;
1860
2030
 
1861
2031
  /**
1862
2032
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1863
2033
  */
1864
- export type CreateAgentRequestTimeout = {
2034
+ export type ResponseBodyTimeout = {
1865
2035
  /**
1866
2036
  * Timeout value in milliseconds
1867
2037
  */
@@ -1871,7 +2041,7 @@ export type CreateAgentRequestTimeout = {
1871
2041
  /**
1872
2042
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
1873
2043
  */
1874
- export type CreateAgentRequestParameters = {
2044
+ export type ResponseBodyParameters = {
1875
2045
  /**
1876
2046
  * The name to display on the trace. If not specified, the default system name will be used.
1877
2047
  */
@@ -1916,7 +2086,7 @@ export type CreateAgentRequestParameters = {
1916
2086
  *
1917
2087
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1918
2088
  */
1919
- reasoningEffort?: CreateAgentRequestReasoningEffort | undefined;
2089
+ reasoningEffort?: ResponseBodyReasoningEffort | undefined;
1920
2090
  /**
1921
2091
  * Adjusts response verbosity. Lower levels yield shorter answers.
1922
2092
  */
@@ -1959,19 +2129,19 @@ export type CreateAgentRequestParameters = {
1959
2129
  /**
1960
2130
  * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
1961
2131
  */
1962
- modalities?: Array<CreateAgentRequestModalities> | null | undefined;
2132
+ modalities?: Array<ResponseBodyModalities> | null | undefined;
1963
2133
  /**
1964
2134
  * A list of guardrails to apply to the request.
1965
2135
  */
1966
- guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
2136
+ guardrails?: Array<CreateAgentRequestResponseBodyGuardrails> | undefined;
1967
2137
  /**
1968
2138
  * Array of fallback models to use if primary model fails
1969
2139
  */
1970
- fallbacks?: Array<CreateAgentRequestFallbacks> | undefined;
2140
+ fallbacks?: Array<ResponseBodyFallbacks> | undefined;
1971
2141
  /**
1972
2142
  * Cache configuration for the request.
1973
2143
  */
1974
- cache?: CreateAgentRequestCache | undefined;
2144
+ cache?: ResponseBodyCache | undefined;
1975
2145
  /**
1976
2146
  * Load balancer configuration for the request.
1977
2147
  */
@@ -1979,13 +2149,13 @@ export type CreateAgentRequestParameters = {
1979
2149
  /**
1980
2150
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1981
2151
  */
1982
- timeout?: CreateAgentRequestTimeout | undefined;
2152
+ timeout?: ResponseBodyTimeout | undefined;
1983
2153
  };
1984
2154
 
1985
2155
  /**
1986
2156
  * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
1987
2157
  */
1988
- export type CreateAgentRequestRetry = {
2158
+ export type ResponseBodyRetry = {
1989
2159
  /**
1990
2160
  * Number of retry attempts (1-5)
1991
2161
  */
@@ -2419,7 +2589,7 @@ export type CreateAgentRequestFallbackModelConfiguration2 = {
2419
2589
  /**
2420
2590
  * Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
2421
2591
  */
2422
- export type CreateAgentRequestFallbackModelConfiguration =
2592
+ export type ResponseBodyFallbackModelConfiguration =
2423
2593
  | CreateAgentRequestFallbackModelConfiguration2
2424
2594
  | string;
2425
2595
 
@@ -2435,11 +2605,11 @@ export type Model = {
2435
2605
  /**
2436
2606
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
2437
2607
  */
2438
- parameters?: CreateAgentRequestParameters | undefined;
2608
+ parameters?: ResponseBodyParameters | undefined;
2439
2609
  /**
2440
2610
  * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
2441
2611
  */
2442
- retry?: CreateAgentRequestRetry | undefined;
2612
+ retry?: ResponseBodyRetry | undefined;
2443
2613
  /**
2444
2614
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
2445
2615
  */
@@ -2449,41 +2619,7 @@ export type Model = {
2449
2619
  | undefined;
2450
2620
  };
2451
2621
 
2452
- export type CreateAgentRequestTeamOfAgents = {
2453
- /**
2454
- * The unique key of the agent within the workspace
2455
- */
2456
- key: string;
2457
- /**
2458
- * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
2459
- */
2460
- role?: string | undefined;
2461
- };
2462
-
2463
- export type Metrics = {
2464
- totalCost: number;
2465
- };
2466
-
2467
- export type CreateAgentRequestKnowledgeBases = {
2468
- /**
2469
- * Unique identifier of the knowledge base to search
2470
- */
2471
- knowledgeId: string;
2472
- };
2473
-
2474
- export const CreateAgentRequestSource = {
2475
- Internal: "internal",
2476
- External: "external",
2477
- Experiment: "experiment",
2478
- } as const;
2479
- export type CreateAgentRequestSource = ClosedEnum<
2480
- typeof CreateAgentRequestSource
2481
- >;
2482
-
2483
- /**
2484
- * Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
2485
- */
2486
- export type CreateAgentRequestResponseBody = {
2622
+ export type ResponseBody1 = {
2487
2623
  id: string;
2488
2624
  /**
2489
2625
  * Unique identifier for the agent within the workspace
@@ -2495,16 +2631,10 @@ export type CreateAgentRequestResponseBody = {
2495
2631
  updatedById?: string | null | undefined;
2496
2632
  created?: string | undefined;
2497
2633
  updated?: string | undefined;
2498
- role: string;
2499
- description: string;
2500
- systemPrompt?: string | undefined;
2501
- instructions: string;
2502
2634
  /**
2503
2635
  * The status of the agent. `Live` is the latest version of the agent. `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.
2504
2636
  */
2505
- status: CreateAgentRequestStatus;
2506
- settings?: CreateAgentRequestSettings | undefined;
2507
- model: Model;
2637
+ status: CreateAgentRequestResponseBodyStatus;
2508
2638
  versionHash?: string | undefined;
2509
2639
  /**
2510
2640
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -2519,12 +2649,12 @@ export type CreateAgentRequestResponseBody = {
2519
2649
  /**
2520
2650
  * Array of memory store identifiers. Accepts both memory store IDs and keys.
2521
2651
  */
2522
- memoryStores: Array<string>;
2652
+ memoryStores?: Array<string> | undefined;
2523
2653
  /**
2524
2654
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
2525
2655
  */
2526
- teamOfAgents: Array<CreateAgentRequestTeamOfAgents>;
2527
- metrics?: Metrics | undefined;
2656
+ teamOfAgents?: Array<ResponseBodyTeamOfAgents> | undefined;
2657
+ metrics?: ResponseBodyMetrics | undefined;
2528
2658
  /**
2529
2659
  * Extracted variables from agent instructions
2530
2660
  */
@@ -2532,10 +2662,25 @@ export type CreateAgentRequestResponseBody = {
2532
2662
  /**
2533
2663
  * Agent knowledge bases reference
2534
2664
  */
2535
- knowledgeBases?: Array<CreateAgentRequestKnowledgeBases> | undefined;
2536
- source?: CreateAgentRequestSource | undefined;
2665
+ knowledgeBases?: Array<ResponseBodyKnowledgeBases> | undefined;
2666
+ source?: ResponseBodySource | undefined;
2667
+ /**
2668
+ * Orquesta-managed agent
2669
+ */
2670
+ type: "internal";
2671
+ role: string;
2672
+ description: string;
2673
+ systemPrompt?: string | undefined;
2674
+ instructions: string;
2675
+ settings?: ResponseBodySettings | undefined;
2676
+ model: Model;
2537
2677
  };
2538
2678
 
2679
+ /**
2680
+ * Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
2681
+ */
2682
+ export type CreateAgentRequestResponseBody = ResponseBody1 | ResponseBody2;
2683
+
2539
2684
  /** @internal */
2540
2685
  export type ResponseFormatJsonSchema$Outbound = {
2541
2686
  description?: string | undefined;
@@ -4704,15 +4849,282 @@ export function createAgentRequestRequestBodyToJSON(
4704
4849
  }
4705
4850
 
4706
4851
  /** @internal */
4707
- export const CreateAgentRequestStatus$inboundSchema: z.ZodNativeEnum<
4708
- typeof CreateAgentRequestStatus
4709
- > = z.nativeEnum(CreateAgentRequestStatus);
4852
+ export const ResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
4853
+ typeof ResponseBodyStatus
4854
+ > = z.nativeEnum(ResponseBodyStatus);
4710
4855
 
4711
4856
  /** @internal */
4712
- export const CreateAgentRequestToolApprovalRequired$inboundSchema:
4713
- z.ZodNativeEnum<typeof CreateAgentRequestToolApprovalRequired> = z.nativeEnum(
4714
- CreateAgentRequestToolApprovalRequired,
4857
+ export const CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema:
4858
+ z.ZodType<CreateAgentRequestResponseBodyTeamOfAgents, z.ZodTypeDef, unknown> =
4859
+ z.object({
4860
+ key: z.string(),
4861
+ role: z.string().optional(),
4862
+ });
4863
+
4864
+ export function createAgentRequestResponseBodyTeamOfAgentsFromJSON(
4865
+ jsonString: string,
4866
+ ): SafeParseResult<
4867
+ CreateAgentRequestResponseBodyTeamOfAgents,
4868
+ SDKValidationError
4869
+ > {
4870
+ return safeParse(
4871
+ jsonString,
4872
+ (x) =>
4873
+ CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema.parse(
4874
+ JSON.parse(x),
4875
+ ),
4876
+ `Failed to parse 'CreateAgentRequestResponseBodyTeamOfAgents' from JSON`,
4715
4877
  );
4878
+ }
4879
+
4880
+ /** @internal */
4881
+ export const CreateAgentRequestResponseBodyMetrics$inboundSchema: z.ZodType<
4882
+ CreateAgentRequestResponseBodyMetrics,
4883
+ z.ZodTypeDef,
4884
+ unknown
4885
+ > = z.object({
4886
+ total_cost: z.number().default(0),
4887
+ }).transform((v) => {
4888
+ return remap$(v, {
4889
+ "total_cost": "totalCost",
4890
+ });
4891
+ });
4892
+
4893
+ export function createAgentRequestResponseBodyMetricsFromJSON(
4894
+ jsonString: string,
4895
+ ): SafeParseResult<CreateAgentRequestResponseBodyMetrics, SDKValidationError> {
4896
+ return safeParse(
4897
+ jsonString,
4898
+ (x) =>
4899
+ CreateAgentRequestResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
4900
+ `Failed to parse 'CreateAgentRequestResponseBodyMetrics' from JSON`,
4901
+ );
4902
+ }
4903
+
4904
+ /** @internal */
4905
+ export const CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema:
4906
+ z.ZodType<
4907
+ CreateAgentRequestResponseBodyKnowledgeBases,
4908
+ z.ZodTypeDef,
4909
+ unknown
4910
+ > = z.object({
4911
+ knowledge_id: z.string(),
4912
+ }).transform((v) => {
4913
+ return remap$(v, {
4914
+ "knowledge_id": "knowledgeId",
4915
+ });
4916
+ });
4917
+
4918
+ export function createAgentRequestResponseBodyKnowledgeBasesFromJSON(
4919
+ jsonString: string,
4920
+ ): SafeParseResult<
4921
+ CreateAgentRequestResponseBodyKnowledgeBases,
4922
+ SDKValidationError
4923
+ > {
4924
+ return safeParse(
4925
+ jsonString,
4926
+ (x) =>
4927
+ CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema.parse(
4928
+ JSON.parse(x),
4929
+ ),
4930
+ `Failed to parse 'CreateAgentRequestResponseBodyKnowledgeBases' from JSON`,
4931
+ );
4932
+ }
4933
+
4934
+ /** @internal */
4935
+ export const CreateAgentRequestResponseBodySource$inboundSchema:
4936
+ z.ZodNativeEnum<typeof CreateAgentRequestResponseBodySource> = z.nativeEnum(
4937
+ CreateAgentRequestResponseBodySource,
4938
+ );
4939
+
4940
+ /** @internal */
4941
+ export const ResponseBodyHeaders$inboundSchema: z.ZodType<
4942
+ ResponseBodyHeaders,
4943
+ z.ZodTypeDef,
4944
+ unknown
4945
+ > = z.object({
4946
+ value: z.string(),
4947
+ encrypted: z.boolean().default(false),
4948
+ });
4949
+
4950
+ export function responseBodyHeadersFromJSON(
4951
+ jsonString: string,
4952
+ ): SafeParseResult<ResponseBodyHeaders, SDKValidationError> {
4953
+ return safeParse(
4954
+ jsonString,
4955
+ (x) => ResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
4956
+ `Failed to parse 'ResponseBodyHeaders' from JSON`,
4957
+ );
4958
+ }
4959
+
4960
+ /** @internal */
4961
+ export const A2AAgentConfiguration$inboundSchema: z.ZodType<
4962
+ A2AAgentConfiguration,
4963
+ z.ZodTypeDef,
4964
+ unknown
4965
+ > = z.object({
4966
+ agent_url: z.string(),
4967
+ card_url: z.string().optional(),
4968
+ headers: z.record(z.lazy(() => ResponseBodyHeaders$inboundSchema)).optional(),
4969
+ cached_card: z.any().optional(),
4970
+ }).transform((v) => {
4971
+ return remap$(v, {
4972
+ "agent_url": "agentUrl",
4973
+ "card_url": "cardUrl",
4974
+ "cached_card": "cachedCard",
4975
+ });
4976
+ });
4977
+
4978
+ export function a2AAgentConfigurationFromJSON(
4979
+ jsonString: string,
4980
+ ): SafeParseResult<A2AAgentConfiguration, SDKValidationError> {
4981
+ return safeParse(
4982
+ jsonString,
4983
+ (x) => A2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
4984
+ `Failed to parse 'A2AAgentConfiguration' from JSON`,
4985
+ );
4986
+ }
4987
+
4988
+ /** @internal */
4989
+ export const ResponseBody2$inboundSchema: z.ZodType<
4990
+ ResponseBody2,
4991
+ z.ZodTypeDef,
4992
+ unknown
4993
+ > = z.object({
4994
+ _id: z.string(),
4995
+ key: z.string(),
4996
+ display_name: z.string().optional(),
4997
+ project_id: z.string(),
4998
+ created_by_id: z.nullable(z.string()).optional(),
4999
+ updated_by_id: z.nullable(z.string()).optional(),
5000
+ created: z.string().optional(),
5001
+ updated: z.string().optional(),
5002
+ status: ResponseBodyStatus$inboundSchema,
5003
+ version_hash: z.string().optional(),
5004
+ path: z.string(),
5005
+ memory_stores: z.array(z.string()).optional(),
5006
+ team_of_agents: z.array(
5007
+ z.lazy(() => CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema),
5008
+ ).optional(),
5009
+ metrics: z.lazy(() => CreateAgentRequestResponseBodyMetrics$inboundSchema)
5010
+ .optional(),
5011
+ variables: z.record(z.any()).optional(),
5012
+ knowledge_bases: z.array(
5013
+ z.lazy(() => CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema),
5014
+ ).optional(),
5015
+ source: CreateAgentRequestResponseBodySource$inboundSchema.optional(),
5016
+ type: z.literal("a2a"),
5017
+ role: z.string(),
5018
+ description: z.string(),
5019
+ system_prompt: z.string().optional(),
5020
+ instructions: z.string(),
5021
+ a2a: z.lazy(() => A2AAgentConfiguration$inboundSchema),
5022
+ }).transform((v) => {
5023
+ return remap$(v, {
5024
+ "_id": "id",
5025
+ "display_name": "displayName",
5026
+ "project_id": "projectId",
5027
+ "created_by_id": "createdById",
5028
+ "updated_by_id": "updatedById",
5029
+ "version_hash": "versionHash",
5030
+ "memory_stores": "memoryStores",
5031
+ "team_of_agents": "teamOfAgents",
5032
+ "knowledge_bases": "knowledgeBases",
5033
+ "system_prompt": "systemPrompt",
5034
+ });
5035
+ });
5036
+
5037
+ export function responseBody2FromJSON(
5038
+ jsonString: string,
5039
+ ): SafeParseResult<ResponseBody2, SDKValidationError> {
5040
+ return safeParse(
5041
+ jsonString,
5042
+ (x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
5043
+ `Failed to parse 'ResponseBody2' from JSON`,
5044
+ );
5045
+ }
5046
+
5047
+ /** @internal */
5048
+ export const CreateAgentRequestResponseBodyStatus$inboundSchema:
5049
+ z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyStatus> = z.nativeEnum(
5050
+ CreateAgentRequestResponseBodyStatus,
5051
+ );
5052
+
5053
+ /** @internal */
5054
+ export const ResponseBodyTeamOfAgents$inboundSchema: z.ZodType<
5055
+ ResponseBodyTeamOfAgents,
5056
+ z.ZodTypeDef,
5057
+ unknown
5058
+ > = z.object({
5059
+ key: z.string(),
5060
+ role: z.string().optional(),
5061
+ });
5062
+
5063
+ export function responseBodyTeamOfAgentsFromJSON(
5064
+ jsonString: string,
5065
+ ): SafeParseResult<ResponseBodyTeamOfAgents, SDKValidationError> {
5066
+ return safeParse(
5067
+ jsonString,
5068
+ (x) => ResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
5069
+ `Failed to parse 'ResponseBodyTeamOfAgents' from JSON`,
5070
+ );
5071
+ }
5072
+
5073
+ /** @internal */
5074
+ export const ResponseBodyMetrics$inboundSchema: z.ZodType<
5075
+ ResponseBodyMetrics,
5076
+ z.ZodTypeDef,
5077
+ unknown
5078
+ > = z.object({
5079
+ total_cost: z.number().default(0),
5080
+ }).transform((v) => {
5081
+ return remap$(v, {
5082
+ "total_cost": "totalCost",
5083
+ });
5084
+ });
5085
+
5086
+ export function responseBodyMetricsFromJSON(
5087
+ jsonString: string,
5088
+ ): SafeParseResult<ResponseBodyMetrics, SDKValidationError> {
5089
+ return safeParse(
5090
+ jsonString,
5091
+ (x) => ResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
5092
+ `Failed to parse 'ResponseBodyMetrics' from JSON`,
5093
+ );
5094
+ }
5095
+
5096
+ /** @internal */
5097
+ export const ResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
5098
+ ResponseBodyKnowledgeBases,
5099
+ z.ZodTypeDef,
5100
+ unknown
5101
+ > = z.object({
5102
+ knowledge_id: z.string(),
5103
+ }).transform((v) => {
5104
+ return remap$(v, {
5105
+ "knowledge_id": "knowledgeId",
5106
+ });
5107
+ });
5108
+
5109
+ export function responseBodyKnowledgeBasesFromJSON(
5110
+ jsonString: string,
5111
+ ): SafeParseResult<ResponseBodyKnowledgeBases, SDKValidationError> {
5112
+ return safeParse(
5113
+ jsonString,
5114
+ (x) => ResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
5115
+ `Failed to parse 'ResponseBodyKnowledgeBases' from JSON`,
5116
+ );
5117
+ }
5118
+
5119
+ /** @internal */
5120
+ export const ResponseBodySource$inboundSchema: z.ZodNativeEnum<
5121
+ typeof ResponseBodySource
5122
+ > = z.nativeEnum(ResponseBodySource);
5123
+
5124
+ /** @internal */
5125
+ export const ResponseBodyToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
5126
+ typeof ResponseBodyToolApprovalRequired
5127
+ > = z.nativeEnum(ResponseBodyToolApprovalRequired);
4716
5128
 
4717
5129
  /** @internal */
4718
5130
  export const Conditions$inboundSchema: z.ZodType<
@@ -4736,8 +5148,8 @@ export function conditionsFromJSON(
4736
5148
  }
4737
5149
 
4738
5150
  /** @internal */
4739
- export const CreateAgentRequestTools$inboundSchema: z.ZodType<
4740
- CreateAgentRequestTools,
5151
+ export const ResponseBodyTools$inboundSchema: z.ZodType<
5152
+ ResponseBodyTools,
4741
5153
  z.ZodTypeDef,
4742
5154
  unknown
4743
5155
  > = z.object({
@@ -4759,30 +5171,30 @@ export const CreateAgentRequestTools$inboundSchema: z.ZodType<
4759
5171
  });
4760
5172
  });
4761
5173
 
4762
- export function createAgentRequestToolsFromJSON(
5174
+ export function responseBodyToolsFromJSON(
4763
5175
  jsonString: string,
4764
- ): SafeParseResult<CreateAgentRequestTools, SDKValidationError> {
5176
+ ): SafeParseResult<ResponseBodyTools, SDKValidationError> {
4765
5177
  return safeParse(
4766
5178
  jsonString,
4767
- (x) => CreateAgentRequestTools$inboundSchema.parse(JSON.parse(x)),
4768
- `Failed to parse 'CreateAgentRequestTools' from JSON`,
5179
+ (x) => ResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
5180
+ `Failed to parse 'ResponseBodyTools' from JSON`,
4769
5181
  );
4770
5182
  }
4771
5183
 
4772
5184
  /** @internal */
4773
- export const CreateAgentRequestAgentsResponseExecuteOn$inboundSchema:
4774
- z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponseExecuteOn> = z
4775
- .nativeEnum(CreateAgentRequestAgentsResponseExecuteOn);
5185
+ export const ResponseBodyExecuteOn$inboundSchema: z.ZodNativeEnum<
5186
+ typeof ResponseBodyExecuteOn
5187
+ > = z.nativeEnum(ResponseBodyExecuteOn);
4776
5188
 
4777
5189
  /** @internal */
4778
- export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
4779
- CreateAgentRequestEvaluators,
5190
+ export const ResponseBodyEvaluators$inboundSchema: z.ZodType<
5191
+ ResponseBodyEvaluators,
4780
5192
  z.ZodTypeDef,
4781
5193
  unknown
4782
5194
  > = z.object({
4783
5195
  id: z.string(),
4784
5196
  sample_rate: z.number().default(50),
4785
- execute_on: CreateAgentRequestAgentsResponseExecuteOn$inboundSchema,
5197
+ execute_on: ResponseBodyExecuteOn$inboundSchema,
4786
5198
  }).transform((v) => {
4787
5199
  return remap$(v, {
4788
5200
  "sample_rate": "sampleRate",
@@ -4790,30 +5202,30 @@ export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
4790
5202
  });
4791
5203
  });
4792
5204
 
4793
- export function createAgentRequestEvaluatorsFromJSON(
5205
+ export function responseBodyEvaluatorsFromJSON(
4794
5206
  jsonString: string,
4795
- ): SafeParseResult<CreateAgentRequestEvaluators, SDKValidationError> {
5207
+ ): SafeParseResult<ResponseBodyEvaluators, SDKValidationError> {
4796
5208
  return safeParse(
4797
5209
  jsonString,
4798
- (x) => CreateAgentRequestEvaluators$inboundSchema.parse(JSON.parse(x)),
4799
- `Failed to parse 'CreateAgentRequestEvaluators' from JSON`,
5210
+ (x) => ResponseBodyEvaluators$inboundSchema.parse(JSON.parse(x)),
5211
+ `Failed to parse 'ResponseBodyEvaluators' from JSON`,
4800
5212
  );
4801
5213
  }
4802
5214
 
4803
5215
  /** @internal */
4804
- export const CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema:
4805
- z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponse201ExecuteOn> = z
4806
- .nativeEnum(CreateAgentRequestAgentsResponse201ExecuteOn);
5216
+ export const CreateAgentRequestResponseBodyExecuteOn$inboundSchema:
5217
+ z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyExecuteOn> = z
5218
+ .nativeEnum(CreateAgentRequestResponseBodyExecuteOn);
4807
5219
 
4808
5220
  /** @internal */
4809
- export const CreateAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
4810
- CreateAgentRequestAgentsGuardrails,
5221
+ export const ResponseBodyGuardrails$inboundSchema: z.ZodType<
5222
+ ResponseBodyGuardrails,
4811
5223
  z.ZodTypeDef,
4812
5224
  unknown
4813
5225
  > = z.object({
4814
5226
  id: z.string(),
4815
5227
  sample_rate: z.number().default(50),
4816
- execute_on: CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema,
5228
+ execute_on: CreateAgentRequestResponseBodyExecuteOn$inboundSchema,
4817
5229
  }).transform((v) => {
4818
5230
  return remap$(v, {
4819
5231
  "sample_rate": "sampleRate",
@@ -4821,35 +5233,32 @@ export const CreateAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
4821
5233
  });
4822
5234
  });
4823
5235
 
4824
- export function createAgentRequestAgentsGuardrailsFromJSON(
5236
+ export function responseBodyGuardrailsFromJSON(
4825
5237
  jsonString: string,
4826
- ): SafeParseResult<CreateAgentRequestAgentsGuardrails, SDKValidationError> {
5238
+ ): SafeParseResult<ResponseBodyGuardrails, SDKValidationError> {
4827
5239
  return safeParse(
4828
5240
  jsonString,
4829
- (x) =>
4830
- CreateAgentRequestAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
4831
- `Failed to parse 'CreateAgentRequestAgentsGuardrails' from JSON`,
5241
+ (x) => ResponseBodyGuardrails$inboundSchema.parse(JSON.parse(x)),
5242
+ `Failed to parse 'ResponseBodyGuardrails' from JSON`,
4832
5243
  );
4833
5244
  }
4834
5245
 
4835
5246
  /** @internal */
4836
- export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
4837
- CreateAgentRequestSettings,
5247
+ export const ResponseBodySettings$inboundSchema: z.ZodType<
5248
+ ResponseBodySettings,
4838
5249
  z.ZodTypeDef,
4839
5250
  unknown
4840
5251
  > = z.object({
4841
5252
  max_iterations: z.number().int().default(100),
4842
5253
  max_execution_time: z.number().int().default(600),
4843
5254
  max_cost: z.number().default(0),
4844
- tool_approval_required: CreateAgentRequestToolApprovalRequired$inboundSchema
5255
+ tool_approval_required: ResponseBodyToolApprovalRequired$inboundSchema
4845
5256
  .default("respect_tool"),
4846
- tools: z.array(z.lazy(() => CreateAgentRequestTools$inboundSchema))
5257
+ tools: z.array(z.lazy(() => ResponseBodyTools$inboundSchema)).optional(),
5258
+ evaluators: z.array(z.lazy(() => ResponseBodyEvaluators$inboundSchema))
4847
5259
  .optional(),
4848
- evaluators: z.array(z.lazy(() => CreateAgentRequestEvaluators$inboundSchema))
5260
+ guardrails: z.array(z.lazy(() => ResponseBodyGuardrails$inboundSchema))
4849
5261
  .optional(),
4850
- guardrails: z.array(
4851
- z.lazy(() => CreateAgentRequestAgentsGuardrails$inboundSchema),
4852
- ).optional(),
4853
5262
  }).transform((v) => {
4854
5263
  return remap$(v, {
4855
5264
  "max_iterations": "maxIterations",
@@ -4859,13 +5268,13 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
4859
5268
  });
4860
5269
  });
4861
5270
 
4862
- export function createAgentRequestSettingsFromJSON(
5271
+ export function responseBodySettingsFromJSON(
4863
5272
  jsonString: string,
4864
- ): SafeParseResult<CreateAgentRequestSettings, SDKValidationError> {
5273
+ ): SafeParseResult<ResponseBodySettings, SDKValidationError> {
4865
5274
  return safeParse(
4866
5275
  jsonString,
4867
- (x) => CreateAgentRequestSettings$inboundSchema.parse(JSON.parse(x)),
4868
- `Failed to parse 'CreateAgentRequestSettings' from JSON`,
5276
+ (x) => ResponseBodySettings$inboundSchema.parse(JSON.parse(x)),
5277
+ `Failed to parse 'ResponseBodySettings' from JSON`,
4869
5278
  );
4870
5279
  }
4871
5280
 
@@ -4973,8 +5382,8 @@ export function createAgentRequestResponseFormatTextFromJSON(
4973
5382
  }
4974
5383
 
4975
5384
  /** @internal */
4976
- export const CreateAgentRequestResponseFormat$inboundSchema: z.ZodType<
4977
- CreateAgentRequestResponseFormat,
5385
+ export const ResponseBodyResponseFormat$inboundSchema: z.ZodType<
5386
+ ResponseBodyResponseFormat,
4978
5387
  z.ZodTypeDef,
4979
5388
  unknown
4980
5389
  > = z.union([
@@ -4985,41 +5394,41 @@ export const CreateAgentRequestResponseFormat$inboundSchema: z.ZodType<
4985
5394
  ),
4986
5395
  ]);
4987
5396
 
4988
- export function createAgentRequestResponseFormatFromJSON(
5397
+ export function responseBodyResponseFormatFromJSON(
4989
5398
  jsonString: string,
4990
- ): SafeParseResult<CreateAgentRequestResponseFormat, SDKValidationError> {
5399
+ ): SafeParseResult<ResponseBodyResponseFormat, SDKValidationError> {
4991
5400
  return safeParse(
4992
5401
  jsonString,
4993
- (x) => CreateAgentRequestResponseFormat$inboundSchema.parse(JSON.parse(x)),
4994
- `Failed to parse 'CreateAgentRequestResponseFormat' from JSON`,
5402
+ (x) => ResponseBodyResponseFormat$inboundSchema.parse(JSON.parse(x)),
5403
+ `Failed to parse 'ResponseBodyResponseFormat' from JSON`,
4995
5404
  );
4996
5405
  }
4997
5406
 
4998
5407
  /** @internal */
4999
- export const CreateAgentRequestReasoningEffort$inboundSchema: z.ZodNativeEnum<
5000
- typeof CreateAgentRequestReasoningEffort
5001
- > = z.nativeEnum(CreateAgentRequestReasoningEffort);
5408
+ export const ResponseBodyReasoningEffort$inboundSchema: z.ZodNativeEnum<
5409
+ typeof ResponseBodyReasoningEffort
5410
+ > = z.nativeEnum(ResponseBodyReasoningEffort);
5002
5411
 
5003
5412
  /** @internal */
5004
- export const CreateAgentRequestStop$inboundSchema: z.ZodType<
5005
- CreateAgentRequestStop,
5413
+ export const ResponseBodyStop$inboundSchema: z.ZodType<
5414
+ ResponseBodyStop,
5006
5415
  z.ZodTypeDef,
5007
5416
  unknown
5008
5417
  > = z.union([z.string(), z.array(z.string())]);
5009
5418
 
5010
- export function createAgentRequestStopFromJSON(
5419
+ export function responseBodyStopFromJSON(
5011
5420
  jsonString: string,
5012
- ): SafeParseResult<CreateAgentRequestStop, SDKValidationError> {
5421
+ ): SafeParseResult<ResponseBodyStop, SDKValidationError> {
5013
5422
  return safeParse(
5014
5423
  jsonString,
5015
- (x) => CreateAgentRequestStop$inboundSchema.parse(JSON.parse(x)),
5016
- `Failed to parse 'CreateAgentRequestStop' from JSON`,
5424
+ (x) => ResponseBodyStop$inboundSchema.parse(JSON.parse(x)),
5425
+ `Failed to parse 'ResponseBodyStop' from JSON`,
5017
5426
  );
5018
5427
  }
5019
5428
 
5020
5429
  /** @internal */
5021
- export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
5022
- CreateAgentRequestThinking,
5430
+ export const ResponseBodyThinking$inboundSchema: z.ZodType<
5431
+ ResponseBodyThinking,
5023
5432
  z.ZodTypeDef,
5024
5433
  unknown
5025
5434
  > = z.union([
@@ -5027,13 +5436,13 @@ export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
5027
5436
  components.ThinkingConfigEnabledSchema$inboundSchema,
5028
5437
  ]);
5029
5438
 
5030
- export function createAgentRequestThinkingFromJSON(
5439
+ export function responseBodyThinkingFromJSON(
5031
5440
  jsonString: string,
5032
- ): SafeParseResult<CreateAgentRequestThinking, SDKValidationError> {
5441
+ ): SafeParseResult<ResponseBodyThinking, SDKValidationError> {
5033
5442
  return safeParse(
5034
5443
  jsonString,
5035
- (x) => CreateAgentRequestThinking$inboundSchema.parse(JSON.parse(x)),
5036
- `Failed to parse 'CreateAgentRequestThinking' from JSON`,
5444
+ (x) => ResponseBodyThinking$inboundSchema.parse(JSON.parse(x)),
5445
+ `Failed to parse 'ResponseBodyThinking' from JSON`,
5037
5446
  );
5038
5447
  }
5039
5448
 
@@ -5095,8 +5504,8 @@ export const CreateAgentRequestToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
5095
5504
  > = z.nativeEnum(CreateAgentRequestToolChoiceAgents1);
5096
5505
 
5097
5506
  /** @internal */
5098
- export const CreateAgentRequestToolChoice$inboundSchema: z.ZodType<
5099
- CreateAgentRequestToolChoice,
5507
+ export const ResponseBodyToolChoice$inboundSchema: z.ZodType<
5508
+ ResponseBodyToolChoice,
5100
5509
  z.ZodTypeDef,
5101
5510
  unknown
5102
5511
  > = z.union([
@@ -5104,20 +5513,20 @@ export const CreateAgentRequestToolChoice$inboundSchema: z.ZodType<
5104
5513
  CreateAgentRequestToolChoiceAgents1$inboundSchema,
5105
5514
  ]);
5106
5515
 
5107
- export function createAgentRequestToolChoiceFromJSON(
5516
+ export function responseBodyToolChoiceFromJSON(
5108
5517
  jsonString: string,
5109
- ): SafeParseResult<CreateAgentRequestToolChoice, SDKValidationError> {
5518
+ ): SafeParseResult<ResponseBodyToolChoice, SDKValidationError> {
5110
5519
  return safeParse(
5111
5520
  jsonString,
5112
- (x) => CreateAgentRequestToolChoice$inboundSchema.parse(JSON.parse(x)),
5113
- `Failed to parse 'CreateAgentRequestToolChoice' from JSON`,
5521
+ (x) => ResponseBodyToolChoice$inboundSchema.parse(JSON.parse(x)),
5522
+ `Failed to parse 'ResponseBodyToolChoice' from JSON`,
5114
5523
  );
5115
5524
  }
5116
5525
 
5117
5526
  /** @internal */
5118
- export const CreateAgentRequestModalities$inboundSchema: z.ZodNativeEnum<
5119
- typeof CreateAgentRequestModalities
5120
- > = z.nativeEnum(CreateAgentRequestModalities);
5527
+ export const ResponseBodyModalities$inboundSchema: z.ZodNativeEnum<
5528
+ typeof ResponseBodyModalities
5529
+ > = z.nativeEnum(ResponseBodyModalities);
5121
5530
 
5122
5531
  /** @internal */
5123
5532
  export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
@@ -5125,98 +5534,98 @@ export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
5125
5534
  > = z.nativeEnum(CreateAgentRequestIdAgents1);
5126
5535
 
5127
5536
  /** @internal */
5128
- export const CreateAgentRequestId$inboundSchema: z.ZodType<
5129
- CreateAgentRequestId,
5537
+ export const ResponseBodyId$inboundSchema: z.ZodType<
5538
+ ResponseBodyId,
5130
5539
  z.ZodTypeDef,
5131
5540
  unknown
5132
5541
  > = z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]);
5133
5542
 
5134
- export function createAgentRequestIdFromJSON(
5543
+ export function responseBodyIdFromJSON(
5135
5544
  jsonString: string,
5136
- ): SafeParseResult<CreateAgentRequestId, SDKValidationError> {
5545
+ ): SafeParseResult<ResponseBodyId, SDKValidationError> {
5137
5546
  return safeParse(
5138
5547
  jsonString,
5139
- (x) => CreateAgentRequestId$inboundSchema.parse(JSON.parse(x)),
5140
- `Failed to parse 'CreateAgentRequestId' from JSON`,
5548
+ (x) => ResponseBodyId$inboundSchema.parse(JSON.parse(x)),
5549
+ `Failed to parse 'ResponseBodyId' from JSON`,
5141
5550
  );
5142
5551
  }
5143
5552
 
5144
5553
  /** @internal */
5145
- export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema:
5146
- z.ZodNativeEnum<
5147
- typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
5148
- > = z.nativeEnum(CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn);
5554
+ export const CreateAgentRequestResponseBodyAgentsExecuteOn$inboundSchema:
5555
+ z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyAgentsExecuteOn> = z
5556
+ .nativeEnum(CreateAgentRequestResponseBodyAgentsExecuteOn);
5149
5557
 
5150
5558
  /** @internal */
5151
- export const CreateAgentRequestAgentsResponseGuardrails$inboundSchema:
5152
- z.ZodType<CreateAgentRequestAgentsResponseGuardrails, z.ZodTypeDef, unknown> =
5153
- z.object({
5154
- id: z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]),
5155
- execute_on:
5156
- CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema,
5157
- }).transform((v) => {
5158
- return remap$(v, {
5159
- "execute_on": "executeOn",
5160
- });
5161
- });
5559
+ export const CreateAgentRequestResponseBodyGuardrails$inboundSchema: z.ZodType<
5560
+ CreateAgentRequestResponseBodyGuardrails,
5561
+ z.ZodTypeDef,
5562
+ unknown
5563
+ > = z.object({
5564
+ id: z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]),
5565
+ execute_on: CreateAgentRequestResponseBodyAgentsExecuteOn$inboundSchema,
5566
+ }).transform((v) => {
5567
+ return remap$(v, {
5568
+ "execute_on": "executeOn",
5569
+ });
5570
+ });
5162
5571
 
5163
- export function createAgentRequestAgentsResponseGuardrailsFromJSON(
5572
+ export function createAgentRequestResponseBodyGuardrailsFromJSON(
5164
5573
  jsonString: string,
5165
5574
  ): SafeParseResult<
5166
- CreateAgentRequestAgentsResponseGuardrails,
5575
+ CreateAgentRequestResponseBodyGuardrails,
5167
5576
  SDKValidationError
5168
5577
  > {
5169
5578
  return safeParse(
5170
5579
  jsonString,
5171
5580
  (x) =>
5172
- CreateAgentRequestAgentsResponseGuardrails$inboundSchema.parse(
5581
+ CreateAgentRequestResponseBodyGuardrails$inboundSchema.parse(
5173
5582
  JSON.parse(x),
5174
5583
  ),
5175
- `Failed to parse 'CreateAgentRequestAgentsResponseGuardrails' from JSON`,
5584
+ `Failed to parse 'CreateAgentRequestResponseBodyGuardrails' from JSON`,
5176
5585
  );
5177
5586
  }
5178
5587
 
5179
5588
  /** @internal */
5180
- export const CreateAgentRequestFallbacks$inboundSchema: z.ZodType<
5181
- CreateAgentRequestFallbacks,
5589
+ export const ResponseBodyFallbacks$inboundSchema: z.ZodType<
5590
+ ResponseBodyFallbacks,
5182
5591
  z.ZodTypeDef,
5183
5592
  unknown
5184
5593
  > = z.object({
5185
5594
  model: z.string(),
5186
5595
  });
5187
5596
 
5188
- export function createAgentRequestFallbacksFromJSON(
5597
+ export function responseBodyFallbacksFromJSON(
5189
5598
  jsonString: string,
5190
- ): SafeParseResult<CreateAgentRequestFallbacks, SDKValidationError> {
5599
+ ): SafeParseResult<ResponseBodyFallbacks, SDKValidationError> {
5191
5600
  return safeParse(
5192
5601
  jsonString,
5193
- (x) => CreateAgentRequestFallbacks$inboundSchema.parse(JSON.parse(x)),
5194
- `Failed to parse 'CreateAgentRequestFallbacks' from JSON`,
5602
+ (x) => ResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
5603
+ `Failed to parse 'ResponseBodyFallbacks' from JSON`,
5195
5604
  );
5196
5605
  }
5197
5606
 
5198
5607
  /** @internal */
5199
- export const CreateAgentRequestType$inboundSchema: z.ZodNativeEnum<
5200
- typeof CreateAgentRequestType
5201
- > = z.nativeEnum(CreateAgentRequestType);
5608
+ export const CreateAgentRequestResponseBodyAgentsResponseType$inboundSchema:
5609
+ z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyAgentsResponseType> = z
5610
+ .nativeEnum(CreateAgentRequestResponseBodyAgentsResponseType);
5202
5611
 
5203
5612
  /** @internal */
5204
- export const CreateAgentRequestCache$inboundSchema: z.ZodType<
5205
- CreateAgentRequestCache,
5613
+ export const ResponseBodyCache$inboundSchema: z.ZodType<
5614
+ ResponseBodyCache,
5206
5615
  z.ZodTypeDef,
5207
5616
  unknown
5208
5617
  > = z.object({
5209
5618
  ttl: z.number().default(1800),
5210
- type: CreateAgentRequestType$inboundSchema,
5619
+ type: CreateAgentRequestResponseBodyAgentsResponseType$inboundSchema,
5211
5620
  });
5212
5621
 
5213
- export function createAgentRequestCacheFromJSON(
5622
+ export function responseBodyCacheFromJSON(
5214
5623
  jsonString: string,
5215
- ): SafeParseResult<CreateAgentRequestCache, SDKValidationError> {
5624
+ ): SafeParseResult<ResponseBodyCache, SDKValidationError> {
5216
5625
  return safeParse(
5217
5626
  jsonString,
5218
- (x) => CreateAgentRequestCache$inboundSchema.parse(JSON.parse(x)),
5219
- `Failed to parse 'CreateAgentRequestCache' from JSON`,
5627
+ (x) => ResponseBodyCache$inboundSchema.parse(JSON.parse(x)),
5628
+ `Failed to parse 'ResponseBodyCache' from JSON`,
5220
5629
  );
5221
5630
  }
5222
5631
 
@@ -5270,25 +5679,25 @@ export function createAgentRequestLoadBalancerAgents1FromJSON(
5270
5679
  }
5271
5680
 
5272
5681
  /** @internal */
5273
- export const CreateAgentRequestLoadBalancer$inboundSchema: z.ZodType<
5274
- CreateAgentRequestLoadBalancer,
5682
+ export const ResponseBodyLoadBalancer$inboundSchema: z.ZodType<
5683
+ ResponseBodyLoadBalancer,
5275
5684
  z.ZodTypeDef,
5276
5685
  unknown
5277
5686
  > = z.lazy(() => CreateAgentRequestLoadBalancerAgents1$inboundSchema);
5278
5687
 
5279
- export function createAgentRequestLoadBalancerFromJSON(
5688
+ export function responseBodyLoadBalancerFromJSON(
5280
5689
  jsonString: string,
5281
- ): SafeParseResult<CreateAgentRequestLoadBalancer, SDKValidationError> {
5690
+ ): SafeParseResult<ResponseBodyLoadBalancer, SDKValidationError> {
5282
5691
  return safeParse(
5283
5692
  jsonString,
5284
- (x) => CreateAgentRequestLoadBalancer$inboundSchema.parse(JSON.parse(x)),
5285
- `Failed to parse 'CreateAgentRequestLoadBalancer' from JSON`,
5693
+ (x) => ResponseBodyLoadBalancer$inboundSchema.parse(JSON.parse(x)),
5694
+ `Failed to parse 'ResponseBodyLoadBalancer' from JSON`,
5286
5695
  );
5287
5696
  }
5288
5697
 
5289
5698
  /** @internal */
5290
- export const CreateAgentRequestTimeout$inboundSchema: z.ZodType<
5291
- CreateAgentRequestTimeout,
5699
+ export const ResponseBodyTimeout$inboundSchema: z.ZodType<
5700
+ ResponseBodyTimeout,
5292
5701
  z.ZodTypeDef,
5293
5702
  unknown
5294
5703
  > = z.object({
@@ -5299,19 +5708,19 @@ export const CreateAgentRequestTimeout$inboundSchema: z.ZodType<
5299
5708
  });
5300
5709
  });
5301
5710
 
5302
- export function createAgentRequestTimeoutFromJSON(
5711
+ export function responseBodyTimeoutFromJSON(
5303
5712
  jsonString: string,
5304
- ): SafeParseResult<CreateAgentRequestTimeout, SDKValidationError> {
5713
+ ): SafeParseResult<ResponseBodyTimeout, SDKValidationError> {
5305
5714
  return safeParse(
5306
5715
  jsonString,
5307
- (x) => CreateAgentRequestTimeout$inboundSchema.parse(JSON.parse(x)),
5308
- `Failed to parse 'CreateAgentRequestTimeout' from JSON`,
5716
+ (x) => ResponseBodyTimeout$inboundSchema.parse(JSON.parse(x)),
5717
+ `Failed to parse 'ResponseBodyTimeout' from JSON`,
5309
5718
  );
5310
5719
  }
5311
5720
 
5312
5721
  /** @internal */
5313
- export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5314
- CreateAgentRequestParameters,
5722
+ export const ResponseBodyParameters$inboundSchema: z.ZodType<
5723
+ ResponseBodyParameters,
5315
5724
  z.ZodTypeDef,
5316
5725
  unknown
5317
5726
  > = z.object({
@@ -5327,7 +5736,7 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5327
5736
  CreateAgentRequestResponseFormatAgentsResponse201JSONSchema$inboundSchema
5328
5737
  ),
5329
5738
  ]).optional(),
5330
- reasoning_effort: CreateAgentRequestReasoningEffort$inboundSchema.optional(),
5739
+ reasoning_effort: ResponseBodyReasoningEffort$inboundSchema.optional(),
5331
5740
  verbosity: z.string().optional(),
5332
5741
  seed: z.nullable(z.number()).optional(),
5333
5742
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -5343,18 +5752,18 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5343
5752
  CreateAgentRequestToolChoiceAgents1$inboundSchema,
5344
5753
  ]).optional(),
5345
5754
  parallel_tool_calls: z.boolean().optional(),
5346
- modalities: z.nullable(z.array(CreateAgentRequestModalities$inboundSchema))
5755
+ modalities: z.nullable(z.array(ResponseBodyModalities$inboundSchema))
5347
5756
  .optional(),
5348
5757
  guardrails: z.array(
5349
- z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$inboundSchema),
5758
+ z.lazy(() => CreateAgentRequestResponseBodyGuardrails$inboundSchema),
5350
5759
  ).optional(),
5351
- fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
5760
+ fallbacks: z.array(z.lazy(() => ResponseBodyFallbacks$inboundSchema))
5352
5761
  .optional(),
5353
- cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
5762
+ cache: z.lazy(() => ResponseBodyCache$inboundSchema).optional(),
5354
5763
  load_balancer: z.lazy(() =>
5355
5764
  CreateAgentRequestLoadBalancerAgents1$inboundSchema
5356
5765
  ).optional(),
5357
- timeout: z.lazy(() => CreateAgentRequestTimeout$inboundSchema).optional(),
5766
+ timeout: z.lazy(() => ResponseBodyTimeout$inboundSchema).optional(),
5358
5767
  }).transform((v) => {
5359
5768
  return remap$(v, {
5360
5769
  "frequency_penalty": "frequencyPenalty",
@@ -5371,19 +5780,19 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5371
5780
  });
5372
5781
  });
5373
5782
 
5374
- export function createAgentRequestParametersFromJSON(
5783
+ export function responseBodyParametersFromJSON(
5375
5784
  jsonString: string,
5376
- ): SafeParseResult<CreateAgentRequestParameters, SDKValidationError> {
5785
+ ): SafeParseResult<ResponseBodyParameters, SDKValidationError> {
5377
5786
  return safeParse(
5378
5787
  jsonString,
5379
- (x) => CreateAgentRequestParameters$inboundSchema.parse(JSON.parse(x)),
5380
- `Failed to parse 'CreateAgentRequestParameters' from JSON`,
5788
+ (x) => ResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
5789
+ `Failed to parse 'ResponseBodyParameters' from JSON`,
5381
5790
  );
5382
5791
  }
5383
5792
 
5384
5793
  /** @internal */
5385
- export const CreateAgentRequestRetry$inboundSchema: z.ZodType<
5386
- CreateAgentRequestRetry,
5794
+ export const ResponseBodyRetry$inboundSchema: z.ZodType<
5795
+ ResponseBodyRetry,
5387
5796
  z.ZodTypeDef,
5388
5797
  unknown
5389
5798
  > = z.object({
@@ -5395,13 +5804,13 @@ export const CreateAgentRequestRetry$inboundSchema: z.ZodType<
5395
5804
  });
5396
5805
  });
5397
5806
 
5398
- export function createAgentRequestRetryFromJSON(
5807
+ export function responseBodyRetryFromJSON(
5399
5808
  jsonString: string,
5400
- ): SafeParseResult<CreateAgentRequestRetry, SDKValidationError> {
5809
+ ): SafeParseResult<ResponseBodyRetry, SDKValidationError> {
5401
5810
  return safeParse(
5402
5811
  jsonString,
5403
- (x) => CreateAgentRequestRetry$inboundSchema.parse(JSON.parse(x)),
5404
- `Failed to parse 'CreateAgentRequestRetry' from JSON`,
5812
+ (x) => ResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
5813
+ `Failed to parse 'ResponseBodyRetry' from JSON`,
5405
5814
  );
5406
5815
  }
5407
5816
 
@@ -6096,29 +6505,23 @@ export function createAgentRequestFallbackModelConfiguration2FromJSON(
6096
6505
  }
6097
6506
 
6098
6507
  /** @internal */
6099
- export const CreateAgentRequestFallbackModelConfiguration$inboundSchema:
6100
- z.ZodType<
6101
- CreateAgentRequestFallbackModelConfiguration,
6102
- z.ZodTypeDef,
6103
- unknown
6104
- > = z.union([
6105
- z.lazy(() => CreateAgentRequestFallbackModelConfiguration2$inboundSchema),
6106
- z.string(),
6107
- ]);
6508
+ export const ResponseBodyFallbackModelConfiguration$inboundSchema: z.ZodType<
6509
+ ResponseBodyFallbackModelConfiguration,
6510
+ z.ZodTypeDef,
6511
+ unknown
6512
+ > = z.union([
6513
+ z.lazy(() => CreateAgentRequestFallbackModelConfiguration2$inboundSchema),
6514
+ z.string(),
6515
+ ]);
6108
6516
 
6109
- export function createAgentRequestFallbackModelConfigurationFromJSON(
6517
+ export function responseBodyFallbackModelConfigurationFromJSON(
6110
6518
  jsonString: string,
6111
- ): SafeParseResult<
6112
- CreateAgentRequestFallbackModelConfiguration,
6113
- SDKValidationError
6114
- > {
6519
+ ): SafeParseResult<ResponseBodyFallbackModelConfiguration, SDKValidationError> {
6115
6520
  return safeParse(
6116
6521
  jsonString,
6117
6522
  (x) =>
6118
- CreateAgentRequestFallbackModelConfiguration$inboundSchema.parse(
6119
- JSON.parse(x),
6120
- ),
6121
- `Failed to parse 'CreateAgentRequestFallbackModelConfiguration' from JSON`,
6523
+ ResponseBodyFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
6524
+ `Failed to parse 'ResponseBodyFallbackModelConfiguration' from JSON`,
6122
6525
  );
6123
6526
  }
6124
6527
 
@@ -6127,9 +6530,8 @@ export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
6127
6530
  .object({
6128
6531
  id: z.string(),
6129
6532
  integration_id: z.nullable(z.string()).optional(),
6130
- parameters: z.lazy(() => CreateAgentRequestParameters$inboundSchema)
6131
- .optional(),
6132
- retry: z.lazy(() => CreateAgentRequestRetry$inboundSchema).optional(),
6533
+ parameters: z.lazy(() => ResponseBodyParameters$inboundSchema).optional(),
6534
+ retry: z.lazy(() => ResponseBodyRetry$inboundSchema).optional(),
6133
6535
  fallback_models: z.nullable(
6134
6536
  z.array(z.union([
6135
6537
  z.lazy(() =>
@@ -6156,76 +6558,8 @@ export function modelFromJSON(
6156
6558
  }
6157
6559
 
6158
6560
  /** @internal */
6159
- export const CreateAgentRequestTeamOfAgents$inboundSchema: z.ZodType<
6160
- CreateAgentRequestTeamOfAgents,
6161
- z.ZodTypeDef,
6162
- unknown
6163
- > = z.object({
6164
- key: z.string(),
6165
- role: z.string().optional(),
6166
- });
6167
-
6168
- export function createAgentRequestTeamOfAgentsFromJSON(
6169
- jsonString: string,
6170
- ): SafeParseResult<CreateAgentRequestTeamOfAgents, SDKValidationError> {
6171
- return safeParse(
6172
- jsonString,
6173
- (x) => CreateAgentRequestTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
6174
- `Failed to parse 'CreateAgentRequestTeamOfAgents' from JSON`,
6175
- );
6176
- }
6177
-
6178
- /** @internal */
6179
- export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
6180
- z.object({
6181
- total_cost: z.number().default(0),
6182
- }).transform((v) => {
6183
- return remap$(v, {
6184
- "total_cost": "totalCost",
6185
- });
6186
- });
6187
-
6188
- export function metricsFromJSON(
6189
- jsonString: string,
6190
- ): SafeParseResult<Metrics, SDKValidationError> {
6191
- return safeParse(
6192
- jsonString,
6193
- (x) => Metrics$inboundSchema.parse(JSON.parse(x)),
6194
- `Failed to parse 'Metrics' from JSON`,
6195
- );
6196
- }
6197
-
6198
- /** @internal */
6199
- export const CreateAgentRequestKnowledgeBases$inboundSchema: z.ZodType<
6200
- CreateAgentRequestKnowledgeBases,
6201
- z.ZodTypeDef,
6202
- unknown
6203
- > = z.object({
6204
- knowledge_id: z.string(),
6205
- }).transform((v) => {
6206
- return remap$(v, {
6207
- "knowledge_id": "knowledgeId",
6208
- });
6209
- });
6210
-
6211
- export function createAgentRequestKnowledgeBasesFromJSON(
6212
- jsonString: string,
6213
- ): SafeParseResult<CreateAgentRequestKnowledgeBases, SDKValidationError> {
6214
- return safeParse(
6215
- jsonString,
6216
- (x) => CreateAgentRequestKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
6217
- `Failed to parse 'CreateAgentRequestKnowledgeBases' from JSON`,
6218
- );
6219
- }
6220
-
6221
- /** @internal */
6222
- export const CreateAgentRequestSource$inboundSchema: z.ZodNativeEnum<
6223
- typeof CreateAgentRequestSource
6224
- > = z.nativeEnum(CreateAgentRequestSource);
6225
-
6226
- /** @internal */
6227
- export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
6228
- CreateAgentRequestResponseBody,
6561
+ export const ResponseBody1$inboundSchema: z.ZodType<
6562
+ ResponseBody1,
6229
6563
  z.ZodTypeDef,
6230
6564
  unknown
6231
6565
  > = z.object({
@@ -6237,25 +6571,25 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
6237
6571
  updated_by_id: z.nullable(z.string()).optional(),
6238
6572
  created: z.string().optional(),
6239
6573
  updated: z.string().optional(),
6240
- role: z.string(),
6241
- description: z.string(),
6242
- system_prompt: z.string().optional(),
6243
- instructions: z.string(),
6244
- status: CreateAgentRequestStatus$inboundSchema,
6245
- settings: z.lazy(() => CreateAgentRequestSettings$inboundSchema).optional(),
6246
- model: z.lazy(() => Model$inboundSchema),
6574
+ status: CreateAgentRequestResponseBodyStatus$inboundSchema,
6247
6575
  version_hash: z.string().optional(),
6248
6576
  path: z.string(),
6249
- memory_stores: z.array(z.string()),
6250
- team_of_agents: z.array(
6251
- z.lazy(() => CreateAgentRequestTeamOfAgents$inboundSchema),
6252
- ),
6253
- metrics: z.lazy(() => Metrics$inboundSchema).optional(),
6577
+ memory_stores: z.array(z.string()).optional(),
6578
+ team_of_agents: z.array(z.lazy(() => ResponseBodyTeamOfAgents$inboundSchema))
6579
+ .optional(),
6580
+ metrics: z.lazy(() => ResponseBodyMetrics$inboundSchema).optional(),
6254
6581
  variables: z.record(z.any()).optional(),
6255
6582
  knowledge_bases: z.array(
6256
- z.lazy(() => CreateAgentRequestKnowledgeBases$inboundSchema),
6583
+ z.lazy(() => ResponseBodyKnowledgeBases$inboundSchema),
6257
6584
  ).optional(),
6258
- source: CreateAgentRequestSource$inboundSchema.optional(),
6585
+ source: ResponseBodySource$inboundSchema.optional(),
6586
+ type: z.literal("internal"),
6587
+ role: z.string(),
6588
+ description: z.string(),
6589
+ system_prompt: z.string().optional(),
6590
+ instructions: z.string(),
6591
+ settings: z.lazy(() => ResponseBodySettings$inboundSchema).optional(),
6592
+ model: z.lazy(() => Model$inboundSchema),
6259
6593
  }).transform((v) => {
6260
6594
  return remap$(v, {
6261
6595
  "_id": "id",
@@ -6263,14 +6597,34 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
6263
6597
  "project_id": "projectId",
6264
6598
  "created_by_id": "createdById",
6265
6599
  "updated_by_id": "updatedById",
6266
- "system_prompt": "systemPrompt",
6267
6600
  "version_hash": "versionHash",
6268
6601
  "memory_stores": "memoryStores",
6269
6602
  "team_of_agents": "teamOfAgents",
6270
6603
  "knowledge_bases": "knowledgeBases",
6604
+ "system_prompt": "systemPrompt",
6271
6605
  });
6272
6606
  });
6273
6607
 
6608
+ export function responseBody1FromJSON(
6609
+ jsonString: string,
6610
+ ): SafeParseResult<ResponseBody1, SDKValidationError> {
6611
+ return safeParse(
6612
+ jsonString,
6613
+ (x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
6614
+ `Failed to parse 'ResponseBody1' from JSON`,
6615
+ );
6616
+ }
6617
+
6618
+ /** @internal */
6619
+ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
6620
+ CreateAgentRequestResponseBody,
6621
+ z.ZodTypeDef,
6622
+ unknown
6623
+ > = z.union([
6624
+ z.lazy(() => ResponseBody1$inboundSchema),
6625
+ z.lazy(() => ResponseBody2$inboundSchema),
6626
+ ]);
6627
+
6274
6628
  export function createAgentRequestResponseBodyFromJSON(
6275
6629
  jsonString: string,
6276
6630
  ): SafeParseResult<CreateAgentRequestResponseBody, SDKValidationError> {