@orq-ai/node 4.5.0-rc.40 → 4.5.0-rc.41

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 (103) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/partdoneevent.js +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createagentrequest.d.ts +161 -271
  7. package/models/operations/createagentrequest.d.ts.map +1 -1
  8. package/models/operations/createagentrequest.js +162 -256
  9. package/models/operations/createagentrequest.js.map +1 -1
  10. package/models/operations/createcontact.js +1 -1
  11. package/models/operations/createdataset.js +1 -1
  12. package/models/operations/createdatasetitem.js +4 -4
  13. package/models/operations/createdatasource.js +1 -1
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/createidentity.js +1 -1
  16. package/models/operations/createknowledge.d.ts +7 -7
  17. package/models/operations/createknowledge.d.ts.map +1 -1
  18. package/models/operations/createknowledge.js +11 -11
  19. package/models/operations/createknowledge.js.map +1 -1
  20. package/models/operations/createtool.d.ts +39 -39
  21. package/models/operations/createtool.d.ts.map +1 -1
  22. package/models/operations/createtool.js +49 -52
  23. package/models/operations/createtool.js.map +1 -1
  24. package/models/operations/fileget.js +1 -1
  25. package/models/operations/filelist.js +1 -1
  26. package/models/operations/fileupload.js +1 -1
  27. package/models/operations/getalltools.d.ts +39 -39
  28. package/models/operations/getalltools.d.ts.map +1 -1
  29. package/models/operations/getalltools.js +47 -49
  30. package/models/operations/getalltools.js.map +1 -1
  31. package/models/operations/getevals.js +16 -16
  32. package/models/operations/listagents.d.ts +167 -276
  33. package/models/operations/listagents.d.ts.map +1 -1
  34. package/models/operations/listagents.js +172 -266
  35. package/models/operations/listagents.js.map +1 -1
  36. package/models/operations/listdatasetdatapoints.js +4 -4
  37. package/models/operations/listdatasets.js +1 -1
  38. package/models/operations/listdatasources.js +1 -1
  39. package/models/operations/listidentities.js +1 -1
  40. package/models/operations/listknowledgebases.d.ts +8 -8
  41. package/models/operations/listknowledgebases.d.ts.map +1 -1
  42. package/models/operations/listknowledgebases.js +15 -13
  43. package/models/operations/listknowledgebases.js.map +1 -1
  44. package/models/operations/retrieveagentrequest.d.ts +169 -279
  45. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  46. package/models/operations/retrieveagentrequest.js +173 -270
  47. package/models/operations/retrieveagentrequest.js.map +1 -1
  48. package/models/operations/retrievedatapoint.js +4 -4
  49. package/models/operations/retrievedataset.js +1 -1
  50. package/models/operations/retrievedatasource.js +1 -1
  51. package/models/operations/retrieveidentity.js +1 -1
  52. package/models/operations/retrievetool.js +6 -6
  53. package/models/operations/runagent.js +1 -1
  54. package/models/operations/streamrunagent.js +1 -1
  55. package/models/operations/updateagent.d.ts +169 -279
  56. package/models/operations/updateagent.d.ts.map +1 -1
  57. package/models/operations/updateagent.js +174 -270
  58. package/models/operations/updateagent.js.map +1 -1
  59. package/models/operations/updatedatapoint.js +4 -4
  60. package/models/operations/updatedataset.js +1 -1
  61. package/models/operations/updatedatasource.js +1 -1
  62. package/models/operations/updateeval.js +16 -16
  63. package/models/operations/updateidentity.js +1 -1
  64. package/models/operations/updatetool.js +7 -7
  65. package/package.json +1 -1
  66. package/src/lib/config.ts +2 -2
  67. package/src/models/components/partdoneevent.ts +1 -1
  68. package/src/models/components/reasoningpart.ts +1 -1
  69. package/src/models/operations/createagentrequest.ts +376 -619
  70. package/src/models/operations/createcontact.ts +1 -1
  71. package/src/models/operations/createdataset.ts +1 -1
  72. package/src/models/operations/createdatasetitem.ts +4 -4
  73. package/src/models/operations/createdatasource.ts +1 -1
  74. package/src/models/operations/createeval.ts +16 -16
  75. package/src/models/operations/createidentity.ts +1 -1
  76. package/src/models/operations/createknowledge.ts +17 -19
  77. package/src/models/operations/createtool.ts +91 -103
  78. package/src/models/operations/fileget.ts +1 -1
  79. package/src/models/operations/filelist.ts +1 -1
  80. package/src/models/operations/fileupload.ts +1 -1
  81. package/src/models/operations/getalltools.ts +87 -93
  82. package/src/models/operations/getevals.ts +16 -16
  83. package/src/models/operations/listagents.ts +383 -611
  84. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  85. package/src/models/operations/listdatasets.ts +1 -1
  86. package/src/models/operations/listdatasources.ts +1 -1
  87. package/src/models/operations/listidentities.ts +1 -1
  88. package/src/models/operations/listknowledgebases.ts +64 -72
  89. package/src/models/operations/retrieveagentrequest.ts +489 -884
  90. package/src/models/operations/retrievedatapoint.ts +4 -4
  91. package/src/models/operations/retrievedataset.ts +1 -1
  92. package/src/models/operations/retrievedatasource.ts +1 -1
  93. package/src/models/operations/retrieveidentity.ts +1 -1
  94. package/src/models/operations/retrievetool.ts +6 -6
  95. package/src/models/operations/runagent.ts +1 -1
  96. package/src/models/operations/streamrunagent.ts +1 -1
  97. package/src/models/operations/updateagent.ts +362 -668
  98. package/src/models/operations/updatedatapoint.ts +4 -4
  99. package/src/models/operations/updatedataset.ts +1 -1
  100. package/src/models/operations/updatedatasource.ts +1 -1
  101. package/src/models/operations/updateeval.ts +16 -16
  102. package/src/models/operations/updateidentity.ts +1 -1
  103. package/src/models/operations/updatetool.ts +7 -7
@@ -1458,7 +1458,7 @@ export type CreateAgentRequestRequestBody = {
1458
1458
  /**
1459
1459
  * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1460
1460
  */
1461
- export const ResponseBodyStatus = {
1461
+ export const CreateAgentRequestStatus = {
1462
1462
  Live: "live",
1463
1463
  Draft: "draft",
1464
1464
  Pending: "pending",
@@ -1467,9 +1467,11 @@ export const ResponseBodyStatus = {
1467
1467
  /**
1468
1468
  * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1469
1469
  */
1470
- export type ResponseBodyStatus = ClosedEnum<typeof ResponseBodyStatus>;
1470
+ export type CreateAgentRequestStatus = ClosedEnum<
1471
+ typeof CreateAgentRequestStatus
1472
+ >;
1471
1473
 
1472
- export type CreateAgentRequestResponseBodyTeamOfAgents = {
1474
+ export type CreateAgentRequestTeamOfAgents = {
1473
1475
  /**
1474
1476
  * The unique key of the agent within the workspace
1475
1477
  */
@@ -1480,175 +1482,42 @@ export type CreateAgentRequestResponseBodyTeamOfAgents = {
1480
1482
  role?: string | undefined;
1481
1483
  };
1482
1484
 
1483
- export type CreateAgentRequestResponseBodyMetrics = {
1485
+ export type CreateAgentRequestMetrics = {
1484
1486
  totalCost: number;
1485
1487
  };
1486
1488
 
1487
- export type CreateAgentRequestResponseBodyKnowledgeBases = {
1489
+ export type CreateAgentRequestKnowledgeBases = {
1488
1490
  /**
1489
1491
  * Unique identifier of the knowledge base to search
1490
1492
  */
1491
1493
  knowledgeId: string;
1492
1494
  };
1493
1495
 
1494
- export const CreateAgentRequestResponseBodySource = {
1496
+ export const CreateAgentRequestSource = {
1495
1497
  Internal: "internal",
1496
1498
  External: "external",
1497
1499
  Experiment: "experiment",
1498
1500
  } as const;
1499
- export type CreateAgentRequestResponseBodySource = ClosedEnum<
1500
- typeof CreateAgentRequestResponseBodySource
1501
+ export type CreateAgentRequestSource = ClosedEnum<
1502
+ typeof CreateAgentRequestSource
1501
1503
  >;
1502
1504
 
1503
- export type ResponseBodyHeaders = {
1504
- /**
1505
- * Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
1506
- */
1507
- value: string;
1508
- encrypted: boolean;
1509
- };
1510
-
1511
1505
  /**
1512
- * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
1506
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1513
1507
  */
1514
- export type A2AAgentConfiguration = {
1515
- /**
1516
- * The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
1517
- */
1518
- agentUrl: string;
1519
- /**
1520
- * Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
1521
- */
1522
- cardUrl?: string | undefined;
1523
- /**
1524
- * HTTP headers for A2A agent requests with encryption support (max 20 headers). **Update behavior**: Empty string values preserve existing encrypted headers, allowing partial updates without credential re-entry.
1525
- */
1526
- headers?: { [k: string]: ResponseBodyHeaders } | undefined;
1527
- /**
1528
- * Cached agent card from discovery. Refreshed periodically.
1529
- */
1530
- cachedCard?: any | undefined;
1531
- };
1532
-
1533
- export type ResponseBody2 = {
1534
- id: string;
1535
- /**
1536
- * Unique identifier for the agent within the workspace
1537
- */
1538
- key: string;
1539
- displayName?: string | undefined;
1540
- projectId: string;
1541
- createdById?: string | null | undefined;
1542
- updatedById?: string | null | undefined;
1543
- created?: string | undefined;
1544
- updated?: string | undefined;
1545
- /**
1546
- * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1547
- */
1548
- status: ResponseBodyStatus;
1549
- versionHash?: string | undefined;
1550
- /**
1551
- * Entity storage path in the format: `project/folder/subfolder/...`
1552
- *
1553
- * @remarks
1554
- *
1555
- * The first element identifies the project, followed by nested folders (auto-created as needed).
1556
- *
1557
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1558
- */
1559
- path: string;
1560
- /**
1561
- * Array of memory store identifiers. Accepts both memory store IDs and keys.
1562
- */
1563
- memoryStores?: Array<string> | undefined;
1564
- /**
1565
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1566
- */
1567
- teamOfAgents?: Array<CreateAgentRequestResponseBodyTeamOfAgents> | undefined;
1568
- metrics?: CreateAgentRequestResponseBodyMetrics | undefined;
1569
- /**
1570
- * Extracted variables from agent instructions
1571
- */
1572
- variables?: { [k: string]: any } | undefined;
1573
- /**
1574
- * Agent knowledge bases reference
1575
- */
1576
- knowledgeBases?:
1577
- | Array<CreateAgentRequestResponseBodyKnowledgeBases>
1578
- | undefined;
1579
- source?: CreateAgentRequestResponseBodySource | undefined;
1580
- /**
1581
- * External A2A-compliant agent
1582
- */
1583
- type: "a2a";
1584
- /**
1585
- * Role fetched from agent card name or user-provided
1586
- */
1587
- role: string;
1588
- /**
1589
- * Description fetched from agent card or user-provided
1590
- */
1591
- description: string;
1592
- systemPrompt?: string | undefined;
1593
- /**
1594
- * Instructions from agent card description or user-provided
1595
- */
1596
- instructions: string;
1597
- /**
1598
- * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
1599
- */
1600
- a2a: A2AAgentConfiguration;
1601
- };
1602
-
1603
- /**
1604
- * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1605
- */
1606
- export const CreateAgentRequestResponseBodyStatus = {
1607
- Live: "live",
1608
- Draft: "draft",
1609
- Pending: "pending",
1610
- Published: "published",
1508
+ export const CreateAgentRequestType = {
1509
+ Internal: "internal",
1510
+ A2a: "a2a",
1611
1511
  } as const;
1612
1512
  /**
1613
- * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1513
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1614
1514
  */
1615
- export type CreateAgentRequestResponseBodyStatus = ClosedEnum<
1616
- typeof CreateAgentRequestResponseBodyStatus
1617
- >;
1618
-
1619
- export type ResponseBodyTeamOfAgents = {
1620
- /**
1621
- * The unique key of the agent within the workspace
1622
- */
1623
- key: string;
1624
- /**
1625
- * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1626
- */
1627
- role?: string | undefined;
1628
- };
1629
-
1630
- export type ResponseBodyMetrics = {
1631
- totalCost: number;
1632
- };
1633
-
1634
- export type ResponseBodyKnowledgeBases = {
1635
- /**
1636
- * Unique identifier of the knowledge base to search
1637
- */
1638
- knowledgeId: string;
1639
- };
1640
-
1641
- export const ResponseBodySource = {
1642
- Internal: "internal",
1643
- External: "external",
1644
- Experiment: "experiment",
1645
- } as const;
1646
- export type ResponseBodySource = ClosedEnum<typeof ResponseBodySource>;
1515
+ export type CreateAgentRequestType = ClosedEnum<typeof CreateAgentRequestType>;
1647
1516
 
1648
1517
  /**
1649
1518
  * 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.
1650
1519
  */
1651
- export const ResponseBodyToolApprovalRequired = {
1520
+ export const CreateAgentRequestToolApprovalRequired = {
1652
1521
  All: "all",
1653
1522
  RespectTool: "respect_tool",
1654
1523
  None: "none",
@@ -1656,8 +1525,8 @@ export const ResponseBodyToolApprovalRequired = {
1656
1525
  /**
1657
1526
  * 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.
1658
1527
  */
1659
- export type ResponseBodyToolApprovalRequired = ClosedEnum<
1660
- typeof ResponseBodyToolApprovalRequired
1528
+ export type CreateAgentRequestToolApprovalRequired = ClosedEnum<
1529
+ typeof CreateAgentRequestToolApprovalRequired
1661
1530
  >;
1662
1531
 
1663
1532
  export type Conditions = {
@@ -1675,7 +1544,7 @@ export type Conditions = {
1675
1544
  value: string;
1676
1545
  };
1677
1546
 
1678
- export type ResponseBodyTools = {
1547
+ export type CreateAgentRequestTools = {
1679
1548
  /**
1680
1549
  * The id of the resource
1681
1550
  */
@@ -1705,16 +1574,18 @@ export type ResponseBodyTools = {
1705
1574
  /**
1706
1575
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1707
1576
  */
1708
- export const ResponseBodyExecuteOn = {
1577
+ export const CreateAgentRequestAgentsResponseExecuteOn = {
1709
1578
  Input: "input",
1710
1579
  Output: "output",
1711
1580
  } as const;
1712
1581
  /**
1713
1582
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1714
1583
  */
1715
- export type ResponseBodyExecuteOn = ClosedEnum<typeof ResponseBodyExecuteOn>;
1584
+ export type CreateAgentRequestAgentsResponseExecuteOn = ClosedEnum<
1585
+ typeof CreateAgentRequestAgentsResponseExecuteOn
1586
+ >;
1716
1587
 
1717
- export type ResponseBodyEvaluators = {
1588
+ export type CreateAgentRequestEvaluators = {
1718
1589
  /**
1719
1590
  * Unique key or identifier of the evaluator
1720
1591
  */
@@ -1726,24 +1597,24 @@ export type ResponseBodyEvaluators = {
1726
1597
  /**
1727
1598
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1728
1599
  */
1729
- executeOn: ResponseBodyExecuteOn;
1600
+ executeOn: CreateAgentRequestAgentsResponseExecuteOn;
1730
1601
  };
1731
1602
 
1732
1603
  /**
1733
1604
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1734
1605
  */
1735
- export const CreateAgentRequestResponseBodyExecuteOn = {
1606
+ export const CreateAgentRequestAgentsResponse201ExecuteOn = {
1736
1607
  Input: "input",
1737
1608
  Output: "output",
1738
1609
  } as const;
1739
1610
  /**
1740
1611
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1741
1612
  */
1742
- export type CreateAgentRequestResponseBodyExecuteOn = ClosedEnum<
1743
- typeof CreateAgentRequestResponseBodyExecuteOn
1613
+ export type CreateAgentRequestAgentsResponse201ExecuteOn = ClosedEnum<
1614
+ typeof CreateAgentRequestAgentsResponse201ExecuteOn
1744
1615
  >;
1745
1616
 
1746
- export type ResponseBodyGuardrails = {
1617
+ export type CreateAgentRequestAgentsGuardrails = {
1747
1618
  /**
1748
1619
  * Unique key or identifier of the evaluator
1749
1620
  */
@@ -1755,10 +1626,10 @@ export type ResponseBodyGuardrails = {
1755
1626
  /**
1756
1627
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1757
1628
  */
1758
- executeOn: CreateAgentRequestResponseBodyExecuteOn;
1629
+ executeOn: CreateAgentRequestAgentsResponse201ExecuteOn;
1759
1630
  };
1760
1631
 
1761
- export type ResponseBodySettings = {
1632
+ export type CreateAgentRequestSettings = {
1762
1633
  /**
1763
1634
  * Maximum iterations(llm calls) before the agent will stop executing.
1764
1635
  */
@@ -1774,16 +1645,16 @@ export type ResponseBodySettings = {
1774
1645
  /**
1775
1646
  * 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.
1776
1647
  */
1777
- toolApprovalRequired: ResponseBodyToolApprovalRequired;
1778
- tools?: Array<ResponseBodyTools> | undefined;
1648
+ toolApprovalRequired: CreateAgentRequestToolApprovalRequired;
1649
+ tools?: Array<CreateAgentRequestTools> | undefined;
1779
1650
  /**
1780
1651
  * Configuration for an evaluator applied to the agent
1781
1652
  */
1782
- evaluators?: Array<ResponseBodyEvaluators> | undefined;
1653
+ evaluators?: Array<CreateAgentRequestEvaluators> | undefined;
1783
1654
  /**
1784
1655
  * Configuration for a guardrail applied to the agent
1785
1656
  */
1786
- guardrails?: Array<ResponseBodyGuardrails> | undefined;
1657
+ guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
1787
1658
  };
1788
1659
 
1789
1660
  export type CreateAgentRequestResponseFormatAgentsResponseJsonSchema = {
@@ -1836,7 +1707,7 @@ export type CreateAgentRequestResponseFormatText = {
1836
1707
  /**
1837
1708
  * An object specifying the format that the model must output
1838
1709
  */
1839
- export type ResponseBodyResponseFormat =
1710
+ export type CreateAgentRequestResponseFormat =
1840
1711
  | CreateAgentRequestResponseFormatText
1841
1712
  | CreateAgentRequestResponseFormatJSONObject
1842
1713
  | CreateAgentRequestResponseFormatAgentsResponse201JSONSchema;
@@ -1853,7 +1724,7 @@ export type ResponseBodyResponseFormat =
1853
1724
  *
1854
1725
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1855
1726
  */
1856
- export const ResponseBodyReasoningEffort = {
1727
+ export const CreateAgentRequestReasoningEffort = {
1857
1728
  None: "none",
1858
1729
  Minimal: "minimal",
1859
1730
  Low: "low",
@@ -1873,16 +1744,16 @@ export const ResponseBodyReasoningEffort = {
1873
1744
  *
1874
1745
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1875
1746
  */
1876
- export type ResponseBodyReasoningEffort = ClosedEnum<
1877
- typeof ResponseBodyReasoningEffort
1747
+ export type CreateAgentRequestReasoningEffort = ClosedEnum<
1748
+ typeof CreateAgentRequestReasoningEffort
1878
1749
  >;
1879
1750
 
1880
1751
  /**
1881
1752
  * Up to 4 sequences where the API will stop generating further tokens.
1882
1753
  */
1883
- export type ResponseBodyStop = string | Array<string>;
1754
+ export type CreateAgentRequestStop = string | Array<string>;
1884
1755
 
1885
- export type ResponseBodyThinking =
1756
+ export type CreateAgentRequestThinking =
1886
1757
  | components.ThinkingConfigDisabledSchema
1887
1758
  | components.ThinkingConfigEnabledSchema;
1888
1759
 
@@ -1926,15 +1797,17 @@ export type CreateAgentRequestToolChoiceAgents1 = ClosedEnum<
1926
1797
  /**
1927
1798
  * Controls which (if any) tool is called by the model.
1928
1799
  */
1929
- export type ResponseBodyToolChoice =
1800
+ export type CreateAgentRequestToolChoice =
1930
1801
  | CreateAgentRequestToolChoiceAgents2
1931
1802
  | CreateAgentRequestToolChoiceAgents1;
1932
1803
 
1933
- export const ResponseBodyModalities = {
1804
+ export const CreateAgentRequestModalities = {
1934
1805
  Text: "text",
1935
1806
  Audio: "audio",
1936
1807
  } as const;
1937
- export type ResponseBodyModalities = ClosedEnum<typeof ResponseBodyModalities>;
1808
+ export type CreateAgentRequestModalities = ClosedEnum<
1809
+ typeof CreateAgentRequestModalities
1810
+ >;
1938
1811
 
1939
1812
  /**
1940
1813
  * The key of the guardrail.
@@ -1951,53 +1824,54 @@ export type CreateAgentRequestIdAgents1 = ClosedEnum<
1951
1824
  typeof CreateAgentRequestIdAgents1
1952
1825
  >;
1953
1826
 
1954
- export type ResponseBodyId = CreateAgentRequestIdAgents1 | string;
1827
+ export type CreateAgentRequestId = CreateAgentRequestIdAgents1 | string;
1955
1828
 
1956
1829
  /**
1957
1830
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1958
1831
  */
1959
- export const CreateAgentRequestResponseBodyAgentsExecuteOn = {
1832
+ export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn = {
1960
1833
  Input: "input",
1961
1834
  Output: "output",
1962
1835
  } as const;
1963
1836
  /**
1964
1837
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1965
1838
  */
1966
- export type CreateAgentRequestResponseBodyAgentsExecuteOn = ClosedEnum<
1967
- typeof CreateAgentRequestResponseBodyAgentsExecuteOn
1968
- >;
1839
+ export type CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn =
1840
+ ClosedEnum<
1841
+ typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
1842
+ >;
1969
1843
 
1970
- export type CreateAgentRequestResponseBodyGuardrails = {
1844
+ export type CreateAgentRequestAgentsResponseGuardrails = {
1971
1845
  id: CreateAgentRequestIdAgents1 | string;
1972
1846
  /**
1973
1847
  * Determines whether the guardrail runs on the input (user message) or output (model response).
1974
1848
  */
1975
- executeOn: CreateAgentRequestResponseBodyAgentsExecuteOn;
1849
+ executeOn: CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn;
1976
1850
  };
1977
1851
 
1978
- export type ResponseBodyFallbacks = {
1852
+ export type CreateAgentRequestFallbacks = {
1979
1853
  /**
1980
1854
  * Fallback model identifier
1981
1855
  */
1982
1856
  model: string;
1983
1857
  };
1984
1858
 
1985
- export const CreateAgentRequestResponseBodyAgentsResponseType = {
1859
+ export const CreateAgentRequestAgentsType = {
1986
1860
  ExactMatch: "exact_match",
1987
1861
  } as const;
1988
- export type CreateAgentRequestResponseBodyAgentsResponseType = ClosedEnum<
1989
- typeof CreateAgentRequestResponseBodyAgentsResponseType
1862
+ export type CreateAgentRequestAgentsType = ClosedEnum<
1863
+ typeof CreateAgentRequestAgentsType
1990
1864
  >;
1991
1865
 
1992
1866
  /**
1993
1867
  * Cache configuration for the request.
1994
1868
  */
1995
- export type ResponseBodyCache = {
1869
+ export type CreateAgentRequestCache = {
1996
1870
  /**
1997
1871
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
1998
1872
  */
1999
1873
  ttl: number;
2000
- type: CreateAgentRequestResponseBodyAgentsResponseType;
1874
+ type: CreateAgentRequestAgentsType;
2001
1875
  };
2002
1876
 
2003
1877
  export const CreateAgentRequestLoadBalancerAgentsType = {
@@ -2026,12 +1900,13 @@ export type CreateAgentRequestLoadBalancerAgents1 = {
2026
1900
  /**
2027
1901
  * Load balancer configuration for the request.
2028
1902
  */
2029
- export type ResponseBodyLoadBalancer = CreateAgentRequestLoadBalancerAgents1;
1903
+ export type CreateAgentRequestLoadBalancer =
1904
+ CreateAgentRequestLoadBalancerAgents1;
2030
1905
 
2031
1906
  /**
2032
1907
  * 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.
2033
1908
  */
2034
- export type ResponseBodyTimeout = {
1909
+ export type CreateAgentRequestTimeout = {
2035
1910
  /**
2036
1911
  * Timeout value in milliseconds
2037
1912
  */
@@ -2041,7 +1916,7 @@ export type ResponseBodyTimeout = {
2041
1916
  /**
2042
1917
  * 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.
2043
1918
  */
2044
- export type ResponseBodyParameters = {
1919
+ export type CreateAgentRequestParameters = {
2045
1920
  /**
2046
1921
  * The name to display on the trace. If not specified, the default system name will be used.
2047
1922
  */
@@ -2086,7 +1961,7 @@ export type ResponseBodyParameters = {
2086
1961
  *
2087
1962
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
2088
1963
  */
2089
- reasoningEffort?: ResponseBodyReasoningEffort | undefined;
1964
+ reasoningEffort?: CreateAgentRequestReasoningEffort | undefined;
2090
1965
  /**
2091
1966
  * Adjusts response verbosity. Lower levels yield shorter answers.
2092
1967
  */
@@ -2129,19 +2004,19 @@ export type ResponseBodyParameters = {
2129
2004
  /**
2130
2005
  * 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"].
2131
2006
  */
2132
- modalities?: Array<ResponseBodyModalities> | null | undefined;
2007
+ modalities?: Array<CreateAgentRequestModalities> | null | undefined;
2133
2008
  /**
2134
2009
  * A list of guardrails to apply to the request.
2135
2010
  */
2136
- guardrails?: Array<CreateAgentRequestResponseBodyGuardrails> | undefined;
2011
+ guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
2137
2012
  /**
2138
2013
  * Array of fallback models to use if primary model fails
2139
2014
  */
2140
- fallbacks?: Array<ResponseBodyFallbacks> | undefined;
2015
+ fallbacks?: Array<CreateAgentRequestFallbacks> | undefined;
2141
2016
  /**
2142
2017
  * Cache configuration for the request.
2143
2018
  */
2144
- cache?: ResponseBodyCache | undefined;
2019
+ cache?: CreateAgentRequestCache | undefined;
2145
2020
  /**
2146
2021
  * Load balancer configuration for the request.
2147
2022
  */
@@ -2149,13 +2024,13 @@ export type ResponseBodyParameters = {
2149
2024
  /**
2150
2025
  * 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.
2151
2026
  */
2152
- timeout?: ResponseBodyTimeout | undefined;
2027
+ timeout?: CreateAgentRequestTimeout | undefined;
2153
2028
  };
2154
2029
 
2155
2030
  /**
2156
2031
  * 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).
2157
2032
  */
2158
- export type ResponseBodyRetry = {
2033
+ export type CreateAgentRequestRetry = {
2159
2034
  /**
2160
2035
  * Number of retry attempts (1-5)
2161
2036
  */
@@ -2589,7 +2464,7 @@ export type CreateAgentRequestFallbackModelConfiguration2 = {
2589
2464
  /**
2590
2465
  * 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.
2591
2466
  */
2592
- export type ResponseBodyFallbackModelConfiguration =
2467
+ export type CreateAgentRequestFallbackModelConfiguration =
2593
2468
  | CreateAgentRequestFallbackModelConfiguration2
2594
2469
  | string;
2595
2470
 
@@ -2605,11 +2480,11 @@ export type Model = {
2605
2480
  /**
2606
2481
  * 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.
2607
2482
  */
2608
- parameters?: ResponseBodyParameters | undefined;
2483
+ parameters?: CreateAgentRequestParameters | undefined;
2609
2484
  /**
2610
2485
  * 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).
2611
2486
  */
2612
- retry?: ResponseBodyRetry | undefined;
2487
+ retry?: CreateAgentRequestRetry | undefined;
2613
2488
  /**
2614
2489
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
2615
2490
  */
@@ -2619,7 +2494,40 @@ export type Model = {
2619
2494
  | undefined;
2620
2495
  };
2621
2496
 
2622
- export type ResponseBody1 = {
2497
+ export type CreateAgentRequestHeaders = {
2498
+ /**
2499
+ * 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.
2500
+ */
2501
+ value: string;
2502
+ encrypted: boolean;
2503
+ };
2504
+
2505
+ /**
2506
+ * A2A configuration with agent endpoint and authentication. Only present for A2A agents.
2507
+ */
2508
+ export type A2AAgentConfiguration = {
2509
+ /**
2510
+ * The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
2511
+ */
2512
+ agentUrl: string;
2513
+ /**
2514
+ * Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
2515
+ */
2516
+ cardUrl?: string | undefined;
2517
+ /**
2518
+ * 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.
2519
+ */
2520
+ headers?: { [k: string]: CreateAgentRequestHeaders } | undefined;
2521
+ /**
2522
+ * Cached agent card from discovery. Refreshed periodically.
2523
+ */
2524
+ cachedCard?: any | undefined;
2525
+ };
2526
+
2527
+ /**
2528
+ * Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
2529
+ */
2530
+ export type CreateAgentRequestResponseBody = {
2623
2531
  id: string;
2624
2532
  /**
2625
2533
  * Unique identifier for the agent within the workspace
@@ -2634,7 +2542,7 @@ export type ResponseBody1 = {
2634
2542
  /**
2635
2543
  * 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.
2636
2544
  */
2637
- status: CreateAgentRequestResponseBodyStatus;
2545
+ status: CreateAgentRequestStatus;
2638
2546
  versionHash?: string | undefined;
2639
2547
  /**
2640
2548
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -2653,8 +2561,8 @@ export type ResponseBody1 = {
2653
2561
  /**
2654
2562
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
2655
2563
  */
2656
- teamOfAgents?: Array<ResponseBodyTeamOfAgents> | undefined;
2657
- metrics?: ResponseBodyMetrics | undefined;
2564
+ teamOfAgents?: Array<CreateAgentRequestTeamOfAgents> | undefined;
2565
+ metrics?: CreateAgentRequestMetrics | undefined;
2658
2566
  /**
2659
2567
  * Extracted variables from agent instructions
2660
2568
  */
@@ -2662,25 +2570,24 @@ export type ResponseBody1 = {
2662
2570
  /**
2663
2571
  * Agent knowledge bases reference
2664
2572
  */
2665
- knowledgeBases?: Array<ResponseBodyKnowledgeBases> | undefined;
2666
- source?: ResponseBodySource | undefined;
2573
+ knowledgeBases?: Array<CreateAgentRequestKnowledgeBases> | undefined;
2574
+ source?: CreateAgentRequestSource | undefined;
2667
2575
  /**
2668
- * Orquesta-managed agent
2576
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
2669
2577
  */
2670
- type: "internal";
2578
+ type: CreateAgentRequestType;
2671
2579
  role: string;
2672
2580
  description: string;
2673
2581
  systemPrompt?: string | undefined;
2674
2582
  instructions: string;
2675
- settings?: ResponseBodySettings | undefined;
2583
+ settings?: CreateAgentRequestSettings | undefined;
2676
2584
  model: Model;
2585
+ /**
2586
+ * A2A configuration with agent endpoint and authentication. Only present for A2A agents.
2587
+ */
2588
+ a2a?: A2AAgentConfiguration | undefined;
2677
2589
  };
2678
2590
 
2679
- /**
2680
- * Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
2681
- */
2682
- export type CreateAgentRequestResponseBody = ResponseBody1 | ResponseBody2;
2683
-
2684
2591
  /** @internal */
2685
2592
  export type ResponseFormatJsonSchema$Outbound = {
2686
2593
  description?: string | undefined;
@@ -4849,210 +4756,13 @@ export function createAgentRequestRequestBodyToJSON(
4849
4756
  }
4850
4757
 
4851
4758
  /** @internal */
4852
- export const ResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
4853
- typeof ResponseBodyStatus
4854
- > = z.nativeEnum(ResponseBodyStatus);
4759
+ export const CreateAgentRequestStatus$inboundSchema: z.ZodNativeEnum<
4760
+ typeof CreateAgentRequestStatus
4761
+ > = z.nativeEnum(CreateAgentRequestStatus);
4855
4762
 
4856
4763
  /** @internal */
4857
- export const CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema:
4858
- z.ZodType<CreateAgentRequestResponseBodyTeamOfAgents, z.ZodTypeDef, unknown> =
4859
- z.object({
4860
- key: z.string(),
4861
- role: z.string().optional(),
4862
- });
4863
-
4864
- export function createAgentRequestResponseBodyTeamOfAgentsFromJSON(
4865
- jsonString: string,
4866
- ): SafeParseResult<
4867
- CreateAgentRequestResponseBodyTeamOfAgents,
4868
- SDKValidationError
4869
- > {
4870
- return safeParse(
4871
- jsonString,
4872
- (x) =>
4873
- CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema.parse(
4874
- JSON.parse(x),
4875
- ),
4876
- `Failed to parse 'CreateAgentRequestResponseBodyTeamOfAgents' from JSON`,
4877
- );
4878
- }
4879
-
4880
- /** @internal */
4881
- export const CreateAgentRequestResponseBodyMetrics$inboundSchema: z.ZodType<
4882
- CreateAgentRequestResponseBodyMetrics,
4883
- z.ZodTypeDef,
4884
- unknown
4885
- > = z.object({
4886
- total_cost: z.number().default(0),
4887
- }).transform((v) => {
4888
- return remap$(v, {
4889
- "total_cost": "totalCost",
4890
- });
4891
- });
4892
-
4893
- export function createAgentRequestResponseBodyMetricsFromJSON(
4894
- jsonString: string,
4895
- ): SafeParseResult<CreateAgentRequestResponseBodyMetrics, SDKValidationError> {
4896
- return safeParse(
4897
- jsonString,
4898
- (x) =>
4899
- CreateAgentRequestResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
4900
- `Failed to parse 'CreateAgentRequestResponseBodyMetrics' from JSON`,
4901
- );
4902
- }
4903
-
4904
- /** @internal */
4905
- export const CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema:
4906
- z.ZodType<
4907
- CreateAgentRequestResponseBodyKnowledgeBases,
4908
- z.ZodTypeDef,
4909
- unknown
4910
- > = z.object({
4911
- knowledge_id: z.string(),
4912
- }).transform((v) => {
4913
- return remap$(v, {
4914
- "knowledge_id": "knowledgeId",
4915
- });
4916
- });
4917
-
4918
- export function createAgentRequestResponseBodyKnowledgeBasesFromJSON(
4919
- jsonString: string,
4920
- ): SafeParseResult<
4921
- CreateAgentRequestResponseBodyKnowledgeBases,
4922
- SDKValidationError
4923
- > {
4924
- return safeParse(
4925
- jsonString,
4926
- (x) =>
4927
- CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema.parse(
4928
- JSON.parse(x),
4929
- ),
4930
- `Failed to parse 'CreateAgentRequestResponseBodyKnowledgeBases' from JSON`,
4931
- );
4932
- }
4933
-
4934
- /** @internal */
4935
- export const CreateAgentRequestResponseBodySource$inboundSchema:
4936
- z.ZodNativeEnum<typeof CreateAgentRequestResponseBodySource> = z.nativeEnum(
4937
- CreateAgentRequestResponseBodySource,
4938
- );
4939
-
4940
- /** @internal */
4941
- export const ResponseBodyHeaders$inboundSchema: z.ZodType<
4942
- ResponseBodyHeaders,
4943
- z.ZodTypeDef,
4944
- unknown
4945
- > = z.object({
4946
- value: z.string(),
4947
- encrypted: z.boolean().default(false),
4948
- });
4949
-
4950
- export function responseBodyHeadersFromJSON(
4951
- jsonString: string,
4952
- ): SafeParseResult<ResponseBodyHeaders, SDKValidationError> {
4953
- return safeParse(
4954
- jsonString,
4955
- (x) => ResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
4956
- `Failed to parse 'ResponseBodyHeaders' from JSON`,
4957
- );
4958
- }
4959
-
4960
- /** @internal */
4961
- export const A2AAgentConfiguration$inboundSchema: z.ZodType<
4962
- A2AAgentConfiguration,
4963
- z.ZodTypeDef,
4964
- unknown
4965
- > = z.object({
4966
- agent_url: z.string(),
4967
- card_url: z.string().optional(),
4968
- headers: z.record(z.lazy(() => ResponseBodyHeaders$inboundSchema)).optional(),
4969
- cached_card: z.any().optional(),
4970
- }).transform((v) => {
4971
- return remap$(v, {
4972
- "agent_url": "agentUrl",
4973
- "card_url": "cardUrl",
4974
- "cached_card": "cachedCard",
4975
- });
4976
- });
4977
-
4978
- export function a2AAgentConfigurationFromJSON(
4979
- jsonString: string,
4980
- ): SafeParseResult<A2AAgentConfiguration, SDKValidationError> {
4981
- return safeParse(
4982
- jsonString,
4983
- (x) => A2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
4984
- `Failed to parse 'A2AAgentConfiguration' from JSON`,
4985
- );
4986
- }
4987
-
4988
- /** @internal */
4989
- export const ResponseBody2$inboundSchema: z.ZodType<
4990
- ResponseBody2,
4991
- z.ZodTypeDef,
4992
- unknown
4993
- > = z.object({
4994
- _id: z.string(),
4995
- key: z.string(),
4996
- display_name: z.string().optional(),
4997
- project_id: z.string(),
4998
- created_by_id: z.nullable(z.string()).optional(),
4999
- updated_by_id: z.nullable(z.string()).optional(),
5000
- created: z.string().optional(),
5001
- updated: z.string().optional(),
5002
- status: ResponseBodyStatus$inboundSchema,
5003
- version_hash: z.string().optional(),
5004
- path: z.string(),
5005
- memory_stores: z.array(z.string()).optional(),
5006
- team_of_agents: z.array(
5007
- z.lazy(() => CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema),
5008
- ).optional(),
5009
- metrics: z.lazy(() => CreateAgentRequestResponseBodyMetrics$inboundSchema)
5010
- .optional(),
5011
- variables: z.record(z.any()).optional(),
5012
- knowledge_bases: z.array(
5013
- z.lazy(() => CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema),
5014
- ).optional(),
5015
- source: CreateAgentRequestResponseBodySource$inboundSchema.optional(),
5016
- type: z.literal("a2a"),
5017
- role: z.string(),
5018
- description: z.string(),
5019
- system_prompt: z.string().optional(),
5020
- instructions: z.string(),
5021
- a2a: z.lazy(() => A2AAgentConfiguration$inboundSchema),
5022
- }).transform((v) => {
5023
- return remap$(v, {
5024
- "_id": "id",
5025
- "display_name": "displayName",
5026
- "project_id": "projectId",
5027
- "created_by_id": "createdById",
5028
- "updated_by_id": "updatedById",
5029
- "version_hash": "versionHash",
5030
- "memory_stores": "memoryStores",
5031
- "team_of_agents": "teamOfAgents",
5032
- "knowledge_bases": "knowledgeBases",
5033
- "system_prompt": "systemPrompt",
5034
- });
5035
- });
5036
-
5037
- export function responseBody2FromJSON(
5038
- jsonString: string,
5039
- ): SafeParseResult<ResponseBody2, SDKValidationError> {
5040
- return safeParse(
5041
- jsonString,
5042
- (x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
5043
- `Failed to parse 'ResponseBody2' from JSON`,
5044
- );
5045
- }
5046
-
5047
- /** @internal */
5048
- export const CreateAgentRequestResponseBodyStatus$inboundSchema:
5049
- z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyStatus> = z.nativeEnum(
5050
- CreateAgentRequestResponseBodyStatus,
5051
- );
5052
-
5053
- /** @internal */
5054
- export const ResponseBodyTeamOfAgents$inboundSchema: z.ZodType<
5055
- ResponseBodyTeamOfAgents,
4764
+ export const CreateAgentRequestTeamOfAgents$inboundSchema: z.ZodType<
4765
+ CreateAgentRequestTeamOfAgents,
5056
4766
  z.ZodTypeDef,
5057
4767
  unknown
5058
4768
  > = z.object({
@@ -5060,19 +4770,19 @@ export const ResponseBodyTeamOfAgents$inboundSchema: z.ZodType<
5060
4770
  role: z.string().optional(),
5061
4771
  });
5062
4772
 
5063
- export function responseBodyTeamOfAgentsFromJSON(
4773
+ export function createAgentRequestTeamOfAgentsFromJSON(
5064
4774
  jsonString: string,
5065
- ): SafeParseResult<ResponseBodyTeamOfAgents, SDKValidationError> {
4775
+ ): SafeParseResult<CreateAgentRequestTeamOfAgents, SDKValidationError> {
5066
4776
  return safeParse(
5067
4777
  jsonString,
5068
- (x) => ResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
5069
- `Failed to parse 'ResponseBodyTeamOfAgents' from JSON`,
4778
+ (x) => CreateAgentRequestTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
4779
+ `Failed to parse 'CreateAgentRequestTeamOfAgents' from JSON`,
5070
4780
  );
5071
4781
  }
5072
4782
 
5073
4783
  /** @internal */
5074
- export const ResponseBodyMetrics$inboundSchema: z.ZodType<
5075
- ResponseBodyMetrics,
4784
+ export const CreateAgentRequestMetrics$inboundSchema: z.ZodType<
4785
+ CreateAgentRequestMetrics,
5076
4786
  z.ZodTypeDef,
5077
4787
  unknown
5078
4788
  > = z.object({
@@ -5083,19 +4793,19 @@ export const ResponseBodyMetrics$inboundSchema: z.ZodType<
5083
4793
  });
5084
4794
  });
5085
4795
 
5086
- export function responseBodyMetricsFromJSON(
4796
+ export function createAgentRequestMetricsFromJSON(
5087
4797
  jsonString: string,
5088
- ): SafeParseResult<ResponseBodyMetrics, SDKValidationError> {
4798
+ ): SafeParseResult<CreateAgentRequestMetrics, SDKValidationError> {
5089
4799
  return safeParse(
5090
4800
  jsonString,
5091
- (x) => ResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
5092
- `Failed to parse 'ResponseBodyMetrics' from JSON`,
4801
+ (x) => CreateAgentRequestMetrics$inboundSchema.parse(JSON.parse(x)),
4802
+ `Failed to parse 'CreateAgentRequestMetrics' from JSON`,
5093
4803
  );
5094
4804
  }
5095
4805
 
5096
4806
  /** @internal */
5097
- export const ResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
5098
- ResponseBodyKnowledgeBases,
4807
+ export const CreateAgentRequestKnowledgeBases$inboundSchema: z.ZodType<
4808
+ CreateAgentRequestKnowledgeBases,
5099
4809
  z.ZodTypeDef,
5100
4810
  unknown
5101
4811
  > = z.object({
@@ -5106,25 +4816,31 @@ export const ResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
5106
4816
  });
5107
4817
  });
5108
4818
 
5109
- export function responseBodyKnowledgeBasesFromJSON(
4819
+ export function createAgentRequestKnowledgeBasesFromJSON(
5110
4820
  jsonString: string,
5111
- ): SafeParseResult<ResponseBodyKnowledgeBases, SDKValidationError> {
4821
+ ): SafeParseResult<CreateAgentRequestKnowledgeBases, SDKValidationError> {
5112
4822
  return safeParse(
5113
4823
  jsonString,
5114
- (x) => ResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
5115
- `Failed to parse 'ResponseBodyKnowledgeBases' from JSON`,
4824
+ (x) => CreateAgentRequestKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
4825
+ `Failed to parse 'CreateAgentRequestKnowledgeBases' from JSON`,
5116
4826
  );
5117
4827
  }
5118
4828
 
5119
4829
  /** @internal */
5120
- export const ResponseBodySource$inboundSchema: z.ZodNativeEnum<
5121
- typeof ResponseBodySource
5122
- > = z.nativeEnum(ResponseBodySource);
4830
+ export const CreateAgentRequestSource$inboundSchema: z.ZodNativeEnum<
4831
+ typeof CreateAgentRequestSource
4832
+ > = z.nativeEnum(CreateAgentRequestSource);
5123
4833
 
5124
4834
  /** @internal */
5125
- export const ResponseBodyToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
5126
- typeof ResponseBodyToolApprovalRequired
5127
- > = z.nativeEnum(ResponseBodyToolApprovalRequired);
4835
+ export const CreateAgentRequestType$inboundSchema: z.ZodNativeEnum<
4836
+ typeof CreateAgentRequestType
4837
+ > = z.nativeEnum(CreateAgentRequestType);
4838
+
4839
+ /** @internal */
4840
+ export const CreateAgentRequestToolApprovalRequired$inboundSchema:
4841
+ z.ZodNativeEnum<typeof CreateAgentRequestToolApprovalRequired> = z.nativeEnum(
4842
+ CreateAgentRequestToolApprovalRequired,
4843
+ );
5128
4844
 
5129
4845
  /** @internal */
5130
4846
  export const Conditions$inboundSchema: z.ZodType<
@@ -5148,8 +4864,8 @@ export function conditionsFromJSON(
5148
4864
  }
5149
4865
 
5150
4866
  /** @internal */
5151
- export const ResponseBodyTools$inboundSchema: z.ZodType<
5152
- ResponseBodyTools,
4867
+ export const CreateAgentRequestTools$inboundSchema: z.ZodType<
4868
+ CreateAgentRequestTools,
5153
4869
  z.ZodTypeDef,
5154
4870
  unknown
5155
4871
  > = z.object({
@@ -5171,30 +4887,30 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
5171
4887
  });
5172
4888
  });
5173
4889
 
5174
- export function responseBodyToolsFromJSON(
4890
+ export function createAgentRequestToolsFromJSON(
5175
4891
  jsonString: string,
5176
- ): SafeParseResult<ResponseBodyTools, SDKValidationError> {
4892
+ ): SafeParseResult<CreateAgentRequestTools, SDKValidationError> {
5177
4893
  return safeParse(
5178
4894
  jsonString,
5179
- (x) => ResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
5180
- `Failed to parse 'ResponseBodyTools' from JSON`,
4895
+ (x) => CreateAgentRequestTools$inboundSchema.parse(JSON.parse(x)),
4896
+ `Failed to parse 'CreateAgentRequestTools' from JSON`,
5181
4897
  );
5182
4898
  }
5183
4899
 
5184
4900
  /** @internal */
5185
- export const ResponseBodyExecuteOn$inboundSchema: z.ZodNativeEnum<
5186
- typeof ResponseBodyExecuteOn
5187
- > = z.nativeEnum(ResponseBodyExecuteOn);
4901
+ export const CreateAgentRequestAgentsResponseExecuteOn$inboundSchema:
4902
+ z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponseExecuteOn> = z
4903
+ .nativeEnum(CreateAgentRequestAgentsResponseExecuteOn);
5188
4904
 
5189
4905
  /** @internal */
5190
- export const ResponseBodyEvaluators$inboundSchema: z.ZodType<
5191
- ResponseBodyEvaluators,
4906
+ export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
4907
+ CreateAgentRequestEvaluators,
5192
4908
  z.ZodTypeDef,
5193
4909
  unknown
5194
4910
  > = z.object({
5195
4911
  id: z.string(),
5196
4912
  sample_rate: z.number().default(50),
5197
- execute_on: ResponseBodyExecuteOn$inboundSchema,
4913
+ execute_on: CreateAgentRequestAgentsResponseExecuteOn$inboundSchema,
5198
4914
  }).transform((v) => {
5199
4915
  return remap$(v, {
5200
4916
  "sample_rate": "sampleRate",
@@ -5202,30 +4918,30 @@ export const ResponseBodyEvaluators$inboundSchema: z.ZodType<
5202
4918
  });
5203
4919
  });
5204
4920
 
5205
- export function responseBodyEvaluatorsFromJSON(
4921
+ export function createAgentRequestEvaluatorsFromJSON(
5206
4922
  jsonString: string,
5207
- ): SafeParseResult<ResponseBodyEvaluators, SDKValidationError> {
4923
+ ): SafeParseResult<CreateAgentRequestEvaluators, SDKValidationError> {
5208
4924
  return safeParse(
5209
4925
  jsonString,
5210
- (x) => ResponseBodyEvaluators$inboundSchema.parse(JSON.parse(x)),
5211
- `Failed to parse 'ResponseBodyEvaluators' from JSON`,
4926
+ (x) => CreateAgentRequestEvaluators$inboundSchema.parse(JSON.parse(x)),
4927
+ `Failed to parse 'CreateAgentRequestEvaluators' from JSON`,
5212
4928
  );
5213
4929
  }
5214
4930
 
5215
4931
  /** @internal */
5216
- export const CreateAgentRequestResponseBodyExecuteOn$inboundSchema:
5217
- z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyExecuteOn> = z
5218
- .nativeEnum(CreateAgentRequestResponseBodyExecuteOn);
4932
+ export const CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema:
4933
+ z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponse201ExecuteOn> = z
4934
+ .nativeEnum(CreateAgentRequestAgentsResponse201ExecuteOn);
5219
4935
 
5220
4936
  /** @internal */
5221
- export const ResponseBodyGuardrails$inboundSchema: z.ZodType<
5222
- ResponseBodyGuardrails,
4937
+ export const CreateAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
4938
+ CreateAgentRequestAgentsGuardrails,
5223
4939
  z.ZodTypeDef,
5224
4940
  unknown
5225
4941
  > = z.object({
5226
4942
  id: z.string(),
5227
4943
  sample_rate: z.number().default(50),
5228
- execute_on: CreateAgentRequestResponseBodyExecuteOn$inboundSchema,
4944
+ execute_on: CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema,
5229
4945
  }).transform((v) => {
5230
4946
  return remap$(v, {
5231
4947
  "sample_rate": "sampleRate",
@@ -5233,32 +4949,35 @@ export const ResponseBodyGuardrails$inboundSchema: z.ZodType<
5233
4949
  });
5234
4950
  });
5235
4951
 
5236
- export function responseBodyGuardrailsFromJSON(
4952
+ export function createAgentRequestAgentsGuardrailsFromJSON(
5237
4953
  jsonString: string,
5238
- ): SafeParseResult<ResponseBodyGuardrails, SDKValidationError> {
4954
+ ): SafeParseResult<CreateAgentRequestAgentsGuardrails, SDKValidationError> {
5239
4955
  return safeParse(
5240
4956
  jsonString,
5241
- (x) => ResponseBodyGuardrails$inboundSchema.parse(JSON.parse(x)),
5242
- `Failed to parse 'ResponseBodyGuardrails' from JSON`,
4957
+ (x) =>
4958
+ CreateAgentRequestAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
4959
+ `Failed to parse 'CreateAgentRequestAgentsGuardrails' from JSON`,
5243
4960
  );
5244
4961
  }
5245
4962
 
5246
4963
  /** @internal */
5247
- export const ResponseBodySettings$inboundSchema: z.ZodType<
5248
- ResponseBodySettings,
4964
+ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
4965
+ CreateAgentRequestSettings,
5249
4966
  z.ZodTypeDef,
5250
4967
  unknown
5251
4968
  > = z.object({
5252
4969
  max_iterations: z.number().int().default(100),
5253
4970
  max_execution_time: z.number().int().default(600),
5254
4971
  max_cost: z.number().default(0),
5255
- tool_approval_required: ResponseBodyToolApprovalRequired$inboundSchema
4972
+ tool_approval_required: CreateAgentRequestToolApprovalRequired$inboundSchema
5256
4973
  .default("respect_tool"),
5257
- tools: z.array(z.lazy(() => ResponseBodyTools$inboundSchema)).optional(),
5258
- evaluators: z.array(z.lazy(() => ResponseBodyEvaluators$inboundSchema))
4974
+ tools: z.array(z.lazy(() => CreateAgentRequestTools$inboundSchema))
5259
4975
  .optional(),
5260
- guardrails: z.array(z.lazy(() => ResponseBodyGuardrails$inboundSchema))
4976
+ evaluators: z.array(z.lazy(() => CreateAgentRequestEvaluators$inboundSchema))
5261
4977
  .optional(),
4978
+ guardrails: z.array(
4979
+ z.lazy(() => CreateAgentRequestAgentsGuardrails$inboundSchema),
4980
+ ).optional(),
5262
4981
  }).transform((v) => {
5263
4982
  return remap$(v, {
5264
4983
  "max_iterations": "maxIterations",
@@ -5268,13 +4987,13 @@ export const ResponseBodySettings$inboundSchema: z.ZodType<
5268
4987
  });
5269
4988
  });
5270
4989
 
5271
- export function responseBodySettingsFromJSON(
4990
+ export function createAgentRequestSettingsFromJSON(
5272
4991
  jsonString: string,
5273
- ): SafeParseResult<ResponseBodySettings, SDKValidationError> {
4992
+ ): SafeParseResult<CreateAgentRequestSettings, SDKValidationError> {
5274
4993
  return safeParse(
5275
4994
  jsonString,
5276
- (x) => ResponseBodySettings$inboundSchema.parse(JSON.parse(x)),
5277
- `Failed to parse 'ResponseBodySettings' from JSON`,
4995
+ (x) => CreateAgentRequestSettings$inboundSchema.parse(JSON.parse(x)),
4996
+ `Failed to parse 'CreateAgentRequestSettings' from JSON`,
5278
4997
  );
5279
4998
  }
5280
4999
 
@@ -5382,8 +5101,8 @@ export function createAgentRequestResponseFormatTextFromJSON(
5382
5101
  }
5383
5102
 
5384
5103
  /** @internal */
5385
- export const ResponseBodyResponseFormat$inboundSchema: z.ZodType<
5386
- ResponseBodyResponseFormat,
5104
+ export const CreateAgentRequestResponseFormat$inboundSchema: z.ZodType<
5105
+ CreateAgentRequestResponseFormat,
5387
5106
  z.ZodTypeDef,
5388
5107
  unknown
5389
5108
  > = z.union([
@@ -5394,41 +5113,41 @@ export const ResponseBodyResponseFormat$inboundSchema: z.ZodType<
5394
5113
  ),
5395
5114
  ]);
5396
5115
 
5397
- export function responseBodyResponseFormatFromJSON(
5116
+ export function createAgentRequestResponseFormatFromJSON(
5398
5117
  jsonString: string,
5399
- ): SafeParseResult<ResponseBodyResponseFormat, SDKValidationError> {
5118
+ ): SafeParseResult<CreateAgentRequestResponseFormat, SDKValidationError> {
5400
5119
  return safeParse(
5401
5120
  jsonString,
5402
- (x) => ResponseBodyResponseFormat$inboundSchema.parse(JSON.parse(x)),
5403
- `Failed to parse 'ResponseBodyResponseFormat' from JSON`,
5121
+ (x) => CreateAgentRequestResponseFormat$inboundSchema.parse(JSON.parse(x)),
5122
+ `Failed to parse 'CreateAgentRequestResponseFormat' from JSON`,
5404
5123
  );
5405
5124
  }
5406
5125
 
5407
5126
  /** @internal */
5408
- export const ResponseBodyReasoningEffort$inboundSchema: z.ZodNativeEnum<
5409
- typeof ResponseBodyReasoningEffort
5410
- > = z.nativeEnum(ResponseBodyReasoningEffort);
5127
+ export const CreateAgentRequestReasoningEffort$inboundSchema: z.ZodNativeEnum<
5128
+ typeof CreateAgentRequestReasoningEffort
5129
+ > = z.nativeEnum(CreateAgentRequestReasoningEffort);
5411
5130
 
5412
5131
  /** @internal */
5413
- export const ResponseBodyStop$inboundSchema: z.ZodType<
5414
- ResponseBodyStop,
5132
+ export const CreateAgentRequestStop$inboundSchema: z.ZodType<
5133
+ CreateAgentRequestStop,
5415
5134
  z.ZodTypeDef,
5416
5135
  unknown
5417
5136
  > = z.union([z.string(), z.array(z.string())]);
5418
5137
 
5419
- export function responseBodyStopFromJSON(
5138
+ export function createAgentRequestStopFromJSON(
5420
5139
  jsonString: string,
5421
- ): SafeParseResult<ResponseBodyStop, SDKValidationError> {
5140
+ ): SafeParseResult<CreateAgentRequestStop, SDKValidationError> {
5422
5141
  return safeParse(
5423
5142
  jsonString,
5424
- (x) => ResponseBodyStop$inboundSchema.parse(JSON.parse(x)),
5425
- `Failed to parse 'ResponseBodyStop' from JSON`,
5143
+ (x) => CreateAgentRequestStop$inboundSchema.parse(JSON.parse(x)),
5144
+ `Failed to parse 'CreateAgentRequestStop' from JSON`,
5426
5145
  );
5427
5146
  }
5428
5147
 
5429
5148
  /** @internal */
5430
- export const ResponseBodyThinking$inboundSchema: z.ZodType<
5431
- ResponseBodyThinking,
5149
+ export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
5150
+ CreateAgentRequestThinking,
5432
5151
  z.ZodTypeDef,
5433
5152
  unknown
5434
5153
  > = z.union([
@@ -5436,13 +5155,13 @@ export const ResponseBodyThinking$inboundSchema: z.ZodType<
5436
5155
  components.ThinkingConfigEnabledSchema$inboundSchema,
5437
5156
  ]);
5438
5157
 
5439
- export function responseBodyThinkingFromJSON(
5158
+ export function createAgentRequestThinkingFromJSON(
5440
5159
  jsonString: string,
5441
- ): SafeParseResult<ResponseBodyThinking, SDKValidationError> {
5160
+ ): SafeParseResult<CreateAgentRequestThinking, SDKValidationError> {
5442
5161
  return safeParse(
5443
5162
  jsonString,
5444
- (x) => ResponseBodyThinking$inboundSchema.parse(JSON.parse(x)),
5445
- `Failed to parse 'ResponseBodyThinking' from JSON`,
5163
+ (x) => CreateAgentRequestThinking$inboundSchema.parse(JSON.parse(x)),
5164
+ `Failed to parse 'CreateAgentRequestThinking' from JSON`,
5446
5165
  );
5447
5166
  }
5448
5167
 
@@ -5504,8 +5223,8 @@ export const CreateAgentRequestToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
5504
5223
  > = z.nativeEnum(CreateAgentRequestToolChoiceAgents1);
5505
5224
 
5506
5225
  /** @internal */
5507
- export const ResponseBodyToolChoice$inboundSchema: z.ZodType<
5508
- ResponseBodyToolChoice,
5226
+ export const CreateAgentRequestToolChoice$inboundSchema: z.ZodType<
5227
+ CreateAgentRequestToolChoice,
5509
5228
  z.ZodTypeDef,
5510
5229
  unknown
5511
5230
  > = z.union([
@@ -5513,20 +5232,20 @@ export const ResponseBodyToolChoice$inboundSchema: z.ZodType<
5513
5232
  CreateAgentRequestToolChoiceAgents1$inboundSchema,
5514
5233
  ]);
5515
5234
 
5516
- export function responseBodyToolChoiceFromJSON(
5235
+ export function createAgentRequestToolChoiceFromJSON(
5517
5236
  jsonString: string,
5518
- ): SafeParseResult<ResponseBodyToolChoice, SDKValidationError> {
5237
+ ): SafeParseResult<CreateAgentRequestToolChoice, SDKValidationError> {
5519
5238
  return safeParse(
5520
5239
  jsonString,
5521
- (x) => ResponseBodyToolChoice$inboundSchema.parse(JSON.parse(x)),
5522
- `Failed to parse 'ResponseBodyToolChoice' from JSON`,
5240
+ (x) => CreateAgentRequestToolChoice$inboundSchema.parse(JSON.parse(x)),
5241
+ `Failed to parse 'CreateAgentRequestToolChoice' from JSON`,
5523
5242
  );
5524
5243
  }
5525
5244
 
5526
5245
  /** @internal */
5527
- export const ResponseBodyModalities$inboundSchema: z.ZodNativeEnum<
5528
- typeof ResponseBodyModalities
5529
- > = z.nativeEnum(ResponseBodyModalities);
5246
+ export const CreateAgentRequestModalities$inboundSchema: z.ZodNativeEnum<
5247
+ typeof CreateAgentRequestModalities
5248
+ > = z.nativeEnum(CreateAgentRequestModalities);
5530
5249
 
5531
5250
  /** @internal */
5532
5251
  export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
@@ -5534,98 +5253,98 @@ export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
5534
5253
  > = z.nativeEnum(CreateAgentRequestIdAgents1);
5535
5254
 
5536
5255
  /** @internal */
5537
- export const ResponseBodyId$inboundSchema: z.ZodType<
5538
- ResponseBodyId,
5256
+ export const CreateAgentRequestId$inboundSchema: z.ZodType<
5257
+ CreateAgentRequestId,
5539
5258
  z.ZodTypeDef,
5540
5259
  unknown
5541
5260
  > = z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]);
5542
5261
 
5543
- export function responseBodyIdFromJSON(
5262
+ export function createAgentRequestIdFromJSON(
5544
5263
  jsonString: string,
5545
- ): SafeParseResult<ResponseBodyId, SDKValidationError> {
5264
+ ): SafeParseResult<CreateAgentRequestId, SDKValidationError> {
5546
5265
  return safeParse(
5547
5266
  jsonString,
5548
- (x) => ResponseBodyId$inboundSchema.parse(JSON.parse(x)),
5549
- `Failed to parse 'ResponseBodyId' from JSON`,
5267
+ (x) => CreateAgentRequestId$inboundSchema.parse(JSON.parse(x)),
5268
+ `Failed to parse 'CreateAgentRequestId' from JSON`,
5550
5269
  );
5551
5270
  }
5552
5271
 
5553
5272
  /** @internal */
5554
- export const CreateAgentRequestResponseBodyAgentsExecuteOn$inboundSchema:
5555
- z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyAgentsExecuteOn> = z
5556
- .nativeEnum(CreateAgentRequestResponseBodyAgentsExecuteOn);
5273
+ export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema:
5274
+ z.ZodNativeEnum<
5275
+ typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
5276
+ > = z.nativeEnum(CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn);
5557
5277
 
5558
5278
  /** @internal */
5559
- export const CreateAgentRequestResponseBodyGuardrails$inboundSchema: z.ZodType<
5560
- CreateAgentRequestResponseBodyGuardrails,
5561
- z.ZodTypeDef,
5562
- unknown
5563
- > = z.object({
5564
- id: z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]),
5565
- execute_on: CreateAgentRequestResponseBodyAgentsExecuteOn$inboundSchema,
5566
- }).transform((v) => {
5567
- return remap$(v, {
5568
- "execute_on": "executeOn",
5569
- });
5570
- });
5279
+ export const CreateAgentRequestAgentsResponseGuardrails$inboundSchema:
5280
+ z.ZodType<CreateAgentRequestAgentsResponseGuardrails, z.ZodTypeDef, unknown> =
5281
+ z.object({
5282
+ id: z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]),
5283
+ execute_on:
5284
+ CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema,
5285
+ }).transform((v) => {
5286
+ return remap$(v, {
5287
+ "execute_on": "executeOn",
5288
+ });
5289
+ });
5571
5290
 
5572
- export function createAgentRequestResponseBodyGuardrailsFromJSON(
5291
+ export function createAgentRequestAgentsResponseGuardrailsFromJSON(
5573
5292
  jsonString: string,
5574
5293
  ): SafeParseResult<
5575
- CreateAgentRequestResponseBodyGuardrails,
5294
+ CreateAgentRequestAgentsResponseGuardrails,
5576
5295
  SDKValidationError
5577
5296
  > {
5578
5297
  return safeParse(
5579
5298
  jsonString,
5580
5299
  (x) =>
5581
- CreateAgentRequestResponseBodyGuardrails$inboundSchema.parse(
5300
+ CreateAgentRequestAgentsResponseGuardrails$inboundSchema.parse(
5582
5301
  JSON.parse(x),
5583
5302
  ),
5584
- `Failed to parse 'CreateAgentRequestResponseBodyGuardrails' from JSON`,
5303
+ `Failed to parse 'CreateAgentRequestAgentsResponseGuardrails' from JSON`,
5585
5304
  );
5586
5305
  }
5587
5306
 
5588
5307
  /** @internal */
5589
- export const ResponseBodyFallbacks$inboundSchema: z.ZodType<
5590
- ResponseBodyFallbacks,
5308
+ export const CreateAgentRequestFallbacks$inboundSchema: z.ZodType<
5309
+ CreateAgentRequestFallbacks,
5591
5310
  z.ZodTypeDef,
5592
5311
  unknown
5593
5312
  > = z.object({
5594
5313
  model: z.string(),
5595
5314
  });
5596
5315
 
5597
- export function responseBodyFallbacksFromJSON(
5316
+ export function createAgentRequestFallbacksFromJSON(
5598
5317
  jsonString: string,
5599
- ): SafeParseResult<ResponseBodyFallbacks, SDKValidationError> {
5318
+ ): SafeParseResult<CreateAgentRequestFallbacks, SDKValidationError> {
5600
5319
  return safeParse(
5601
5320
  jsonString,
5602
- (x) => ResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
5603
- `Failed to parse 'ResponseBodyFallbacks' from JSON`,
5321
+ (x) => CreateAgentRequestFallbacks$inboundSchema.parse(JSON.parse(x)),
5322
+ `Failed to parse 'CreateAgentRequestFallbacks' from JSON`,
5604
5323
  );
5605
5324
  }
5606
5325
 
5607
5326
  /** @internal */
5608
- export const CreateAgentRequestResponseBodyAgentsResponseType$inboundSchema:
5609
- z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyAgentsResponseType> = z
5610
- .nativeEnum(CreateAgentRequestResponseBodyAgentsResponseType);
5327
+ export const CreateAgentRequestAgentsType$inboundSchema: z.ZodNativeEnum<
5328
+ typeof CreateAgentRequestAgentsType
5329
+ > = z.nativeEnum(CreateAgentRequestAgentsType);
5611
5330
 
5612
5331
  /** @internal */
5613
- export const ResponseBodyCache$inboundSchema: z.ZodType<
5614
- ResponseBodyCache,
5332
+ export const CreateAgentRequestCache$inboundSchema: z.ZodType<
5333
+ CreateAgentRequestCache,
5615
5334
  z.ZodTypeDef,
5616
5335
  unknown
5617
5336
  > = z.object({
5618
5337
  ttl: z.number().default(1800),
5619
- type: CreateAgentRequestResponseBodyAgentsResponseType$inboundSchema,
5338
+ type: CreateAgentRequestAgentsType$inboundSchema,
5620
5339
  });
5621
5340
 
5622
- export function responseBodyCacheFromJSON(
5341
+ export function createAgentRequestCacheFromJSON(
5623
5342
  jsonString: string,
5624
- ): SafeParseResult<ResponseBodyCache, SDKValidationError> {
5343
+ ): SafeParseResult<CreateAgentRequestCache, SDKValidationError> {
5625
5344
  return safeParse(
5626
5345
  jsonString,
5627
- (x) => ResponseBodyCache$inboundSchema.parse(JSON.parse(x)),
5628
- `Failed to parse 'ResponseBodyCache' from JSON`,
5346
+ (x) => CreateAgentRequestCache$inboundSchema.parse(JSON.parse(x)),
5347
+ `Failed to parse 'CreateAgentRequestCache' from JSON`,
5629
5348
  );
5630
5349
  }
5631
5350
 
@@ -5679,25 +5398,25 @@ export function createAgentRequestLoadBalancerAgents1FromJSON(
5679
5398
  }
5680
5399
 
5681
5400
  /** @internal */
5682
- export const ResponseBodyLoadBalancer$inboundSchema: z.ZodType<
5683
- ResponseBodyLoadBalancer,
5401
+ export const CreateAgentRequestLoadBalancer$inboundSchema: z.ZodType<
5402
+ CreateAgentRequestLoadBalancer,
5684
5403
  z.ZodTypeDef,
5685
5404
  unknown
5686
5405
  > = z.lazy(() => CreateAgentRequestLoadBalancerAgents1$inboundSchema);
5687
5406
 
5688
- export function responseBodyLoadBalancerFromJSON(
5407
+ export function createAgentRequestLoadBalancerFromJSON(
5689
5408
  jsonString: string,
5690
- ): SafeParseResult<ResponseBodyLoadBalancer, SDKValidationError> {
5409
+ ): SafeParseResult<CreateAgentRequestLoadBalancer, SDKValidationError> {
5691
5410
  return safeParse(
5692
5411
  jsonString,
5693
- (x) => ResponseBodyLoadBalancer$inboundSchema.parse(JSON.parse(x)),
5694
- `Failed to parse 'ResponseBodyLoadBalancer' from JSON`,
5412
+ (x) => CreateAgentRequestLoadBalancer$inboundSchema.parse(JSON.parse(x)),
5413
+ `Failed to parse 'CreateAgentRequestLoadBalancer' from JSON`,
5695
5414
  );
5696
5415
  }
5697
5416
 
5698
5417
  /** @internal */
5699
- export const ResponseBodyTimeout$inboundSchema: z.ZodType<
5700
- ResponseBodyTimeout,
5418
+ export const CreateAgentRequestTimeout$inboundSchema: z.ZodType<
5419
+ CreateAgentRequestTimeout,
5701
5420
  z.ZodTypeDef,
5702
5421
  unknown
5703
5422
  > = z.object({
@@ -5708,19 +5427,19 @@ export const ResponseBodyTimeout$inboundSchema: z.ZodType<
5708
5427
  });
5709
5428
  });
5710
5429
 
5711
- export function responseBodyTimeoutFromJSON(
5430
+ export function createAgentRequestTimeoutFromJSON(
5712
5431
  jsonString: string,
5713
- ): SafeParseResult<ResponseBodyTimeout, SDKValidationError> {
5432
+ ): SafeParseResult<CreateAgentRequestTimeout, SDKValidationError> {
5714
5433
  return safeParse(
5715
5434
  jsonString,
5716
- (x) => ResponseBodyTimeout$inboundSchema.parse(JSON.parse(x)),
5717
- `Failed to parse 'ResponseBodyTimeout' from JSON`,
5435
+ (x) => CreateAgentRequestTimeout$inboundSchema.parse(JSON.parse(x)),
5436
+ `Failed to parse 'CreateAgentRequestTimeout' from JSON`,
5718
5437
  );
5719
5438
  }
5720
5439
 
5721
5440
  /** @internal */
5722
- export const ResponseBodyParameters$inboundSchema: z.ZodType<
5723
- ResponseBodyParameters,
5441
+ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5442
+ CreateAgentRequestParameters,
5724
5443
  z.ZodTypeDef,
5725
5444
  unknown
5726
5445
  > = z.object({
@@ -5736,7 +5455,7 @@ export const ResponseBodyParameters$inboundSchema: z.ZodType<
5736
5455
  CreateAgentRequestResponseFormatAgentsResponse201JSONSchema$inboundSchema
5737
5456
  ),
5738
5457
  ]).optional(),
5739
- reasoning_effort: ResponseBodyReasoningEffort$inboundSchema.optional(),
5458
+ reasoning_effort: CreateAgentRequestReasoningEffort$inboundSchema.optional(),
5740
5459
  verbosity: z.string().optional(),
5741
5460
  seed: z.nullable(z.number()).optional(),
5742
5461
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -5752,18 +5471,18 @@ export const ResponseBodyParameters$inboundSchema: z.ZodType<
5752
5471
  CreateAgentRequestToolChoiceAgents1$inboundSchema,
5753
5472
  ]).optional(),
5754
5473
  parallel_tool_calls: z.boolean().optional(),
5755
- modalities: z.nullable(z.array(ResponseBodyModalities$inboundSchema))
5474
+ modalities: z.nullable(z.array(CreateAgentRequestModalities$inboundSchema))
5756
5475
  .optional(),
5757
5476
  guardrails: z.array(
5758
- z.lazy(() => CreateAgentRequestResponseBodyGuardrails$inboundSchema),
5477
+ z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$inboundSchema),
5759
5478
  ).optional(),
5760
- fallbacks: z.array(z.lazy(() => ResponseBodyFallbacks$inboundSchema))
5479
+ fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
5761
5480
  .optional(),
5762
- cache: z.lazy(() => ResponseBodyCache$inboundSchema).optional(),
5481
+ cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
5763
5482
  load_balancer: z.lazy(() =>
5764
5483
  CreateAgentRequestLoadBalancerAgents1$inboundSchema
5765
5484
  ).optional(),
5766
- timeout: z.lazy(() => ResponseBodyTimeout$inboundSchema).optional(),
5485
+ timeout: z.lazy(() => CreateAgentRequestTimeout$inboundSchema).optional(),
5767
5486
  }).transform((v) => {
5768
5487
  return remap$(v, {
5769
5488
  "frequency_penalty": "frequencyPenalty",
@@ -5780,19 +5499,19 @@ export const ResponseBodyParameters$inboundSchema: z.ZodType<
5780
5499
  });
5781
5500
  });
5782
5501
 
5783
- export function responseBodyParametersFromJSON(
5502
+ export function createAgentRequestParametersFromJSON(
5784
5503
  jsonString: string,
5785
- ): SafeParseResult<ResponseBodyParameters, SDKValidationError> {
5504
+ ): SafeParseResult<CreateAgentRequestParameters, SDKValidationError> {
5786
5505
  return safeParse(
5787
5506
  jsonString,
5788
- (x) => ResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
5789
- `Failed to parse 'ResponseBodyParameters' from JSON`,
5507
+ (x) => CreateAgentRequestParameters$inboundSchema.parse(JSON.parse(x)),
5508
+ `Failed to parse 'CreateAgentRequestParameters' from JSON`,
5790
5509
  );
5791
5510
  }
5792
5511
 
5793
5512
  /** @internal */
5794
- export const ResponseBodyRetry$inboundSchema: z.ZodType<
5795
- ResponseBodyRetry,
5513
+ export const CreateAgentRequestRetry$inboundSchema: z.ZodType<
5514
+ CreateAgentRequestRetry,
5796
5515
  z.ZodTypeDef,
5797
5516
  unknown
5798
5517
  > = z.object({
@@ -5804,13 +5523,13 @@ export const ResponseBodyRetry$inboundSchema: z.ZodType<
5804
5523
  });
5805
5524
  });
5806
5525
 
5807
- export function responseBodyRetryFromJSON(
5526
+ export function createAgentRequestRetryFromJSON(
5808
5527
  jsonString: string,
5809
- ): SafeParseResult<ResponseBodyRetry, SDKValidationError> {
5528
+ ): SafeParseResult<CreateAgentRequestRetry, SDKValidationError> {
5810
5529
  return safeParse(
5811
5530
  jsonString,
5812
- (x) => ResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
5813
- `Failed to parse 'ResponseBodyRetry' from JSON`,
5531
+ (x) => CreateAgentRequestRetry$inboundSchema.parse(JSON.parse(x)),
5532
+ `Failed to parse 'CreateAgentRequestRetry' from JSON`,
5814
5533
  );
5815
5534
  }
5816
5535
 
@@ -6505,23 +6224,29 @@ export function createAgentRequestFallbackModelConfiguration2FromJSON(
6505
6224
  }
6506
6225
 
6507
6226
  /** @internal */
6508
- export const ResponseBodyFallbackModelConfiguration$inboundSchema: z.ZodType<
6509
- ResponseBodyFallbackModelConfiguration,
6510
- z.ZodTypeDef,
6511
- unknown
6512
- > = z.union([
6513
- z.lazy(() => CreateAgentRequestFallbackModelConfiguration2$inboundSchema),
6514
- z.string(),
6515
- ]);
6227
+ export const CreateAgentRequestFallbackModelConfiguration$inboundSchema:
6228
+ z.ZodType<
6229
+ CreateAgentRequestFallbackModelConfiguration,
6230
+ z.ZodTypeDef,
6231
+ unknown
6232
+ > = z.union([
6233
+ z.lazy(() => CreateAgentRequestFallbackModelConfiguration2$inboundSchema),
6234
+ z.string(),
6235
+ ]);
6516
6236
 
6517
- export function responseBodyFallbackModelConfigurationFromJSON(
6237
+ export function createAgentRequestFallbackModelConfigurationFromJSON(
6518
6238
  jsonString: string,
6519
- ): SafeParseResult<ResponseBodyFallbackModelConfiguration, SDKValidationError> {
6239
+ ): SafeParseResult<
6240
+ CreateAgentRequestFallbackModelConfiguration,
6241
+ SDKValidationError
6242
+ > {
6520
6243
  return safeParse(
6521
6244
  jsonString,
6522
6245
  (x) =>
6523
- ResponseBodyFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
6524
- `Failed to parse 'ResponseBodyFallbackModelConfiguration' from JSON`,
6246
+ CreateAgentRequestFallbackModelConfiguration$inboundSchema.parse(
6247
+ JSON.parse(x),
6248
+ ),
6249
+ `Failed to parse 'CreateAgentRequestFallbackModelConfiguration' from JSON`,
6525
6250
  );
6526
6251
  }
6527
6252
 
@@ -6530,8 +6255,9 @@ export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
6530
6255
  .object({
6531
6256
  id: z.string(),
6532
6257
  integration_id: z.nullable(z.string()).optional(),
6533
- parameters: z.lazy(() => ResponseBodyParameters$inboundSchema).optional(),
6534
- retry: z.lazy(() => ResponseBodyRetry$inboundSchema).optional(),
6258
+ parameters: z.lazy(() => CreateAgentRequestParameters$inboundSchema)
6259
+ .optional(),
6260
+ retry: z.lazy(() => CreateAgentRequestRetry$inboundSchema).optional(),
6535
6261
  fallback_models: z.nullable(
6536
6262
  z.array(z.union([
6537
6263
  z.lazy(() =>
@@ -6558,8 +6284,57 @@ export function modelFromJSON(
6558
6284
  }
6559
6285
 
6560
6286
  /** @internal */
6561
- export const ResponseBody1$inboundSchema: z.ZodType<
6562
- ResponseBody1,
6287
+ export const CreateAgentRequestHeaders$inboundSchema: z.ZodType<
6288
+ CreateAgentRequestHeaders,
6289
+ z.ZodTypeDef,
6290
+ unknown
6291
+ > = z.object({
6292
+ value: z.string(),
6293
+ encrypted: z.boolean().default(false),
6294
+ });
6295
+
6296
+ export function createAgentRequestHeadersFromJSON(
6297
+ jsonString: string,
6298
+ ): SafeParseResult<CreateAgentRequestHeaders, SDKValidationError> {
6299
+ return safeParse(
6300
+ jsonString,
6301
+ (x) => CreateAgentRequestHeaders$inboundSchema.parse(JSON.parse(x)),
6302
+ `Failed to parse 'CreateAgentRequestHeaders' from JSON`,
6303
+ );
6304
+ }
6305
+
6306
+ /** @internal */
6307
+ export const A2AAgentConfiguration$inboundSchema: z.ZodType<
6308
+ A2AAgentConfiguration,
6309
+ z.ZodTypeDef,
6310
+ unknown
6311
+ > = z.object({
6312
+ agent_url: z.string(),
6313
+ card_url: z.string().optional(),
6314
+ headers: z.record(z.lazy(() => CreateAgentRequestHeaders$inboundSchema))
6315
+ .optional(),
6316
+ cached_card: z.any().optional(),
6317
+ }).transform((v) => {
6318
+ return remap$(v, {
6319
+ "agent_url": "agentUrl",
6320
+ "card_url": "cardUrl",
6321
+ "cached_card": "cachedCard",
6322
+ });
6323
+ });
6324
+
6325
+ export function a2AAgentConfigurationFromJSON(
6326
+ jsonString: string,
6327
+ ): SafeParseResult<A2AAgentConfiguration, SDKValidationError> {
6328
+ return safeParse(
6329
+ jsonString,
6330
+ (x) => A2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
6331
+ `Failed to parse 'A2AAgentConfiguration' from JSON`,
6332
+ );
6333
+ }
6334
+
6335
+ /** @internal */
6336
+ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
6337
+ CreateAgentRequestResponseBody,
6563
6338
  z.ZodTypeDef,
6564
6339
  unknown
6565
6340
  > = z.object({
@@ -6571,25 +6346,27 @@ export const ResponseBody1$inboundSchema: z.ZodType<
6571
6346
  updated_by_id: z.nullable(z.string()).optional(),
6572
6347
  created: z.string().optional(),
6573
6348
  updated: z.string().optional(),
6574
- status: CreateAgentRequestResponseBodyStatus$inboundSchema,
6349
+ status: CreateAgentRequestStatus$inboundSchema,
6575
6350
  version_hash: z.string().optional(),
6576
6351
  path: z.string(),
6577
6352
  memory_stores: z.array(z.string()).optional(),
6578
- team_of_agents: z.array(z.lazy(() => ResponseBodyTeamOfAgents$inboundSchema))
6579
- .optional(),
6580
- metrics: z.lazy(() => ResponseBodyMetrics$inboundSchema).optional(),
6353
+ team_of_agents: z.array(
6354
+ z.lazy(() => CreateAgentRequestTeamOfAgents$inboundSchema),
6355
+ ).optional(),
6356
+ metrics: z.lazy(() => CreateAgentRequestMetrics$inboundSchema).optional(),
6581
6357
  variables: z.record(z.any()).optional(),
6582
6358
  knowledge_bases: z.array(
6583
- z.lazy(() => ResponseBodyKnowledgeBases$inboundSchema),
6359
+ z.lazy(() => CreateAgentRequestKnowledgeBases$inboundSchema),
6584
6360
  ).optional(),
6585
- source: ResponseBodySource$inboundSchema.optional(),
6586
- type: z.literal("internal"),
6361
+ source: CreateAgentRequestSource$inboundSchema.optional(),
6362
+ type: CreateAgentRequestType$inboundSchema.default("internal"),
6587
6363
  role: z.string(),
6588
6364
  description: z.string(),
6589
6365
  system_prompt: z.string().optional(),
6590
6366
  instructions: z.string(),
6591
- settings: z.lazy(() => ResponseBodySettings$inboundSchema).optional(),
6367
+ settings: z.lazy(() => CreateAgentRequestSettings$inboundSchema).optional(),
6592
6368
  model: z.lazy(() => Model$inboundSchema),
6369
+ a2a: z.lazy(() => A2AAgentConfiguration$inboundSchema).optional(),
6593
6370
  }).transform((v) => {
6594
6371
  return remap$(v, {
6595
6372
  "_id": "id",
@@ -6605,26 +6382,6 @@ export const ResponseBody1$inboundSchema: z.ZodType<
6605
6382
  });
6606
6383
  });
6607
6384
 
6608
- export function responseBody1FromJSON(
6609
- jsonString: string,
6610
- ): SafeParseResult<ResponseBody1, SDKValidationError> {
6611
- return safeParse(
6612
- jsonString,
6613
- (x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
6614
- `Failed to parse 'ResponseBody1' from JSON`,
6615
- );
6616
- }
6617
-
6618
- /** @internal */
6619
- export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
6620
- CreateAgentRequestResponseBody,
6621
- z.ZodTypeDef,
6622
- unknown
6623
- > = z.union([
6624
- z.lazy(() => ResponseBody1$inboundSchema),
6625
- z.lazy(() => ResponseBody2$inboundSchema),
6626
- ]);
6627
-
6628
6385
  export function createAgentRequestResponseBodyFromJSON(
6629
6386
  jsonString: string,
6630
6387
  ): SafeParseResult<CreateAgentRequestResponseBody, SDKValidationError> {