@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.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +161 -271
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +162 -256
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +39 -39
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +49 -52
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.d.ts +39 -39
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +47 -49
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.js +16 -16
- package/models/operations/listagents.d.ts +167 -276
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +172 -266
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listknowledgebases.d.ts +8 -8
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +15 -13
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +169 -279
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +173 -270
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +169 -279
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +174 -270
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +376 -619
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createknowledge.ts +17 -19
- package/src/models/operations/createtool.ts +91 -103
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +87 -93
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listagents.ts +383 -611
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +64 -72
- package/src/models/operations/retrieveagentrequest.ts +489 -884
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +362 -668
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -1527,7 +1527,7 @@ export type UpdateAgentRequest = {
|
|
|
1527
1527
|
/**
|
|
1528
1528
|
* 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.
|
|
1529
1529
|
*/
|
|
1530
|
-
export const
|
|
1530
|
+
export const UpdateAgentStatus = {
|
|
1531
1531
|
Live: "live",
|
|
1532
1532
|
Draft: "draft",
|
|
1533
1533
|
Pending: "pending",
|
|
@@ -1536,11 +1536,9 @@ export const UpdateAgentResponseBodyAgentsStatus = {
|
|
|
1536
1536
|
/**
|
|
1537
1537
|
* 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.
|
|
1538
1538
|
*/
|
|
1539
|
-
export type
|
|
1540
|
-
typeof UpdateAgentResponseBodyAgentsStatus
|
|
1541
|
-
>;
|
|
1539
|
+
export type UpdateAgentStatus = ClosedEnum<typeof UpdateAgentStatus>;
|
|
1542
1540
|
|
|
1543
|
-
export type
|
|
1541
|
+
export type UpdateAgentAgentsTeamOfAgents = {
|
|
1544
1542
|
/**
|
|
1545
1543
|
* The unique key of the agent within the workspace
|
|
1546
1544
|
*/
|
|
@@ -1551,177 +1549,40 @@ export type UpdateAgentResponseBodyAgentsTeamOfAgents = {
|
|
|
1551
1549
|
role?: string | undefined;
|
|
1552
1550
|
};
|
|
1553
1551
|
|
|
1554
|
-
export type
|
|
1552
|
+
export type UpdateAgentMetrics = {
|
|
1555
1553
|
totalCost: number;
|
|
1556
1554
|
};
|
|
1557
1555
|
|
|
1558
|
-
export type
|
|
1556
|
+
export type UpdateAgentAgentsKnowledgeBases = {
|
|
1559
1557
|
/**
|
|
1560
1558
|
* Unique identifier of the knowledge base to search
|
|
1561
1559
|
*/
|
|
1562
1560
|
knowledgeId: string;
|
|
1563
1561
|
};
|
|
1564
1562
|
|
|
1565
|
-
export const
|
|
1563
|
+
export const UpdateAgentSource = {
|
|
1566
1564
|
Internal: "internal",
|
|
1567
1565
|
External: "external",
|
|
1568
1566
|
Experiment: "experiment",
|
|
1569
1567
|
} as const;
|
|
1570
|
-
export type
|
|
1571
|
-
typeof UpdateAgentResponseBodyAgentsSource
|
|
1572
|
-
>;
|
|
1573
|
-
|
|
1574
|
-
export type UpdateAgentResponseBodyHeaders = {
|
|
1575
|
-
/**
|
|
1576
|
-
* 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.
|
|
1577
|
-
*/
|
|
1578
|
-
value: string;
|
|
1579
|
-
encrypted: boolean;
|
|
1580
|
-
};
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1584
|
-
*/
|
|
1585
|
-
export type UpdateAgentResponseBodyA2AAgentConfiguration = {
|
|
1586
|
-
/**
|
|
1587
|
-
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
1588
|
-
*/
|
|
1589
|
-
agentUrl: string;
|
|
1590
|
-
/**
|
|
1591
|
-
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
1592
|
-
*/
|
|
1593
|
-
cardUrl?: string | undefined;
|
|
1594
|
-
/**
|
|
1595
|
-
* 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.
|
|
1596
|
-
*/
|
|
1597
|
-
headers?: { [k: string]: UpdateAgentResponseBodyHeaders } | undefined;
|
|
1598
|
-
/**
|
|
1599
|
-
* Cached agent card from discovery. Refreshed periodically.
|
|
1600
|
-
*/
|
|
1601
|
-
cachedCard?: any | undefined;
|
|
1602
|
-
};
|
|
1603
|
-
|
|
1604
|
-
export type UpdateAgentResponseBody2 = {
|
|
1605
|
-
id: string;
|
|
1606
|
-
/**
|
|
1607
|
-
* Unique identifier for the agent within the workspace
|
|
1608
|
-
*/
|
|
1609
|
-
key: string;
|
|
1610
|
-
displayName?: string | undefined;
|
|
1611
|
-
projectId: string;
|
|
1612
|
-
createdById?: string | null | undefined;
|
|
1613
|
-
updatedById?: string | null | undefined;
|
|
1614
|
-
created?: string | undefined;
|
|
1615
|
-
updated?: string | undefined;
|
|
1616
|
-
/**
|
|
1617
|
-
* 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.
|
|
1618
|
-
*/
|
|
1619
|
-
status: UpdateAgentResponseBodyAgentsStatus;
|
|
1620
|
-
versionHash?: string | undefined;
|
|
1621
|
-
/**
|
|
1622
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
1623
|
-
*
|
|
1624
|
-
* @remarks
|
|
1625
|
-
*
|
|
1626
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
1627
|
-
*
|
|
1628
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
1629
|
-
*/
|
|
1630
|
-
path: string;
|
|
1631
|
-
/**
|
|
1632
|
-
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
1633
|
-
*/
|
|
1634
|
-
memoryStores?: Array<string> | undefined;
|
|
1635
|
-
/**
|
|
1636
|
-
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1637
|
-
*/
|
|
1638
|
-
teamOfAgents?: Array<UpdateAgentResponseBodyAgentsTeamOfAgents> | undefined;
|
|
1639
|
-
metrics?: UpdateAgentResponseBodyAgentsMetrics | undefined;
|
|
1640
|
-
/**
|
|
1641
|
-
* Extracted variables from agent instructions
|
|
1642
|
-
*/
|
|
1643
|
-
variables?: { [k: string]: any } | undefined;
|
|
1644
|
-
/**
|
|
1645
|
-
* Agent knowledge bases reference
|
|
1646
|
-
*/
|
|
1647
|
-
knowledgeBases?:
|
|
1648
|
-
| Array<UpdateAgentResponseBodyAgentsKnowledgeBases>
|
|
1649
|
-
| undefined;
|
|
1650
|
-
source?: UpdateAgentResponseBodyAgentsSource | undefined;
|
|
1651
|
-
/**
|
|
1652
|
-
* External A2A-compliant agent
|
|
1653
|
-
*/
|
|
1654
|
-
type: "a2a";
|
|
1655
|
-
/**
|
|
1656
|
-
* Role fetched from agent card name or user-provided
|
|
1657
|
-
*/
|
|
1658
|
-
role: string;
|
|
1659
|
-
/**
|
|
1660
|
-
* Description fetched from agent card or user-provided
|
|
1661
|
-
*/
|
|
1662
|
-
description: string;
|
|
1663
|
-
systemPrompt?: string | undefined;
|
|
1664
|
-
/**
|
|
1665
|
-
* Instructions from agent card description or user-provided
|
|
1666
|
-
*/
|
|
1667
|
-
instructions: string;
|
|
1668
|
-
/**
|
|
1669
|
-
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1670
|
-
*/
|
|
1671
|
-
a2a: UpdateAgentResponseBodyA2AAgentConfiguration;
|
|
1672
|
-
};
|
|
1568
|
+
export type UpdateAgentSource = ClosedEnum<typeof UpdateAgentSource>;
|
|
1673
1569
|
|
|
1674
1570
|
/**
|
|
1675
|
-
*
|
|
1571
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
1676
1572
|
*/
|
|
1677
|
-
export const
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
Pending: "pending",
|
|
1681
|
-
Published: "published",
|
|
1573
|
+
export const UpdateAgentType = {
|
|
1574
|
+
Internal: "internal",
|
|
1575
|
+
A2a: "a2a",
|
|
1682
1576
|
} as const;
|
|
1683
1577
|
/**
|
|
1684
|
-
*
|
|
1578
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
1685
1579
|
*/
|
|
1686
|
-
export type
|
|
1687
|
-
typeof UpdateAgentResponseBodyStatus
|
|
1688
|
-
>;
|
|
1689
|
-
|
|
1690
|
-
export type UpdateAgentResponseBodyTeamOfAgents = {
|
|
1691
|
-
/**
|
|
1692
|
-
* The unique key of the agent within the workspace
|
|
1693
|
-
*/
|
|
1694
|
-
key: string;
|
|
1695
|
-
/**
|
|
1696
|
-
* 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.
|
|
1697
|
-
*/
|
|
1698
|
-
role?: string | undefined;
|
|
1699
|
-
};
|
|
1700
|
-
|
|
1701
|
-
export type UpdateAgentResponseBodyMetrics = {
|
|
1702
|
-
totalCost: number;
|
|
1703
|
-
};
|
|
1704
|
-
|
|
1705
|
-
export type UpdateAgentResponseBodyKnowledgeBases = {
|
|
1706
|
-
/**
|
|
1707
|
-
* Unique identifier of the knowledge base to search
|
|
1708
|
-
*/
|
|
1709
|
-
knowledgeId: string;
|
|
1710
|
-
};
|
|
1711
|
-
|
|
1712
|
-
export const UpdateAgentResponseBodySource = {
|
|
1713
|
-
Internal: "internal",
|
|
1714
|
-
External: "external",
|
|
1715
|
-
Experiment: "experiment",
|
|
1716
|
-
} as const;
|
|
1717
|
-
export type UpdateAgentResponseBodySource = ClosedEnum<
|
|
1718
|
-
typeof UpdateAgentResponseBodySource
|
|
1719
|
-
>;
|
|
1580
|
+
export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
|
|
1720
1581
|
|
|
1721
1582
|
/**
|
|
1722
1583
|
* 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.
|
|
1723
1584
|
*/
|
|
1724
|
-
export const
|
|
1585
|
+
export const UpdateAgentAgentsToolApprovalRequired = {
|
|
1725
1586
|
All: "all",
|
|
1726
1587
|
RespectTool: "respect_tool",
|
|
1727
1588
|
None: "none",
|
|
@@ -1729,11 +1590,11 @@ export const UpdateAgentResponseBodyToolApprovalRequired = {
|
|
|
1729
1590
|
/**
|
|
1730
1591
|
* 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.
|
|
1731
1592
|
*/
|
|
1732
|
-
export type
|
|
1733
|
-
typeof
|
|
1593
|
+
export type UpdateAgentAgentsToolApprovalRequired = ClosedEnum<
|
|
1594
|
+
typeof UpdateAgentAgentsToolApprovalRequired
|
|
1734
1595
|
>;
|
|
1735
1596
|
|
|
1736
|
-
export type
|
|
1597
|
+
export type UpdateAgentConditions = {
|
|
1737
1598
|
/**
|
|
1738
1599
|
* The argument of the tool call to evaluate
|
|
1739
1600
|
*/
|
|
@@ -1748,7 +1609,7 @@ export type UpdateAgentResponseBodyConditions = {
|
|
|
1748
1609
|
value: string;
|
|
1749
1610
|
};
|
|
1750
1611
|
|
|
1751
|
-
export type
|
|
1612
|
+
export type UpdateAgentTools = {
|
|
1752
1613
|
/**
|
|
1753
1614
|
* The id of the resource
|
|
1754
1615
|
*/
|
|
@@ -1768,7 +1629,7 @@ export type UpdateAgentResponseBodyTools = {
|
|
|
1768
1629
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
1769
1630
|
*/
|
|
1770
1631
|
toolId?: string | undefined;
|
|
1771
|
-
conditions?: Array<
|
|
1632
|
+
conditions?: Array<UpdateAgentConditions> | undefined;
|
|
1772
1633
|
/**
|
|
1773
1634
|
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
1774
1635
|
*/
|
|
@@ -1778,18 +1639,18 @@ export type UpdateAgentResponseBodyTools = {
|
|
|
1778
1639
|
/**
|
|
1779
1640
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1780
1641
|
*/
|
|
1781
|
-
export const
|
|
1642
|
+
export const UpdateAgentAgentsResponseExecuteOn = {
|
|
1782
1643
|
Input: "input",
|
|
1783
1644
|
Output: "output",
|
|
1784
1645
|
} as const;
|
|
1785
1646
|
/**
|
|
1786
1647
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1787
1648
|
*/
|
|
1788
|
-
export type
|
|
1789
|
-
typeof
|
|
1649
|
+
export type UpdateAgentAgentsResponseExecuteOn = ClosedEnum<
|
|
1650
|
+
typeof UpdateAgentAgentsResponseExecuteOn
|
|
1790
1651
|
>;
|
|
1791
1652
|
|
|
1792
|
-
export type
|
|
1653
|
+
export type UpdateAgentAgentsEvaluators = {
|
|
1793
1654
|
/**
|
|
1794
1655
|
* Unique key or identifier of the evaluator
|
|
1795
1656
|
*/
|
|
@@ -1801,24 +1662,24 @@ export type UpdateAgentResponseBodyEvaluators = {
|
|
|
1801
1662
|
/**
|
|
1802
1663
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1803
1664
|
*/
|
|
1804
|
-
executeOn:
|
|
1665
|
+
executeOn: UpdateAgentAgentsResponseExecuteOn;
|
|
1805
1666
|
};
|
|
1806
1667
|
|
|
1807
1668
|
/**
|
|
1808
1669
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1809
1670
|
*/
|
|
1810
|
-
export const
|
|
1671
|
+
export const UpdateAgentAgentsResponse200ExecuteOn = {
|
|
1811
1672
|
Input: "input",
|
|
1812
1673
|
Output: "output",
|
|
1813
1674
|
} as const;
|
|
1814
1675
|
/**
|
|
1815
1676
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1816
1677
|
*/
|
|
1817
|
-
export type
|
|
1818
|
-
typeof
|
|
1678
|
+
export type UpdateAgentAgentsResponse200ExecuteOn = ClosedEnum<
|
|
1679
|
+
typeof UpdateAgentAgentsResponse200ExecuteOn
|
|
1819
1680
|
>;
|
|
1820
1681
|
|
|
1821
|
-
export type
|
|
1682
|
+
export type UpdateAgentAgentsGuardrails = {
|
|
1822
1683
|
/**
|
|
1823
1684
|
* Unique key or identifier of the evaluator
|
|
1824
1685
|
*/
|
|
@@ -1830,10 +1691,10 @@ export type UpdateAgentResponseBodyGuardrails = {
|
|
|
1830
1691
|
/**
|
|
1831
1692
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1832
1693
|
*/
|
|
1833
|
-
executeOn:
|
|
1694
|
+
executeOn: UpdateAgentAgentsResponse200ExecuteOn;
|
|
1834
1695
|
};
|
|
1835
1696
|
|
|
1836
|
-
export type
|
|
1697
|
+
export type UpdateAgentAgentsSettings = {
|
|
1837
1698
|
/**
|
|
1838
1699
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
1839
1700
|
*/
|
|
@@ -1849,16 +1710,16 @@ export type UpdateAgentResponseBodySettings = {
|
|
|
1849
1710
|
/**
|
|
1850
1711
|
* 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.
|
|
1851
1712
|
*/
|
|
1852
|
-
toolApprovalRequired:
|
|
1853
|
-
tools?: Array<
|
|
1713
|
+
toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired;
|
|
1714
|
+
tools?: Array<UpdateAgentTools> | undefined;
|
|
1854
1715
|
/**
|
|
1855
1716
|
* Configuration for an evaluator applied to the agent
|
|
1856
1717
|
*/
|
|
1857
|
-
evaluators?: Array<
|
|
1718
|
+
evaluators?: Array<UpdateAgentAgentsEvaluators> | undefined;
|
|
1858
1719
|
/**
|
|
1859
1720
|
* Configuration for a guardrail applied to the agent
|
|
1860
1721
|
*/
|
|
1861
|
-
guardrails?: Array<
|
|
1722
|
+
guardrails?: Array<UpdateAgentAgentsGuardrails> | undefined;
|
|
1862
1723
|
};
|
|
1863
1724
|
|
|
1864
1725
|
export type UpdateAgentResponseFormatAgentsResponseJsonSchema = {
|
|
@@ -1911,7 +1772,7 @@ export type UpdateAgentResponseFormatAgentsResponseText = {
|
|
|
1911
1772
|
/**
|
|
1912
1773
|
* An object specifying the format that the model must output
|
|
1913
1774
|
*/
|
|
1914
|
-
export type
|
|
1775
|
+
export type UpdateAgentResponseFormat =
|
|
1915
1776
|
| UpdateAgentResponseFormatAgentsResponseText
|
|
1916
1777
|
| UpdateAgentResponseFormatAgentsResponseJSONObject
|
|
1917
1778
|
| UpdateAgentResponseFormatAgentsResponse200JSONSchema;
|
|
@@ -1928,7 +1789,7 @@ export type UpdateAgentResponseBodyResponseFormat =
|
|
|
1928
1789
|
*
|
|
1929
1790
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1930
1791
|
*/
|
|
1931
|
-
export const
|
|
1792
|
+
export const UpdateAgentReasoningEffort = {
|
|
1932
1793
|
None: "none",
|
|
1933
1794
|
Minimal: "minimal",
|
|
1934
1795
|
Low: "low",
|
|
@@ -1948,16 +1809,16 @@ export const UpdateAgentResponseBodyReasoningEffort = {
|
|
|
1948
1809
|
*
|
|
1949
1810
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1950
1811
|
*/
|
|
1951
|
-
export type
|
|
1952
|
-
typeof
|
|
1812
|
+
export type UpdateAgentReasoningEffort = ClosedEnum<
|
|
1813
|
+
typeof UpdateAgentReasoningEffort
|
|
1953
1814
|
>;
|
|
1954
1815
|
|
|
1955
1816
|
/**
|
|
1956
1817
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1957
1818
|
*/
|
|
1958
|
-
export type
|
|
1819
|
+
export type UpdateAgentStop = string | Array<string>;
|
|
1959
1820
|
|
|
1960
|
-
export type
|
|
1821
|
+
export type UpdateAgentThinking =
|
|
1961
1822
|
| components.ThinkingConfigDisabledSchema
|
|
1962
1823
|
| components.ThinkingConfigEnabledSchema;
|
|
1963
1824
|
|
|
@@ -2001,17 +1862,15 @@ export type UpdateAgentToolChoiceAgentsResponse1 = ClosedEnum<
|
|
|
2001
1862
|
/**
|
|
2002
1863
|
* Controls which (if any) tool is called by the model.
|
|
2003
1864
|
*/
|
|
2004
|
-
export type
|
|
1865
|
+
export type UpdateAgentToolChoice =
|
|
2005
1866
|
| UpdateAgentToolChoiceAgentsResponse2
|
|
2006
1867
|
| UpdateAgentToolChoiceAgentsResponse1;
|
|
2007
1868
|
|
|
2008
|
-
export const
|
|
1869
|
+
export const UpdateAgentModalities = {
|
|
2009
1870
|
Text: "text",
|
|
2010
1871
|
Audio: "audio",
|
|
2011
1872
|
} as const;
|
|
2012
|
-
export type
|
|
2013
|
-
typeof UpdateAgentResponseBodyModalities
|
|
2014
|
-
>;
|
|
1873
|
+
export type UpdateAgentModalities = ClosedEnum<typeof UpdateAgentModalities>;
|
|
2015
1874
|
|
|
2016
1875
|
/**
|
|
2017
1876
|
* The key of the guardrail.
|
|
@@ -2028,53 +1887,51 @@ export type UpdateAgentIdAgentsResponse1 = ClosedEnum<
|
|
|
2028
1887
|
typeof UpdateAgentIdAgentsResponse1
|
|
2029
1888
|
>;
|
|
2030
1889
|
|
|
2031
|
-
export type
|
|
1890
|
+
export type UpdateAgentId = UpdateAgentIdAgentsResponse1 | string;
|
|
2032
1891
|
|
|
2033
1892
|
/**
|
|
2034
1893
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2035
1894
|
*/
|
|
2036
|
-
export const
|
|
1895
|
+
export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = {
|
|
2037
1896
|
Input: "input",
|
|
2038
1897
|
Output: "output",
|
|
2039
1898
|
} as const;
|
|
2040
1899
|
/**
|
|
2041
1900
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2042
1901
|
*/
|
|
2043
|
-
export type
|
|
2044
|
-
typeof
|
|
1902
|
+
export type UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = ClosedEnum<
|
|
1903
|
+
typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn
|
|
2045
1904
|
>;
|
|
2046
1905
|
|
|
2047
|
-
export type
|
|
1906
|
+
export type UpdateAgentAgentsResponseGuardrails = {
|
|
2048
1907
|
id: UpdateAgentIdAgentsResponse1 | string;
|
|
2049
1908
|
/**
|
|
2050
1909
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2051
1910
|
*/
|
|
2052
|
-
executeOn:
|
|
1911
|
+
executeOn: UpdateAgentAgentsResponse200ApplicationJSONExecuteOn;
|
|
2053
1912
|
};
|
|
2054
1913
|
|
|
2055
|
-
export type
|
|
1914
|
+
export type UpdateAgentFallbacks = {
|
|
2056
1915
|
/**
|
|
2057
1916
|
* Fallback model identifier
|
|
2058
1917
|
*/
|
|
2059
1918
|
model: string;
|
|
2060
1919
|
};
|
|
2061
1920
|
|
|
2062
|
-
export const
|
|
1921
|
+
export const UpdateAgentAgentsType = {
|
|
2063
1922
|
ExactMatch: "exact_match",
|
|
2064
1923
|
} as const;
|
|
2065
|
-
export type
|
|
2066
|
-
typeof UpdateAgentResponseBodyAgentsResponseType
|
|
2067
|
-
>;
|
|
1924
|
+
export type UpdateAgentAgentsType = ClosedEnum<typeof UpdateAgentAgentsType>;
|
|
2068
1925
|
|
|
2069
1926
|
/**
|
|
2070
1927
|
* Cache configuration for the request.
|
|
2071
1928
|
*/
|
|
2072
|
-
export type
|
|
1929
|
+
export type UpdateAgentCache = {
|
|
2073
1930
|
/**
|
|
2074
1931
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
2075
1932
|
*/
|
|
2076
1933
|
ttl: number;
|
|
2077
|
-
type:
|
|
1934
|
+
type: UpdateAgentAgentsType;
|
|
2078
1935
|
};
|
|
2079
1936
|
|
|
2080
1937
|
export const UpdateAgentLoadBalancerAgentsResponseType = {
|
|
@@ -2103,13 +1960,12 @@ export type UpdateAgentLoadBalancerAgentsResponse1 = {
|
|
|
2103
1960
|
/**
|
|
2104
1961
|
* Load balancer configuration for the request.
|
|
2105
1962
|
*/
|
|
2106
|
-
export type
|
|
2107
|
-
UpdateAgentLoadBalancerAgentsResponse1;
|
|
1963
|
+
export type UpdateAgentLoadBalancer = UpdateAgentLoadBalancerAgentsResponse1;
|
|
2108
1964
|
|
|
2109
1965
|
/**
|
|
2110
1966
|
* 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.
|
|
2111
1967
|
*/
|
|
2112
|
-
export type
|
|
1968
|
+
export type UpdateAgentTimeout = {
|
|
2113
1969
|
/**
|
|
2114
1970
|
* Timeout value in milliseconds
|
|
2115
1971
|
*/
|
|
@@ -2119,7 +1975,7 @@ export type UpdateAgentResponseBodyTimeout = {
|
|
|
2119
1975
|
/**
|
|
2120
1976
|
* 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.
|
|
2121
1977
|
*/
|
|
2122
|
-
export type
|
|
1978
|
+
export type UpdateAgentParameters = {
|
|
2123
1979
|
/**
|
|
2124
1980
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2125
1981
|
*/
|
|
@@ -2164,7 +2020,7 @@ export type UpdateAgentResponseBodyParameters = {
|
|
|
2164
2020
|
*
|
|
2165
2021
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
2166
2022
|
*/
|
|
2167
|
-
reasoningEffort?:
|
|
2023
|
+
reasoningEffort?: UpdateAgentReasoningEffort | undefined;
|
|
2168
2024
|
/**
|
|
2169
2025
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
2170
2026
|
*/
|
|
@@ -2207,19 +2063,19 @@ export type UpdateAgentResponseBodyParameters = {
|
|
|
2207
2063
|
/**
|
|
2208
2064
|
* 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"].
|
|
2209
2065
|
*/
|
|
2210
|
-
modalities?: Array<
|
|
2066
|
+
modalities?: Array<UpdateAgentModalities> | null | undefined;
|
|
2211
2067
|
/**
|
|
2212
2068
|
* A list of guardrails to apply to the request.
|
|
2213
2069
|
*/
|
|
2214
|
-
guardrails?: Array<
|
|
2070
|
+
guardrails?: Array<UpdateAgentAgentsResponseGuardrails> | undefined;
|
|
2215
2071
|
/**
|
|
2216
2072
|
* Array of fallback models to use if primary model fails
|
|
2217
2073
|
*/
|
|
2218
|
-
fallbacks?: Array<
|
|
2074
|
+
fallbacks?: Array<UpdateAgentFallbacks> | undefined;
|
|
2219
2075
|
/**
|
|
2220
2076
|
* Cache configuration for the request.
|
|
2221
2077
|
*/
|
|
2222
|
-
cache?:
|
|
2078
|
+
cache?: UpdateAgentCache | undefined;
|
|
2223
2079
|
/**
|
|
2224
2080
|
* Load balancer configuration for the request.
|
|
2225
2081
|
*/
|
|
@@ -2227,13 +2083,13 @@ export type UpdateAgentResponseBodyParameters = {
|
|
|
2227
2083
|
/**
|
|
2228
2084
|
* 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.
|
|
2229
2085
|
*/
|
|
2230
|
-
timeout?:
|
|
2086
|
+
timeout?: UpdateAgentTimeout | undefined;
|
|
2231
2087
|
};
|
|
2232
2088
|
|
|
2233
2089
|
/**
|
|
2234
2090
|
* 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).
|
|
2235
2091
|
*/
|
|
2236
|
-
export type
|
|
2092
|
+
export type UpdateAgentRetry = {
|
|
2237
2093
|
/**
|
|
2238
2094
|
* Number of retry attempts (1-5)
|
|
2239
2095
|
*/
|
|
@@ -2665,11 +2521,11 @@ export type UpdateAgentFallbackModelConfigurationAgents2 = {
|
|
|
2665
2521
|
/**
|
|
2666
2522
|
* 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.
|
|
2667
2523
|
*/
|
|
2668
|
-
export type
|
|
2524
|
+
export type UpdateAgentAgentsFallbackModelConfiguration =
|
|
2669
2525
|
| UpdateAgentFallbackModelConfigurationAgents2
|
|
2670
2526
|
| string;
|
|
2671
2527
|
|
|
2672
|
-
export type
|
|
2528
|
+
export type UpdateAgentModel = {
|
|
2673
2529
|
/**
|
|
2674
2530
|
* The database ID of the primary model
|
|
2675
2531
|
*/
|
|
@@ -2681,11 +2537,11 @@ export type UpdateAgentResponseBodyModel = {
|
|
|
2681
2537
|
/**
|
|
2682
2538
|
* 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.
|
|
2683
2539
|
*/
|
|
2684
|
-
parameters?:
|
|
2540
|
+
parameters?: UpdateAgentParameters | undefined;
|
|
2685
2541
|
/**
|
|
2686
2542
|
* 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).
|
|
2687
2543
|
*/
|
|
2688
|
-
retry?:
|
|
2544
|
+
retry?: UpdateAgentRetry | undefined;
|
|
2689
2545
|
/**
|
|
2690
2546
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
2691
2547
|
*/
|
|
@@ -2695,7 +2551,40 @@ export type UpdateAgentResponseBodyModel = {
|
|
|
2695
2551
|
| undefined;
|
|
2696
2552
|
};
|
|
2697
2553
|
|
|
2698
|
-
export type
|
|
2554
|
+
export type UpdateAgentAgentsHeaders = {
|
|
2555
|
+
/**
|
|
2556
|
+
* 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.
|
|
2557
|
+
*/
|
|
2558
|
+
value: string;
|
|
2559
|
+
encrypted: boolean;
|
|
2560
|
+
};
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
2564
|
+
*/
|
|
2565
|
+
export type UpdateAgentA2AAgentConfiguration = {
|
|
2566
|
+
/**
|
|
2567
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
2568
|
+
*/
|
|
2569
|
+
agentUrl: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
2572
|
+
*/
|
|
2573
|
+
cardUrl?: string | undefined;
|
|
2574
|
+
/**
|
|
2575
|
+
* 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.
|
|
2576
|
+
*/
|
|
2577
|
+
headers?: { [k: string]: UpdateAgentAgentsHeaders } | undefined;
|
|
2578
|
+
/**
|
|
2579
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
2580
|
+
*/
|
|
2581
|
+
cachedCard?: any | undefined;
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
|
|
2586
|
+
*/
|
|
2587
|
+
export type UpdateAgentResponseBody = {
|
|
2699
2588
|
id: string;
|
|
2700
2589
|
/**
|
|
2701
2590
|
* Unique identifier for the agent within the workspace
|
|
@@ -2710,7 +2599,7 @@ export type UpdateAgentResponseBody1 = {
|
|
|
2710
2599
|
/**
|
|
2711
2600
|
* 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.
|
|
2712
2601
|
*/
|
|
2713
|
-
status:
|
|
2602
|
+
status: UpdateAgentStatus;
|
|
2714
2603
|
versionHash?: string | undefined;
|
|
2715
2604
|
/**
|
|
2716
2605
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -2729,8 +2618,8 @@ export type UpdateAgentResponseBody1 = {
|
|
|
2729
2618
|
/**
|
|
2730
2619
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
2731
2620
|
*/
|
|
2732
|
-
teamOfAgents?: Array<
|
|
2733
|
-
metrics?:
|
|
2621
|
+
teamOfAgents?: Array<UpdateAgentAgentsTeamOfAgents> | undefined;
|
|
2622
|
+
metrics?: UpdateAgentMetrics | undefined;
|
|
2734
2623
|
/**
|
|
2735
2624
|
* Extracted variables from agent instructions
|
|
2736
2625
|
*/
|
|
@@ -2738,27 +2627,24 @@ export type UpdateAgentResponseBody1 = {
|
|
|
2738
2627
|
/**
|
|
2739
2628
|
* Agent knowledge bases reference
|
|
2740
2629
|
*/
|
|
2741
|
-
knowledgeBases?: Array<
|
|
2742
|
-
source?:
|
|
2630
|
+
knowledgeBases?: Array<UpdateAgentAgentsKnowledgeBases> | undefined;
|
|
2631
|
+
source?: UpdateAgentSource | undefined;
|
|
2743
2632
|
/**
|
|
2744
|
-
* Orquesta-managed
|
|
2633
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
2745
2634
|
*/
|
|
2746
|
-
type:
|
|
2635
|
+
type: UpdateAgentType;
|
|
2747
2636
|
role: string;
|
|
2748
2637
|
description: string;
|
|
2749
2638
|
systemPrompt?: string | undefined;
|
|
2750
2639
|
instructions: string;
|
|
2751
|
-
settings?:
|
|
2752
|
-
model:
|
|
2640
|
+
settings?: UpdateAgentAgentsSettings | undefined;
|
|
2641
|
+
model: UpdateAgentModel;
|
|
2642
|
+
/**
|
|
2643
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
2644
|
+
*/
|
|
2645
|
+
a2a?: UpdateAgentA2AAgentConfiguration | undefined;
|
|
2753
2646
|
};
|
|
2754
2647
|
|
|
2755
|
-
/**
|
|
2756
|
-
* Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
|
|
2757
|
-
*/
|
|
2758
|
-
export type UpdateAgentResponseBody =
|
|
2759
|
-
| UpdateAgentResponseBody1
|
|
2760
|
-
| UpdateAgentResponseBody2;
|
|
2761
|
-
|
|
2762
2648
|
/** @internal */
|
|
2763
2649
|
export type UpdateAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
2764
2650
|
description?: string | undefined;
|
|
@@ -5280,13 +5166,13 @@ export function updateAgentRequestToJSON(
|
|
|
5280
5166
|
}
|
|
5281
5167
|
|
|
5282
5168
|
/** @internal */
|
|
5283
|
-
export const
|
|
5284
|
-
typeof
|
|
5285
|
-
> = z.nativeEnum(
|
|
5169
|
+
export const UpdateAgentStatus$inboundSchema: z.ZodNativeEnum<
|
|
5170
|
+
typeof UpdateAgentStatus
|
|
5171
|
+
> = z.nativeEnum(UpdateAgentStatus);
|
|
5286
5172
|
|
|
5287
5173
|
/** @internal */
|
|
5288
|
-
export const
|
|
5289
|
-
|
|
5174
|
+
export const UpdateAgentAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
5175
|
+
UpdateAgentAgentsTeamOfAgents,
|
|
5290
5176
|
z.ZodTypeDef,
|
|
5291
5177
|
unknown
|
|
5292
5178
|
> = z.object({
|
|
@@ -5294,25 +5180,19 @@ export const UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
|
5294
5180
|
role: z.string().optional(),
|
|
5295
5181
|
});
|
|
5296
5182
|
|
|
5297
|
-
export function
|
|
5183
|
+
export function updateAgentAgentsTeamOfAgentsFromJSON(
|
|
5298
5184
|
jsonString: string,
|
|
5299
|
-
): SafeParseResult<
|
|
5300
|
-
UpdateAgentResponseBodyAgentsTeamOfAgents,
|
|
5301
|
-
SDKValidationError
|
|
5302
|
-
> {
|
|
5185
|
+
): SafeParseResult<UpdateAgentAgentsTeamOfAgents, SDKValidationError> {
|
|
5303
5186
|
return safeParse(
|
|
5304
5187
|
jsonString,
|
|
5305
|
-
(x) =>
|
|
5306
|
-
|
|
5307
|
-
JSON.parse(x),
|
|
5308
|
-
),
|
|
5309
|
-
`Failed to parse 'UpdateAgentResponseBodyAgentsTeamOfAgents' from JSON`,
|
|
5188
|
+
(x) => UpdateAgentAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
5189
|
+
`Failed to parse 'UpdateAgentAgentsTeamOfAgents' from JSON`,
|
|
5310
5190
|
);
|
|
5311
5191
|
}
|
|
5312
5192
|
|
|
5313
5193
|
/** @internal */
|
|
5314
|
-
export const
|
|
5315
|
-
|
|
5194
|
+
export const UpdateAgentMetrics$inboundSchema: z.ZodType<
|
|
5195
|
+
UpdateAgentMetrics,
|
|
5316
5196
|
z.ZodTypeDef,
|
|
5317
5197
|
unknown
|
|
5318
5198
|
> = z.object({
|
|
@@ -5323,254 +5203,58 @@ export const UpdateAgentResponseBodyAgentsMetrics$inboundSchema: z.ZodType<
|
|
|
5323
5203
|
});
|
|
5324
5204
|
});
|
|
5325
5205
|
|
|
5326
|
-
export function
|
|
5327
|
-
jsonString: string,
|
|
5328
|
-
): SafeParseResult<UpdateAgentResponseBodyAgentsMetrics, SDKValidationError> {
|
|
5329
|
-
return safeParse(
|
|
5330
|
-
jsonString,
|
|
5331
|
-
(x) =>
|
|
5332
|
-
UpdateAgentResponseBodyAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5333
|
-
`Failed to parse 'UpdateAgentResponseBodyAgentsMetrics' from JSON`,
|
|
5334
|
-
);
|
|
5335
|
-
}
|
|
5336
|
-
|
|
5337
|
-
/** @internal */
|
|
5338
|
-
export const UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema:
|
|
5339
|
-
z.ZodType<
|
|
5340
|
-
UpdateAgentResponseBodyAgentsKnowledgeBases,
|
|
5341
|
-
z.ZodTypeDef,
|
|
5342
|
-
unknown
|
|
5343
|
-
> = z.object({
|
|
5344
|
-
knowledge_id: z.string(),
|
|
5345
|
-
}).transform((v) => {
|
|
5346
|
-
return remap$(v, {
|
|
5347
|
-
"knowledge_id": "knowledgeId",
|
|
5348
|
-
});
|
|
5349
|
-
});
|
|
5350
|
-
|
|
5351
|
-
export function updateAgentResponseBodyAgentsKnowledgeBasesFromJSON(
|
|
5352
|
-
jsonString: string,
|
|
5353
|
-
): SafeParseResult<
|
|
5354
|
-
UpdateAgentResponseBodyAgentsKnowledgeBases,
|
|
5355
|
-
SDKValidationError
|
|
5356
|
-
> {
|
|
5357
|
-
return safeParse(
|
|
5358
|
-
jsonString,
|
|
5359
|
-
(x) =>
|
|
5360
|
-
UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema.parse(
|
|
5361
|
-
JSON.parse(x),
|
|
5362
|
-
),
|
|
5363
|
-
`Failed to parse 'UpdateAgentResponseBodyAgentsKnowledgeBases' from JSON`,
|
|
5364
|
-
);
|
|
5365
|
-
}
|
|
5366
|
-
|
|
5367
|
-
/** @internal */
|
|
5368
|
-
export const UpdateAgentResponseBodyAgentsSource$inboundSchema: z.ZodNativeEnum<
|
|
5369
|
-
typeof UpdateAgentResponseBodyAgentsSource
|
|
5370
|
-
> = z.nativeEnum(UpdateAgentResponseBodyAgentsSource);
|
|
5371
|
-
|
|
5372
|
-
/** @internal */
|
|
5373
|
-
export const UpdateAgentResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
5374
|
-
UpdateAgentResponseBodyHeaders,
|
|
5375
|
-
z.ZodTypeDef,
|
|
5376
|
-
unknown
|
|
5377
|
-
> = z.object({
|
|
5378
|
-
value: z.string(),
|
|
5379
|
-
encrypted: z.boolean().default(false),
|
|
5380
|
-
});
|
|
5381
|
-
|
|
5382
|
-
export function updateAgentResponseBodyHeadersFromJSON(
|
|
5206
|
+
export function updateAgentMetricsFromJSON(
|
|
5383
5207
|
jsonString: string,
|
|
5384
|
-
): SafeParseResult<
|
|
5208
|
+
): SafeParseResult<UpdateAgentMetrics, SDKValidationError> {
|
|
5385
5209
|
return safeParse(
|
|
5386
5210
|
jsonString,
|
|
5387
|
-
(x) =>
|
|
5388
|
-
`Failed to parse '
|
|
5211
|
+
(x) => UpdateAgentMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5212
|
+
`Failed to parse 'UpdateAgentMetrics' from JSON`,
|
|
5389
5213
|
);
|
|
5390
5214
|
}
|
|
5391
5215
|
|
|
5392
5216
|
/** @internal */
|
|
5393
|
-
export const
|
|
5394
|
-
|
|
5395
|
-
UpdateAgentResponseBodyA2AAgentConfiguration,
|
|
5396
|
-
z.ZodTypeDef,
|
|
5397
|
-
unknown
|
|
5398
|
-
> = z.object({
|
|
5399
|
-
agent_url: z.string(),
|
|
5400
|
-
card_url: z.string().optional(),
|
|
5401
|
-
headers: z.record(
|
|
5402
|
-
z.lazy(() => UpdateAgentResponseBodyHeaders$inboundSchema),
|
|
5403
|
-
).optional(),
|
|
5404
|
-
cached_card: z.any().optional(),
|
|
5405
|
-
}).transform((v) => {
|
|
5406
|
-
return remap$(v, {
|
|
5407
|
-
"agent_url": "agentUrl",
|
|
5408
|
-
"card_url": "cardUrl",
|
|
5409
|
-
"cached_card": "cachedCard",
|
|
5410
|
-
});
|
|
5411
|
-
});
|
|
5412
|
-
|
|
5413
|
-
export function updateAgentResponseBodyA2AAgentConfigurationFromJSON(
|
|
5414
|
-
jsonString: string,
|
|
5415
|
-
): SafeParseResult<
|
|
5416
|
-
UpdateAgentResponseBodyA2AAgentConfiguration,
|
|
5417
|
-
SDKValidationError
|
|
5418
|
-
> {
|
|
5419
|
-
return safeParse(
|
|
5420
|
-
jsonString,
|
|
5421
|
-
(x) =>
|
|
5422
|
-
UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema.parse(
|
|
5423
|
-
JSON.parse(x),
|
|
5424
|
-
),
|
|
5425
|
-
`Failed to parse 'UpdateAgentResponseBodyA2AAgentConfiguration' from JSON`,
|
|
5426
|
-
);
|
|
5427
|
-
}
|
|
5428
|
-
|
|
5429
|
-
/** @internal */
|
|
5430
|
-
export const UpdateAgentResponseBody2$inboundSchema: z.ZodType<
|
|
5431
|
-
UpdateAgentResponseBody2,
|
|
5217
|
+
export const UpdateAgentAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
5218
|
+
UpdateAgentAgentsKnowledgeBases,
|
|
5432
5219
|
z.ZodTypeDef,
|
|
5433
5220
|
unknown
|
|
5434
5221
|
> = z.object({
|
|
5435
|
-
|
|
5436
|
-
key: z.string(),
|
|
5437
|
-
display_name: z.string().optional(),
|
|
5438
|
-
project_id: z.string(),
|
|
5439
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
5440
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
5441
|
-
created: z.string().optional(),
|
|
5442
|
-
updated: z.string().optional(),
|
|
5443
|
-
status: UpdateAgentResponseBodyAgentsStatus$inboundSchema,
|
|
5444
|
-
version_hash: z.string().optional(),
|
|
5445
|
-
path: z.string(),
|
|
5446
|
-
memory_stores: z.array(z.string()).optional(),
|
|
5447
|
-
team_of_agents: z.array(
|
|
5448
|
-
z.lazy(() => UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema),
|
|
5449
|
-
).optional(),
|
|
5450
|
-
metrics: z.lazy(() => UpdateAgentResponseBodyAgentsMetrics$inboundSchema)
|
|
5451
|
-
.optional(),
|
|
5452
|
-
variables: z.record(z.any()).optional(),
|
|
5453
|
-
knowledge_bases: z.array(
|
|
5454
|
-
z.lazy(() => UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema),
|
|
5455
|
-
).optional(),
|
|
5456
|
-
source: UpdateAgentResponseBodyAgentsSource$inboundSchema.optional(),
|
|
5457
|
-
type: z.literal("a2a"),
|
|
5458
|
-
role: z.string(),
|
|
5459
|
-
description: z.string(),
|
|
5460
|
-
system_prompt: z.string().optional(),
|
|
5461
|
-
instructions: z.string(),
|
|
5462
|
-
a2a: z.lazy(() => UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema),
|
|
5222
|
+
knowledge_id: z.string(),
|
|
5463
5223
|
}).transform((v) => {
|
|
5464
5224
|
return remap$(v, {
|
|
5465
|
-
"
|
|
5466
|
-
"display_name": "displayName",
|
|
5467
|
-
"project_id": "projectId",
|
|
5468
|
-
"created_by_id": "createdById",
|
|
5469
|
-
"updated_by_id": "updatedById",
|
|
5470
|
-
"version_hash": "versionHash",
|
|
5471
|
-
"memory_stores": "memoryStores",
|
|
5472
|
-
"team_of_agents": "teamOfAgents",
|
|
5473
|
-
"knowledge_bases": "knowledgeBases",
|
|
5474
|
-
"system_prompt": "systemPrompt",
|
|
5225
|
+
"knowledge_id": "knowledgeId",
|
|
5475
5226
|
});
|
|
5476
5227
|
});
|
|
5477
5228
|
|
|
5478
|
-
export function
|
|
5229
|
+
export function updateAgentAgentsKnowledgeBasesFromJSON(
|
|
5479
5230
|
jsonString: string,
|
|
5480
|
-
): SafeParseResult<
|
|
5231
|
+
): SafeParseResult<UpdateAgentAgentsKnowledgeBases, SDKValidationError> {
|
|
5481
5232
|
return safeParse(
|
|
5482
5233
|
jsonString,
|
|
5483
|
-
(x) =>
|
|
5484
|
-
`Failed to parse '
|
|
5234
|
+
(x) => UpdateAgentAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
5235
|
+
`Failed to parse 'UpdateAgentAgentsKnowledgeBases' from JSON`,
|
|
5485
5236
|
);
|
|
5486
5237
|
}
|
|
5487
5238
|
|
|
5488
5239
|
/** @internal */
|
|
5489
|
-
export const
|
|
5490
|
-
typeof
|
|
5491
|
-
> = z.nativeEnum(
|
|
5240
|
+
export const UpdateAgentSource$inboundSchema: z.ZodNativeEnum<
|
|
5241
|
+
typeof UpdateAgentSource
|
|
5242
|
+
> = z.nativeEnum(UpdateAgentSource);
|
|
5492
5243
|
|
|
5493
5244
|
/** @internal */
|
|
5494
|
-
export const
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
unknown
|
|
5498
|
-
> = z.object({
|
|
5499
|
-
key: z.string(),
|
|
5500
|
-
role: z.string().optional(),
|
|
5501
|
-
});
|
|
5502
|
-
|
|
5503
|
-
export function updateAgentResponseBodyTeamOfAgentsFromJSON(
|
|
5504
|
-
jsonString: string,
|
|
5505
|
-
): SafeParseResult<UpdateAgentResponseBodyTeamOfAgents, SDKValidationError> {
|
|
5506
|
-
return safeParse(
|
|
5507
|
-
jsonString,
|
|
5508
|
-
(x) =>
|
|
5509
|
-
UpdateAgentResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
5510
|
-
`Failed to parse 'UpdateAgentResponseBodyTeamOfAgents' from JSON`,
|
|
5511
|
-
);
|
|
5512
|
-
}
|
|
5245
|
+
export const UpdateAgentType$inboundSchema: z.ZodNativeEnum<
|
|
5246
|
+
typeof UpdateAgentType
|
|
5247
|
+
> = z.nativeEnum(UpdateAgentType);
|
|
5513
5248
|
|
|
5514
5249
|
/** @internal */
|
|
5515
|
-
export const
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
unknown
|
|
5519
|
-
> = z.object({
|
|
5520
|
-
total_cost: z.number().default(0),
|
|
5521
|
-
}).transform((v) => {
|
|
5522
|
-
return remap$(v, {
|
|
5523
|
-
"total_cost": "totalCost",
|
|
5524
|
-
});
|
|
5525
|
-
});
|
|
5526
|
-
|
|
5527
|
-
export function updateAgentResponseBodyMetricsFromJSON(
|
|
5528
|
-
jsonString: string,
|
|
5529
|
-
): SafeParseResult<UpdateAgentResponseBodyMetrics, SDKValidationError> {
|
|
5530
|
-
return safeParse(
|
|
5531
|
-
jsonString,
|
|
5532
|
-
(x) => UpdateAgentResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5533
|
-
`Failed to parse 'UpdateAgentResponseBodyMetrics' from JSON`,
|
|
5250
|
+
export const UpdateAgentAgentsToolApprovalRequired$inboundSchema:
|
|
5251
|
+
z.ZodNativeEnum<typeof UpdateAgentAgentsToolApprovalRequired> = z.nativeEnum(
|
|
5252
|
+
UpdateAgentAgentsToolApprovalRequired,
|
|
5534
5253
|
);
|
|
5535
|
-
}
|
|
5536
|
-
|
|
5537
|
-
/** @internal */
|
|
5538
|
-
export const UpdateAgentResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
|
|
5539
|
-
UpdateAgentResponseBodyKnowledgeBases,
|
|
5540
|
-
z.ZodTypeDef,
|
|
5541
|
-
unknown
|
|
5542
|
-
> = z.object({
|
|
5543
|
-
knowledge_id: z.string(),
|
|
5544
|
-
}).transform((v) => {
|
|
5545
|
-
return remap$(v, {
|
|
5546
|
-
"knowledge_id": "knowledgeId",
|
|
5547
|
-
});
|
|
5548
|
-
});
|
|
5549
|
-
|
|
5550
|
-
export function updateAgentResponseBodyKnowledgeBasesFromJSON(
|
|
5551
|
-
jsonString: string,
|
|
5552
|
-
): SafeParseResult<UpdateAgentResponseBodyKnowledgeBases, SDKValidationError> {
|
|
5553
|
-
return safeParse(
|
|
5554
|
-
jsonString,
|
|
5555
|
-
(x) =>
|
|
5556
|
-
UpdateAgentResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
5557
|
-
`Failed to parse 'UpdateAgentResponseBodyKnowledgeBases' from JSON`,
|
|
5558
|
-
);
|
|
5559
|
-
}
|
|
5560
|
-
|
|
5561
|
-
/** @internal */
|
|
5562
|
-
export const UpdateAgentResponseBodySource$inboundSchema: z.ZodNativeEnum<
|
|
5563
|
-
typeof UpdateAgentResponseBodySource
|
|
5564
|
-
> = z.nativeEnum(UpdateAgentResponseBodySource);
|
|
5565
5254
|
|
|
5566
5255
|
/** @internal */
|
|
5567
|
-
export const
|
|
5568
|
-
|
|
5569
|
-
.nativeEnum(UpdateAgentResponseBodyToolApprovalRequired);
|
|
5570
|
-
|
|
5571
|
-
/** @internal */
|
|
5572
|
-
export const UpdateAgentResponseBodyConditions$inboundSchema: z.ZodType<
|
|
5573
|
-
UpdateAgentResponseBodyConditions,
|
|
5256
|
+
export const UpdateAgentConditions$inboundSchema: z.ZodType<
|
|
5257
|
+
UpdateAgentConditions,
|
|
5574
5258
|
z.ZodTypeDef,
|
|
5575
5259
|
unknown
|
|
5576
5260
|
> = z.object({
|
|
@@ -5579,19 +5263,19 @@ export const UpdateAgentResponseBodyConditions$inboundSchema: z.ZodType<
|
|
|
5579
5263
|
value: z.string(),
|
|
5580
5264
|
});
|
|
5581
5265
|
|
|
5582
|
-
export function
|
|
5266
|
+
export function updateAgentConditionsFromJSON(
|
|
5583
5267
|
jsonString: string,
|
|
5584
|
-
): SafeParseResult<
|
|
5268
|
+
): SafeParseResult<UpdateAgentConditions, SDKValidationError> {
|
|
5585
5269
|
return safeParse(
|
|
5586
5270
|
jsonString,
|
|
5587
|
-
(x) =>
|
|
5588
|
-
`Failed to parse '
|
|
5271
|
+
(x) => UpdateAgentConditions$inboundSchema.parse(JSON.parse(x)),
|
|
5272
|
+
`Failed to parse 'UpdateAgentConditions' from JSON`,
|
|
5589
5273
|
);
|
|
5590
5274
|
}
|
|
5591
5275
|
|
|
5592
5276
|
/** @internal */
|
|
5593
|
-
export const
|
|
5594
|
-
|
|
5277
|
+
export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
5278
|
+
UpdateAgentTools,
|
|
5595
5279
|
z.ZodTypeDef,
|
|
5596
5280
|
unknown
|
|
5597
5281
|
> = z.object({
|
|
@@ -5602,9 +5286,8 @@ export const UpdateAgentResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
5602
5286
|
description: z.string().optional(),
|
|
5603
5287
|
requires_approval: z.boolean().default(false),
|
|
5604
5288
|
tool_id: z.string().optional(),
|
|
5605
|
-
conditions: z.array(
|
|
5606
|
-
|
|
5607
|
-
).optional(),
|
|
5289
|
+
conditions: z.array(z.lazy(() => UpdateAgentConditions$inboundSchema))
|
|
5290
|
+
.optional(),
|
|
5608
5291
|
timeout: z.number().default(120),
|
|
5609
5292
|
}).transform((v) => {
|
|
5610
5293
|
return remap$(v, {
|
|
@@ -5615,30 +5298,30 @@ export const UpdateAgentResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
5615
5298
|
});
|
|
5616
5299
|
});
|
|
5617
5300
|
|
|
5618
|
-
export function
|
|
5301
|
+
export function updateAgentToolsFromJSON(
|
|
5619
5302
|
jsonString: string,
|
|
5620
|
-
): SafeParseResult<
|
|
5303
|
+
): SafeParseResult<UpdateAgentTools, SDKValidationError> {
|
|
5621
5304
|
return safeParse(
|
|
5622
5305
|
jsonString,
|
|
5623
|
-
(x) =>
|
|
5624
|
-
`Failed to parse '
|
|
5306
|
+
(x) => UpdateAgentTools$inboundSchema.parse(JSON.parse(x)),
|
|
5307
|
+
`Failed to parse 'UpdateAgentTools' from JSON`,
|
|
5625
5308
|
);
|
|
5626
5309
|
}
|
|
5627
5310
|
|
|
5628
5311
|
/** @internal */
|
|
5629
|
-
export const
|
|
5630
|
-
typeof
|
|
5631
|
-
> = z.nativeEnum(
|
|
5312
|
+
export const UpdateAgentAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5313
|
+
typeof UpdateAgentAgentsResponseExecuteOn
|
|
5314
|
+
> = z.nativeEnum(UpdateAgentAgentsResponseExecuteOn);
|
|
5632
5315
|
|
|
5633
5316
|
/** @internal */
|
|
5634
|
-
export const
|
|
5635
|
-
|
|
5317
|
+
export const UpdateAgentAgentsEvaluators$inboundSchema: z.ZodType<
|
|
5318
|
+
UpdateAgentAgentsEvaluators,
|
|
5636
5319
|
z.ZodTypeDef,
|
|
5637
5320
|
unknown
|
|
5638
5321
|
> = z.object({
|
|
5639
5322
|
id: z.string(),
|
|
5640
5323
|
sample_rate: z.number().default(50),
|
|
5641
|
-
execute_on:
|
|
5324
|
+
execute_on: UpdateAgentAgentsResponseExecuteOn$inboundSchema,
|
|
5642
5325
|
}).transform((v) => {
|
|
5643
5326
|
return remap$(v, {
|
|
5644
5327
|
"sample_rate": "sampleRate",
|
|
@@ -5646,31 +5329,31 @@ export const UpdateAgentResponseBodyEvaluators$inboundSchema: z.ZodType<
|
|
|
5646
5329
|
});
|
|
5647
5330
|
});
|
|
5648
5331
|
|
|
5649
|
-
export function
|
|
5332
|
+
export function updateAgentAgentsEvaluatorsFromJSON(
|
|
5650
5333
|
jsonString: string,
|
|
5651
|
-
): SafeParseResult<
|
|
5334
|
+
): SafeParseResult<UpdateAgentAgentsEvaluators, SDKValidationError> {
|
|
5652
5335
|
return safeParse(
|
|
5653
5336
|
jsonString,
|
|
5654
|
-
(x) =>
|
|
5655
|
-
`Failed to parse '
|
|
5337
|
+
(x) => UpdateAgentAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
5338
|
+
`Failed to parse 'UpdateAgentAgentsEvaluators' from JSON`,
|
|
5656
5339
|
);
|
|
5657
5340
|
}
|
|
5658
5341
|
|
|
5659
5342
|
/** @internal */
|
|
5660
|
-
export const
|
|
5661
|
-
z.ZodNativeEnum<typeof
|
|
5662
|
-
|
|
5343
|
+
export const UpdateAgentAgentsResponse200ExecuteOn$inboundSchema:
|
|
5344
|
+
z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ExecuteOn> = z.nativeEnum(
|
|
5345
|
+
UpdateAgentAgentsResponse200ExecuteOn,
|
|
5663
5346
|
);
|
|
5664
5347
|
|
|
5665
5348
|
/** @internal */
|
|
5666
|
-
export const
|
|
5667
|
-
|
|
5349
|
+
export const UpdateAgentAgentsGuardrails$inboundSchema: z.ZodType<
|
|
5350
|
+
UpdateAgentAgentsGuardrails,
|
|
5668
5351
|
z.ZodTypeDef,
|
|
5669
5352
|
unknown
|
|
5670
5353
|
> = z.object({
|
|
5671
5354
|
id: z.string(),
|
|
5672
5355
|
sample_rate: z.number().default(50),
|
|
5673
|
-
execute_on:
|
|
5356
|
+
execute_on: UpdateAgentAgentsResponse200ExecuteOn$inboundSchema,
|
|
5674
5357
|
}).transform((v) => {
|
|
5675
5358
|
return remap$(v, {
|
|
5676
5359
|
"sample_rate": "sampleRate",
|
|
@@ -5678,37 +5361,32 @@ export const UpdateAgentResponseBodyGuardrails$inboundSchema: z.ZodType<
|
|
|
5678
5361
|
});
|
|
5679
5362
|
});
|
|
5680
5363
|
|
|
5681
|
-
export function
|
|
5364
|
+
export function updateAgentAgentsGuardrailsFromJSON(
|
|
5682
5365
|
jsonString: string,
|
|
5683
|
-
): SafeParseResult<
|
|
5366
|
+
): SafeParseResult<UpdateAgentAgentsGuardrails, SDKValidationError> {
|
|
5684
5367
|
return safeParse(
|
|
5685
5368
|
jsonString,
|
|
5686
|
-
(x) =>
|
|
5687
|
-
`Failed to parse '
|
|
5369
|
+
(x) => UpdateAgentAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5370
|
+
`Failed to parse 'UpdateAgentAgentsGuardrails' from JSON`,
|
|
5688
5371
|
);
|
|
5689
5372
|
}
|
|
5690
5373
|
|
|
5691
5374
|
/** @internal */
|
|
5692
|
-
export const
|
|
5693
|
-
|
|
5375
|
+
export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
|
|
5376
|
+
UpdateAgentAgentsSettings,
|
|
5694
5377
|
z.ZodTypeDef,
|
|
5695
5378
|
unknown
|
|
5696
5379
|
> = z.object({
|
|
5697
5380
|
max_iterations: z.number().int().default(100),
|
|
5698
5381
|
max_execution_time: z.number().int().default(600),
|
|
5699
5382
|
max_cost: z.number().default(0),
|
|
5700
|
-
tool_approval_required:
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5383
|
+
tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
|
|
5384
|
+
.default("respect_tool"),
|
|
5385
|
+
tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
|
|
5386
|
+
evaluators: z.array(z.lazy(() => UpdateAgentAgentsEvaluators$inboundSchema))
|
|
5387
|
+
.optional(),
|
|
5388
|
+
guardrails: z.array(z.lazy(() => UpdateAgentAgentsGuardrails$inboundSchema))
|
|
5705
5389
|
.optional(),
|
|
5706
|
-
evaluators: z.array(
|
|
5707
|
-
z.lazy(() => UpdateAgentResponseBodyEvaluators$inboundSchema),
|
|
5708
|
-
).optional(),
|
|
5709
|
-
guardrails: z.array(
|
|
5710
|
-
z.lazy(() => UpdateAgentResponseBodyGuardrails$inboundSchema),
|
|
5711
|
-
).optional(),
|
|
5712
5390
|
}).transform((v) => {
|
|
5713
5391
|
return remap$(v, {
|
|
5714
5392
|
"max_iterations": "maxIterations",
|
|
@@ -5718,13 +5396,13 @@ export const UpdateAgentResponseBodySettings$inboundSchema: z.ZodType<
|
|
|
5718
5396
|
});
|
|
5719
5397
|
});
|
|
5720
5398
|
|
|
5721
|
-
export function
|
|
5399
|
+
export function updateAgentAgentsSettingsFromJSON(
|
|
5722
5400
|
jsonString: string,
|
|
5723
|
-
): SafeParseResult<
|
|
5401
|
+
): SafeParseResult<UpdateAgentAgentsSettings, SDKValidationError> {
|
|
5724
5402
|
return safeParse(
|
|
5725
5403
|
jsonString,
|
|
5726
|
-
(x) =>
|
|
5727
|
-
`Failed to parse '
|
|
5404
|
+
(x) => UpdateAgentAgentsSettings$inboundSchema.parse(JSON.parse(x)),
|
|
5405
|
+
`Failed to parse 'UpdateAgentAgentsSettings' from JSON`,
|
|
5728
5406
|
);
|
|
5729
5407
|
}
|
|
5730
5408
|
|
|
@@ -5843,8 +5521,8 @@ export function updateAgentResponseFormatAgentsResponseTextFromJSON(
|
|
|
5843
5521
|
}
|
|
5844
5522
|
|
|
5845
5523
|
/** @internal */
|
|
5846
|
-
export const
|
|
5847
|
-
|
|
5524
|
+
export const UpdateAgentResponseFormat$inboundSchema: z.ZodType<
|
|
5525
|
+
UpdateAgentResponseFormat,
|
|
5848
5526
|
z.ZodTypeDef,
|
|
5849
5527
|
unknown
|
|
5850
5528
|
> = z.union([
|
|
@@ -5855,43 +5533,41 @@ export const UpdateAgentResponseBodyResponseFormat$inboundSchema: z.ZodType<
|
|
|
5855
5533
|
),
|
|
5856
5534
|
]);
|
|
5857
5535
|
|
|
5858
|
-
export function
|
|
5536
|
+
export function updateAgentResponseFormatFromJSON(
|
|
5859
5537
|
jsonString: string,
|
|
5860
|
-
): SafeParseResult<
|
|
5538
|
+
): SafeParseResult<UpdateAgentResponseFormat, SDKValidationError> {
|
|
5861
5539
|
return safeParse(
|
|
5862
5540
|
jsonString,
|
|
5863
|
-
(x) =>
|
|
5864
|
-
|
|
5865
|
-
`Failed to parse 'UpdateAgentResponseBodyResponseFormat' from JSON`,
|
|
5541
|
+
(x) => UpdateAgentResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
5542
|
+
`Failed to parse 'UpdateAgentResponseFormat' from JSON`,
|
|
5866
5543
|
);
|
|
5867
5544
|
}
|
|
5868
5545
|
|
|
5869
5546
|
/** @internal */
|
|
5870
|
-
export const
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
);
|
|
5547
|
+
export const UpdateAgentReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
5548
|
+
typeof UpdateAgentReasoningEffort
|
|
5549
|
+
> = z.nativeEnum(UpdateAgentReasoningEffort);
|
|
5874
5550
|
|
|
5875
5551
|
/** @internal */
|
|
5876
|
-
export const
|
|
5877
|
-
|
|
5552
|
+
export const UpdateAgentStop$inboundSchema: z.ZodType<
|
|
5553
|
+
UpdateAgentStop,
|
|
5878
5554
|
z.ZodTypeDef,
|
|
5879
5555
|
unknown
|
|
5880
5556
|
> = z.union([z.string(), z.array(z.string())]);
|
|
5881
5557
|
|
|
5882
|
-
export function
|
|
5558
|
+
export function updateAgentStopFromJSON(
|
|
5883
5559
|
jsonString: string,
|
|
5884
|
-
): SafeParseResult<
|
|
5560
|
+
): SafeParseResult<UpdateAgentStop, SDKValidationError> {
|
|
5885
5561
|
return safeParse(
|
|
5886
5562
|
jsonString,
|
|
5887
|
-
(x) =>
|
|
5888
|
-
`Failed to parse '
|
|
5563
|
+
(x) => UpdateAgentStop$inboundSchema.parse(JSON.parse(x)),
|
|
5564
|
+
`Failed to parse 'UpdateAgentStop' from JSON`,
|
|
5889
5565
|
);
|
|
5890
5566
|
}
|
|
5891
5567
|
|
|
5892
5568
|
/** @internal */
|
|
5893
|
-
export const
|
|
5894
|
-
|
|
5569
|
+
export const UpdateAgentThinking$inboundSchema: z.ZodType<
|
|
5570
|
+
UpdateAgentThinking,
|
|
5895
5571
|
z.ZodTypeDef,
|
|
5896
5572
|
unknown
|
|
5897
5573
|
> = z.union([
|
|
@@ -5899,13 +5575,13 @@ export const UpdateAgentResponseBodyThinking$inboundSchema: z.ZodType<
|
|
|
5899
5575
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5900
5576
|
]);
|
|
5901
5577
|
|
|
5902
|
-
export function
|
|
5578
|
+
export function updateAgentThinkingFromJSON(
|
|
5903
5579
|
jsonString: string,
|
|
5904
|
-
): SafeParseResult<
|
|
5580
|
+
): SafeParseResult<UpdateAgentThinking, SDKValidationError> {
|
|
5905
5581
|
return safeParse(
|
|
5906
5582
|
jsonString,
|
|
5907
|
-
(x) =>
|
|
5908
|
-
`Failed to parse '
|
|
5583
|
+
(x) => UpdateAgentThinking$inboundSchema.parse(JSON.parse(x)),
|
|
5584
|
+
`Failed to parse 'UpdateAgentThinking' from JSON`,
|
|
5909
5585
|
);
|
|
5910
5586
|
}
|
|
5911
5587
|
|
|
@@ -5970,8 +5646,8 @@ export const UpdateAgentToolChoiceAgentsResponse1$inboundSchema:
|
|
|
5970
5646
|
);
|
|
5971
5647
|
|
|
5972
5648
|
/** @internal */
|
|
5973
|
-
export const
|
|
5974
|
-
|
|
5649
|
+
export const UpdateAgentToolChoice$inboundSchema: z.ZodType<
|
|
5650
|
+
UpdateAgentToolChoice,
|
|
5975
5651
|
z.ZodTypeDef,
|
|
5976
5652
|
unknown
|
|
5977
5653
|
> = z.union([
|
|
@@ -5979,20 +5655,20 @@ export const UpdateAgentResponseBodyToolChoice$inboundSchema: z.ZodType<
|
|
|
5979
5655
|
UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
|
|
5980
5656
|
]);
|
|
5981
5657
|
|
|
5982
|
-
export function
|
|
5658
|
+
export function updateAgentToolChoiceFromJSON(
|
|
5983
5659
|
jsonString: string,
|
|
5984
|
-
): SafeParseResult<
|
|
5660
|
+
): SafeParseResult<UpdateAgentToolChoice, SDKValidationError> {
|
|
5985
5661
|
return safeParse(
|
|
5986
5662
|
jsonString,
|
|
5987
|
-
(x) =>
|
|
5988
|
-
`Failed to parse '
|
|
5663
|
+
(x) => UpdateAgentToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
5664
|
+
`Failed to parse 'UpdateAgentToolChoice' from JSON`,
|
|
5989
5665
|
);
|
|
5990
5666
|
}
|
|
5991
5667
|
|
|
5992
5668
|
/** @internal */
|
|
5993
|
-
export const
|
|
5994
|
-
typeof
|
|
5995
|
-
> = z.nativeEnum(
|
|
5669
|
+
export const UpdateAgentModalities$inboundSchema: z.ZodNativeEnum<
|
|
5670
|
+
typeof UpdateAgentModalities
|
|
5671
|
+
> = z.nativeEnum(UpdateAgentModalities);
|
|
5996
5672
|
|
|
5997
5673
|
/** @internal */
|
|
5998
5674
|
export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -6000,98 +5676,94 @@ export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
|
6000
5676
|
> = z.nativeEnum(UpdateAgentIdAgentsResponse1);
|
|
6001
5677
|
|
|
6002
5678
|
/** @internal */
|
|
6003
|
-
export const
|
|
6004
|
-
|
|
5679
|
+
export const UpdateAgentId$inboundSchema: z.ZodType<
|
|
5680
|
+
UpdateAgentId,
|
|
6005
5681
|
z.ZodTypeDef,
|
|
6006
5682
|
unknown
|
|
6007
5683
|
> = z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]);
|
|
6008
5684
|
|
|
6009
|
-
export function
|
|
5685
|
+
export function updateAgentIdFromJSON(
|
|
6010
5686
|
jsonString: string,
|
|
6011
|
-
): SafeParseResult<
|
|
5687
|
+
): SafeParseResult<UpdateAgentId, SDKValidationError> {
|
|
6012
5688
|
return safeParse(
|
|
6013
5689
|
jsonString,
|
|
6014
|
-
(x) =>
|
|
6015
|
-
`Failed to parse '
|
|
5690
|
+
(x) => UpdateAgentId$inboundSchema.parse(JSON.parse(x)),
|
|
5691
|
+
`Failed to parse 'UpdateAgentId' from JSON`,
|
|
6016
5692
|
);
|
|
6017
5693
|
}
|
|
6018
5694
|
|
|
6019
5695
|
/** @internal */
|
|
6020
|
-
export const
|
|
6021
|
-
z.ZodNativeEnum<typeof
|
|
6022
|
-
.nativeEnum(
|
|
5696
|
+
export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema:
|
|
5697
|
+
z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn> =
|
|
5698
|
+
z.nativeEnum(UpdateAgentAgentsResponse200ApplicationJSONExecuteOn);
|
|
6023
5699
|
|
|
6024
5700
|
/** @internal */
|
|
6025
|
-
export const
|
|
6026
|
-
|
|
5701
|
+
export const UpdateAgentAgentsResponseGuardrails$inboundSchema: z.ZodType<
|
|
5702
|
+
UpdateAgentAgentsResponseGuardrails,
|
|
6027
5703
|
z.ZodTypeDef,
|
|
6028
5704
|
unknown
|
|
6029
5705
|
> = z.object({
|
|
6030
5706
|
id: z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]),
|
|
6031
|
-
execute_on:
|
|
5707
|
+
execute_on:
|
|
5708
|
+
UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema,
|
|
6032
5709
|
}).transform((v) => {
|
|
6033
5710
|
return remap$(v, {
|
|
6034
5711
|
"execute_on": "executeOn",
|
|
6035
5712
|
});
|
|
6036
5713
|
});
|
|
6037
5714
|
|
|
6038
|
-
export function
|
|
5715
|
+
export function updateAgentAgentsResponseGuardrailsFromJSON(
|
|
6039
5716
|
jsonString: string,
|
|
6040
|
-
): SafeParseResult<
|
|
6041
|
-
UpdateAgentResponseBodyAgentsGuardrails,
|
|
6042
|
-
SDKValidationError
|
|
6043
|
-
> {
|
|
5717
|
+
): SafeParseResult<UpdateAgentAgentsResponseGuardrails, SDKValidationError> {
|
|
6044
5718
|
return safeParse(
|
|
6045
5719
|
jsonString,
|
|
6046
5720
|
(x) =>
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
),
|
|
6050
|
-
`Failed to parse 'UpdateAgentResponseBodyAgentsGuardrails' from JSON`,
|
|
5721
|
+
UpdateAgentAgentsResponseGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5722
|
+
`Failed to parse 'UpdateAgentAgentsResponseGuardrails' from JSON`,
|
|
6051
5723
|
);
|
|
6052
5724
|
}
|
|
6053
5725
|
|
|
6054
5726
|
/** @internal */
|
|
6055
|
-
export const
|
|
6056
|
-
|
|
5727
|
+
export const UpdateAgentFallbacks$inboundSchema: z.ZodType<
|
|
5728
|
+
UpdateAgentFallbacks,
|
|
6057
5729
|
z.ZodTypeDef,
|
|
6058
5730
|
unknown
|
|
6059
5731
|
> = z.object({
|
|
6060
5732
|
model: z.string(),
|
|
6061
5733
|
});
|
|
6062
5734
|
|
|
6063
|
-
export function
|
|
5735
|
+
export function updateAgentFallbacksFromJSON(
|
|
6064
5736
|
jsonString: string,
|
|
6065
|
-
): SafeParseResult<
|
|
5737
|
+
): SafeParseResult<UpdateAgentFallbacks, SDKValidationError> {
|
|
6066
5738
|
return safeParse(
|
|
6067
5739
|
jsonString,
|
|
6068
|
-
(x) =>
|
|
6069
|
-
`Failed to parse '
|
|
5740
|
+
(x) => UpdateAgentFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
5741
|
+
`Failed to parse 'UpdateAgentFallbacks' from JSON`,
|
|
6070
5742
|
);
|
|
6071
5743
|
}
|
|
6072
5744
|
|
|
6073
5745
|
/** @internal */
|
|
6074
|
-
export const
|
|
6075
|
-
|
|
6076
|
-
|
|
5746
|
+
export const UpdateAgentAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
5747
|
+
typeof UpdateAgentAgentsType
|
|
5748
|
+
> = z.nativeEnum(UpdateAgentAgentsType);
|
|
6077
5749
|
|
|
6078
5750
|
/** @internal */
|
|
6079
|
-
export const
|
|
6080
|
-
|
|
5751
|
+
export const UpdateAgentCache$inboundSchema: z.ZodType<
|
|
5752
|
+
UpdateAgentCache,
|
|
6081
5753
|
z.ZodTypeDef,
|
|
6082
5754
|
unknown
|
|
6083
5755
|
> = z.object({
|
|
6084
5756
|
ttl: z.number().default(1800),
|
|
6085
|
-
type:
|
|
5757
|
+
type: UpdateAgentAgentsType$inboundSchema,
|
|
6086
5758
|
});
|
|
6087
5759
|
|
|
6088
|
-
export function
|
|
5760
|
+
export function updateAgentCacheFromJSON(
|
|
6089
5761
|
jsonString: string,
|
|
6090
|
-
): SafeParseResult<
|
|
5762
|
+
): SafeParseResult<UpdateAgentCache, SDKValidationError> {
|
|
6091
5763
|
return safeParse(
|
|
6092
5764
|
jsonString,
|
|
6093
|
-
(x) =>
|
|
6094
|
-
`Failed to parse '
|
|
5765
|
+
(x) => UpdateAgentCache$inboundSchema.parse(JSON.parse(x)),
|
|
5766
|
+
`Failed to parse 'UpdateAgentCache' from JSON`,
|
|
6095
5767
|
);
|
|
6096
5768
|
}
|
|
6097
5769
|
|
|
@@ -6151,26 +5823,25 @@ export function updateAgentLoadBalancerAgentsResponse1FromJSON(
|
|
|
6151
5823
|
}
|
|
6152
5824
|
|
|
6153
5825
|
/** @internal */
|
|
6154
|
-
export const
|
|
6155
|
-
|
|
5826
|
+
export const UpdateAgentLoadBalancer$inboundSchema: z.ZodType<
|
|
5827
|
+
UpdateAgentLoadBalancer,
|
|
6156
5828
|
z.ZodTypeDef,
|
|
6157
5829
|
unknown
|
|
6158
5830
|
> = z.lazy(() => UpdateAgentLoadBalancerAgentsResponse1$inboundSchema);
|
|
6159
5831
|
|
|
6160
|
-
export function
|
|
5832
|
+
export function updateAgentLoadBalancerFromJSON(
|
|
6161
5833
|
jsonString: string,
|
|
6162
|
-
): SafeParseResult<
|
|
5834
|
+
): SafeParseResult<UpdateAgentLoadBalancer, SDKValidationError> {
|
|
6163
5835
|
return safeParse(
|
|
6164
5836
|
jsonString,
|
|
6165
|
-
(x) =>
|
|
6166
|
-
|
|
6167
|
-
`Failed to parse 'UpdateAgentResponseBodyLoadBalancer' from JSON`,
|
|
5837
|
+
(x) => UpdateAgentLoadBalancer$inboundSchema.parse(JSON.parse(x)),
|
|
5838
|
+
`Failed to parse 'UpdateAgentLoadBalancer' from JSON`,
|
|
6168
5839
|
);
|
|
6169
5840
|
}
|
|
6170
5841
|
|
|
6171
5842
|
/** @internal */
|
|
6172
|
-
export const
|
|
6173
|
-
|
|
5843
|
+
export const UpdateAgentTimeout$inboundSchema: z.ZodType<
|
|
5844
|
+
UpdateAgentTimeout,
|
|
6174
5845
|
z.ZodTypeDef,
|
|
6175
5846
|
unknown
|
|
6176
5847
|
> = z.object({
|
|
@@ -6181,19 +5852,19 @@ export const UpdateAgentResponseBodyTimeout$inboundSchema: z.ZodType<
|
|
|
6181
5852
|
});
|
|
6182
5853
|
});
|
|
6183
5854
|
|
|
6184
|
-
export function
|
|
5855
|
+
export function updateAgentTimeoutFromJSON(
|
|
6185
5856
|
jsonString: string,
|
|
6186
|
-
): SafeParseResult<
|
|
5857
|
+
): SafeParseResult<UpdateAgentTimeout, SDKValidationError> {
|
|
6187
5858
|
return safeParse(
|
|
6188
5859
|
jsonString,
|
|
6189
|
-
(x) =>
|
|
6190
|
-
`Failed to parse '
|
|
5860
|
+
(x) => UpdateAgentTimeout$inboundSchema.parse(JSON.parse(x)),
|
|
5861
|
+
`Failed to parse 'UpdateAgentTimeout' from JSON`,
|
|
6191
5862
|
);
|
|
6192
5863
|
}
|
|
6193
5864
|
|
|
6194
5865
|
/** @internal */
|
|
6195
|
-
export const
|
|
6196
|
-
|
|
5866
|
+
export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
5867
|
+
UpdateAgentParameters,
|
|
6197
5868
|
z.ZodTypeDef,
|
|
6198
5869
|
unknown
|
|
6199
5870
|
> = z.object({
|
|
@@ -6211,8 +5882,7 @@ export const UpdateAgentResponseBodyParameters$inboundSchema: z.ZodType<
|
|
|
6211
5882
|
UpdateAgentResponseFormatAgentsResponse200JSONSchema$inboundSchema
|
|
6212
5883
|
),
|
|
6213
5884
|
]).optional(),
|
|
6214
|
-
reasoning_effort:
|
|
6215
|
-
.optional(),
|
|
5885
|
+
reasoning_effort: UpdateAgentReasoningEffort$inboundSchema.optional(),
|
|
6216
5886
|
verbosity: z.string().optional(),
|
|
6217
5887
|
seed: z.nullable(z.number()).optional(),
|
|
6218
5888
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -6228,21 +5898,18 @@ export const UpdateAgentResponseBodyParameters$inboundSchema: z.ZodType<
|
|
|
6228
5898
|
UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
|
|
6229
5899
|
]).optional(),
|
|
6230
5900
|
parallel_tool_calls: z.boolean().optional(),
|
|
6231
|
-
modalities: z.nullable(
|
|
6232
|
-
|
|
6233
|
-
).optional(),
|
|
5901
|
+
modalities: z.nullable(z.array(UpdateAgentModalities$inboundSchema))
|
|
5902
|
+
.optional(),
|
|
6234
5903
|
guardrails: z.array(
|
|
6235
|
-
z.lazy(() =>
|
|
6236
|
-
).optional(),
|
|
6237
|
-
fallbacks: z.array(
|
|
6238
|
-
z.lazy(() => UpdateAgentResponseBodyFallbacks$inboundSchema),
|
|
5904
|
+
z.lazy(() => UpdateAgentAgentsResponseGuardrails$inboundSchema),
|
|
6239
5905
|
).optional(),
|
|
6240
|
-
|
|
5906
|
+
fallbacks: z.array(z.lazy(() => UpdateAgentFallbacks$inboundSchema))
|
|
5907
|
+
.optional(),
|
|
5908
|
+
cache: z.lazy(() => UpdateAgentCache$inboundSchema).optional(),
|
|
6241
5909
|
load_balancer: z.lazy(() =>
|
|
6242
5910
|
UpdateAgentLoadBalancerAgentsResponse1$inboundSchema
|
|
6243
5911
|
).optional(),
|
|
6244
|
-
timeout: z.lazy(() =>
|
|
6245
|
-
.optional(),
|
|
5912
|
+
timeout: z.lazy(() => UpdateAgentTimeout$inboundSchema).optional(),
|
|
6246
5913
|
}).transform((v) => {
|
|
6247
5914
|
return remap$(v, {
|
|
6248
5915
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -6259,19 +5926,19 @@ export const UpdateAgentResponseBodyParameters$inboundSchema: z.ZodType<
|
|
|
6259
5926
|
});
|
|
6260
5927
|
});
|
|
6261
5928
|
|
|
6262
|
-
export function
|
|
5929
|
+
export function updateAgentParametersFromJSON(
|
|
6263
5930
|
jsonString: string,
|
|
6264
|
-
): SafeParseResult<
|
|
5931
|
+
): SafeParseResult<UpdateAgentParameters, SDKValidationError> {
|
|
6265
5932
|
return safeParse(
|
|
6266
5933
|
jsonString,
|
|
6267
|
-
(x) =>
|
|
6268
|
-
`Failed to parse '
|
|
5934
|
+
(x) => UpdateAgentParameters$inboundSchema.parse(JSON.parse(x)),
|
|
5935
|
+
`Failed to parse 'UpdateAgentParameters' from JSON`,
|
|
6269
5936
|
);
|
|
6270
5937
|
}
|
|
6271
5938
|
|
|
6272
5939
|
/** @internal */
|
|
6273
|
-
export const
|
|
6274
|
-
|
|
5940
|
+
export const UpdateAgentRetry$inboundSchema: z.ZodType<
|
|
5941
|
+
UpdateAgentRetry,
|
|
6275
5942
|
z.ZodTypeDef,
|
|
6276
5943
|
unknown
|
|
6277
5944
|
> = z.object({
|
|
@@ -6283,13 +5950,13 @@ export const UpdateAgentResponseBodyRetry$inboundSchema: z.ZodType<
|
|
|
6283
5950
|
});
|
|
6284
5951
|
});
|
|
6285
5952
|
|
|
6286
|
-
export function
|
|
5953
|
+
export function updateAgentRetryFromJSON(
|
|
6287
5954
|
jsonString: string,
|
|
6288
|
-
): SafeParseResult<
|
|
5955
|
+
): SafeParseResult<UpdateAgentRetry, SDKValidationError> {
|
|
6289
5956
|
return safeParse(
|
|
6290
5957
|
jsonString,
|
|
6291
|
-
(x) =>
|
|
6292
|
-
`Failed to parse '
|
|
5958
|
+
(x) => UpdateAgentRetry$inboundSchema.parse(JSON.parse(x)),
|
|
5959
|
+
`Failed to parse 'UpdateAgentRetry' from JSON`,
|
|
6293
5960
|
);
|
|
6294
5961
|
}
|
|
6295
5962
|
|
|
@@ -6988,9 +6655,9 @@ export function updateAgentFallbackModelConfigurationAgents2FromJSON(
|
|
|
6988
6655
|
}
|
|
6989
6656
|
|
|
6990
6657
|
/** @internal */
|
|
6991
|
-
export const
|
|
6658
|
+
export const UpdateAgentAgentsFallbackModelConfiguration$inboundSchema:
|
|
6992
6659
|
z.ZodType<
|
|
6993
|
-
|
|
6660
|
+
UpdateAgentAgentsFallbackModelConfiguration,
|
|
6994
6661
|
z.ZodTypeDef,
|
|
6995
6662
|
unknown
|
|
6996
6663
|
> = z.union([
|
|
@@ -6998,33 +6665,32 @@ export const UpdateAgentResponseBodyFallbackModelConfiguration$inboundSchema:
|
|
|
6998
6665
|
z.string(),
|
|
6999
6666
|
]);
|
|
7000
6667
|
|
|
7001
|
-
export function
|
|
6668
|
+
export function updateAgentAgentsFallbackModelConfigurationFromJSON(
|
|
7002
6669
|
jsonString: string,
|
|
7003
6670
|
): SafeParseResult<
|
|
7004
|
-
|
|
6671
|
+
UpdateAgentAgentsFallbackModelConfiguration,
|
|
7005
6672
|
SDKValidationError
|
|
7006
6673
|
> {
|
|
7007
6674
|
return safeParse(
|
|
7008
6675
|
jsonString,
|
|
7009
6676
|
(x) =>
|
|
7010
|
-
|
|
6677
|
+
UpdateAgentAgentsFallbackModelConfiguration$inboundSchema.parse(
|
|
7011
6678
|
JSON.parse(x),
|
|
7012
6679
|
),
|
|
7013
|
-
`Failed to parse '
|
|
6680
|
+
`Failed to parse 'UpdateAgentAgentsFallbackModelConfiguration' from JSON`,
|
|
7014
6681
|
);
|
|
7015
6682
|
}
|
|
7016
6683
|
|
|
7017
6684
|
/** @internal */
|
|
7018
|
-
export const
|
|
7019
|
-
|
|
6685
|
+
export const UpdateAgentModel$inboundSchema: z.ZodType<
|
|
6686
|
+
UpdateAgentModel,
|
|
7020
6687
|
z.ZodTypeDef,
|
|
7021
6688
|
unknown
|
|
7022
6689
|
> = z.object({
|
|
7023
6690
|
id: z.string(),
|
|
7024
6691
|
integration_id: z.nullable(z.string()).optional(),
|
|
7025
|
-
parameters: z.lazy(() =>
|
|
7026
|
-
|
|
7027
|
-
retry: z.lazy(() => UpdateAgentResponseBodyRetry$inboundSchema).optional(),
|
|
6692
|
+
parameters: z.lazy(() => UpdateAgentParameters$inboundSchema).optional(),
|
|
6693
|
+
retry: z.lazy(() => UpdateAgentRetry$inboundSchema).optional(),
|
|
7028
6694
|
fallback_models: z.nullable(
|
|
7029
6695
|
z.array(z.union([
|
|
7030
6696
|
z.lazy(() => UpdateAgentFallbackModelConfigurationAgents2$inboundSchema),
|
|
@@ -7038,19 +6704,68 @@ export const UpdateAgentResponseBodyModel$inboundSchema: z.ZodType<
|
|
|
7038
6704
|
});
|
|
7039
6705
|
});
|
|
7040
6706
|
|
|
7041
|
-
export function
|
|
6707
|
+
export function updateAgentModelFromJSON(
|
|
7042
6708
|
jsonString: string,
|
|
7043
|
-
): SafeParseResult<
|
|
6709
|
+
): SafeParseResult<UpdateAgentModel, SDKValidationError> {
|
|
7044
6710
|
return safeParse(
|
|
7045
6711
|
jsonString,
|
|
7046
|
-
(x) =>
|
|
7047
|
-
`Failed to parse '
|
|
6712
|
+
(x) => UpdateAgentModel$inboundSchema.parse(JSON.parse(x)),
|
|
6713
|
+
`Failed to parse 'UpdateAgentModel' from JSON`,
|
|
7048
6714
|
);
|
|
7049
6715
|
}
|
|
7050
6716
|
|
|
7051
6717
|
/** @internal */
|
|
7052
|
-
export const
|
|
7053
|
-
|
|
6718
|
+
export const UpdateAgentAgentsHeaders$inboundSchema: z.ZodType<
|
|
6719
|
+
UpdateAgentAgentsHeaders,
|
|
6720
|
+
z.ZodTypeDef,
|
|
6721
|
+
unknown
|
|
6722
|
+
> = z.object({
|
|
6723
|
+
value: z.string(),
|
|
6724
|
+
encrypted: z.boolean().default(false),
|
|
6725
|
+
});
|
|
6726
|
+
|
|
6727
|
+
export function updateAgentAgentsHeadersFromJSON(
|
|
6728
|
+
jsonString: string,
|
|
6729
|
+
): SafeParseResult<UpdateAgentAgentsHeaders, SDKValidationError> {
|
|
6730
|
+
return safeParse(
|
|
6731
|
+
jsonString,
|
|
6732
|
+
(x) => UpdateAgentAgentsHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
6733
|
+
`Failed to parse 'UpdateAgentAgentsHeaders' from JSON`,
|
|
6734
|
+
);
|
|
6735
|
+
}
|
|
6736
|
+
|
|
6737
|
+
/** @internal */
|
|
6738
|
+
export const UpdateAgentA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
6739
|
+
UpdateAgentA2AAgentConfiguration,
|
|
6740
|
+
z.ZodTypeDef,
|
|
6741
|
+
unknown
|
|
6742
|
+
> = z.object({
|
|
6743
|
+
agent_url: z.string(),
|
|
6744
|
+
card_url: z.string().optional(),
|
|
6745
|
+
headers: z.record(z.lazy(() => UpdateAgentAgentsHeaders$inboundSchema))
|
|
6746
|
+
.optional(),
|
|
6747
|
+
cached_card: z.any().optional(),
|
|
6748
|
+
}).transform((v) => {
|
|
6749
|
+
return remap$(v, {
|
|
6750
|
+
"agent_url": "agentUrl",
|
|
6751
|
+
"card_url": "cardUrl",
|
|
6752
|
+
"cached_card": "cachedCard",
|
|
6753
|
+
});
|
|
6754
|
+
});
|
|
6755
|
+
|
|
6756
|
+
export function updateAgentA2AAgentConfigurationFromJSON(
|
|
6757
|
+
jsonString: string,
|
|
6758
|
+
): SafeParseResult<UpdateAgentA2AAgentConfiguration, SDKValidationError> {
|
|
6759
|
+
return safeParse(
|
|
6760
|
+
jsonString,
|
|
6761
|
+
(x) => UpdateAgentA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
6762
|
+
`Failed to parse 'UpdateAgentA2AAgentConfiguration' from JSON`,
|
|
6763
|
+
);
|
|
6764
|
+
}
|
|
6765
|
+
|
|
6766
|
+
/** @internal */
|
|
6767
|
+
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
6768
|
+
UpdateAgentResponseBody,
|
|
7054
6769
|
z.ZodTypeDef,
|
|
7055
6770
|
unknown
|
|
7056
6771
|
> = z.object({
|
|
@@ -7062,28 +6777,27 @@ export const UpdateAgentResponseBody1$inboundSchema: z.ZodType<
|
|
|
7062
6777
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
7063
6778
|
created: z.string().optional(),
|
|
7064
6779
|
updated: z.string().optional(),
|
|
7065
|
-
status:
|
|
6780
|
+
status: UpdateAgentStatus$inboundSchema,
|
|
7066
6781
|
version_hash: z.string().optional(),
|
|
7067
6782
|
path: z.string(),
|
|
7068
6783
|
memory_stores: z.array(z.string()).optional(),
|
|
7069
6784
|
team_of_agents: z.array(
|
|
7070
|
-
z.lazy(() =>
|
|
6785
|
+
z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
|
|
7071
6786
|
).optional(),
|
|
7072
|
-
metrics: z.lazy(() =>
|
|
7073
|
-
.optional(),
|
|
6787
|
+
metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
|
|
7074
6788
|
variables: z.record(z.any()).optional(),
|
|
7075
6789
|
knowledge_bases: z.array(
|
|
7076
|
-
z.lazy(() =>
|
|
6790
|
+
z.lazy(() => UpdateAgentAgentsKnowledgeBases$inboundSchema),
|
|
7077
6791
|
).optional(),
|
|
7078
|
-
source:
|
|
7079
|
-
type:
|
|
6792
|
+
source: UpdateAgentSource$inboundSchema.optional(),
|
|
6793
|
+
type: UpdateAgentType$inboundSchema.default("internal"),
|
|
7080
6794
|
role: z.string(),
|
|
7081
6795
|
description: z.string(),
|
|
7082
6796
|
system_prompt: z.string().optional(),
|
|
7083
6797
|
instructions: z.string(),
|
|
7084
|
-
settings: z.lazy(() =>
|
|
7085
|
-
|
|
7086
|
-
|
|
6798
|
+
settings: z.lazy(() => UpdateAgentAgentsSettings$inboundSchema).optional(),
|
|
6799
|
+
model: z.lazy(() => UpdateAgentModel$inboundSchema),
|
|
6800
|
+
a2a: z.lazy(() => UpdateAgentA2AAgentConfiguration$inboundSchema).optional(),
|
|
7087
6801
|
}).transform((v) => {
|
|
7088
6802
|
return remap$(v, {
|
|
7089
6803
|
"_id": "id",
|
|
@@ -7099,26 +6813,6 @@ export const UpdateAgentResponseBody1$inboundSchema: z.ZodType<
|
|
|
7099
6813
|
});
|
|
7100
6814
|
});
|
|
7101
6815
|
|
|
7102
|
-
export function updateAgentResponseBody1FromJSON(
|
|
7103
|
-
jsonString: string,
|
|
7104
|
-
): SafeParseResult<UpdateAgentResponseBody1, SDKValidationError> {
|
|
7105
|
-
return safeParse(
|
|
7106
|
-
jsonString,
|
|
7107
|
-
(x) => UpdateAgentResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
7108
|
-
`Failed to parse 'UpdateAgentResponseBody1' from JSON`,
|
|
7109
|
-
);
|
|
7110
|
-
}
|
|
7111
|
-
|
|
7112
|
-
/** @internal */
|
|
7113
|
-
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
7114
|
-
UpdateAgentResponseBody,
|
|
7115
|
-
z.ZodTypeDef,
|
|
7116
|
-
unknown
|
|
7117
|
-
> = z.union([
|
|
7118
|
-
z.lazy(() => UpdateAgentResponseBody1$inboundSchema),
|
|
7119
|
-
z.lazy(() => UpdateAgentResponseBody2$inboundSchema),
|
|
7120
|
-
]);
|
|
7121
|
-
|
|
7122
6816
|
export function updateAgentResponseBodyFromJSON(
|
|
7123
6817
|
jsonString: string,
|
|
7124
6818
|
): SafeParseResult<UpdateAgentResponseBody, SDKValidationError> {
|