@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
@@ -1415,10 +1415,33 @@ export type UpdateAgentTeamOfAgents = {
1415
1415
  role?: string | undefined;
1416
1416
  };
1417
1417
 
1418
+ export type UpdateAgentHeaders = {
1419
+ /**
1420
+ * 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.
1421
+ */
1422
+ value: string;
1423
+ encrypted?: boolean | undefined;
1424
+ };
1425
+
1418
1426
  /**
1419
- * Request body for updating an existing agent via the API. Uses simplified tool input format.
1427
+ * Update A2A agent configuration (only applicable to A2A agents)
1420
1428
  */
1421
- export type UpdateAgentUpdateAgentRequest = {
1429
+ export type UpdateA2AConfiguration = {
1430
+ /**
1431
+ * Update the A2A agent endpoint URL
1432
+ */
1433
+ agentUrl?: string | undefined;
1434
+ /**
1435
+ * Update the explicit agent card URL
1436
+ */
1437
+ cardUrl?: string | undefined;
1438
+ /**
1439
+ * Update HTTP headers for authentication. **Credential preservation**: Use empty string ("") for encrypted header values to keep existing credentials without re-entry. Provide new values to rotate credentials. Omit headers entirely to remove them.
1440
+ */
1441
+ headers?: { [k: string]: UpdateAgentHeaders } | undefined;
1442
+ };
1443
+
1444
+ export type UpdateAgentRequestBody = {
1422
1445
  key?: string | undefined;
1423
1446
  displayName?: string | undefined;
1424
1447
  projectId?: string | undefined;
@@ -1466,6 +1489,10 @@ export type UpdateAgentUpdateAgentRequest = {
1466
1489
  * Extracted variables from agent instructions
1467
1490
  */
1468
1491
  variables?: { [k: string]: any } | undefined;
1492
+ /**
1493
+ * Update A2A agent configuration (only applicable to A2A agents)
1494
+ */
1495
+ a2a?: UpdateA2AConfiguration | undefined;
1469
1496
  };
1470
1497
 
1471
1498
  export type UpdateAgentRequest = {
@@ -1473,13 +1500,160 @@ export type UpdateAgentRequest = {
1473
1500
  * The unique key of the agent to update
1474
1501
  */
1475
1502
  agentKey: string;
1476
- requestBody: UpdateAgentUpdateAgentRequest;
1503
+ requestBody: UpdateAgentRequestBody;
1504
+ };
1505
+
1506
+ /**
1507
+ * 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.
1508
+ */
1509
+ export const UpdateAgentResponseBodyAgentsStatus = {
1510
+ Live: "live",
1511
+ Draft: "draft",
1512
+ Pending: "pending",
1513
+ Published: "published",
1514
+ } as const;
1515
+ /**
1516
+ * 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.
1517
+ */
1518
+ export type UpdateAgentResponseBodyAgentsStatus = ClosedEnum<
1519
+ typeof UpdateAgentResponseBodyAgentsStatus
1520
+ >;
1521
+
1522
+ export type UpdateAgentResponseBodyAgentsTeamOfAgents = {
1523
+ /**
1524
+ * The unique key of the agent within the workspace
1525
+ */
1526
+ key: string;
1527
+ /**
1528
+ * 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.
1529
+ */
1530
+ role?: string | undefined;
1531
+ };
1532
+
1533
+ export type UpdateAgentResponseBodyAgentsMetrics = {
1534
+ totalCost: number;
1535
+ };
1536
+
1537
+ export type UpdateAgentResponseBodyAgentsKnowledgeBases = {
1538
+ /**
1539
+ * Unique identifier of the knowledge base to search
1540
+ */
1541
+ knowledgeId: string;
1542
+ };
1543
+
1544
+ export const UpdateAgentResponseBodyAgentsSource = {
1545
+ Internal: "internal",
1546
+ External: "external",
1547
+ Experiment: "experiment",
1548
+ } as const;
1549
+ export type UpdateAgentResponseBodyAgentsSource = ClosedEnum<
1550
+ typeof UpdateAgentResponseBodyAgentsSource
1551
+ >;
1552
+
1553
+ export type UpdateAgentResponseBodyHeaders = {
1554
+ /**
1555
+ * 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.
1556
+ */
1557
+ value: string;
1558
+ encrypted: boolean;
1559
+ };
1560
+
1561
+ /**
1562
+ * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
1563
+ */
1564
+ export type UpdateAgentResponseBodyA2AAgentConfiguration = {
1565
+ /**
1566
+ * The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
1567
+ */
1568
+ agentUrl: string;
1569
+ /**
1570
+ * Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
1571
+ */
1572
+ cardUrl?: string | undefined;
1573
+ /**
1574
+ * 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.
1575
+ */
1576
+ headers?: { [k: string]: UpdateAgentResponseBodyHeaders } | undefined;
1577
+ /**
1578
+ * Cached agent card from discovery. Refreshed periodically.
1579
+ */
1580
+ cachedCard?: any | undefined;
1581
+ };
1582
+
1583
+ export type UpdateAgentResponseBody2 = {
1584
+ id: string;
1585
+ /**
1586
+ * Unique identifier for the agent within the workspace
1587
+ */
1588
+ key: string;
1589
+ displayName?: string | undefined;
1590
+ projectId: string;
1591
+ createdById?: string | null | undefined;
1592
+ updatedById?: string | null | undefined;
1593
+ created?: string | undefined;
1594
+ updated?: string | undefined;
1595
+ /**
1596
+ * 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.
1597
+ */
1598
+ status: UpdateAgentResponseBodyAgentsStatus;
1599
+ versionHash?: string | undefined;
1600
+ /**
1601
+ * Entity storage path in the format: `project/folder/subfolder/...`
1602
+ *
1603
+ * @remarks
1604
+ *
1605
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
1606
+ *
1607
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1608
+ */
1609
+ path: string;
1610
+ /**
1611
+ * Array of memory store identifiers. Accepts both memory store IDs and keys.
1612
+ */
1613
+ memoryStores?: Array<string> | undefined;
1614
+ /**
1615
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1616
+ */
1617
+ teamOfAgents?: Array<UpdateAgentResponseBodyAgentsTeamOfAgents> | undefined;
1618
+ metrics?: UpdateAgentResponseBodyAgentsMetrics | undefined;
1619
+ /**
1620
+ * Extracted variables from agent instructions
1621
+ */
1622
+ variables?: { [k: string]: any } | undefined;
1623
+ /**
1624
+ * Agent knowledge bases reference
1625
+ */
1626
+ knowledgeBases?:
1627
+ | Array<UpdateAgentResponseBodyAgentsKnowledgeBases>
1628
+ | undefined;
1629
+ source?: UpdateAgentResponseBodyAgentsSource | undefined;
1630
+ /**
1631
+ * External A2A-compliant agent
1632
+ */
1633
+ type: "a2a";
1634
+ /**
1635
+ * Role fetched from agent card name or user-provided
1636
+ */
1637
+ role: string;
1638
+ /**
1639
+ * Description fetched from agent card or user-provided
1640
+ */
1641
+ description: string;
1642
+ systemPrompt?: string | undefined;
1643
+ /**
1644
+ * Instructions from agent card description or user-provided
1645
+ */
1646
+ instructions: string;
1647
+ /**
1648
+ * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
1649
+ */
1650
+ a2a: UpdateAgentResponseBodyA2AAgentConfiguration;
1477
1651
  };
1478
1652
 
1479
1653
  /**
1480
1654
  * 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.
1481
1655
  */
1482
- export const UpdateAgentStatus = {
1656
+ export const UpdateAgentResponseBodyStatus = {
1483
1657
  Live: "live",
1484
1658
  Draft: "draft",
1485
1659
  Pending: "pending",
@@ -1488,12 +1662,45 @@ export const UpdateAgentStatus = {
1488
1662
  /**
1489
1663
  * 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.
1490
1664
  */
1491
- export type UpdateAgentStatus = ClosedEnum<typeof UpdateAgentStatus>;
1665
+ export type UpdateAgentResponseBodyStatus = ClosedEnum<
1666
+ typeof UpdateAgentResponseBodyStatus
1667
+ >;
1668
+
1669
+ export type UpdateAgentResponseBodyTeamOfAgents = {
1670
+ /**
1671
+ * The unique key of the agent within the workspace
1672
+ */
1673
+ key: string;
1674
+ /**
1675
+ * 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.
1676
+ */
1677
+ role?: string | undefined;
1678
+ };
1679
+
1680
+ export type UpdateAgentResponseBodyMetrics = {
1681
+ totalCost: number;
1682
+ };
1683
+
1684
+ export type UpdateAgentResponseBodyKnowledgeBases = {
1685
+ /**
1686
+ * Unique identifier of the knowledge base to search
1687
+ */
1688
+ knowledgeId: string;
1689
+ };
1690
+
1691
+ export const UpdateAgentResponseBodySource = {
1692
+ Internal: "internal",
1693
+ External: "external",
1694
+ Experiment: "experiment",
1695
+ } as const;
1696
+ export type UpdateAgentResponseBodySource = ClosedEnum<
1697
+ typeof UpdateAgentResponseBodySource
1698
+ >;
1492
1699
 
1493
1700
  /**
1494
1701
  * 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.
1495
1702
  */
1496
- export const UpdateAgentAgentsToolApprovalRequired = {
1703
+ export const UpdateAgentResponseBodyToolApprovalRequired = {
1497
1704
  All: "all",
1498
1705
  RespectTool: "respect_tool",
1499
1706
  None: "none",
@@ -1501,11 +1708,11 @@ export const UpdateAgentAgentsToolApprovalRequired = {
1501
1708
  /**
1502
1709
  * 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.
1503
1710
  */
1504
- export type UpdateAgentAgentsToolApprovalRequired = ClosedEnum<
1505
- typeof UpdateAgentAgentsToolApprovalRequired
1711
+ export type UpdateAgentResponseBodyToolApprovalRequired = ClosedEnum<
1712
+ typeof UpdateAgentResponseBodyToolApprovalRequired
1506
1713
  >;
1507
1714
 
1508
- export type UpdateAgentConditions = {
1715
+ export type UpdateAgentResponseBodyConditions = {
1509
1716
  /**
1510
1717
  * The argument of the tool call to evaluate
1511
1718
  */
@@ -1520,7 +1727,7 @@ export type UpdateAgentConditions = {
1520
1727
  value: string;
1521
1728
  };
1522
1729
 
1523
- export type UpdateAgentTools = {
1730
+ export type UpdateAgentResponseBodyTools = {
1524
1731
  /**
1525
1732
  * The id of the resource
1526
1733
  */
@@ -1540,7 +1747,7 @@ export type UpdateAgentTools = {
1540
1747
  * Nested tool ID for MCP tools (identifies specific tool within MCP server)
1541
1748
  */
1542
1749
  toolId?: string | undefined;
1543
- conditions?: Array<UpdateAgentConditions> | undefined;
1750
+ conditions?: Array<UpdateAgentResponseBodyConditions> | undefined;
1544
1751
  /**
1545
1752
  * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
1546
1753
  */
@@ -1550,18 +1757,18 @@ export type UpdateAgentTools = {
1550
1757
  /**
1551
1758
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1552
1759
  */
1553
- export const UpdateAgentAgentsResponseExecuteOn = {
1760
+ export const UpdateAgentResponseBodyExecuteOn = {
1554
1761
  Input: "input",
1555
1762
  Output: "output",
1556
1763
  } as const;
1557
1764
  /**
1558
1765
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1559
1766
  */
1560
- export type UpdateAgentAgentsResponseExecuteOn = ClosedEnum<
1561
- typeof UpdateAgentAgentsResponseExecuteOn
1767
+ export type UpdateAgentResponseBodyExecuteOn = ClosedEnum<
1768
+ typeof UpdateAgentResponseBodyExecuteOn
1562
1769
  >;
1563
1770
 
1564
- export type UpdateAgentAgentsEvaluators = {
1771
+ export type UpdateAgentResponseBodyEvaluators = {
1565
1772
  /**
1566
1773
  * Unique key or identifier of the evaluator
1567
1774
  */
@@ -1573,24 +1780,24 @@ export type UpdateAgentAgentsEvaluators = {
1573
1780
  /**
1574
1781
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1575
1782
  */
1576
- executeOn: UpdateAgentAgentsResponseExecuteOn;
1783
+ executeOn: UpdateAgentResponseBodyExecuteOn;
1577
1784
  };
1578
1785
 
1579
1786
  /**
1580
1787
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1581
1788
  */
1582
- export const UpdateAgentAgentsResponse200ExecuteOn = {
1789
+ export const UpdateAgentResponseBodyAgentsExecuteOn = {
1583
1790
  Input: "input",
1584
1791
  Output: "output",
1585
1792
  } as const;
1586
1793
  /**
1587
1794
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1588
1795
  */
1589
- export type UpdateAgentAgentsResponse200ExecuteOn = ClosedEnum<
1590
- typeof UpdateAgentAgentsResponse200ExecuteOn
1796
+ export type UpdateAgentResponseBodyAgentsExecuteOn = ClosedEnum<
1797
+ typeof UpdateAgentResponseBodyAgentsExecuteOn
1591
1798
  >;
1592
1799
 
1593
- export type UpdateAgentAgentsGuardrails = {
1800
+ export type UpdateAgentResponseBodyGuardrails = {
1594
1801
  /**
1595
1802
  * Unique key or identifier of the evaluator
1596
1803
  */
@@ -1602,10 +1809,10 @@ export type UpdateAgentAgentsGuardrails = {
1602
1809
  /**
1603
1810
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1604
1811
  */
1605
- executeOn: UpdateAgentAgentsResponse200ExecuteOn;
1812
+ executeOn: UpdateAgentResponseBodyAgentsExecuteOn;
1606
1813
  };
1607
1814
 
1608
- export type UpdateAgentAgentsSettings = {
1815
+ export type UpdateAgentResponseBodySettings = {
1609
1816
  /**
1610
1817
  * Maximum iterations(llm calls) before the agent will stop executing.
1611
1818
  */
@@ -1621,16 +1828,16 @@ export type UpdateAgentAgentsSettings = {
1621
1828
  /**
1622
1829
  * 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.
1623
1830
  */
1624
- toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired;
1625
- tools?: Array<UpdateAgentTools> | undefined;
1831
+ toolApprovalRequired: UpdateAgentResponseBodyToolApprovalRequired;
1832
+ tools?: Array<UpdateAgentResponseBodyTools> | undefined;
1626
1833
  /**
1627
1834
  * Configuration for an evaluator applied to the agent
1628
1835
  */
1629
- evaluators?: Array<UpdateAgentAgentsEvaluators> | undefined;
1836
+ evaluators?: Array<UpdateAgentResponseBodyEvaluators> | undefined;
1630
1837
  /**
1631
1838
  * Configuration for a guardrail applied to the agent
1632
1839
  */
1633
- guardrails?: Array<UpdateAgentAgentsGuardrails> | undefined;
1840
+ guardrails?: Array<UpdateAgentResponseBodyGuardrails> | undefined;
1634
1841
  };
1635
1842
 
1636
1843
  export type UpdateAgentResponseFormatAgentsResponseJsonSchema = {
@@ -1683,7 +1890,7 @@ export type UpdateAgentResponseFormatAgentsResponseText = {
1683
1890
  /**
1684
1891
  * An object specifying the format that the model must output
1685
1892
  */
1686
- export type UpdateAgentResponseFormat =
1893
+ export type UpdateAgentResponseBodyResponseFormat =
1687
1894
  | UpdateAgentResponseFormatAgentsResponseText
1688
1895
  | UpdateAgentResponseFormatAgentsResponseJSONObject
1689
1896
  | UpdateAgentResponseFormatAgentsResponse200JSONSchema;
@@ -1700,7 +1907,7 @@ export type UpdateAgentResponseFormat =
1700
1907
  *
1701
1908
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1702
1909
  */
1703
- export const UpdateAgentReasoningEffort = {
1910
+ export const UpdateAgentResponseBodyReasoningEffort = {
1704
1911
  None: "none",
1705
1912
  Minimal: "minimal",
1706
1913
  Low: "low",
@@ -1720,16 +1927,16 @@ export const UpdateAgentReasoningEffort = {
1720
1927
  *
1721
1928
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1722
1929
  */
1723
- export type UpdateAgentReasoningEffort = ClosedEnum<
1724
- typeof UpdateAgentReasoningEffort
1930
+ export type UpdateAgentResponseBodyReasoningEffort = ClosedEnum<
1931
+ typeof UpdateAgentResponseBodyReasoningEffort
1725
1932
  >;
1726
1933
 
1727
1934
  /**
1728
1935
  * Up to 4 sequences where the API will stop generating further tokens.
1729
1936
  */
1730
- export type UpdateAgentStop = string | Array<string>;
1937
+ export type UpdateAgentResponseBodyStop = string | Array<string>;
1731
1938
 
1732
- export type UpdateAgentThinking =
1939
+ export type UpdateAgentResponseBodyThinking =
1733
1940
  | components.ThinkingConfigDisabledSchema
1734
1941
  | components.ThinkingConfigEnabledSchema;
1735
1942
 
@@ -1773,15 +1980,17 @@ export type UpdateAgentToolChoiceAgentsResponse1 = ClosedEnum<
1773
1980
  /**
1774
1981
  * Controls which (if any) tool is called by the model.
1775
1982
  */
1776
- export type UpdateAgentToolChoice =
1983
+ export type UpdateAgentResponseBodyToolChoice =
1777
1984
  | UpdateAgentToolChoiceAgentsResponse2
1778
1985
  | UpdateAgentToolChoiceAgentsResponse1;
1779
1986
 
1780
- export const UpdateAgentModalities = {
1987
+ export const UpdateAgentResponseBodyModalities = {
1781
1988
  Text: "text",
1782
1989
  Audio: "audio",
1783
1990
  } as const;
1784
- export type UpdateAgentModalities = ClosedEnum<typeof UpdateAgentModalities>;
1991
+ export type UpdateAgentResponseBodyModalities = ClosedEnum<
1992
+ typeof UpdateAgentResponseBodyModalities
1993
+ >;
1785
1994
 
1786
1995
  /**
1787
1996
  * The key of the guardrail.
@@ -1798,51 +2007,53 @@ export type UpdateAgentIdAgentsResponse1 = ClosedEnum<
1798
2007
  typeof UpdateAgentIdAgentsResponse1
1799
2008
  >;
1800
2009
 
1801
- export type UpdateAgentId = UpdateAgentIdAgentsResponse1 | string;
2010
+ export type UpdateAgentResponseBodyId = UpdateAgentIdAgentsResponse1 | string;
1802
2011
 
1803
2012
  /**
1804
2013
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1805
2014
  */
1806
- export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = {
2015
+ export const UpdateAgentResponseBodyAgentsResponseExecuteOn = {
1807
2016
  Input: "input",
1808
2017
  Output: "output",
1809
2018
  } as const;
1810
2019
  /**
1811
2020
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1812
2021
  */
1813
- export type UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = ClosedEnum<
1814
- typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn
2022
+ export type UpdateAgentResponseBodyAgentsResponseExecuteOn = ClosedEnum<
2023
+ typeof UpdateAgentResponseBodyAgentsResponseExecuteOn
1815
2024
  >;
1816
2025
 
1817
- export type UpdateAgentAgentsResponseGuardrails = {
2026
+ export type UpdateAgentResponseBodyAgentsGuardrails = {
1818
2027
  id: UpdateAgentIdAgentsResponse1 | string;
1819
2028
  /**
1820
2029
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1821
2030
  */
1822
- executeOn: UpdateAgentAgentsResponse200ApplicationJSONExecuteOn;
2031
+ executeOn: UpdateAgentResponseBodyAgentsResponseExecuteOn;
1823
2032
  };
1824
2033
 
1825
- export type UpdateAgentFallbacks = {
2034
+ export type UpdateAgentResponseBodyFallbacks = {
1826
2035
  /**
1827
2036
  * Fallback model identifier
1828
2037
  */
1829
2038
  model: string;
1830
2039
  };
1831
2040
 
1832
- export const UpdateAgentType = {
2041
+ export const UpdateAgentResponseBodyAgentsResponseType = {
1833
2042
  ExactMatch: "exact_match",
1834
2043
  } as const;
1835
- export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
2044
+ export type UpdateAgentResponseBodyAgentsResponseType = ClosedEnum<
2045
+ typeof UpdateAgentResponseBodyAgentsResponseType
2046
+ >;
1836
2047
 
1837
2048
  /**
1838
2049
  * Cache configuration for the request.
1839
2050
  */
1840
- export type UpdateAgentCache = {
2051
+ export type UpdateAgentResponseBodyCache = {
1841
2052
  /**
1842
2053
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
1843
2054
  */
1844
2055
  ttl: number;
1845
- type: UpdateAgentType;
2056
+ type: UpdateAgentResponseBodyAgentsResponseType;
1846
2057
  };
1847
2058
 
1848
2059
  export const UpdateAgentLoadBalancerAgentsResponseType = {
@@ -1871,12 +2082,13 @@ export type UpdateAgentLoadBalancerAgentsResponse1 = {
1871
2082
  /**
1872
2083
  * Load balancer configuration for the request.
1873
2084
  */
1874
- export type UpdateAgentLoadBalancer = UpdateAgentLoadBalancerAgentsResponse1;
2085
+ export type UpdateAgentResponseBodyLoadBalancer =
2086
+ UpdateAgentLoadBalancerAgentsResponse1;
1875
2087
 
1876
2088
  /**
1877
2089
  * 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.
1878
2090
  */
1879
- export type UpdateAgentTimeout = {
2091
+ export type UpdateAgentResponseBodyTimeout = {
1880
2092
  /**
1881
2093
  * Timeout value in milliseconds
1882
2094
  */
@@ -1886,7 +2098,7 @@ export type UpdateAgentTimeout = {
1886
2098
  /**
1887
2099
  * 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.
1888
2100
  */
1889
- export type UpdateAgentParameters = {
2101
+ export type UpdateAgentResponseBodyParameters = {
1890
2102
  /**
1891
2103
  * The name to display on the trace. If not specified, the default system name will be used.
1892
2104
  */
@@ -1931,7 +2143,7 @@ export type UpdateAgentParameters = {
1931
2143
  *
1932
2144
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1933
2145
  */
1934
- reasoningEffort?: UpdateAgentReasoningEffort | undefined;
2146
+ reasoningEffort?: UpdateAgentResponseBodyReasoningEffort | undefined;
1935
2147
  /**
1936
2148
  * Adjusts response verbosity. Lower levels yield shorter answers.
1937
2149
  */
@@ -1974,19 +2186,19 @@ export type UpdateAgentParameters = {
1974
2186
  /**
1975
2187
  * 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"].
1976
2188
  */
1977
- modalities?: Array<UpdateAgentModalities> | null | undefined;
2189
+ modalities?: Array<UpdateAgentResponseBodyModalities> | null | undefined;
1978
2190
  /**
1979
2191
  * A list of guardrails to apply to the request.
1980
2192
  */
1981
- guardrails?: Array<UpdateAgentAgentsResponseGuardrails> | undefined;
2193
+ guardrails?: Array<UpdateAgentResponseBodyAgentsGuardrails> | undefined;
1982
2194
  /**
1983
2195
  * Array of fallback models to use if primary model fails
1984
2196
  */
1985
- fallbacks?: Array<UpdateAgentFallbacks> | undefined;
2197
+ fallbacks?: Array<UpdateAgentResponseBodyFallbacks> | undefined;
1986
2198
  /**
1987
2199
  * Cache configuration for the request.
1988
2200
  */
1989
- cache?: UpdateAgentCache | undefined;
2201
+ cache?: UpdateAgentResponseBodyCache | undefined;
1990
2202
  /**
1991
2203
  * Load balancer configuration for the request.
1992
2204
  */
@@ -1994,13 +2206,13 @@ export type UpdateAgentParameters = {
1994
2206
  /**
1995
2207
  * 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.
1996
2208
  */
1997
- timeout?: UpdateAgentTimeout | undefined;
2209
+ timeout?: UpdateAgentResponseBodyTimeout | undefined;
1998
2210
  };
1999
2211
 
2000
2212
  /**
2001
2213
  * 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).
2002
2214
  */
2003
- export type UpdateAgentRetry = {
2215
+ export type UpdateAgentResponseBodyRetry = {
2004
2216
  /**
2005
2217
  * Number of retry attempts (1-5)
2006
2218
  */
@@ -2432,11 +2644,11 @@ export type UpdateAgentFallbackModelConfigurationAgents2 = {
2432
2644
  /**
2433
2645
  * 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.
2434
2646
  */
2435
- export type UpdateAgentAgentsFallbackModelConfiguration =
2647
+ export type UpdateAgentResponseBodyFallbackModelConfiguration =
2436
2648
  | UpdateAgentFallbackModelConfigurationAgents2
2437
2649
  | string;
2438
2650
 
2439
- export type UpdateAgentModel = {
2651
+ export type UpdateAgentResponseBodyModel = {
2440
2652
  /**
2441
2653
  * The database ID of the primary model
2442
2654
  */
@@ -2448,11 +2660,11 @@ export type UpdateAgentModel = {
2448
2660
  /**
2449
2661
  * 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.
2450
2662
  */
2451
- parameters?: UpdateAgentParameters | undefined;
2663
+ parameters?: UpdateAgentResponseBodyParameters | undefined;
2452
2664
  /**
2453
2665
  * 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).
2454
2666
  */
2455
- retry?: UpdateAgentRetry | undefined;
2667
+ retry?: UpdateAgentResponseBodyRetry | undefined;
2456
2668
  /**
2457
2669
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
2458
2670
  */
@@ -2462,61 +2674,22 @@ export type UpdateAgentModel = {
2462
2674
  | undefined;
2463
2675
  };
2464
2676
 
2465
- export type UpdateAgentAgentsTeamOfAgents = {
2466
- /**
2467
- * The unique key of the agent within the workspace
2468
- */
2469
- key: string;
2470
- /**
2471
- * 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.
2472
- */
2473
- role?: string | undefined;
2474
- };
2475
-
2476
- export type UpdateAgentMetrics = {
2477
- totalCost: number;
2478
- };
2479
-
2480
- export type UpdateAgentAgentsKnowledgeBases = {
2481
- /**
2482
- * Unique identifier of the knowledge base to search
2483
- */
2484
- knowledgeId: string;
2485
- };
2486
-
2487
- export const UpdateAgentSource = {
2488
- Internal: "internal",
2489
- External: "external",
2490
- Experiment: "experiment",
2491
- } as const;
2492
- export type UpdateAgentSource = ClosedEnum<typeof UpdateAgentSource>;
2493
-
2494
- /**
2495
- * Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
2496
- */
2497
- export type UpdateAgentResponseBody = {
2677
+ export type UpdateAgentResponseBody1 = {
2498
2678
  id: string;
2499
2679
  /**
2500
2680
  * Unique identifier for the agent within the workspace
2501
2681
  */
2502
2682
  key: string;
2503
2683
  displayName?: string | undefined;
2504
- workspaceId: string;
2505
2684
  projectId: string;
2506
2685
  createdById?: string | null | undefined;
2507
2686
  updatedById?: string | null | undefined;
2508
2687
  created?: string | undefined;
2509
2688
  updated?: string | undefined;
2510
- role: string;
2511
- description: string;
2512
- systemPrompt?: string | undefined;
2513
- instructions: string;
2514
2689
  /**
2515
2690
  * 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.
2516
2691
  */
2517
- status: UpdateAgentStatus;
2518
- settings?: UpdateAgentAgentsSettings | undefined;
2519
- model: UpdateAgentModel;
2692
+ status: UpdateAgentResponseBodyStatus;
2520
2693
  versionHash?: string | undefined;
2521
2694
  /**
2522
2695
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -2531,12 +2704,12 @@ export type UpdateAgentResponseBody = {
2531
2704
  /**
2532
2705
  * Array of memory store identifiers. Accepts both memory store IDs and keys.
2533
2706
  */
2534
- memoryStores: Array<string>;
2707
+ memoryStores?: Array<string> | undefined;
2535
2708
  /**
2536
2709
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
2537
2710
  */
2538
- teamOfAgents: Array<UpdateAgentAgentsTeamOfAgents>;
2539
- metrics?: UpdateAgentMetrics | undefined;
2711
+ teamOfAgents?: Array<UpdateAgentResponseBodyTeamOfAgents> | undefined;
2712
+ metrics?: UpdateAgentResponseBodyMetrics | undefined;
2540
2713
  /**
2541
2714
  * Extracted variables from agent instructions
2542
2715
  */
@@ -2544,10 +2717,27 @@ export type UpdateAgentResponseBody = {
2544
2717
  /**
2545
2718
  * Agent knowledge bases reference
2546
2719
  */
2547
- knowledgeBases?: Array<UpdateAgentAgentsKnowledgeBases> | undefined;
2548
- source?: UpdateAgentSource | undefined;
2720
+ knowledgeBases?: Array<UpdateAgentResponseBodyKnowledgeBases> | undefined;
2721
+ source?: UpdateAgentResponseBodySource | undefined;
2722
+ /**
2723
+ * Orquesta-managed agent
2724
+ */
2725
+ type: "internal";
2726
+ role: string;
2727
+ description: string;
2728
+ systemPrompt?: string | undefined;
2729
+ instructions: string;
2730
+ settings?: UpdateAgentResponseBodySettings | undefined;
2731
+ model: UpdateAgentResponseBodyModel;
2549
2732
  };
2550
2733
 
2734
+ /**
2735
+ * Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
2736
+ */
2737
+ export type UpdateAgentResponseBody =
2738
+ | UpdateAgentResponseBody1
2739
+ | UpdateAgentResponseBody2;
2740
+
2551
2741
  /** @internal */
2552
2742
  export type UpdateAgentResponseFormatAgentsJsonSchema$Outbound = {
2553
2743
  description?: string | undefined;
@@ -4901,7 +5091,62 @@ export function updateAgentTeamOfAgentsToJSON(
4901
5091
  }
4902
5092
 
4903
5093
  /** @internal */
4904
- export type UpdateAgentUpdateAgentRequest$Outbound = {
5094
+ export type UpdateAgentHeaders$Outbound = {
5095
+ value: string;
5096
+ encrypted: boolean;
5097
+ };
5098
+
5099
+ /** @internal */
5100
+ export const UpdateAgentHeaders$outboundSchema: z.ZodType<
5101
+ UpdateAgentHeaders$Outbound,
5102
+ z.ZodTypeDef,
5103
+ UpdateAgentHeaders
5104
+ > = z.object({
5105
+ value: z.string(),
5106
+ encrypted: z.boolean().default(false),
5107
+ });
5108
+
5109
+ export function updateAgentHeadersToJSON(
5110
+ updateAgentHeaders: UpdateAgentHeaders,
5111
+ ): string {
5112
+ return JSON.stringify(
5113
+ UpdateAgentHeaders$outboundSchema.parse(updateAgentHeaders),
5114
+ );
5115
+ }
5116
+
5117
+ /** @internal */
5118
+ export type UpdateA2AConfiguration$Outbound = {
5119
+ agent_url?: string | undefined;
5120
+ card_url?: string | undefined;
5121
+ headers?: { [k: string]: UpdateAgentHeaders$Outbound } | undefined;
5122
+ };
5123
+
5124
+ /** @internal */
5125
+ export const UpdateA2AConfiguration$outboundSchema: z.ZodType<
5126
+ UpdateA2AConfiguration$Outbound,
5127
+ z.ZodTypeDef,
5128
+ UpdateA2AConfiguration
5129
+ > = z.object({
5130
+ agentUrl: z.string().optional(),
5131
+ cardUrl: z.string().optional(),
5132
+ headers: z.record(z.lazy(() => UpdateAgentHeaders$outboundSchema)).optional(),
5133
+ }).transform((v) => {
5134
+ return remap$(v, {
5135
+ agentUrl: "agent_url",
5136
+ cardUrl: "card_url",
5137
+ });
5138
+ });
5139
+
5140
+ export function updateA2AConfigurationToJSON(
5141
+ updateA2AConfiguration: UpdateA2AConfiguration,
5142
+ ): string {
5143
+ return JSON.stringify(
5144
+ UpdateA2AConfiguration$outboundSchema.parse(updateA2AConfiguration),
5145
+ );
5146
+ }
5147
+
5148
+ /** @internal */
5149
+ export type UpdateAgentRequestBody$Outbound = {
4905
5150
  key?: string | undefined;
4906
5151
  display_name?: string | undefined;
4907
5152
  project_id?: string | undefined;
@@ -4919,13 +5164,14 @@ export type UpdateAgentUpdateAgentRequest$Outbound = {
4919
5164
  knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
4920
5165
  team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
4921
5166
  variables?: { [k: string]: any } | undefined;
5167
+ a2a?: UpdateA2AConfiguration$Outbound | undefined;
4922
5168
  };
4923
5169
 
4924
5170
  /** @internal */
4925
- export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
4926
- UpdateAgentUpdateAgentRequest$Outbound,
5171
+ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
5172
+ UpdateAgentRequestBody$Outbound,
4927
5173
  z.ZodTypeDef,
4928
- UpdateAgentUpdateAgentRequest
5174
+ UpdateAgentRequestBody
4929
5175
  > = z.object({
4930
5176
  key: z.string().optional(),
4931
5177
  displayName: z.string().optional(),
@@ -4953,6 +5199,7 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
4953
5199
  teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
4954
5200
  .optional(),
4955
5201
  variables: z.record(z.any()).optional(),
5202
+ a2a: z.lazy(() => UpdateA2AConfiguration$outboundSchema).optional(),
4956
5203
  }).transform((v) => {
4957
5204
  return remap$(v, {
4958
5205
  displayName: "display_name",
@@ -4965,20 +5212,18 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
4965
5212
  });
4966
5213
  });
4967
5214
 
4968
- export function updateAgentUpdateAgentRequestToJSON(
4969
- updateAgentUpdateAgentRequest: UpdateAgentUpdateAgentRequest,
5215
+ export function updateAgentRequestBodyToJSON(
5216
+ updateAgentRequestBody: UpdateAgentRequestBody,
4970
5217
  ): string {
4971
5218
  return JSON.stringify(
4972
- UpdateAgentUpdateAgentRequest$outboundSchema.parse(
4973
- updateAgentUpdateAgentRequest,
4974
- ),
5219
+ UpdateAgentRequestBody$outboundSchema.parse(updateAgentRequestBody),
4975
5220
  );
4976
5221
  }
4977
5222
 
4978
5223
  /** @internal */
4979
5224
  export type UpdateAgentRequest$Outbound = {
4980
5225
  agent_key: string;
4981
- RequestBody: UpdateAgentUpdateAgentRequest$Outbound;
5226
+ RequestBody: UpdateAgentRequestBody$Outbound;
4982
5227
  };
4983
5228
 
4984
5229
  /** @internal */
@@ -4988,7 +5233,7 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
4988
5233
  UpdateAgentRequest
4989
5234
  > = z.object({
4990
5235
  agentKey: z.string(),
4991
- requestBody: z.lazy(() => UpdateAgentUpdateAgentRequest$outboundSchema),
5236
+ requestBody: z.lazy(() => UpdateAgentRequestBody$outboundSchema),
4992
5237
  }).transform((v) => {
4993
5238
  return remap$(v, {
4994
5239
  agentKey: "agent_key",
@@ -5005,86 +5250,365 @@ export function updateAgentRequestToJSON(
5005
5250
  }
5006
5251
 
5007
5252
  /** @internal */
5008
- export const UpdateAgentStatus$inboundSchema: z.ZodNativeEnum<
5009
- typeof UpdateAgentStatus
5010
- > = z.nativeEnum(UpdateAgentStatus);
5253
+ export const UpdateAgentResponseBodyAgentsStatus$inboundSchema: z.ZodNativeEnum<
5254
+ typeof UpdateAgentResponseBodyAgentsStatus
5255
+ > = z.nativeEnum(UpdateAgentResponseBodyAgentsStatus);
5011
5256
 
5012
5257
  /** @internal */
5013
- export const UpdateAgentAgentsToolApprovalRequired$inboundSchema:
5014
- z.ZodNativeEnum<typeof UpdateAgentAgentsToolApprovalRequired> = z.nativeEnum(
5015
- UpdateAgentAgentsToolApprovalRequired,
5016
- );
5017
-
5018
- /** @internal */
5019
- export const UpdateAgentConditions$inboundSchema: z.ZodType<
5020
- UpdateAgentConditions,
5258
+ export const UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema: z.ZodType<
5259
+ UpdateAgentResponseBodyAgentsTeamOfAgents,
5021
5260
  z.ZodTypeDef,
5022
5261
  unknown
5023
5262
  > = z.object({
5024
- condition: z.string(),
5025
- operator: z.string(),
5026
- value: z.string(),
5263
+ key: z.string(),
5264
+ role: z.string().optional(),
5027
5265
  });
5028
5266
 
5029
- export function updateAgentConditionsFromJSON(
5267
+ export function updateAgentResponseBodyAgentsTeamOfAgentsFromJSON(
5030
5268
  jsonString: string,
5031
- ): SafeParseResult<UpdateAgentConditions, SDKValidationError> {
5269
+ ): SafeParseResult<
5270
+ UpdateAgentResponseBodyAgentsTeamOfAgents,
5271
+ SDKValidationError
5272
+ > {
5032
5273
  return safeParse(
5033
5274
  jsonString,
5034
- (x) => UpdateAgentConditions$inboundSchema.parse(JSON.parse(x)),
5035
- `Failed to parse 'UpdateAgentConditions' from JSON`,
5275
+ (x) =>
5276
+ UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema.parse(
5277
+ JSON.parse(x),
5278
+ ),
5279
+ `Failed to parse 'UpdateAgentResponseBodyAgentsTeamOfAgents' from JSON`,
5036
5280
  );
5037
5281
  }
5038
5282
 
5039
5283
  /** @internal */
5040
- export const UpdateAgentTools$inboundSchema: z.ZodType<
5041
- UpdateAgentTools,
5284
+ export const UpdateAgentResponseBodyAgentsMetrics$inboundSchema: z.ZodType<
5285
+ UpdateAgentResponseBodyAgentsMetrics,
5042
5286
  z.ZodTypeDef,
5043
5287
  unknown
5044
5288
  > = z.object({
5045
- id: z.string(),
5046
- key: z.string().optional(),
5047
- action_type: z.string(),
5048
- display_name: z.string().optional(),
5049
- description: z.string().optional(),
5050
- requires_approval: z.boolean().default(false),
5051
- tool_id: z.string().optional(),
5052
- conditions: z.array(z.lazy(() => UpdateAgentConditions$inboundSchema))
5053
- .optional(),
5054
- timeout: z.number().default(120),
5289
+ total_cost: z.number().default(0),
5055
5290
  }).transform((v) => {
5056
5291
  return remap$(v, {
5057
- "action_type": "actionType",
5058
- "display_name": "displayName",
5059
- "requires_approval": "requiresApproval",
5060
- "tool_id": "toolId",
5292
+ "total_cost": "totalCost",
5293
+ });
5294
+ });
5295
+
5296
+ export function updateAgentResponseBodyAgentsMetricsFromJSON(
5297
+ jsonString: string,
5298
+ ): SafeParseResult<UpdateAgentResponseBodyAgentsMetrics, SDKValidationError> {
5299
+ return safeParse(
5300
+ jsonString,
5301
+ (x) =>
5302
+ UpdateAgentResponseBodyAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
5303
+ `Failed to parse 'UpdateAgentResponseBodyAgentsMetrics' from JSON`,
5304
+ );
5305
+ }
5306
+
5307
+ /** @internal */
5308
+ export const UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema:
5309
+ z.ZodType<
5310
+ UpdateAgentResponseBodyAgentsKnowledgeBases,
5311
+ z.ZodTypeDef,
5312
+ unknown
5313
+ > = z.object({
5314
+ knowledge_id: z.string(),
5315
+ }).transform((v) => {
5316
+ return remap$(v, {
5317
+ "knowledge_id": "knowledgeId",
5318
+ });
5319
+ });
5320
+
5321
+ export function updateAgentResponseBodyAgentsKnowledgeBasesFromJSON(
5322
+ jsonString: string,
5323
+ ): SafeParseResult<
5324
+ UpdateAgentResponseBodyAgentsKnowledgeBases,
5325
+ SDKValidationError
5326
+ > {
5327
+ return safeParse(
5328
+ jsonString,
5329
+ (x) =>
5330
+ UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema.parse(
5331
+ JSON.parse(x),
5332
+ ),
5333
+ `Failed to parse 'UpdateAgentResponseBodyAgentsKnowledgeBases' from JSON`,
5334
+ );
5335
+ }
5336
+
5337
+ /** @internal */
5338
+ export const UpdateAgentResponseBodyAgentsSource$inboundSchema: z.ZodNativeEnum<
5339
+ typeof UpdateAgentResponseBodyAgentsSource
5340
+ > = z.nativeEnum(UpdateAgentResponseBodyAgentsSource);
5341
+
5342
+ /** @internal */
5343
+ export const UpdateAgentResponseBodyHeaders$inboundSchema: z.ZodType<
5344
+ UpdateAgentResponseBodyHeaders,
5345
+ z.ZodTypeDef,
5346
+ unknown
5347
+ > = z.object({
5348
+ value: z.string(),
5349
+ encrypted: z.boolean().default(false),
5350
+ });
5351
+
5352
+ export function updateAgentResponseBodyHeadersFromJSON(
5353
+ jsonString: string,
5354
+ ): SafeParseResult<UpdateAgentResponseBodyHeaders, SDKValidationError> {
5355
+ return safeParse(
5356
+ jsonString,
5357
+ (x) => UpdateAgentResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
5358
+ `Failed to parse 'UpdateAgentResponseBodyHeaders' from JSON`,
5359
+ );
5360
+ }
5361
+
5362
+ /** @internal */
5363
+ export const UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema:
5364
+ z.ZodType<
5365
+ UpdateAgentResponseBodyA2AAgentConfiguration,
5366
+ z.ZodTypeDef,
5367
+ unknown
5368
+ > = z.object({
5369
+ agent_url: z.string(),
5370
+ card_url: z.string().optional(),
5371
+ headers: z.record(
5372
+ z.lazy(() => UpdateAgentResponseBodyHeaders$inboundSchema),
5373
+ ).optional(),
5374
+ cached_card: z.any().optional(),
5375
+ }).transform((v) => {
5376
+ return remap$(v, {
5377
+ "agent_url": "agentUrl",
5378
+ "card_url": "cardUrl",
5379
+ "cached_card": "cachedCard",
5380
+ });
5381
+ });
5382
+
5383
+ export function updateAgentResponseBodyA2AAgentConfigurationFromJSON(
5384
+ jsonString: string,
5385
+ ): SafeParseResult<
5386
+ UpdateAgentResponseBodyA2AAgentConfiguration,
5387
+ SDKValidationError
5388
+ > {
5389
+ return safeParse(
5390
+ jsonString,
5391
+ (x) =>
5392
+ UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema.parse(
5393
+ JSON.parse(x),
5394
+ ),
5395
+ `Failed to parse 'UpdateAgentResponseBodyA2AAgentConfiguration' from JSON`,
5396
+ );
5397
+ }
5398
+
5399
+ /** @internal */
5400
+ export const UpdateAgentResponseBody2$inboundSchema: z.ZodType<
5401
+ UpdateAgentResponseBody2,
5402
+ z.ZodTypeDef,
5403
+ unknown
5404
+ > = z.object({
5405
+ _id: z.string(),
5406
+ key: z.string(),
5407
+ display_name: z.string().optional(),
5408
+ project_id: z.string(),
5409
+ created_by_id: z.nullable(z.string()).optional(),
5410
+ updated_by_id: z.nullable(z.string()).optional(),
5411
+ created: z.string().optional(),
5412
+ updated: z.string().optional(),
5413
+ status: UpdateAgentResponseBodyAgentsStatus$inboundSchema,
5414
+ version_hash: z.string().optional(),
5415
+ path: z.string(),
5416
+ memory_stores: z.array(z.string()).optional(),
5417
+ team_of_agents: z.array(
5418
+ z.lazy(() => UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema),
5419
+ ).optional(),
5420
+ metrics: z.lazy(() => UpdateAgentResponseBodyAgentsMetrics$inboundSchema)
5421
+ .optional(),
5422
+ variables: z.record(z.any()).optional(),
5423
+ knowledge_bases: z.array(
5424
+ z.lazy(() => UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema),
5425
+ ).optional(),
5426
+ source: UpdateAgentResponseBodyAgentsSource$inboundSchema.optional(),
5427
+ type: z.literal("a2a"),
5428
+ role: z.string(),
5429
+ description: z.string(),
5430
+ system_prompt: z.string().optional(),
5431
+ instructions: z.string(),
5432
+ a2a: z.lazy(() => UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema),
5433
+ }).transform((v) => {
5434
+ return remap$(v, {
5435
+ "_id": "id",
5436
+ "display_name": "displayName",
5437
+ "project_id": "projectId",
5438
+ "created_by_id": "createdById",
5439
+ "updated_by_id": "updatedById",
5440
+ "version_hash": "versionHash",
5441
+ "memory_stores": "memoryStores",
5442
+ "team_of_agents": "teamOfAgents",
5443
+ "knowledge_bases": "knowledgeBases",
5444
+ "system_prompt": "systemPrompt",
5445
+ });
5446
+ });
5447
+
5448
+ export function updateAgentResponseBody2FromJSON(
5449
+ jsonString: string,
5450
+ ): SafeParseResult<UpdateAgentResponseBody2, SDKValidationError> {
5451
+ return safeParse(
5452
+ jsonString,
5453
+ (x) => UpdateAgentResponseBody2$inboundSchema.parse(JSON.parse(x)),
5454
+ `Failed to parse 'UpdateAgentResponseBody2' from JSON`,
5455
+ );
5456
+ }
5457
+
5458
+ /** @internal */
5459
+ export const UpdateAgentResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
5460
+ typeof UpdateAgentResponseBodyStatus
5461
+ > = z.nativeEnum(UpdateAgentResponseBodyStatus);
5462
+
5463
+ /** @internal */
5464
+ export const UpdateAgentResponseBodyTeamOfAgents$inboundSchema: z.ZodType<
5465
+ UpdateAgentResponseBodyTeamOfAgents,
5466
+ z.ZodTypeDef,
5467
+ unknown
5468
+ > = z.object({
5469
+ key: z.string(),
5470
+ role: z.string().optional(),
5471
+ });
5472
+
5473
+ export function updateAgentResponseBodyTeamOfAgentsFromJSON(
5474
+ jsonString: string,
5475
+ ): SafeParseResult<UpdateAgentResponseBodyTeamOfAgents, SDKValidationError> {
5476
+ return safeParse(
5477
+ jsonString,
5478
+ (x) =>
5479
+ UpdateAgentResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
5480
+ `Failed to parse 'UpdateAgentResponseBodyTeamOfAgents' from JSON`,
5481
+ );
5482
+ }
5483
+
5484
+ /** @internal */
5485
+ export const UpdateAgentResponseBodyMetrics$inboundSchema: z.ZodType<
5486
+ UpdateAgentResponseBodyMetrics,
5487
+ z.ZodTypeDef,
5488
+ unknown
5489
+ > = z.object({
5490
+ total_cost: z.number().default(0),
5491
+ }).transform((v) => {
5492
+ return remap$(v, {
5493
+ "total_cost": "totalCost",
5494
+ });
5495
+ });
5496
+
5497
+ export function updateAgentResponseBodyMetricsFromJSON(
5498
+ jsonString: string,
5499
+ ): SafeParseResult<UpdateAgentResponseBodyMetrics, SDKValidationError> {
5500
+ return safeParse(
5501
+ jsonString,
5502
+ (x) => UpdateAgentResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
5503
+ `Failed to parse 'UpdateAgentResponseBodyMetrics' from JSON`,
5504
+ );
5505
+ }
5506
+
5507
+ /** @internal */
5508
+ export const UpdateAgentResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
5509
+ UpdateAgentResponseBodyKnowledgeBases,
5510
+ z.ZodTypeDef,
5511
+ unknown
5512
+ > = z.object({
5513
+ knowledge_id: z.string(),
5514
+ }).transform((v) => {
5515
+ return remap$(v, {
5516
+ "knowledge_id": "knowledgeId",
5061
5517
  });
5062
5518
  });
5063
5519
 
5064
- export function updateAgentToolsFromJSON(
5520
+ export function updateAgentResponseBodyKnowledgeBasesFromJSON(
5065
5521
  jsonString: string,
5066
- ): SafeParseResult<UpdateAgentTools, SDKValidationError> {
5522
+ ): SafeParseResult<UpdateAgentResponseBodyKnowledgeBases, SDKValidationError> {
5067
5523
  return safeParse(
5068
5524
  jsonString,
5069
- (x) => UpdateAgentTools$inboundSchema.parse(JSON.parse(x)),
5070
- `Failed to parse 'UpdateAgentTools' from JSON`,
5525
+ (x) =>
5526
+ UpdateAgentResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
5527
+ `Failed to parse 'UpdateAgentResponseBodyKnowledgeBases' from JSON`,
5071
5528
  );
5072
5529
  }
5073
5530
 
5074
5531
  /** @internal */
5075
- export const UpdateAgentAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
5076
- typeof UpdateAgentAgentsResponseExecuteOn
5077
- > = z.nativeEnum(UpdateAgentAgentsResponseExecuteOn);
5532
+ export const UpdateAgentResponseBodySource$inboundSchema: z.ZodNativeEnum<
5533
+ typeof UpdateAgentResponseBodySource
5534
+ > = z.nativeEnum(UpdateAgentResponseBodySource);
5535
+
5536
+ /** @internal */
5537
+ export const UpdateAgentResponseBodyToolApprovalRequired$inboundSchema:
5538
+ z.ZodNativeEnum<typeof UpdateAgentResponseBodyToolApprovalRequired> = z
5539
+ .nativeEnum(UpdateAgentResponseBodyToolApprovalRequired);
5078
5540
 
5079
5541
  /** @internal */
5080
- export const UpdateAgentAgentsEvaluators$inboundSchema: z.ZodType<
5081
- UpdateAgentAgentsEvaluators,
5542
+ export const UpdateAgentResponseBodyConditions$inboundSchema: z.ZodType<
5543
+ UpdateAgentResponseBodyConditions,
5544
+ z.ZodTypeDef,
5545
+ unknown
5546
+ > = z.object({
5547
+ condition: z.string(),
5548
+ operator: z.string(),
5549
+ value: z.string(),
5550
+ });
5551
+
5552
+ export function updateAgentResponseBodyConditionsFromJSON(
5553
+ jsonString: string,
5554
+ ): SafeParseResult<UpdateAgentResponseBodyConditions, SDKValidationError> {
5555
+ return safeParse(
5556
+ jsonString,
5557
+ (x) => UpdateAgentResponseBodyConditions$inboundSchema.parse(JSON.parse(x)),
5558
+ `Failed to parse 'UpdateAgentResponseBodyConditions' from JSON`,
5559
+ );
5560
+ }
5561
+
5562
+ /** @internal */
5563
+ export const UpdateAgentResponseBodyTools$inboundSchema: z.ZodType<
5564
+ UpdateAgentResponseBodyTools,
5565
+ z.ZodTypeDef,
5566
+ unknown
5567
+ > = z.object({
5568
+ id: z.string(),
5569
+ key: z.string().optional(),
5570
+ action_type: z.string(),
5571
+ display_name: z.string().optional(),
5572
+ description: z.string().optional(),
5573
+ requires_approval: z.boolean().default(false),
5574
+ tool_id: z.string().optional(),
5575
+ conditions: z.array(
5576
+ z.lazy(() => UpdateAgentResponseBodyConditions$inboundSchema),
5577
+ ).optional(),
5578
+ timeout: z.number().default(120),
5579
+ }).transform((v) => {
5580
+ return remap$(v, {
5581
+ "action_type": "actionType",
5582
+ "display_name": "displayName",
5583
+ "requires_approval": "requiresApproval",
5584
+ "tool_id": "toolId",
5585
+ });
5586
+ });
5587
+
5588
+ export function updateAgentResponseBodyToolsFromJSON(
5589
+ jsonString: string,
5590
+ ): SafeParseResult<UpdateAgentResponseBodyTools, SDKValidationError> {
5591
+ return safeParse(
5592
+ jsonString,
5593
+ (x) => UpdateAgentResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
5594
+ `Failed to parse 'UpdateAgentResponseBodyTools' from JSON`,
5595
+ );
5596
+ }
5597
+
5598
+ /** @internal */
5599
+ export const UpdateAgentResponseBodyExecuteOn$inboundSchema: z.ZodNativeEnum<
5600
+ typeof UpdateAgentResponseBodyExecuteOn
5601
+ > = z.nativeEnum(UpdateAgentResponseBodyExecuteOn);
5602
+
5603
+ /** @internal */
5604
+ export const UpdateAgentResponseBodyEvaluators$inboundSchema: z.ZodType<
5605
+ UpdateAgentResponseBodyEvaluators,
5082
5606
  z.ZodTypeDef,
5083
5607
  unknown
5084
5608
  > = z.object({
5085
5609
  id: z.string(),
5086
5610
  sample_rate: z.number().default(50),
5087
- execute_on: UpdateAgentAgentsResponseExecuteOn$inboundSchema,
5611
+ execute_on: UpdateAgentResponseBodyExecuteOn$inboundSchema,
5088
5612
  }).transform((v) => {
5089
5613
  return remap$(v, {
5090
5614
  "sample_rate": "sampleRate",
@@ -5092,31 +5616,31 @@ export const UpdateAgentAgentsEvaluators$inboundSchema: z.ZodType<
5092
5616
  });
5093
5617
  });
5094
5618
 
5095
- export function updateAgentAgentsEvaluatorsFromJSON(
5619
+ export function updateAgentResponseBodyEvaluatorsFromJSON(
5096
5620
  jsonString: string,
5097
- ): SafeParseResult<UpdateAgentAgentsEvaluators, SDKValidationError> {
5621
+ ): SafeParseResult<UpdateAgentResponseBodyEvaluators, SDKValidationError> {
5098
5622
  return safeParse(
5099
5623
  jsonString,
5100
- (x) => UpdateAgentAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
5101
- `Failed to parse 'UpdateAgentAgentsEvaluators' from JSON`,
5624
+ (x) => UpdateAgentResponseBodyEvaluators$inboundSchema.parse(JSON.parse(x)),
5625
+ `Failed to parse 'UpdateAgentResponseBodyEvaluators' from JSON`,
5102
5626
  );
5103
5627
  }
5104
5628
 
5105
5629
  /** @internal */
5106
- export const UpdateAgentAgentsResponse200ExecuteOn$inboundSchema:
5107
- z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ExecuteOn> = z.nativeEnum(
5108
- UpdateAgentAgentsResponse200ExecuteOn,
5630
+ export const UpdateAgentResponseBodyAgentsExecuteOn$inboundSchema:
5631
+ z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsExecuteOn> = z.nativeEnum(
5632
+ UpdateAgentResponseBodyAgentsExecuteOn,
5109
5633
  );
5110
5634
 
5111
5635
  /** @internal */
5112
- export const UpdateAgentAgentsGuardrails$inboundSchema: z.ZodType<
5113
- UpdateAgentAgentsGuardrails,
5636
+ export const UpdateAgentResponseBodyGuardrails$inboundSchema: z.ZodType<
5637
+ UpdateAgentResponseBodyGuardrails,
5114
5638
  z.ZodTypeDef,
5115
5639
  unknown
5116
5640
  > = z.object({
5117
5641
  id: z.string(),
5118
5642
  sample_rate: z.number().default(50),
5119
- execute_on: UpdateAgentAgentsResponse200ExecuteOn$inboundSchema,
5643
+ execute_on: UpdateAgentResponseBodyAgentsExecuteOn$inboundSchema,
5120
5644
  }).transform((v) => {
5121
5645
  return remap$(v, {
5122
5646
  "sample_rate": "sampleRate",
@@ -5124,32 +5648,37 @@ export const UpdateAgentAgentsGuardrails$inboundSchema: z.ZodType<
5124
5648
  });
5125
5649
  });
5126
5650
 
5127
- export function updateAgentAgentsGuardrailsFromJSON(
5651
+ export function updateAgentResponseBodyGuardrailsFromJSON(
5128
5652
  jsonString: string,
5129
- ): SafeParseResult<UpdateAgentAgentsGuardrails, SDKValidationError> {
5653
+ ): SafeParseResult<UpdateAgentResponseBodyGuardrails, SDKValidationError> {
5130
5654
  return safeParse(
5131
5655
  jsonString,
5132
- (x) => UpdateAgentAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
5133
- `Failed to parse 'UpdateAgentAgentsGuardrails' from JSON`,
5656
+ (x) => UpdateAgentResponseBodyGuardrails$inboundSchema.parse(JSON.parse(x)),
5657
+ `Failed to parse 'UpdateAgentResponseBodyGuardrails' from JSON`,
5134
5658
  );
5135
5659
  }
5136
5660
 
5137
5661
  /** @internal */
5138
- export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
5139
- UpdateAgentAgentsSettings,
5662
+ export const UpdateAgentResponseBodySettings$inboundSchema: z.ZodType<
5663
+ UpdateAgentResponseBodySettings,
5140
5664
  z.ZodTypeDef,
5141
5665
  unknown
5142
5666
  > = z.object({
5143
5667
  max_iterations: z.number().int().default(100),
5144
5668
  max_execution_time: z.number().int().default(600),
5145
5669
  max_cost: z.number().default(0),
5146
- tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
5147
- .default("respect_tool"),
5148
- tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
5149
- evaluators: z.array(z.lazy(() => UpdateAgentAgentsEvaluators$inboundSchema))
5150
- .optional(),
5151
- guardrails: z.array(z.lazy(() => UpdateAgentAgentsGuardrails$inboundSchema))
5670
+ tool_approval_required:
5671
+ UpdateAgentResponseBodyToolApprovalRequired$inboundSchema.default(
5672
+ "respect_tool",
5673
+ ),
5674
+ tools: z.array(z.lazy(() => UpdateAgentResponseBodyTools$inboundSchema))
5152
5675
  .optional(),
5676
+ evaluators: z.array(
5677
+ z.lazy(() => UpdateAgentResponseBodyEvaluators$inboundSchema),
5678
+ ).optional(),
5679
+ guardrails: z.array(
5680
+ z.lazy(() => UpdateAgentResponseBodyGuardrails$inboundSchema),
5681
+ ).optional(),
5153
5682
  }).transform((v) => {
5154
5683
  return remap$(v, {
5155
5684
  "max_iterations": "maxIterations",
@@ -5159,13 +5688,13 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
5159
5688
  });
5160
5689
  });
5161
5690
 
5162
- export function updateAgentAgentsSettingsFromJSON(
5691
+ export function updateAgentResponseBodySettingsFromJSON(
5163
5692
  jsonString: string,
5164
- ): SafeParseResult<UpdateAgentAgentsSettings, SDKValidationError> {
5693
+ ): SafeParseResult<UpdateAgentResponseBodySettings, SDKValidationError> {
5165
5694
  return safeParse(
5166
5695
  jsonString,
5167
- (x) => UpdateAgentAgentsSettings$inboundSchema.parse(JSON.parse(x)),
5168
- `Failed to parse 'UpdateAgentAgentsSettings' from JSON`,
5696
+ (x) => UpdateAgentResponseBodySettings$inboundSchema.parse(JSON.parse(x)),
5697
+ `Failed to parse 'UpdateAgentResponseBodySettings' from JSON`,
5169
5698
  );
5170
5699
  }
5171
5700
 
@@ -5284,8 +5813,8 @@ export function updateAgentResponseFormatAgentsResponseTextFromJSON(
5284
5813
  }
5285
5814
 
5286
5815
  /** @internal */
5287
- export const UpdateAgentResponseFormat$inboundSchema: z.ZodType<
5288
- UpdateAgentResponseFormat,
5816
+ export const UpdateAgentResponseBodyResponseFormat$inboundSchema: z.ZodType<
5817
+ UpdateAgentResponseBodyResponseFormat,
5289
5818
  z.ZodTypeDef,
5290
5819
  unknown
5291
5820
  > = z.union([
@@ -5296,41 +5825,43 @@ export const UpdateAgentResponseFormat$inboundSchema: z.ZodType<
5296
5825
  ),
5297
5826
  ]);
5298
5827
 
5299
- export function updateAgentResponseFormatFromJSON(
5828
+ export function updateAgentResponseBodyResponseFormatFromJSON(
5300
5829
  jsonString: string,
5301
- ): SafeParseResult<UpdateAgentResponseFormat, SDKValidationError> {
5830
+ ): SafeParseResult<UpdateAgentResponseBodyResponseFormat, SDKValidationError> {
5302
5831
  return safeParse(
5303
5832
  jsonString,
5304
- (x) => UpdateAgentResponseFormat$inboundSchema.parse(JSON.parse(x)),
5305
- `Failed to parse 'UpdateAgentResponseFormat' from JSON`,
5833
+ (x) =>
5834
+ UpdateAgentResponseBodyResponseFormat$inboundSchema.parse(JSON.parse(x)),
5835
+ `Failed to parse 'UpdateAgentResponseBodyResponseFormat' from JSON`,
5306
5836
  );
5307
5837
  }
5308
5838
 
5309
5839
  /** @internal */
5310
- export const UpdateAgentReasoningEffort$inboundSchema: z.ZodNativeEnum<
5311
- typeof UpdateAgentReasoningEffort
5312
- > = z.nativeEnum(UpdateAgentReasoningEffort);
5840
+ export const UpdateAgentResponseBodyReasoningEffort$inboundSchema:
5841
+ z.ZodNativeEnum<typeof UpdateAgentResponseBodyReasoningEffort> = z.nativeEnum(
5842
+ UpdateAgentResponseBodyReasoningEffort,
5843
+ );
5313
5844
 
5314
5845
  /** @internal */
5315
- export const UpdateAgentStop$inboundSchema: z.ZodType<
5316
- UpdateAgentStop,
5846
+ export const UpdateAgentResponseBodyStop$inboundSchema: z.ZodType<
5847
+ UpdateAgentResponseBodyStop,
5317
5848
  z.ZodTypeDef,
5318
5849
  unknown
5319
5850
  > = z.union([z.string(), z.array(z.string())]);
5320
5851
 
5321
- export function updateAgentStopFromJSON(
5852
+ export function updateAgentResponseBodyStopFromJSON(
5322
5853
  jsonString: string,
5323
- ): SafeParseResult<UpdateAgentStop, SDKValidationError> {
5854
+ ): SafeParseResult<UpdateAgentResponseBodyStop, SDKValidationError> {
5324
5855
  return safeParse(
5325
5856
  jsonString,
5326
- (x) => UpdateAgentStop$inboundSchema.parse(JSON.parse(x)),
5327
- `Failed to parse 'UpdateAgentStop' from JSON`,
5857
+ (x) => UpdateAgentResponseBodyStop$inboundSchema.parse(JSON.parse(x)),
5858
+ `Failed to parse 'UpdateAgentResponseBodyStop' from JSON`,
5328
5859
  );
5329
5860
  }
5330
5861
 
5331
5862
  /** @internal */
5332
- export const UpdateAgentThinking$inboundSchema: z.ZodType<
5333
- UpdateAgentThinking,
5863
+ export const UpdateAgentResponseBodyThinking$inboundSchema: z.ZodType<
5864
+ UpdateAgentResponseBodyThinking,
5334
5865
  z.ZodTypeDef,
5335
5866
  unknown
5336
5867
  > = z.union([
@@ -5338,13 +5869,13 @@ export const UpdateAgentThinking$inboundSchema: z.ZodType<
5338
5869
  components.ThinkingConfigEnabledSchema$inboundSchema,
5339
5870
  ]);
5340
5871
 
5341
- export function updateAgentThinkingFromJSON(
5872
+ export function updateAgentResponseBodyThinkingFromJSON(
5342
5873
  jsonString: string,
5343
- ): SafeParseResult<UpdateAgentThinking, SDKValidationError> {
5874
+ ): SafeParseResult<UpdateAgentResponseBodyThinking, SDKValidationError> {
5344
5875
  return safeParse(
5345
5876
  jsonString,
5346
- (x) => UpdateAgentThinking$inboundSchema.parse(JSON.parse(x)),
5347
- `Failed to parse 'UpdateAgentThinking' from JSON`,
5877
+ (x) => UpdateAgentResponseBodyThinking$inboundSchema.parse(JSON.parse(x)),
5878
+ `Failed to parse 'UpdateAgentResponseBodyThinking' from JSON`,
5348
5879
  );
5349
5880
  }
5350
5881
 
@@ -5409,8 +5940,8 @@ export const UpdateAgentToolChoiceAgentsResponse1$inboundSchema:
5409
5940
  );
5410
5941
 
5411
5942
  /** @internal */
5412
- export const UpdateAgentToolChoice$inboundSchema: z.ZodType<
5413
- UpdateAgentToolChoice,
5943
+ export const UpdateAgentResponseBodyToolChoice$inboundSchema: z.ZodType<
5944
+ UpdateAgentResponseBodyToolChoice,
5414
5945
  z.ZodTypeDef,
5415
5946
  unknown
5416
5947
  > = z.union([
@@ -5418,20 +5949,20 @@ export const UpdateAgentToolChoice$inboundSchema: z.ZodType<
5418
5949
  UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
5419
5950
  ]);
5420
5951
 
5421
- export function updateAgentToolChoiceFromJSON(
5952
+ export function updateAgentResponseBodyToolChoiceFromJSON(
5422
5953
  jsonString: string,
5423
- ): SafeParseResult<UpdateAgentToolChoice, SDKValidationError> {
5954
+ ): SafeParseResult<UpdateAgentResponseBodyToolChoice, SDKValidationError> {
5424
5955
  return safeParse(
5425
5956
  jsonString,
5426
- (x) => UpdateAgentToolChoice$inboundSchema.parse(JSON.parse(x)),
5427
- `Failed to parse 'UpdateAgentToolChoice' from JSON`,
5957
+ (x) => UpdateAgentResponseBodyToolChoice$inboundSchema.parse(JSON.parse(x)),
5958
+ `Failed to parse 'UpdateAgentResponseBodyToolChoice' from JSON`,
5428
5959
  );
5429
5960
  }
5430
5961
 
5431
5962
  /** @internal */
5432
- export const UpdateAgentModalities$inboundSchema: z.ZodNativeEnum<
5433
- typeof UpdateAgentModalities
5434
- > = z.nativeEnum(UpdateAgentModalities);
5963
+ export const UpdateAgentResponseBodyModalities$inboundSchema: z.ZodNativeEnum<
5964
+ typeof UpdateAgentResponseBodyModalities
5965
+ > = z.nativeEnum(UpdateAgentResponseBodyModalities);
5435
5966
 
5436
5967
  /** @internal */
5437
5968
  export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
@@ -5439,94 +5970,98 @@ export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
5439
5970
  > = z.nativeEnum(UpdateAgentIdAgentsResponse1);
5440
5971
 
5441
5972
  /** @internal */
5442
- export const UpdateAgentId$inboundSchema: z.ZodType<
5443
- UpdateAgentId,
5973
+ export const UpdateAgentResponseBodyId$inboundSchema: z.ZodType<
5974
+ UpdateAgentResponseBodyId,
5444
5975
  z.ZodTypeDef,
5445
5976
  unknown
5446
5977
  > = z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]);
5447
5978
 
5448
- export function updateAgentIdFromJSON(
5979
+ export function updateAgentResponseBodyIdFromJSON(
5449
5980
  jsonString: string,
5450
- ): SafeParseResult<UpdateAgentId, SDKValidationError> {
5981
+ ): SafeParseResult<UpdateAgentResponseBodyId, SDKValidationError> {
5451
5982
  return safeParse(
5452
5983
  jsonString,
5453
- (x) => UpdateAgentId$inboundSchema.parse(JSON.parse(x)),
5454
- `Failed to parse 'UpdateAgentId' from JSON`,
5984
+ (x) => UpdateAgentResponseBodyId$inboundSchema.parse(JSON.parse(x)),
5985
+ `Failed to parse 'UpdateAgentResponseBodyId' from JSON`,
5455
5986
  );
5456
5987
  }
5457
5988
 
5458
5989
  /** @internal */
5459
- export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema:
5460
- z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn> =
5461
- z.nativeEnum(UpdateAgentAgentsResponse200ApplicationJSONExecuteOn);
5990
+ export const UpdateAgentResponseBodyAgentsResponseExecuteOn$inboundSchema:
5991
+ z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsResponseExecuteOn> = z
5992
+ .nativeEnum(UpdateAgentResponseBodyAgentsResponseExecuteOn);
5462
5993
 
5463
5994
  /** @internal */
5464
- export const UpdateAgentAgentsResponseGuardrails$inboundSchema: z.ZodType<
5465
- UpdateAgentAgentsResponseGuardrails,
5995
+ export const UpdateAgentResponseBodyAgentsGuardrails$inboundSchema: z.ZodType<
5996
+ UpdateAgentResponseBodyAgentsGuardrails,
5466
5997
  z.ZodTypeDef,
5467
5998
  unknown
5468
5999
  > = z.object({
5469
6000
  id: z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]),
5470
- execute_on:
5471
- UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema,
6001
+ execute_on: UpdateAgentResponseBodyAgentsResponseExecuteOn$inboundSchema,
5472
6002
  }).transform((v) => {
5473
6003
  return remap$(v, {
5474
6004
  "execute_on": "executeOn",
5475
6005
  });
5476
6006
  });
5477
6007
 
5478
- export function updateAgentAgentsResponseGuardrailsFromJSON(
6008
+ export function updateAgentResponseBodyAgentsGuardrailsFromJSON(
5479
6009
  jsonString: string,
5480
- ): SafeParseResult<UpdateAgentAgentsResponseGuardrails, SDKValidationError> {
6010
+ ): SafeParseResult<
6011
+ UpdateAgentResponseBodyAgentsGuardrails,
6012
+ SDKValidationError
6013
+ > {
5481
6014
  return safeParse(
5482
6015
  jsonString,
5483
6016
  (x) =>
5484
- UpdateAgentAgentsResponseGuardrails$inboundSchema.parse(JSON.parse(x)),
5485
- `Failed to parse 'UpdateAgentAgentsResponseGuardrails' from JSON`,
6017
+ UpdateAgentResponseBodyAgentsGuardrails$inboundSchema.parse(
6018
+ JSON.parse(x),
6019
+ ),
6020
+ `Failed to parse 'UpdateAgentResponseBodyAgentsGuardrails' from JSON`,
5486
6021
  );
5487
6022
  }
5488
6023
 
5489
6024
  /** @internal */
5490
- export const UpdateAgentFallbacks$inboundSchema: z.ZodType<
5491
- UpdateAgentFallbacks,
6025
+ export const UpdateAgentResponseBodyFallbacks$inboundSchema: z.ZodType<
6026
+ UpdateAgentResponseBodyFallbacks,
5492
6027
  z.ZodTypeDef,
5493
6028
  unknown
5494
6029
  > = z.object({
5495
6030
  model: z.string(),
5496
6031
  });
5497
6032
 
5498
- export function updateAgentFallbacksFromJSON(
6033
+ export function updateAgentResponseBodyFallbacksFromJSON(
5499
6034
  jsonString: string,
5500
- ): SafeParseResult<UpdateAgentFallbacks, SDKValidationError> {
6035
+ ): SafeParseResult<UpdateAgentResponseBodyFallbacks, SDKValidationError> {
5501
6036
  return safeParse(
5502
6037
  jsonString,
5503
- (x) => UpdateAgentFallbacks$inboundSchema.parse(JSON.parse(x)),
5504
- `Failed to parse 'UpdateAgentFallbacks' from JSON`,
6038
+ (x) => UpdateAgentResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
6039
+ `Failed to parse 'UpdateAgentResponseBodyFallbacks' from JSON`,
5505
6040
  );
5506
6041
  }
5507
6042
 
5508
6043
  /** @internal */
5509
- export const UpdateAgentType$inboundSchema: z.ZodNativeEnum<
5510
- typeof UpdateAgentType
5511
- > = z.nativeEnum(UpdateAgentType);
6044
+ export const UpdateAgentResponseBodyAgentsResponseType$inboundSchema:
6045
+ z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsResponseType> = z
6046
+ .nativeEnum(UpdateAgentResponseBodyAgentsResponseType);
5512
6047
 
5513
6048
  /** @internal */
5514
- export const UpdateAgentCache$inboundSchema: z.ZodType<
5515
- UpdateAgentCache,
6049
+ export const UpdateAgentResponseBodyCache$inboundSchema: z.ZodType<
6050
+ UpdateAgentResponseBodyCache,
5516
6051
  z.ZodTypeDef,
5517
6052
  unknown
5518
6053
  > = z.object({
5519
6054
  ttl: z.number().default(1800),
5520
- type: UpdateAgentType$inboundSchema,
6055
+ type: UpdateAgentResponseBodyAgentsResponseType$inboundSchema,
5521
6056
  });
5522
6057
 
5523
- export function updateAgentCacheFromJSON(
6058
+ export function updateAgentResponseBodyCacheFromJSON(
5524
6059
  jsonString: string,
5525
- ): SafeParseResult<UpdateAgentCache, SDKValidationError> {
6060
+ ): SafeParseResult<UpdateAgentResponseBodyCache, SDKValidationError> {
5526
6061
  return safeParse(
5527
6062
  jsonString,
5528
- (x) => UpdateAgentCache$inboundSchema.parse(JSON.parse(x)),
5529
- `Failed to parse 'UpdateAgentCache' from JSON`,
6063
+ (x) => UpdateAgentResponseBodyCache$inboundSchema.parse(JSON.parse(x)),
6064
+ `Failed to parse 'UpdateAgentResponseBodyCache' from JSON`,
5530
6065
  );
5531
6066
  }
5532
6067
 
@@ -5586,25 +6121,26 @@ export function updateAgentLoadBalancerAgentsResponse1FromJSON(
5586
6121
  }
5587
6122
 
5588
6123
  /** @internal */
5589
- export const UpdateAgentLoadBalancer$inboundSchema: z.ZodType<
5590
- UpdateAgentLoadBalancer,
6124
+ export const UpdateAgentResponseBodyLoadBalancer$inboundSchema: z.ZodType<
6125
+ UpdateAgentResponseBodyLoadBalancer,
5591
6126
  z.ZodTypeDef,
5592
6127
  unknown
5593
6128
  > = z.lazy(() => UpdateAgentLoadBalancerAgentsResponse1$inboundSchema);
5594
6129
 
5595
- export function updateAgentLoadBalancerFromJSON(
6130
+ export function updateAgentResponseBodyLoadBalancerFromJSON(
5596
6131
  jsonString: string,
5597
- ): SafeParseResult<UpdateAgentLoadBalancer, SDKValidationError> {
6132
+ ): SafeParseResult<UpdateAgentResponseBodyLoadBalancer, SDKValidationError> {
5598
6133
  return safeParse(
5599
6134
  jsonString,
5600
- (x) => UpdateAgentLoadBalancer$inboundSchema.parse(JSON.parse(x)),
5601
- `Failed to parse 'UpdateAgentLoadBalancer' from JSON`,
6135
+ (x) =>
6136
+ UpdateAgentResponseBodyLoadBalancer$inboundSchema.parse(JSON.parse(x)),
6137
+ `Failed to parse 'UpdateAgentResponseBodyLoadBalancer' from JSON`,
5602
6138
  );
5603
6139
  }
5604
6140
 
5605
6141
  /** @internal */
5606
- export const UpdateAgentTimeout$inboundSchema: z.ZodType<
5607
- UpdateAgentTimeout,
6142
+ export const UpdateAgentResponseBodyTimeout$inboundSchema: z.ZodType<
6143
+ UpdateAgentResponseBodyTimeout,
5608
6144
  z.ZodTypeDef,
5609
6145
  unknown
5610
6146
  > = z.object({
@@ -5615,19 +6151,19 @@ export const UpdateAgentTimeout$inboundSchema: z.ZodType<
5615
6151
  });
5616
6152
  });
5617
6153
 
5618
- export function updateAgentTimeoutFromJSON(
6154
+ export function updateAgentResponseBodyTimeoutFromJSON(
5619
6155
  jsonString: string,
5620
- ): SafeParseResult<UpdateAgentTimeout, SDKValidationError> {
6156
+ ): SafeParseResult<UpdateAgentResponseBodyTimeout, SDKValidationError> {
5621
6157
  return safeParse(
5622
6158
  jsonString,
5623
- (x) => UpdateAgentTimeout$inboundSchema.parse(JSON.parse(x)),
5624
- `Failed to parse 'UpdateAgentTimeout' from JSON`,
6159
+ (x) => UpdateAgentResponseBodyTimeout$inboundSchema.parse(JSON.parse(x)),
6160
+ `Failed to parse 'UpdateAgentResponseBodyTimeout' from JSON`,
5625
6161
  );
5626
6162
  }
5627
6163
 
5628
6164
  /** @internal */
5629
- export const UpdateAgentParameters$inboundSchema: z.ZodType<
5630
- UpdateAgentParameters,
6165
+ export const UpdateAgentResponseBodyParameters$inboundSchema: z.ZodType<
6166
+ UpdateAgentResponseBodyParameters,
5631
6167
  z.ZodTypeDef,
5632
6168
  unknown
5633
6169
  > = z.object({
@@ -5645,7 +6181,8 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
5645
6181
  UpdateAgentResponseFormatAgentsResponse200JSONSchema$inboundSchema
5646
6182
  ),
5647
6183
  ]).optional(),
5648
- reasoning_effort: UpdateAgentReasoningEffort$inboundSchema.optional(),
6184
+ reasoning_effort: UpdateAgentResponseBodyReasoningEffort$inboundSchema
6185
+ .optional(),
5649
6186
  verbosity: z.string().optional(),
5650
6187
  seed: z.nullable(z.number()).optional(),
5651
6188
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -5661,18 +6198,21 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
5661
6198
  UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
5662
6199
  ]).optional(),
5663
6200
  parallel_tool_calls: z.boolean().optional(),
5664
- modalities: z.nullable(z.array(UpdateAgentModalities$inboundSchema))
5665
- .optional(),
6201
+ modalities: z.nullable(
6202
+ z.array(UpdateAgentResponseBodyModalities$inboundSchema),
6203
+ ).optional(),
5666
6204
  guardrails: z.array(
5667
- z.lazy(() => UpdateAgentAgentsResponseGuardrails$inboundSchema),
6205
+ z.lazy(() => UpdateAgentResponseBodyAgentsGuardrails$inboundSchema),
5668
6206
  ).optional(),
5669
- fallbacks: z.array(z.lazy(() => UpdateAgentFallbacks$inboundSchema))
5670
- .optional(),
5671
- cache: z.lazy(() => UpdateAgentCache$inboundSchema).optional(),
6207
+ fallbacks: z.array(
6208
+ z.lazy(() => UpdateAgentResponseBodyFallbacks$inboundSchema),
6209
+ ).optional(),
6210
+ cache: z.lazy(() => UpdateAgentResponseBodyCache$inboundSchema).optional(),
5672
6211
  load_balancer: z.lazy(() =>
5673
6212
  UpdateAgentLoadBalancerAgentsResponse1$inboundSchema
5674
6213
  ).optional(),
5675
- timeout: z.lazy(() => UpdateAgentTimeout$inboundSchema).optional(),
6214
+ timeout: z.lazy(() => UpdateAgentResponseBodyTimeout$inboundSchema)
6215
+ .optional(),
5676
6216
  }).transform((v) => {
5677
6217
  return remap$(v, {
5678
6218
  "frequency_penalty": "frequencyPenalty",
@@ -5689,19 +6229,19 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
5689
6229
  });
5690
6230
  });
5691
6231
 
5692
- export function updateAgentParametersFromJSON(
6232
+ export function updateAgentResponseBodyParametersFromJSON(
5693
6233
  jsonString: string,
5694
- ): SafeParseResult<UpdateAgentParameters, SDKValidationError> {
6234
+ ): SafeParseResult<UpdateAgentResponseBodyParameters, SDKValidationError> {
5695
6235
  return safeParse(
5696
6236
  jsonString,
5697
- (x) => UpdateAgentParameters$inboundSchema.parse(JSON.parse(x)),
5698
- `Failed to parse 'UpdateAgentParameters' from JSON`,
6237
+ (x) => UpdateAgentResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
6238
+ `Failed to parse 'UpdateAgentResponseBodyParameters' from JSON`,
5699
6239
  );
5700
6240
  }
5701
6241
 
5702
6242
  /** @internal */
5703
- export const UpdateAgentRetry$inboundSchema: z.ZodType<
5704
- UpdateAgentRetry,
6243
+ export const UpdateAgentResponseBodyRetry$inboundSchema: z.ZodType<
6244
+ UpdateAgentResponseBodyRetry,
5705
6245
  z.ZodTypeDef,
5706
6246
  unknown
5707
6247
  > = z.object({
@@ -5713,13 +6253,13 @@ export const UpdateAgentRetry$inboundSchema: z.ZodType<
5713
6253
  });
5714
6254
  });
5715
6255
 
5716
- export function updateAgentRetryFromJSON(
6256
+ export function updateAgentResponseBodyRetryFromJSON(
5717
6257
  jsonString: string,
5718
- ): SafeParseResult<UpdateAgentRetry, SDKValidationError> {
6258
+ ): SafeParseResult<UpdateAgentResponseBodyRetry, SDKValidationError> {
5719
6259
  return safeParse(
5720
6260
  jsonString,
5721
- (x) => UpdateAgentRetry$inboundSchema.parse(JSON.parse(x)),
5722
- `Failed to parse 'UpdateAgentRetry' from JSON`,
6261
+ (x) => UpdateAgentResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
6262
+ `Failed to parse 'UpdateAgentResponseBodyRetry' from JSON`,
5723
6263
  );
5724
6264
  }
5725
6265
 
@@ -6418,9 +6958,9 @@ export function updateAgentFallbackModelConfigurationAgents2FromJSON(
6418
6958
  }
6419
6959
 
6420
6960
  /** @internal */
6421
- export const UpdateAgentAgentsFallbackModelConfiguration$inboundSchema:
6961
+ export const UpdateAgentResponseBodyFallbackModelConfiguration$inboundSchema:
6422
6962
  z.ZodType<
6423
- UpdateAgentAgentsFallbackModelConfiguration,
6963
+ UpdateAgentResponseBodyFallbackModelConfiguration,
6424
6964
  z.ZodTypeDef,
6425
6965
  unknown
6426
6966
  > = z.union([
@@ -6428,32 +6968,33 @@ export const UpdateAgentAgentsFallbackModelConfiguration$inboundSchema:
6428
6968
  z.string(),
6429
6969
  ]);
6430
6970
 
6431
- export function updateAgentAgentsFallbackModelConfigurationFromJSON(
6971
+ export function updateAgentResponseBodyFallbackModelConfigurationFromJSON(
6432
6972
  jsonString: string,
6433
6973
  ): SafeParseResult<
6434
- UpdateAgentAgentsFallbackModelConfiguration,
6974
+ UpdateAgentResponseBodyFallbackModelConfiguration,
6435
6975
  SDKValidationError
6436
6976
  > {
6437
6977
  return safeParse(
6438
6978
  jsonString,
6439
6979
  (x) =>
6440
- UpdateAgentAgentsFallbackModelConfiguration$inboundSchema.parse(
6980
+ UpdateAgentResponseBodyFallbackModelConfiguration$inboundSchema.parse(
6441
6981
  JSON.parse(x),
6442
6982
  ),
6443
- `Failed to parse 'UpdateAgentAgentsFallbackModelConfiguration' from JSON`,
6983
+ `Failed to parse 'UpdateAgentResponseBodyFallbackModelConfiguration' from JSON`,
6444
6984
  );
6445
6985
  }
6446
6986
 
6447
6987
  /** @internal */
6448
- export const UpdateAgentModel$inboundSchema: z.ZodType<
6449
- UpdateAgentModel,
6988
+ export const UpdateAgentResponseBodyModel$inboundSchema: z.ZodType<
6989
+ UpdateAgentResponseBodyModel,
6450
6990
  z.ZodTypeDef,
6451
6991
  unknown
6452
6992
  > = z.object({
6453
6993
  id: z.string(),
6454
6994
  integration_id: z.nullable(z.string()).optional(),
6455
- parameters: z.lazy(() => UpdateAgentParameters$inboundSchema).optional(),
6456
- retry: z.lazy(() => UpdateAgentRetry$inboundSchema).optional(),
6995
+ parameters: z.lazy(() => UpdateAgentResponseBodyParameters$inboundSchema)
6996
+ .optional(),
6997
+ retry: z.lazy(() => UpdateAgentResponseBodyRetry$inboundSchema).optional(),
6457
6998
  fallback_models: z.nullable(
6458
6999
  z.array(z.union([
6459
7000
  z.lazy(() => UpdateAgentFallbackModelConfigurationAgents2$inboundSchema),
@@ -6467,137 +7008,87 @@ export const UpdateAgentModel$inboundSchema: z.ZodType<
6467
7008
  });
6468
7009
  });
6469
7010
 
6470
- export function updateAgentModelFromJSON(
7011
+ export function updateAgentResponseBodyModelFromJSON(
6471
7012
  jsonString: string,
6472
- ): SafeParseResult<UpdateAgentModel, SDKValidationError> {
7013
+ ): SafeParseResult<UpdateAgentResponseBodyModel, SDKValidationError> {
6473
7014
  return safeParse(
6474
7015
  jsonString,
6475
- (x) => UpdateAgentModel$inboundSchema.parse(JSON.parse(x)),
6476
- `Failed to parse 'UpdateAgentModel' from JSON`,
7016
+ (x) => UpdateAgentResponseBodyModel$inboundSchema.parse(JSON.parse(x)),
7017
+ `Failed to parse 'UpdateAgentResponseBodyModel' from JSON`,
6477
7018
  );
6478
7019
  }
6479
7020
 
6480
7021
  /** @internal */
6481
- export const UpdateAgentAgentsTeamOfAgents$inboundSchema: z.ZodType<
6482
- UpdateAgentAgentsTeamOfAgents,
6483
- z.ZodTypeDef,
6484
- unknown
6485
- > = z.object({
6486
- key: z.string(),
6487
- role: z.string().optional(),
6488
- });
6489
-
6490
- export function updateAgentAgentsTeamOfAgentsFromJSON(
6491
- jsonString: string,
6492
- ): SafeParseResult<UpdateAgentAgentsTeamOfAgents, SDKValidationError> {
6493
- return safeParse(
6494
- jsonString,
6495
- (x) => UpdateAgentAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
6496
- `Failed to parse 'UpdateAgentAgentsTeamOfAgents' from JSON`,
6497
- );
6498
- }
6499
-
6500
- /** @internal */
6501
- export const UpdateAgentMetrics$inboundSchema: z.ZodType<
6502
- UpdateAgentMetrics,
6503
- z.ZodTypeDef,
6504
- unknown
6505
- > = z.object({
6506
- total_cost: z.number().default(0),
6507
- }).transform((v) => {
6508
- return remap$(v, {
6509
- "total_cost": "totalCost",
6510
- });
6511
- });
6512
-
6513
- export function updateAgentMetricsFromJSON(
6514
- jsonString: string,
6515
- ): SafeParseResult<UpdateAgentMetrics, SDKValidationError> {
6516
- return safeParse(
6517
- jsonString,
6518
- (x) => UpdateAgentMetrics$inboundSchema.parse(JSON.parse(x)),
6519
- `Failed to parse 'UpdateAgentMetrics' from JSON`,
6520
- );
6521
- }
6522
-
6523
- /** @internal */
6524
- export const UpdateAgentAgentsKnowledgeBases$inboundSchema: z.ZodType<
6525
- UpdateAgentAgentsKnowledgeBases,
6526
- z.ZodTypeDef,
6527
- unknown
6528
- > = z.object({
6529
- knowledge_id: z.string(),
6530
- }).transform((v) => {
6531
- return remap$(v, {
6532
- "knowledge_id": "knowledgeId",
6533
- });
6534
- });
6535
-
6536
- export function updateAgentAgentsKnowledgeBasesFromJSON(
6537
- jsonString: string,
6538
- ): SafeParseResult<UpdateAgentAgentsKnowledgeBases, SDKValidationError> {
6539
- return safeParse(
6540
- jsonString,
6541
- (x) => UpdateAgentAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
6542
- `Failed to parse 'UpdateAgentAgentsKnowledgeBases' from JSON`,
6543
- );
6544
- }
6545
-
6546
- /** @internal */
6547
- export const UpdateAgentSource$inboundSchema: z.ZodNativeEnum<
6548
- typeof UpdateAgentSource
6549
- > = z.nativeEnum(UpdateAgentSource);
6550
-
6551
- /** @internal */
6552
- export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
6553
- UpdateAgentResponseBody,
7022
+ export const UpdateAgentResponseBody1$inboundSchema: z.ZodType<
7023
+ UpdateAgentResponseBody1,
6554
7024
  z.ZodTypeDef,
6555
7025
  unknown
6556
7026
  > = z.object({
6557
7027
  _id: z.string(),
6558
7028
  key: z.string(),
6559
7029
  display_name: z.string().optional(),
6560
- workspace_id: z.string(),
6561
7030
  project_id: z.string(),
6562
7031
  created_by_id: z.nullable(z.string()).optional(),
6563
7032
  updated_by_id: z.nullable(z.string()).optional(),
6564
7033
  created: z.string().optional(),
6565
7034
  updated: z.string().optional(),
6566
- role: z.string(),
6567
- description: z.string(),
6568
- system_prompt: z.string().optional(),
6569
- instructions: z.string(),
6570
- status: UpdateAgentStatus$inboundSchema,
6571
- settings: z.lazy(() => UpdateAgentAgentsSettings$inboundSchema).optional(),
6572
- model: z.lazy(() => UpdateAgentModel$inboundSchema),
7035
+ status: UpdateAgentResponseBodyStatus$inboundSchema,
6573
7036
  version_hash: z.string().optional(),
6574
7037
  path: z.string(),
6575
- memory_stores: z.array(z.string()),
7038
+ memory_stores: z.array(z.string()).optional(),
6576
7039
  team_of_agents: z.array(
6577
- z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
6578
- ),
6579
- metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
7040
+ z.lazy(() => UpdateAgentResponseBodyTeamOfAgents$inboundSchema),
7041
+ ).optional(),
7042
+ metrics: z.lazy(() => UpdateAgentResponseBodyMetrics$inboundSchema)
7043
+ .optional(),
6580
7044
  variables: z.record(z.any()).optional(),
6581
7045
  knowledge_bases: z.array(
6582
- z.lazy(() => UpdateAgentAgentsKnowledgeBases$inboundSchema),
7046
+ z.lazy(() => UpdateAgentResponseBodyKnowledgeBases$inboundSchema),
6583
7047
  ).optional(),
6584
- source: UpdateAgentSource$inboundSchema.optional(),
7048
+ source: UpdateAgentResponseBodySource$inboundSchema.optional(),
7049
+ type: z.literal("internal"),
7050
+ role: z.string(),
7051
+ description: z.string(),
7052
+ system_prompt: z.string().optional(),
7053
+ instructions: z.string(),
7054
+ settings: z.lazy(() => UpdateAgentResponseBodySettings$inboundSchema)
7055
+ .optional(),
7056
+ model: z.lazy(() => UpdateAgentResponseBodyModel$inboundSchema),
6585
7057
  }).transform((v) => {
6586
7058
  return remap$(v, {
6587
7059
  "_id": "id",
6588
7060
  "display_name": "displayName",
6589
- "workspace_id": "workspaceId",
6590
7061
  "project_id": "projectId",
6591
7062
  "created_by_id": "createdById",
6592
7063
  "updated_by_id": "updatedById",
6593
- "system_prompt": "systemPrompt",
6594
7064
  "version_hash": "versionHash",
6595
7065
  "memory_stores": "memoryStores",
6596
7066
  "team_of_agents": "teamOfAgents",
6597
7067
  "knowledge_bases": "knowledgeBases",
7068
+ "system_prompt": "systemPrompt",
6598
7069
  });
6599
7070
  });
6600
7071
 
7072
+ export function updateAgentResponseBody1FromJSON(
7073
+ jsonString: string,
7074
+ ): SafeParseResult<UpdateAgentResponseBody1, SDKValidationError> {
7075
+ return safeParse(
7076
+ jsonString,
7077
+ (x) => UpdateAgentResponseBody1$inboundSchema.parse(JSON.parse(x)),
7078
+ `Failed to parse 'UpdateAgentResponseBody1' from JSON`,
7079
+ );
7080
+ }
7081
+
7082
+ /** @internal */
7083
+ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
7084
+ UpdateAgentResponseBody,
7085
+ z.ZodTypeDef,
7086
+ unknown
7087
+ > = z.union([
7088
+ z.lazy(() => UpdateAgentResponseBody1$inboundSchema),
7089
+ z.lazy(() => UpdateAgentResponseBody2$inboundSchema),
7090
+ ]);
7091
+
6601
7092
  export function updateAgentResponseBodyFromJSON(
6602
7093
  jsonString: string,
6603
7094
  ): SafeParseResult<UpdateAgentResponseBody, SDKValidationError> {