@orq-ai/node 4.4.11 → 4.4.14
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/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.js +7 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +2 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.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/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- 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.js +6 -6
- package/models/operations/getevals.js +16 -16
- 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/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/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/packages/orq-rc/src/funcs/agentsList.ts +5 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +10 -1
- package/packages/orq-rc/src/lib/matchers.ts +3 -2
- package/packages/orq-rc/src/lib/security.ts +1 -2
- package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/index.ts +3 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +37 -2
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +14 -3
- package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -3
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
- package/packages/orq-rc/src/models/operations/createresponse.ts +2 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
- package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
- package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +3 -62
- package/packages/orq-rc/src/models/operations/updatetool.ts +96 -7
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +11 -0
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +2 -1
- package/src/models/operations/createcompletion.ts +2 -1
- 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/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- 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 +6 -6
- package/src/models/operations/getevals.ts +16 -16
- 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/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/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
|
@@ -10,6 +10,18 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
|
|
15
|
+
*/
|
|
16
|
+
export const QueryParamType = {
|
|
17
|
+
Internal: "internal",
|
|
18
|
+
A2a: "a2a",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
|
|
22
|
+
*/
|
|
23
|
+
export type QueryParamType = ClosedEnum<typeof QueryParamType>;
|
|
24
|
+
|
|
13
25
|
export type ListAgentsRequest = {
|
|
14
26
|
/**
|
|
15
27
|
* A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
|
|
@@ -23,6 +35,10 @@ export type ListAgentsRequest = {
|
|
|
23
35
|
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
24
36
|
*/
|
|
25
37
|
endingBefore?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
|
|
40
|
+
*/
|
|
41
|
+
type?: QueryParamType | undefined;
|
|
26
42
|
};
|
|
27
43
|
|
|
28
44
|
export const ListAgentsObject = {
|
|
@@ -33,7 +49,7 @@ export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
|
|
|
33
49
|
/**
|
|
34
50
|
* 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.
|
|
35
51
|
*/
|
|
36
|
-
export const
|
|
52
|
+
export const ListAgentsDataStatus = {
|
|
37
53
|
Live: "live",
|
|
38
54
|
Draft: "draft",
|
|
39
55
|
Pending: "pending",
|
|
@@ -42,12 +58,181 @@ export const ListAgentsStatus = {
|
|
|
42
58
|
/**
|
|
43
59
|
* 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.
|
|
44
60
|
*/
|
|
45
|
-
export type
|
|
61
|
+
export type ListAgentsDataStatus = ClosedEnum<typeof ListAgentsDataStatus>;
|
|
62
|
+
|
|
63
|
+
export type ListAgentsDataTeamOfAgents = {
|
|
64
|
+
/**
|
|
65
|
+
* The unique key of the agent within the workspace
|
|
66
|
+
*/
|
|
67
|
+
key: string;
|
|
68
|
+
/**
|
|
69
|
+
* 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.
|
|
70
|
+
*/
|
|
71
|
+
role?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export type ListAgentsDataMetrics = {
|
|
75
|
+
totalCost: number;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type ListAgentsDataKnowledgeBases = {
|
|
79
|
+
/**
|
|
80
|
+
* Unique identifier of the knowledge base to search
|
|
81
|
+
*/
|
|
82
|
+
knowledgeId: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const ListAgentsDataSource = {
|
|
86
|
+
Internal: "internal",
|
|
87
|
+
External: "external",
|
|
88
|
+
Experiment: "experiment",
|
|
89
|
+
} as const;
|
|
90
|
+
export type ListAgentsDataSource = ClosedEnum<typeof ListAgentsDataSource>;
|
|
91
|
+
|
|
92
|
+
export type DataHeaders = {
|
|
93
|
+
/**
|
|
94
|
+
* 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.
|
|
95
|
+
*/
|
|
96
|
+
value: string;
|
|
97
|
+
encrypted: boolean;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
102
|
+
*/
|
|
103
|
+
export type DataA2AAgentConfiguration = {
|
|
104
|
+
/**
|
|
105
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
106
|
+
*/
|
|
107
|
+
agentUrl: string;
|
|
108
|
+
/**
|
|
109
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
110
|
+
*/
|
|
111
|
+
cardUrl?: string | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* 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.
|
|
114
|
+
*/
|
|
115
|
+
headers?: { [k: string]: DataHeaders } | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
118
|
+
*/
|
|
119
|
+
cachedCard?: any | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type Data2 = {
|
|
123
|
+
id: string;
|
|
124
|
+
/**
|
|
125
|
+
* Unique identifier for the agent within the workspace
|
|
126
|
+
*/
|
|
127
|
+
key: string;
|
|
128
|
+
displayName?: string | undefined;
|
|
129
|
+
createdById?: string | null | undefined;
|
|
130
|
+
updatedById?: string | null | undefined;
|
|
131
|
+
created?: string | undefined;
|
|
132
|
+
updated?: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* 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.
|
|
135
|
+
*/
|
|
136
|
+
status: ListAgentsDataStatus;
|
|
137
|
+
versionHash?: string | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
140
|
+
*
|
|
141
|
+
* @remarks
|
|
142
|
+
*
|
|
143
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
144
|
+
*
|
|
145
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
146
|
+
*/
|
|
147
|
+
path: string;
|
|
148
|
+
/**
|
|
149
|
+
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
150
|
+
*/
|
|
151
|
+
memoryStores?: Array<string> | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
154
|
+
*/
|
|
155
|
+
teamOfAgents?: Array<ListAgentsDataTeamOfAgents> | undefined;
|
|
156
|
+
metrics?: ListAgentsDataMetrics | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Extracted variables from agent instructions
|
|
159
|
+
*/
|
|
160
|
+
variables?: { [k: string]: any } | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Agent knowledge bases reference
|
|
163
|
+
*/
|
|
164
|
+
knowledgeBases?: Array<ListAgentsDataKnowledgeBases> | undefined;
|
|
165
|
+
source?: ListAgentsDataSource | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* External A2A-compliant agent
|
|
168
|
+
*/
|
|
169
|
+
type: "a2a";
|
|
170
|
+
/**
|
|
171
|
+
* Role fetched from agent card name or user-provided
|
|
172
|
+
*/
|
|
173
|
+
role: string;
|
|
174
|
+
/**
|
|
175
|
+
* Description fetched from agent card or user-provided
|
|
176
|
+
*/
|
|
177
|
+
description: string;
|
|
178
|
+
systemPrompt?: string | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* Instructions from agent card description or user-provided
|
|
181
|
+
*/
|
|
182
|
+
instructions: string;
|
|
183
|
+
/**
|
|
184
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
185
|
+
*/
|
|
186
|
+
a2a: DataA2AAgentConfiguration;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* 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.
|
|
191
|
+
*/
|
|
192
|
+
export const DataStatus = {
|
|
193
|
+
Live: "live",
|
|
194
|
+
Draft: "draft",
|
|
195
|
+
Pending: "pending",
|
|
196
|
+
Published: "published",
|
|
197
|
+
} as const;
|
|
198
|
+
/**
|
|
199
|
+
* 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.
|
|
200
|
+
*/
|
|
201
|
+
export type DataStatus = ClosedEnum<typeof DataStatus>;
|
|
202
|
+
|
|
203
|
+
export type DataTeamOfAgents = {
|
|
204
|
+
/**
|
|
205
|
+
* The unique key of the agent within the workspace
|
|
206
|
+
*/
|
|
207
|
+
key: string;
|
|
208
|
+
/**
|
|
209
|
+
* 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.
|
|
210
|
+
*/
|
|
211
|
+
role?: string | undefined;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export type DataMetrics = {
|
|
215
|
+
totalCost: number;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
export type DataKnowledgeBases = {
|
|
219
|
+
/**
|
|
220
|
+
* Unique identifier of the knowledge base to search
|
|
221
|
+
*/
|
|
222
|
+
knowledgeId: string;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export const DataSource = {
|
|
226
|
+
Internal: "internal",
|
|
227
|
+
External: "external",
|
|
228
|
+
Experiment: "experiment",
|
|
229
|
+
} as const;
|
|
230
|
+
export type DataSource = ClosedEnum<typeof DataSource>;
|
|
46
231
|
|
|
47
232
|
/**
|
|
48
233
|
* 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.
|
|
49
234
|
*/
|
|
50
|
-
export const
|
|
235
|
+
export const DataToolApprovalRequired = {
|
|
51
236
|
All: "all",
|
|
52
237
|
RespectTool: "respect_tool",
|
|
53
238
|
None: "none",
|
|
@@ -55,11 +240,11 @@ export const ListAgentsToolApprovalRequired = {
|
|
|
55
240
|
/**
|
|
56
241
|
* 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.
|
|
57
242
|
*/
|
|
58
|
-
export type
|
|
59
|
-
typeof
|
|
243
|
+
export type DataToolApprovalRequired = ClosedEnum<
|
|
244
|
+
typeof DataToolApprovalRequired
|
|
60
245
|
>;
|
|
61
246
|
|
|
62
|
-
export type
|
|
247
|
+
export type DataConditions = {
|
|
63
248
|
/**
|
|
64
249
|
* The argument of the tool call to evaluate
|
|
65
250
|
*/
|
|
@@ -74,7 +259,7 @@ export type ListAgentsConditions = {
|
|
|
74
259
|
value: string;
|
|
75
260
|
};
|
|
76
261
|
|
|
77
|
-
export type
|
|
262
|
+
export type DataTools = {
|
|
78
263
|
/**
|
|
79
264
|
* The id of the resource
|
|
80
265
|
*/
|
|
@@ -94,7 +279,7 @@ export type ListAgentsTools = {
|
|
|
94
279
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
95
280
|
*/
|
|
96
281
|
toolId?: string | undefined;
|
|
97
|
-
conditions?: Array<
|
|
282
|
+
conditions?: Array<DataConditions> | undefined;
|
|
98
283
|
/**
|
|
99
284
|
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
100
285
|
*/
|
|
@@ -104,16 +289,16 @@ export type ListAgentsTools = {
|
|
|
104
289
|
/**
|
|
105
290
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
106
291
|
*/
|
|
107
|
-
export const
|
|
292
|
+
export const DataExecuteOn = {
|
|
108
293
|
Input: "input",
|
|
109
294
|
Output: "output",
|
|
110
295
|
} as const;
|
|
111
296
|
/**
|
|
112
297
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
113
298
|
*/
|
|
114
|
-
export type
|
|
299
|
+
export type DataExecuteOn = ClosedEnum<typeof DataExecuteOn>;
|
|
115
300
|
|
|
116
|
-
export type
|
|
301
|
+
export type DataEvaluators = {
|
|
117
302
|
/**
|
|
118
303
|
* Unique key or identifier of the evaluator
|
|
119
304
|
*/
|
|
@@ -125,24 +310,24 @@ export type ListAgentsEvaluators = {
|
|
|
125
310
|
/**
|
|
126
311
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
127
312
|
*/
|
|
128
|
-
executeOn:
|
|
313
|
+
executeOn: DataExecuteOn;
|
|
129
314
|
};
|
|
130
315
|
|
|
131
316
|
/**
|
|
132
317
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
133
318
|
*/
|
|
134
|
-
export const
|
|
319
|
+
export const ListAgentsDataExecuteOn = {
|
|
135
320
|
Input: "input",
|
|
136
321
|
Output: "output",
|
|
137
322
|
} as const;
|
|
138
323
|
/**
|
|
139
324
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
140
325
|
*/
|
|
141
|
-
export type
|
|
142
|
-
typeof
|
|
326
|
+
export type ListAgentsDataExecuteOn = ClosedEnum<
|
|
327
|
+
typeof ListAgentsDataExecuteOn
|
|
143
328
|
>;
|
|
144
329
|
|
|
145
|
-
export type
|
|
330
|
+
export type DataGuardrails = {
|
|
146
331
|
/**
|
|
147
332
|
* Unique key or identifier of the evaluator
|
|
148
333
|
*/
|
|
@@ -154,10 +339,10 @@ export type ListAgentsGuardrails = {
|
|
|
154
339
|
/**
|
|
155
340
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
156
341
|
*/
|
|
157
|
-
executeOn:
|
|
342
|
+
executeOn: ListAgentsDataExecuteOn;
|
|
158
343
|
};
|
|
159
344
|
|
|
160
|
-
export type
|
|
345
|
+
export type DataSettings = {
|
|
161
346
|
/**
|
|
162
347
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
163
348
|
*/
|
|
@@ -173,61 +358,16 @@ export type ListAgentsSettings = {
|
|
|
173
358
|
/**
|
|
174
359
|
* 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.
|
|
175
360
|
*/
|
|
176
|
-
toolApprovalRequired:
|
|
177
|
-
tools?: Array<
|
|
361
|
+
toolApprovalRequired: DataToolApprovalRequired;
|
|
362
|
+
tools?: Array<DataTools> | undefined;
|
|
178
363
|
/**
|
|
179
364
|
* Configuration for an evaluator applied to the agent
|
|
180
365
|
*/
|
|
181
|
-
evaluators?: Array<
|
|
366
|
+
evaluators?: Array<DataEvaluators> | undefined;
|
|
182
367
|
/**
|
|
183
368
|
* Configuration for a guardrail applied to the agent
|
|
184
369
|
*/
|
|
185
|
-
guardrails?: Array<
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
190
|
-
*/
|
|
191
|
-
export const ListAgentsVoice = {
|
|
192
|
-
Alloy: "alloy",
|
|
193
|
-
Echo: "echo",
|
|
194
|
-
Fable: "fable",
|
|
195
|
-
Onyx: "onyx",
|
|
196
|
-
Nova: "nova",
|
|
197
|
-
Shimmer: "shimmer",
|
|
198
|
-
} as const;
|
|
199
|
-
/**
|
|
200
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
201
|
-
*/
|
|
202
|
-
export type ListAgentsVoice = ClosedEnum<typeof ListAgentsVoice>;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
206
|
-
*/
|
|
207
|
-
export const ListAgentsFormat = {
|
|
208
|
-
Wav: "wav",
|
|
209
|
-
Mp3: "mp3",
|
|
210
|
-
Flac: "flac",
|
|
211
|
-
Opus: "opus",
|
|
212
|
-
Pcm16: "pcm16",
|
|
213
|
-
} as const;
|
|
214
|
-
/**
|
|
215
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
216
|
-
*/
|
|
217
|
-
export type ListAgentsFormat = ClosedEnum<typeof ListAgentsFormat>;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
221
|
-
*/
|
|
222
|
-
export type ListAgentsAudio = {
|
|
223
|
-
/**
|
|
224
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
225
|
-
*/
|
|
226
|
-
voice: ListAgentsVoice;
|
|
227
|
-
/**
|
|
228
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
229
|
-
*/
|
|
230
|
-
format: ListAgentsFormat;
|
|
370
|
+
guardrails?: Array<DataGuardrails> | undefined;
|
|
231
371
|
};
|
|
232
372
|
|
|
233
373
|
export type ListAgentsResponseFormatJsonSchema = {
|
|
@@ -280,7 +420,7 @@ export type ListAgentsResponseFormatText = {
|
|
|
280
420
|
/**
|
|
281
421
|
* An object specifying the format that the model must output
|
|
282
422
|
*/
|
|
283
|
-
export type
|
|
423
|
+
export type DataResponseFormat =
|
|
284
424
|
| ListAgentsResponseFormatText
|
|
285
425
|
| ListAgentsResponseFormatJSONObject
|
|
286
426
|
| ListAgentsResponseFormatAgentsJSONSchema;
|
|
@@ -297,7 +437,7 @@ export type ListAgentsResponseFormat =
|
|
|
297
437
|
*
|
|
298
438
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
299
439
|
*/
|
|
300
|
-
export const
|
|
440
|
+
export const DataReasoningEffort = {
|
|
301
441
|
None: "none",
|
|
302
442
|
Minimal: "minimal",
|
|
303
443
|
Low: "low",
|
|
@@ -317,26 +457,14 @@ export const ListAgentsReasoningEffort = {
|
|
|
317
457
|
*
|
|
318
458
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
319
459
|
*/
|
|
320
|
-
export type
|
|
321
|
-
typeof ListAgentsReasoningEffort
|
|
322
|
-
>;
|
|
460
|
+
export type DataReasoningEffort = ClosedEnum<typeof DataReasoningEffort>;
|
|
323
461
|
|
|
324
462
|
/**
|
|
325
463
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
326
464
|
*/
|
|
327
|
-
export type
|
|
465
|
+
export type DataStop = string | Array<string>;
|
|
328
466
|
|
|
329
|
-
|
|
330
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
331
|
-
*/
|
|
332
|
-
export type ListAgentsStreamOptions = {
|
|
333
|
-
/**
|
|
334
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
335
|
-
*/
|
|
336
|
-
includeUsage?: boolean | undefined;
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
export type ListAgentsThinking =
|
|
467
|
+
export type DataThinking =
|
|
340
468
|
| components.ThinkingConfigDisabledSchema
|
|
341
469
|
| components.ThinkingConfigEnabledSchema;
|
|
342
470
|
|
|
@@ -378,15 +506,13 @@ export type ListAgentsToolChoice1 = ClosedEnum<typeof ListAgentsToolChoice1>;
|
|
|
378
506
|
/**
|
|
379
507
|
* Controls which (if any) tool is called by the model.
|
|
380
508
|
*/
|
|
381
|
-
export type
|
|
382
|
-
| ListAgentsToolChoice2
|
|
383
|
-
| ListAgentsToolChoice1;
|
|
509
|
+
export type DataToolChoice = ListAgentsToolChoice2 | ListAgentsToolChoice1;
|
|
384
510
|
|
|
385
|
-
export const
|
|
511
|
+
export const DataModalities = {
|
|
386
512
|
Text: "text",
|
|
387
513
|
Audio: "audio",
|
|
388
514
|
} as const;
|
|
389
|
-
export type
|
|
515
|
+
export type DataModalities = ClosedEnum<typeof DataModalities>;
|
|
390
516
|
|
|
391
517
|
/**
|
|
392
518
|
* The key of the guardrail.
|
|
@@ -401,65 +527,53 @@ export const ListAgentsId1 = {
|
|
|
401
527
|
*/
|
|
402
528
|
export type ListAgentsId1 = ClosedEnum<typeof ListAgentsId1>;
|
|
403
529
|
|
|
404
|
-
export type
|
|
530
|
+
export type DataId = ListAgentsId1 | string;
|
|
405
531
|
|
|
406
532
|
/**
|
|
407
533
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
408
534
|
*/
|
|
409
|
-
export const
|
|
535
|
+
export const ListAgentsDataAgentsExecuteOn = {
|
|
410
536
|
Input: "input",
|
|
411
537
|
Output: "output",
|
|
412
538
|
} as const;
|
|
413
539
|
/**
|
|
414
540
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
415
541
|
*/
|
|
416
|
-
export type
|
|
417
|
-
typeof
|
|
542
|
+
export type ListAgentsDataAgentsExecuteOn = ClosedEnum<
|
|
543
|
+
typeof ListAgentsDataAgentsExecuteOn
|
|
418
544
|
>;
|
|
419
545
|
|
|
420
|
-
export type
|
|
546
|
+
export type ListAgentsDataGuardrails = {
|
|
421
547
|
id: ListAgentsId1 | string;
|
|
422
548
|
/**
|
|
423
549
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
424
550
|
*/
|
|
425
|
-
executeOn:
|
|
551
|
+
executeOn: ListAgentsDataAgentsExecuteOn;
|
|
426
552
|
};
|
|
427
553
|
|
|
428
|
-
export type
|
|
554
|
+
export type DataFallbacks = {
|
|
429
555
|
/**
|
|
430
556
|
* Fallback model identifier
|
|
431
557
|
*/
|
|
432
558
|
model: string;
|
|
433
559
|
};
|
|
434
560
|
|
|
435
|
-
|
|
436
|
-
* Retry configuration for the request
|
|
437
|
-
*/
|
|
438
|
-
export type ListAgentsAgentsRetry = {
|
|
439
|
-
/**
|
|
440
|
-
* Number of retry attempts (1-5)
|
|
441
|
-
*/
|
|
442
|
-
count: number;
|
|
443
|
-
/**
|
|
444
|
-
* HTTP status codes that trigger retry logic
|
|
445
|
-
*/
|
|
446
|
-
onCodes?: Array<number> | undefined;
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
export const ListAgentsType = {
|
|
561
|
+
export const ListAgentsDataAgentsResponseType = {
|
|
450
562
|
ExactMatch: "exact_match",
|
|
451
563
|
} as const;
|
|
452
|
-
export type
|
|
564
|
+
export type ListAgentsDataAgentsResponseType = ClosedEnum<
|
|
565
|
+
typeof ListAgentsDataAgentsResponseType
|
|
566
|
+
>;
|
|
453
567
|
|
|
454
568
|
/**
|
|
455
569
|
* Cache configuration for the request.
|
|
456
570
|
*/
|
|
457
|
-
export type
|
|
571
|
+
export type DataCache = {
|
|
458
572
|
/**
|
|
459
573
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
460
574
|
*/
|
|
461
575
|
ttl: number;
|
|
462
|
-
type:
|
|
576
|
+
type: ListAgentsDataAgentsResponseType;
|
|
463
577
|
};
|
|
464
578
|
|
|
465
579
|
export const ListAgentsLoadBalancerType = {
|
|
@@ -488,12 +602,12 @@ export type ListAgentsLoadBalancer1 = {
|
|
|
488
602
|
/**
|
|
489
603
|
* Load balancer configuration for the request.
|
|
490
604
|
*/
|
|
491
|
-
export type
|
|
605
|
+
export type DataLoadBalancer = ListAgentsLoadBalancer1;
|
|
492
606
|
|
|
493
607
|
/**
|
|
494
608
|
* 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.
|
|
495
609
|
*/
|
|
496
|
-
export type
|
|
610
|
+
export type DataTimeout = {
|
|
497
611
|
/**
|
|
498
612
|
* Timeout value in milliseconds
|
|
499
613
|
*/
|
|
@@ -503,15 +617,11 @@ export type ListAgentsTimeout = {
|
|
|
503
617
|
/**
|
|
504
618
|
* 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.
|
|
505
619
|
*/
|
|
506
|
-
export type
|
|
620
|
+
export type DataParameters = {
|
|
507
621
|
/**
|
|
508
622
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
509
623
|
*/
|
|
510
624
|
name?: string | undefined;
|
|
511
|
-
/**
|
|
512
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
513
|
-
*/
|
|
514
|
-
audio?: ListAgentsAudio | null | undefined;
|
|
515
625
|
/**
|
|
516
626
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
517
627
|
*/
|
|
@@ -528,18 +638,6 @@ export type ListAgentsParameters = {
|
|
|
528
638
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
529
639
|
*/
|
|
530
640
|
maxCompletionTokens?: number | null | undefined;
|
|
531
|
-
/**
|
|
532
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
533
|
-
*/
|
|
534
|
-
logprobs?: boolean | null | undefined;
|
|
535
|
-
/**
|
|
536
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
537
|
-
*/
|
|
538
|
-
topLogprobs?: number | null | undefined;
|
|
539
|
-
/**
|
|
540
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
541
|
-
*/
|
|
542
|
-
n?: number | null | undefined;
|
|
543
641
|
/**
|
|
544
642
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
545
643
|
*/
|
|
@@ -564,7 +662,7 @@ export type ListAgentsParameters = {
|
|
|
564
662
|
*
|
|
565
663
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
566
664
|
*/
|
|
567
|
-
reasoningEffort?:
|
|
665
|
+
reasoningEffort?: DataReasoningEffort | undefined;
|
|
568
666
|
/**
|
|
569
667
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
570
668
|
*/
|
|
@@ -577,10 +675,6 @@ export type ListAgentsParameters = {
|
|
|
577
675
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
578
676
|
*/
|
|
579
677
|
stop?: string | Array<string> | null | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
582
|
-
*/
|
|
583
|
-
streamOptions?: ListAgentsStreamOptions | null | undefined;
|
|
584
678
|
thinking?:
|
|
585
679
|
| components.ThinkingConfigDisabledSchema
|
|
586
680
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -608,23 +702,19 @@ export type ListAgentsParameters = {
|
|
|
608
702
|
/**
|
|
609
703
|
* 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"].
|
|
610
704
|
*/
|
|
611
|
-
modalities?: Array<
|
|
705
|
+
modalities?: Array<DataModalities> | null | undefined;
|
|
612
706
|
/**
|
|
613
707
|
* A list of guardrails to apply to the request.
|
|
614
708
|
*/
|
|
615
|
-
guardrails?: Array<
|
|
709
|
+
guardrails?: Array<ListAgentsDataGuardrails> | undefined;
|
|
616
710
|
/**
|
|
617
711
|
* Array of fallback models to use if primary model fails
|
|
618
712
|
*/
|
|
619
|
-
fallbacks?: Array<
|
|
620
|
-
/**
|
|
621
|
-
* Retry configuration for the request
|
|
622
|
-
*/
|
|
623
|
-
retry?: ListAgentsAgentsRetry | undefined;
|
|
713
|
+
fallbacks?: Array<DataFallbacks> | undefined;
|
|
624
714
|
/**
|
|
625
715
|
* Cache configuration for the request.
|
|
626
716
|
*/
|
|
627
|
-
cache?:
|
|
717
|
+
cache?: DataCache | undefined;
|
|
628
718
|
/**
|
|
629
719
|
* Load balancer configuration for the request.
|
|
630
720
|
*/
|
|
@@ -632,13 +722,13 @@ export type ListAgentsParameters = {
|
|
|
632
722
|
/**
|
|
633
723
|
* 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.
|
|
634
724
|
*/
|
|
635
|
-
timeout?:
|
|
725
|
+
timeout?: DataTimeout | undefined;
|
|
636
726
|
};
|
|
637
727
|
|
|
638
728
|
/**
|
|
639
729
|
* 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).
|
|
640
730
|
*/
|
|
641
|
-
export type
|
|
731
|
+
export type DataRetry = {
|
|
642
732
|
/**
|
|
643
733
|
* Number of retry attempts (1-5)
|
|
644
734
|
*/
|
|
@@ -649,55 +739,6 @@ export type ListAgentsRetry = {
|
|
|
649
739
|
onCodes?: Array<number> | undefined;
|
|
650
740
|
};
|
|
651
741
|
|
|
652
|
-
/**
|
|
653
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
654
|
-
*/
|
|
655
|
-
export const ListAgentsFallbackModelConfigurationVoice = {
|
|
656
|
-
Alloy: "alloy",
|
|
657
|
-
Echo: "echo",
|
|
658
|
-
Fable: "fable",
|
|
659
|
-
Onyx: "onyx",
|
|
660
|
-
Nova: "nova",
|
|
661
|
-
Shimmer: "shimmer",
|
|
662
|
-
} as const;
|
|
663
|
-
/**
|
|
664
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
665
|
-
*/
|
|
666
|
-
export type ListAgentsFallbackModelConfigurationVoice = ClosedEnum<
|
|
667
|
-
typeof ListAgentsFallbackModelConfigurationVoice
|
|
668
|
-
>;
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
672
|
-
*/
|
|
673
|
-
export const ListAgentsFallbackModelConfigurationFormat = {
|
|
674
|
-
Wav: "wav",
|
|
675
|
-
Mp3: "mp3",
|
|
676
|
-
Flac: "flac",
|
|
677
|
-
Opus: "opus",
|
|
678
|
-
Pcm16: "pcm16",
|
|
679
|
-
} as const;
|
|
680
|
-
/**
|
|
681
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
682
|
-
*/
|
|
683
|
-
export type ListAgentsFallbackModelConfigurationFormat = ClosedEnum<
|
|
684
|
-
typeof ListAgentsFallbackModelConfigurationFormat
|
|
685
|
-
>;
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
689
|
-
*/
|
|
690
|
-
export type ListAgentsFallbackModelConfigurationAudio = {
|
|
691
|
-
/**
|
|
692
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
693
|
-
*/
|
|
694
|
-
voice: ListAgentsFallbackModelConfigurationVoice;
|
|
695
|
-
/**
|
|
696
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
697
|
-
*/
|
|
698
|
-
format: ListAgentsFallbackModelConfigurationFormat;
|
|
699
|
-
};
|
|
700
|
-
|
|
701
742
|
export type ListAgentsResponseFormatAgentsResponseJsonSchema = {
|
|
702
743
|
/**
|
|
703
744
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -794,16 +835,6 @@ export type ListAgentsFallbackModelConfigurationReasoningEffort = ClosedEnum<
|
|
|
794
835
|
*/
|
|
795
836
|
export type ListAgentsFallbackModelConfigurationStop = string | Array<string>;
|
|
796
837
|
|
|
797
|
-
/**
|
|
798
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
799
|
-
*/
|
|
800
|
-
export type ListAgentsFallbackModelConfigurationStreamOptions = {
|
|
801
|
-
/**
|
|
802
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
803
|
-
*/
|
|
804
|
-
includeUsage?: boolean | undefined;
|
|
805
|
-
};
|
|
806
|
-
|
|
807
838
|
export type ListAgentsFallbackModelConfigurationThinking =
|
|
808
839
|
| components.ThinkingConfigDisabledSchema
|
|
809
840
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -906,20 +937,6 @@ export type ListAgentsFallbackModelConfigurationFallbacks = {
|
|
|
906
937
|
model: string;
|
|
907
938
|
};
|
|
908
939
|
|
|
909
|
-
/**
|
|
910
|
-
* Retry configuration for the request
|
|
911
|
-
*/
|
|
912
|
-
export type ListAgentsFallbackModelConfigurationAgentsRetry = {
|
|
913
|
-
/**
|
|
914
|
-
* Number of retry attempts (1-5)
|
|
915
|
-
*/
|
|
916
|
-
count: number;
|
|
917
|
-
/**
|
|
918
|
-
* HTTP status codes that trigger retry logic
|
|
919
|
-
*/
|
|
920
|
-
onCodes?: Array<number> | undefined;
|
|
921
|
-
};
|
|
922
|
-
|
|
923
940
|
export const ListAgentsFallbackModelConfigurationType = {
|
|
924
941
|
ExactMatch: "exact_match",
|
|
925
942
|
} as const;
|
|
@@ -985,10 +1002,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
985
1002
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
986
1003
|
*/
|
|
987
1004
|
name?: string | undefined;
|
|
988
|
-
/**
|
|
989
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
990
|
-
*/
|
|
991
|
-
audio?: ListAgentsFallbackModelConfigurationAudio | null | undefined;
|
|
992
1005
|
/**
|
|
993
1006
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
994
1007
|
*/
|
|
@@ -1005,18 +1018,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
1005
1018
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
1006
1019
|
*/
|
|
1007
1020
|
maxCompletionTokens?: number | null | undefined;
|
|
1008
|
-
/**
|
|
1009
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
1010
|
-
*/
|
|
1011
|
-
logprobs?: boolean | null | undefined;
|
|
1012
|
-
/**
|
|
1013
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
1014
|
-
*/
|
|
1015
|
-
topLogprobs?: number | null | undefined;
|
|
1016
|
-
/**
|
|
1017
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
1018
|
-
*/
|
|
1019
|
-
n?: number | null | undefined;
|
|
1020
1021
|
/**
|
|
1021
1022
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
1022
1023
|
*/
|
|
@@ -1056,13 +1057,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
1056
1057
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1057
1058
|
*/
|
|
1058
1059
|
stop?: string | Array<string> | null | undefined;
|
|
1059
|
-
/**
|
|
1060
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
1061
|
-
*/
|
|
1062
|
-
streamOptions?:
|
|
1063
|
-
| ListAgentsFallbackModelConfigurationStreamOptions
|
|
1064
|
-
| null
|
|
1065
|
-
| undefined;
|
|
1066
1060
|
thinking?:
|
|
1067
1061
|
| components.ThinkingConfigDisabledSchema
|
|
1068
1062
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -1107,10 +1101,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
1107
1101
|
* Array of fallback models to use if primary model fails
|
|
1108
1102
|
*/
|
|
1109
1103
|
fallbacks?: Array<ListAgentsFallbackModelConfigurationFallbacks> | undefined;
|
|
1110
|
-
/**
|
|
1111
|
-
* Retry configuration for the request
|
|
1112
|
-
*/
|
|
1113
|
-
retry?: ListAgentsFallbackModelConfigurationAgentsRetry | undefined;
|
|
1114
1104
|
/**
|
|
1115
1105
|
* Cache configuration for the request.
|
|
1116
1106
|
*/
|
|
@@ -1160,11 +1150,11 @@ export type ListAgentsFallbackModelConfiguration2 = {
|
|
|
1160
1150
|
/**
|
|
1161
1151
|
* 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.
|
|
1162
1152
|
*/
|
|
1163
|
-
export type
|
|
1153
|
+
export type DataFallbackModelConfiguration =
|
|
1164
1154
|
| ListAgentsFallbackModelConfiguration2
|
|
1165
1155
|
| string;
|
|
1166
1156
|
|
|
1167
|
-
export type
|
|
1157
|
+
export type DataModel = {
|
|
1168
1158
|
/**
|
|
1169
1159
|
* The database ID of the primary model
|
|
1170
1160
|
*/
|
|
@@ -1176,11 +1166,11 @@ export type ListAgentsModel = {
|
|
|
1176
1166
|
/**
|
|
1177
1167
|
* 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.
|
|
1178
1168
|
*/
|
|
1179
|
-
parameters?:
|
|
1169
|
+
parameters?: DataParameters | undefined;
|
|
1180
1170
|
/**
|
|
1181
1171
|
* 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).
|
|
1182
1172
|
*/
|
|
1183
|
-
retry?:
|
|
1173
|
+
retry?: DataRetry | undefined;
|
|
1184
1174
|
/**
|
|
1185
1175
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
1186
1176
|
*/
|
|
@@ -1190,36 +1180,7 @@ export type ListAgentsModel = {
|
|
|
1190
1180
|
| undefined;
|
|
1191
1181
|
};
|
|
1192
1182
|
|
|
1193
|
-
export type
|
|
1194
|
-
/**
|
|
1195
|
-
* The unique key of the agent within the workspace
|
|
1196
|
-
*/
|
|
1197
|
-
key: string;
|
|
1198
|
-
/**
|
|
1199
|
-
* 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.
|
|
1200
|
-
*/
|
|
1201
|
-
role?: string | undefined;
|
|
1202
|
-
};
|
|
1203
|
-
|
|
1204
|
-
export type ListAgentsMetrics = {
|
|
1205
|
-
totalCost: number;
|
|
1206
|
-
};
|
|
1207
|
-
|
|
1208
|
-
export type ListAgentsKnowledgeBases = {
|
|
1209
|
-
/**
|
|
1210
|
-
* Unique identifier of the knowledge base to search
|
|
1211
|
-
*/
|
|
1212
|
-
knowledgeId: string;
|
|
1213
|
-
};
|
|
1214
|
-
|
|
1215
|
-
export const ListAgentsSource = {
|
|
1216
|
-
Internal: "internal",
|
|
1217
|
-
External: "external",
|
|
1218
|
-
Experiment: "experiment",
|
|
1219
|
-
} as const;
|
|
1220
|
-
export type ListAgentsSource = ClosedEnum<typeof ListAgentsSource>;
|
|
1221
|
-
|
|
1222
|
-
export type ListAgentsData = {
|
|
1183
|
+
export type Data1 = {
|
|
1223
1184
|
id: string;
|
|
1224
1185
|
/**
|
|
1225
1186
|
* Unique identifier for the agent within the workspace
|
|
@@ -1230,16 +1191,10 @@ export type ListAgentsData = {
|
|
|
1230
1191
|
updatedById?: string | null | undefined;
|
|
1231
1192
|
created?: string | undefined;
|
|
1232
1193
|
updated?: string | undefined;
|
|
1233
|
-
role: string;
|
|
1234
|
-
description: string;
|
|
1235
|
-
systemPrompt?: string | undefined;
|
|
1236
|
-
instructions: string;
|
|
1237
1194
|
/**
|
|
1238
1195
|
* 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.
|
|
1239
1196
|
*/
|
|
1240
|
-
status:
|
|
1241
|
-
settings?: ListAgentsSettings | undefined;
|
|
1242
|
-
model: ListAgentsModel;
|
|
1197
|
+
status: DataStatus;
|
|
1243
1198
|
versionHash?: string | undefined;
|
|
1244
1199
|
/**
|
|
1245
1200
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -1254,12 +1209,12 @@ export type ListAgentsData = {
|
|
|
1254
1209
|
/**
|
|
1255
1210
|
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
1256
1211
|
*/
|
|
1257
|
-
memoryStores
|
|
1212
|
+
memoryStores?: Array<string> | undefined;
|
|
1258
1213
|
/**
|
|
1259
1214
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1260
1215
|
*/
|
|
1261
|
-
teamOfAgents
|
|
1262
|
-
metrics?:
|
|
1216
|
+
teamOfAgents?: Array<DataTeamOfAgents> | undefined;
|
|
1217
|
+
metrics?: DataMetrics | undefined;
|
|
1263
1218
|
/**
|
|
1264
1219
|
* Extracted variables from agent instructions
|
|
1265
1220
|
*/
|
|
@@ -1267,68 +1222,333 @@ export type ListAgentsData = {
|
|
|
1267
1222
|
/**
|
|
1268
1223
|
* Agent knowledge bases reference
|
|
1269
1224
|
*/
|
|
1270
|
-
knowledgeBases?: Array<
|
|
1271
|
-
source?:
|
|
1225
|
+
knowledgeBases?: Array<DataKnowledgeBases> | undefined;
|
|
1226
|
+
source?: DataSource | undefined;
|
|
1227
|
+
/**
|
|
1228
|
+
* Orquesta-managed agent
|
|
1229
|
+
*/
|
|
1230
|
+
type: "internal";
|
|
1231
|
+
role: string;
|
|
1232
|
+
description: string;
|
|
1233
|
+
systemPrompt?: string | undefined;
|
|
1234
|
+
instructions: string;
|
|
1235
|
+
settings?: DataSettings | undefined;
|
|
1236
|
+
model: DataModel;
|
|
1272
1237
|
};
|
|
1273
1238
|
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1239
|
+
export type ListAgentsData = Data1 | Data2;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Successfully retrieved the list of agents. Returns a paginated response containing agent manifests with complete configurations, including primary and fallback models, tools, knowledge bases, and execution settings.
|
|
1243
|
+
*/
|
|
1244
|
+
export type ListAgentsResponseBody = {
|
|
1245
|
+
object: ListAgentsObject;
|
|
1246
|
+
data: Array<Data1 | Data2>;
|
|
1247
|
+
hasMore: boolean;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
/** @internal */
|
|
1251
|
+
export const QueryParamType$outboundSchema: z.ZodNativeEnum<
|
|
1252
|
+
typeof QueryParamType
|
|
1253
|
+
> = z.nativeEnum(QueryParamType);
|
|
1254
|
+
|
|
1255
|
+
/** @internal */
|
|
1256
|
+
export type ListAgentsRequest$Outbound = {
|
|
1257
|
+
limit?: number | undefined;
|
|
1258
|
+
starting_after?: string | undefined;
|
|
1259
|
+
ending_before?: string | undefined;
|
|
1260
|
+
type?: string | undefined;
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
/** @internal */
|
|
1264
|
+
export const ListAgentsRequest$outboundSchema: z.ZodType<
|
|
1265
|
+
ListAgentsRequest$Outbound,
|
|
1266
|
+
z.ZodTypeDef,
|
|
1267
|
+
ListAgentsRequest
|
|
1268
|
+
> = z.object({
|
|
1269
|
+
limit: z.number().optional(),
|
|
1270
|
+
startingAfter: z.string().optional(),
|
|
1271
|
+
endingBefore: z.string().optional(),
|
|
1272
|
+
type: QueryParamType$outboundSchema.optional(),
|
|
1273
|
+
}).transform((v) => {
|
|
1274
|
+
return remap$(v, {
|
|
1275
|
+
startingAfter: "starting_after",
|
|
1276
|
+
endingBefore: "ending_before",
|
|
1277
|
+
});
|
|
1278
|
+
});
|
|
1279
|
+
|
|
1280
|
+
export function listAgentsRequestToJSON(
|
|
1281
|
+
listAgentsRequest: ListAgentsRequest,
|
|
1282
|
+
): string {
|
|
1283
|
+
return JSON.stringify(
|
|
1284
|
+
ListAgentsRequest$outboundSchema.parse(listAgentsRequest),
|
|
1285
|
+
);
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/** @internal */
|
|
1289
|
+
export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
|
|
1290
|
+
typeof ListAgentsObject
|
|
1291
|
+
> = z.nativeEnum(ListAgentsObject);
|
|
1292
|
+
|
|
1293
|
+
/** @internal */
|
|
1294
|
+
export const ListAgentsDataStatus$inboundSchema: z.ZodNativeEnum<
|
|
1295
|
+
typeof ListAgentsDataStatus
|
|
1296
|
+
> = z.nativeEnum(ListAgentsDataStatus);
|
|
1297
|
+
|
|
1298
|
+
/** @internal */
|
|
1299
|
+
export const ListAgentsDataTeamOfAgents$inboundSchema: z.ZodType<
|
|
1300
|
+
ListAgentsDataTeamOfAgents,
|
|
1301
|
+
z.ZodTypeDef,
|
|
1302
|
+
unknown
|
|
1303
|
+
> = z.object({
|
|
1304
|
+
key: z.string(),
|
|
1305
|
+
role: z.string().optional(),
|
|
1306
|
+
});
|
|
1307
|
+
|
|
1308
|
+
export function listAgentsDataTeamOfAgentsFromJSON(
|
|
1309
|
+
jsonString: string,
|
|
1310
|
+
): SafeParseResult<ListAgentsDataTeamOfAgents, SDKValidationError> {
|
|
1311
|
+
return safeParse(
|
|
1312
|
+
jsonString,
|
|
1313
|
+
(x) => ListAgentsDataTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
1314
|
+
`Failed to parse 'ListAgentsDataTeamOfAgents' from JSON`,
|
|
1315
|
+
);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
/** @internal */
|
|
1319
|
+
export const ListAgentsDataMetrics$inboundSchema: z.ZodType<
|
|
1320
|
+
ListAgentsDataMetrics,
|
|
1321
|
+
z.ZodTypeDef,
|
|
1322
|
+
unknown
|
|
1323
|
+
> = z.object({
|
|
1324
|
+
total_cost: z.number().default(0),
|
|
1325
|
+
}).transform((v) => {
|
|
1326
|
+
return remap$(v, {
|
|
1327
|
+
"total_cost": "totalCost",
|
|
1328
|
+
});
|
|
1329
|
+
});
|
|
1330
|
+
|
|
1331
|
+
export function listAgentsDataMetricsFromJSON(
|
|
1332
|
+
jsonString: string,
|
|
1333
|
+
): SafeParseResult<ListAgentsDataMetrics, SDKValidationError> {
|
|
1334
|
+
return safeParse(
|
|
1335
|
+
jsonString,
|
|
1336
|
+
(x) => ListAgentsDataMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
1337
|
+
`Failed to parse 'ListAgentsDataMetrics' from JSON`,
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
/** @internal */
|
|
1342
|
+
export const ListAgentsDataKnowledgeBases$inboundSchema: z.ZodType<
|
|
1343
|
+
ListAgentsDataKnowledgeBases,
|
|
1344
|
+
z.ZodTypeDef,
|
|
1345
|
+
unknown
|
|
1346
|
+
> = z.object({
|
|
1347
|
+
knowledge_id: z.string(),
|
|
1348
|
+
}).transform((v) => {
|
|
1349
|
+
return remap$(v, {
|
|
1350
|
+
"knowledge_id": "knowledgeId",
|
|
1351
|
+
});
|
|
1352
|
+
});
|
|
1353
|
+
|
|
1354
|
+
export function listAgentsDataKnowledgeBasesFromJSON(
|
|
1355
|
+
jsonString: string,
|
|
1356
|
+
): SafeParseResult<ListAgentsDataKnowledgeBases, SDKValidationError> {
|
|
1357
|
+
return safeParse(
|
|
1358
|
+
jsonString,
|
|
1359
|
+
(x) => ListAgentsDataKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1360
|
+
`Failed to parse 'ListAgentsDataKnowledgeBases' from JSON`,
|
|
1361
|
+
);
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/** @internal */
|
|
1365
|
+
export const ListAgentsDataSource$inboundSchema: z.ZodNativeEnum<
|
|
1366
|
+
typeof ListAgentsDataSource
|
|
1367
|
+
> = z.nativeEnum(ListAgentsDataSource);
|
|
1368
|
+
|
|
1369
|
+
/** @internal */
|
|
1370
|
+
export const DataHeaders$inboundSchema: z.ZodType<
|
|
1371
|
+
DataHeaders,
|
|
1372
|
+
z.ZodTypeDef,
|
|
1373
|
+
unknown
|
|
1374
|
+
> = z.object({
|
|
1375
|
+
value: z.string(),
|
|
1376
|
+
encrypted: z.boolean().default(false),
|
|
1377
|
+
});
|
|
1378
|
+
|
|
1379
|
+
export function dataHeadersFromJSON(
|
|
1380
|
+
jsonString: string,
|
|
1381
|
+
): SafeParseResult<DataHeaders, SDKValidationError> {
|
|
1382
|
+
return safeParse(
|
|
1383
|
+
jsonString,
|
|
1384
|
+
(x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
1385
|
+
`Failed to parse 'DataHeaders' from JSON`,
|
|
1386
|
+
);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/** @internal */
|
|
1390
|
+
export const DataA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
1391
|
+
DataA2AAgentConfiguration,
|
|
1392
|
+
z.ZodTypeDef,
|
|
1393
|
+
unknown
|
|
1394
|
+
> = z.object({
|
|
1395
|
+
agent_url: z.string(),
|
|
1396
|
+
card_url: z.string().optional(),
|
|
1397
|
+
headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
|
|
1398
|
+
cached_card: z.any().optional(),
|
|
1399
|
+
}).transform((v) => {
|
|
1400
|
+
return remap$(v, {
|
|
1401
|
+
"agent_url": "agentUrl",
|
|
1402
|
+
"card_url": "cardUrl",
|
|
1403
|
+
"cached_card": "cachedCard",
|
|
1404
|
+
});
|
|
1405
|
+
});
|
|
1406
|
+
|
|
1407
|
+
export function dataA2AAgentConfigurationFromJSON(
|
|
1408
|
+
jsonString: string,
|
|
1409
|
+
): SafeParseResult<DataA2AAgentConfiguration, SDKValidationError> {
|
|
1410
|
+
return safeParse(
|
|
1411
|
+
jsonString,
|
|
1412
|
+
(x) => DataA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
1413
|
+
`Failed to parse 'DataA2AAgentConfiguration' from JSON`,
|
|
1414
|
+
);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/** @internal */
|
|
1418
|
+
export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
1419
|
+
.object({
|
|
1420
|
+
_id: z.string(),
|
|
1421
|
+
key: z.string(),
|
|
1422
|
+
display_name: z.string().optional(),
|
|
1423
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
1424
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
1425
|
+
created: z.string().optional(),
|
|
1426
|
+
updated: z.string().optional(),
|
|
1427
|
+
status: ListAgentsDataStatus$inboundSchema,
|
|
1428
|
+
version_hash: z.string().optional(),
|
|
1429
|
+
path: z.string(),
|
|
1430
|
+
memory_stores: z.array(z.string()).optional(),
|
|
1431
|
+
team_of_agents: z.array(
|
|
1432
|
+
z.lazy(() => ListAgentsDataTeamOfAgents$inboundSchema),
|
|
1433
|
+
).optional(),
|
|
1434
|
+
metrics: z.lazy(() => ListAgentsDataMetrics$inboundSchema).optional(),
|
|
1435
|
+
variables: z.record(z.any()).optional(),
|
|
1436
|
+
knowledge_bases: z.array(
|
|
1437
|
+
z.lazy(() => ListAgentsDataKnowledgeBases$inboundSchema),
|
|
1438
|
+
).optional(),
|
|
1439
|
+
source: ListAgentsDataSource$inboundSchema.optional(),
|
|
1440
|
+
type: z.literal("a2a"),
|
|
1441
|
+
role: z.string(),
|
|
1442
|
+
description: z.string(),
|
|
1443
|
+
system_prompt: z.string().optional(),
|
|
1444
|
+
instructions: z.string(),
|
|
1445
|
+
a2a: z.lazy(() => DataA2AAgentConfiguration$inboundSchema),
|
|
1446
|
+
}).transform((v) => {
|
|
1447
|
+
return remap$(v, {
|
|
1448
|
+
"_id": "id",
|
|
1449
|
+
"display_name": "displayName",
|
|
1450
|
+
"created_by_id": "createdById",
|
|
1451
|
+
"updated_by_id": "updatedById",
|
|
1452
|
+
"version_hash": "versionHash",
|
|
1453
|
+
"memory_stores": "memoryStores",
|
|
1454
|
+
"team_of_agents": "teamOfAgents",
|
|
1455
|
+
"knowledge_bases": "knowledgeBases",
|
|
1456
|
+
"system_prompt": "systemPrompt",
|
|
1457
|
+
});
|
|
1458
|
+
});
|
|
1459
|
+
|
|
1460
|
+
export function data2FromJSON(
|
|
1461
|
+
jsonString: string,
|
|
1462
|
+
): SafeParseResult<Data2, SDKValidationError> {
|
|
1463
|
+
return safeParse(
|
|
1464
|
+
jsonString,
|
|
1465
|
+
(x) => Data2$inboundSchema.parse(JSON.parse(x)),
|
|
1466
|
+
`Failed to parse 'Data2' from JSON`,
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1282
1469
|
|
|
1283
1470
|
/** @internal */
|
|
1284
|
-
export
|
|
1285
|
-
|
|
1286
|
-
starting_after?: string | undefined;
|
|
1287
|
-
ending_before?: string | undefined;
|
|
1288
|
-
};
|
|
1471
|
+
export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
|
|
1472
|
+
.nativeEnum(DataStatus);
|
|
1289
1473
|
|
|
1290
1474
|
/** @internal */
|
|
1291
|
-
export const
|
|
1292
|
-
|
|
1475
|
+
export const DataTeamOfAgents$inboundSchema: z.ZodType<
|
|
1476
|
+
DataTeamOfAgents,
|
|
1293
1477
|
z.ZodTypeDef,
|
|
1294
|
-
|
|
1478
|
+
unknown
|
|
1295
1479
|
> = z.object({
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1480
|
+
key: z.string(),
|
|
1481
|
+
role: z.string().optional(),
|
|
1482
|
+
});
|
|
1483
|
+
|
|
1484
|
+
export function dataTeamOfAgentsFromJSON(
|
|
1485
|
+
jsonString: string,
|
|
1486
|
+
): SafeParseResult<DataTeamOfAgents, SDKValidationError> {
|
|
1487
|
+
return safeParse(
|
|
1488
|
+
jsonString,
|
|
1489
|
+
(x) => DataTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
1490
|
+
`Failed to parse 'DataTeamOfAgents' from JSON`,
|
|
1491
|
+
);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
/** @internal */
|
|
1495
|
+
export const DataMetrics$inboundSchema: z.ZodType<
|
|
1496
|
+
DataMetrics,
|
|
1497
|
+
z.ZodTypeDef,
|
|
1498
|
+
unknown
|
|
1499
|
+
> = z.object({
|
|
1500
|
+
total_cost: z.number().default(0),
|
|
1299
1501
|
}).transform((v) => {
|
|
1300
1502
|
return remap$(v, {
|
|
1301
|
-
|
|
1302
|
-
endingBefore: "ending_before",
|
|
1503
|
+
"total_cost": "totalCost",
|
|
1303
1504
|
});
|
|
1304
1505
|
});
|
|
1305
1506
|
|
|
1306
|
-
export function
|
|
1307
|
-
|
|
1308
|
-
):
|
|
1309
|
-
return
|
|
1310
|
-
|
|
1507
|
+
export function dataMetricsFromJSON(
|
|
1508
|
+
jsonString: string,
|
|
1509
|
+
): SafeParseResult<DataMetrics, SDKValidationError> {
|
|
1510
|
+
return safeParse(
|
|
1511
|
+
jsonString,
|
|
1512
|
+
(x) => DataMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
1513
|
+
`Failed to parse 'DataMetrics' from JSON`,
|
|
1311
1514
|
);
|
|
1312
1515
|
}
|
|
1313
1516
|
|
|
1314
1517
|
/** @internal */
|
|
1315
|
-
export const
|
|
1316
|
-
|
|
1317
|
-
|
|
1518
|
+
export const DataKnowledgeBases$inboundSchema: z.ZodType<
|
|
1519
|
+
DataKnowledgeBases,
|
|
1520
|
+
z.ZodTypeDef,
|
|
1521
|
+
unknown
|
|
1522
|
+
> = z.object({
|
|
1523
|
+
knowledge_id: z.string(),
|
|
1524
|
+
}).transform((v) => {
|
|
1525
|
+
return remap$(v, {
|
|
1526
|
+
"knowledge_id": "knowledgeId",
|
|
1527
|
+
});
|
|
1528
|
+
});
|
|
1529
|
+
|
|
1530
|
+
export function dataKnowledgeBasesFromJSON(
|
|
1531
|
+
jsonString: string,
|
|
1532
|
+
): SafeParseResult<DataKnowledgeBases, SDKValidationError> {
|
|
1533
|
+
return safeParse(
|
|
1534
|
+
jsonString,
|
|
1535
|
+
(x) => DataKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1536
|
+
`Failed to parse 'DataKnowledgeBases' from JSON`,
|
|
1537
|
+
);
|
|
1538
|
+
}
|
|
1318
1539
|
|
|
1319
1540
|
/** @internal */
|
|
1320
|
-
export const
|
|
1321
|
-
|
|
1322
|
-
> = z.nativeEnum(ListAgentsStatus);
|
|
1541
|
+
export const DataSource$inboundSchema: z.ZodNativeEnum<typeof DataSource> = z
|
|
1542
|
+
.nativeEnum(DataSource);
|
|
1323
1543
|
|
|
1324
1544
|
/** @internal */
|
|
1325
|
-
export const
|
|
1326
|
-
typeof
|
|
1327
|
-
> = z.nativeEnum(
|
|
1545
|
+
export const DataToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
1546
|
+
typeof DataToolApprovalRequired
|
|
1547
|
+
> = z.nativeEnum(DataToolApprovalRequired);
|
|
1328
1548
|
|
|
1329
1549
|
/** @internal */
|
|
1330
|
-
export const
|
|
1331
|
-
|
|
1550
|
+
export const DataConditions$inboundSchema: z.ZodType<
|
|
1551
|
+
DataConditions,
|
|
1332
1552
|
z.ZodTypeDef,
|
|
1333
1553
|
unknown
|
|
1334
1554
|
> = z.object({
|
|
@@ -1337,19 +1557,19 @@ export const ListAgentsConditions$inboundSchema: z.ZodType<
|
|
|
1337
1557
|
value: z.string(),
|
|
1338
1558
|
});
|
|
1339
1559
|
|
|
1340
|
-
export function
|
|
1560
|
+
export function dataConditionsFromJSON(
|
|
1341
1561
|
jsonString: string,
|
|
1342
|
-
): SafeParseResult<
|
|
1562
|
+
): SafeParseResult<DataConditions, SDKValidationError> {
|
|
1343
1563
|
return safeParse(
|
|
1344
1564
|
jsonString,
|
|
1345
|
-
(x) =>
|
|
1346
|
-
`Failed to parse '
|
|
1565
|
+
(x) => DataConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1566
|
+
`Failed to parse 'DataConditions' from JSON`,
|
|
1347
1567
|
);
|
|
1348
1568
|
}
|
|
1349
1569
|
|
|
1350
1570
|
/** @internal */
|
|
1351
|
-
export const
|
|
1352
|
-
|
|
1571
|
+
export const DataTools$inboundSchema: z.ZodType<
|
|
1572
|
+
DataTools,
|
|
1353
1573
|
z.ZodTypeDef,
|
|
1354
1574
|
unknown
|
|
1355
1575
|
> = z.object({
|
|
@@ -1360,8 +1580,7 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
|
1360
1580
|
description: z.string().optional(),
|
|
1361
1581
|
requires_approval: z.boolean().default(false),
|
|
1362
1582
|
tool_id: z.string().optional(),
|
|
1363
|
-
conditions: z.array(z.lazy(() =>
|
|
1364
|
-
.optional(),
|
|
1583
|
+
conditions: z.array(z.lazy(() => DataConditions$inboundSchema)).optional(),
|
|
1365
1584
|
timeout: z.number().default(120),
|
|
1366
1585
|
}).transform((v) => {
|
|
1367
1586
|
return remap$(v, {
|
|
@@ -1372,30 +1591,30 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
|
1372
1591
|
});
|
|
1373
1592
|
});
|
|
1374
1593
|
|
|
1375
|
-
export function
|
|
1594
|
+
export function dataToolsFromJSON(
|
|
1376
1595
|
jsonString: string,
|
|
1377
|
-
): SafeParseResult<
|
|
1596
|
+
): SafeParseResult<DataTools, SDKValidationError> {
|
|
1378
1597
|
return safeParse(
|
|
1379
1598
|
jsonString,
|
|
1380
|
-
(x) =>
|
|
1381
|
-
`Failed to parse '
|
|
1599
|
+
(x) => DataTools$inboundSchema.parse(JSON.parse(x)),
|
|
1600
|
+
`Failed to parse 'DataTools' from JSON`,
|
|
1382
1601
|
);
|
|
1383
1602
|
}
|
|
1384
1603
|
|
|
1385
1604
|
/** @internal */
|
|
1386
|
-
export const
|
|
1387
|
-
typeof
|
|
1388
|
-
> = z.nativeEnum(
|
|
1605
|
+
export const DataExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1606
|
+
typeof DataExecuteOn
|
|
1607
|
+
> = z.nativeEnum(DataExecuteOn);
|
|
1389
1608
|
|
|
1390
1609
|
/** @internal */
|
|
1391
|
-
export const
|
|
1392
|
-
|
|
1610
|
+
export const DataEvaluators$inboundSchema: z.ZodType<
|
|
1611
|
+
DataEvaluators,
|
|
1393
1612
|
z.ZodTypeDef,
|
|
1394
1613
|
unknown
|
|
1395
1614
|
> = z.object({
|
|
1396
1615
|
id: z.string(),
|
|
1397
1616
|
sample_rate: z.number().default(50),
|
|
1398
|
-
execute_on:
|
|
1617
|
+
execute_on: DataExecuteOn$inboundSchema,
|
|
1399
1618
|
}).transform((v) => {
|
|
1400
1619
|
return remap$(v, {
|
|
1401
1620
|
"sample_rate": "sampleRate",
|
|
@@ -1403,30 +1622,30 @@ export const ListAgentsEvaluators$inboundSchema: z.ZodType<
|
|
|
1403
1622
|
});
|
|
1404
1623
|
});
|
|
1405
1624
|
|
|
1406
|
-
export function
|
|
1625
|
+
export function dataEvaluatorsFromJSON(
|
|
1407
1626
|
jsonString: string,
|
|
1408
|
-
): SafeParseResult<
|
|
1627
|
+
): SafeParseResult<DataEvaluators, SDKValidationError> {
|
|
1409
1628
|
return safeParse(
|
|
1410
1629
|
jsonString,
|
|
1411
|
-
(x) =>
|
|
1412
|
-
`Failed to parse '
|
|
1630
|
+
(x) => DataEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
1631
|
+
`Failed to parse 'DataEvaluators' from JSON`,
|
|
1413
1632
|
);
|
|
1414
1633
|
}
|
|
1415
1634
|
|
|
1416
1635
|
/** @internal */
|
|
1417
|
-
export const
|
|
1418
|
-
typeof
|
|
1419
|
-
> = z.nativeEnum(
|
|
1636
|
+
export const ListAgentsDataExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1637
|
+
typeof ListAgentsDataExecuteOn
|
|
1638
|
+
> = z.nativeEnum(ListAgentsDataExecuteOn);
|
|
1420
1639
|
|
|
1421
1640
|
/** @internal */
|
|
1422
|
-
export const
|
|
1423
|
-
|
|
1641
|
+
export const DataGuardrails$inboundSchema: z.ZodType<
|
|
1642
|
+
DataGuardrails,
|
|
1424
1643
|
z.ZodTypeDef,
|
|
1425
1644
|
unknown
|
|
1426
1645
|
> = z.object({
|
|
1427
1646
|
id: z.string(),
|
|
1428
1647
|
sample_rate: z.number().default(50),
|
|
1429
|
-
execute_on:
|
|
1648
|
+
execute_on: ListAgentsDataExecuteOn$inboundSchema,
|
|
1430
1649
|
}).transform((v) => {
|
|
1431
1650
|
return remap$(v, {
|
|
1432
1651
|
"sample_rate": "sampleRate",
|
|
@@ -1434,33 +1653,31 @@ export const ListAgentsGuardrails$inboundSchema: z.ZodType<
|
|
|
1434
1653
|
});
|
|
1435
1654
|
});
|
|
1436
1655
|
|
|
1437
|
-
export function
|
|
1656
|
+
export function dataGuardrailsFromJSON(
|
|
1438
1657
|
jsonString: string,
|
|
1439
|
-
): SafeParseResult<
|
|
1658
|
+
): SafeParseResult<DataGuardrails, SDKValidationError> {
|
|
1440
1659
|
return safeParse(
|
|
1441
1660
|
jsonString,
|
|
1442
|
-
(x) =>
|
|
1443
|
-
`Failed to parse '
|
|
1661
|
+
(x) => DataGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1662
|
+
`Failed to parse 'DataGuardrails' from JSON`,
|
|
1444
1663
|
);
|
|
1445
1664
|
}
|
|
1446
1665
|
|
|
1447
1666
|
/** @internal */
|
|
1448
|
-
export const
|
|
1449
|
-
|
|
1667
|
+
export const DataSettings$inboundSchema: z.ZodType<
|
|
1668
|
+
DataSettings,
|
|
1450
1669
|
z.ZodTypeDef,
|
|
1451
1670
|
unknown
|
|
1452
1671
|
> = z.object({
|
|
1453
1672
|
max_iterations: z.number().int().default(100),
|
|
1454
1673
|
max_execution_time: z.number().int().default(600),
|
|
1455
1674
|
max_cost: z.number().default(0),
|
|
1456
|
-
tool_approval_required:
|
|
1675
|
+
tool_approval_required: DataToolApprovalRequired$inboundSchema.default(
|
|
1457
1676
|
"respect_tool",
|
|
1458
1677
|
),
|
|
1459
|
-
tools: z.array(z.lazy(() =>
|
|
1460
|
-
evaluators: z.array(z.lazy(() =>
|
|
1461
|
-
|
|
1462
|
-
guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
|
|
1463
|
-
.optional(),
|
|
1678
|
+
tools: z.array(z.lazy(() => DataTools$inboundSchema)).optional(),
|
|
1679
|
+
evaluators: z.array(z.lazy(() => DataEvaluators$inboundSchema)).optional(),
|
|
1680
|
+
guardrails: z.array(z.lazy(() => DataGuardrails$inboundSchema)).optional(),
|
|
1464
1681
|
}).transform((v) => {
|
|
1465
1682
|
return remap$(v, {
|
|
1466
1683
|
"max_iterations": "maxIterations",
|
|
@@ -1470,43 +1687,13 @@ export const ListAgentsSettings$inboundSchema: z.ZodType<
|
|
|
1470
1687
|
});
|
|
1471
1688
|
});
|
|
1472
1689
|
|
|
1473
|
-
export function
|
|
1474
|
-
jsonString: string,
|
|
1475
|
-
): SafeParseResult<ListAgentsSettings, SDKValidationError> {
|
|
1476
|
-
return safeParse(
|
|
1477
|
-
jsonString,
|
|
1478
|
-
(x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1479
|
-
`Failed to parse 'ListAgentsSettings' from JSON`,
|
|
1480
|
-
);
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
/** @internal */
|
|
1484
|
-
export const ListAgentsVoice$inboundSchema: z.ZodNativeEnum<
|
|
1485
|
-
typeof ListAgentsVoice
|
|
1486
|
-
> = z.nativeEnum(ListAgentsVoice);
|
|
1487
|
-
|
|
1488
|
-
/** @internal */
|
|
1489
|
-
export const ListAgentsFormat$inboundSchema: z.ZodNativeEnum<
|
|
1490
|
-
typeof ListAgentsFormat
|
|
1491
|
-
> = z.nativeEnum(ListAgentsFormat);
|
|
1492
|
-
|
|
1493
|
-
/** @internal */
|
|
1494
|
-
export const ListAgentsAudio$inboundSchema: z.ZodType<
|
|
1495
|
-
ListAgentsAudio,
|
|
1496
|
-
z.ZodTypeDef,
|
|
1497
|
-
unknown
|
|
1498
|
-
> = z.object({
|
|
1499
|
-
voice: ListAgentsVoice$inboundSchema,
|
|
1500
|
-
format: ListAgentsFormat$inboundSchema,
|
|
1501
|
-
});
|
|
1502
|
-
|
|
1503
|
-
export function listAgentsAudioFromJSON(
|
|
1690
|
+
export function dataSettingsFromJSON(
|
|
1504
1691
|
jsonString: string,
|
|
1505
|
-
): SafeParseResult<
|
|
1692
|
+
): SafeParseResult<DataSettings, SDKValidationError> {
|
|
1506
1693
|
return safeParse(
|
|
1507
1694
|
jsonString,
|
|
1508
|
-
(x) =>
|
|
1509
|
-
`Failed to parse '
|
|
1695
|
+
(x) => DataSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1696
|
+
`Failed to parse 'DataSettings' from JSON`,
|
|
1510
1697
|
);
|
|
1511
1698
|
}
|
|
1512
1699
|
|
|
@@ -1603,8 +1790,8 @@ export function listAgentsResponseFormatTextFromJSON(
|
|
|
1603
1790
|
}
|
|
1604
1791
|
|
|
1605
1792
|
/** @internal */
|
|
1606
|
-
export const
|
|
1607
|
-
|
|
1793
|
+
export const DataResponseFormat$inboundSchema: z.ZodType<
|
|
1794
|
+
DataResponseFormat,
|
|
1608
1795
|
z.ZodTypeDef,
|
|
1609
1796
|
unknown
|
|
1610
1797
|
> = z.union([
|
|
@@ -1613,64 +1800,41 @@ export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
|
|
|
1613
1800
|
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
1614
1801
|
]);
|
|
1615
1802
|
|
|
1616
|
-
export function
|
|
1803
|
+
export function dataResponseFormatFromJSON(
|
|
1617
1804
|
jsonString: string,
|
|
1618
|
-
): SafeParseResult<
|
|
1805
|
+
): SafeParseResult<DataResponseFormat, SDKValidationError> {
|
|
1619
1806
|
return safeParse(
|
|
1620
1807
|
jsonString,
|
|
1621
|
-
(x) =>
|
|
1622
|
-
`Failed to parse '
|
|
1808
|
+
(x) => DataResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1809
|
+
`Failed to parse 'DataResponseFormat' from JSON`,
|
|
1623
1810
|
);
|
|
1624
1811
|
}
|
|
1625
1812
|
|
|
1626
1813
|
/** @internal */
|
|
1627
|
-
export const
|
|
1628
|
-
typeof
|
|
1629
|
-
> = z.nativeEnum(
|
|
1814
|
+
export const DataReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1815
|
+
typeof DataReasoningEffort
|
|
1816
|
+
> = z.nativeEnum(DataReasoningEffort);
|
|
1630
1817
|
|
|
1631
1818
|
/** @internal */
|
|
1632
|
-
export const
|
|
1633
|
-
|
|
1819
|
+
export const DataStop$inboundSchema: z.ZodType<
|
|
1820
|
+
DataStop,
|
|
1634
1821
|
z.ZodTypeDef,
|
|
1635
1822
|
unknown
|
|
1636
1823
|
> = z.union([z.string(), z.array(z.string())]);
|
|
1637
1824
|
|
|
1638
|
-
export function
|
|
1639
|
-
jsonString: string,
|
|
1640
|
-
): SafeParseResult<ListAgentsStop, SDKValidationError> {
|
|
1641
|
-
return safeParse(
|
|
1642
|
-
jsonString,
|
|
1643
|
-
(x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
|
|
1644
|
-
`Failed to parse 'ListAgentsStop' from JSON`,
|
|
1645
|
-
);
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
/** @internal */
|
|
1649
|
-
export const ListAgentsStreamOptions$inboundSchema: z.ZodType<
|
|
1650
|
-
ListAgentsStreamOptions,
|
|
1651
|
-
z.ZodTypeDef,
|
|
1652
|
-
unknown
|
|
1653
|
-
> = z.object({
|
|
1654
|
-
include_usage: z.boolean().optional(),
|
|
1655
|
-
}).transform((v) => {
|
|
1656
|
-
return remap$(v, {
|
|
1657
|
-
"include_usage": "includeUsage",
|
|
1658
|
-
});
|
|
1659
|
-
});
|
|
1660
|
-
|
|
1661
|
-
export function listAgentsStreamOptionsFromJSON(
|
|
1825
|
+
export function dataStopFromJSON(
|
|
1662
1826
|
jsonString: string,
|
|
1663
|
-
): SafeParseResult<
|
|
1827
|
+
): SafeParseResult<DataStop, SDKValidationError> {
|
|
1664
1828
|
return safeParse(
|
|
1665
1829
|
jsonString,
|
|
1666
|
-
(x) =>
|
|
1667
|
-
`Failed to parse '
|
|
1830
|
+
(x) => DataStop$inboundSchema.parse(JSON.parse(x)),
|
|
1831
|
+
`Failed to parse 'DataStop' from JSON`,
|
|
1668
1832
|
);
|
|
1669
1833
|
}
|
|
1670
1834
|
|
|
1671
1835
|
/** @internal */
|
|
1672
|
-
export const
|
|
1673
|
-
|
|
1836
|
+
export const DataThinking$inboundSchema: z.ZodType<
|
|
1837
|
+
DataThinking,
|
|
1674
1838
|
z.ZodTypeDef,
|
|
1675
1839
|
unknown
|
|
1676
1840
|
> = z.union([
|
|
@@ -1678,13 +1842,13 @@ export const ListAgentsThinking$inboundSchema: z.ZodType<
|
|
|
1678
1842
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1679
1843
|
]);
|
|
1680
1844
|
|
|
1681
|
-
export function
|
|
1845
|
+
export function dataThinkingFromJSON(
|
|
1682
1846
|
jsonString: string,
|
|
1683
|
-
): SafeParseResult<
|
|
1847
|
+
): SafeParseResult<DataThinking, SDKValidationError> {
|
|
1684
1848
|
return safeParse(
|
|
1685
1849
|
jsonString,
|
|
1686
|
-
(x) =>
|
|
1687
|
-
`Failed to parse '
|
|
1850
|
+
(x) => DataThinking$inboundSchema.parse(JSON.parse(x)),
|
|
1851
|
+
`Failed to parse 'DataThinking' from JSON`,
|
|
1688
1852
|
);
|
|
1689
1853
|
}
|
|
1690
1854
|
|
|
@@ -1738,8 +1902,8 @@ export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
|
1738
1902
|
> = z.nativeEnum(ListAgentsToolChoice1);
|
|
1739
1903
|
|
|
1740
1904
|
/** @internal */
|
|
1741
|
-
export const
|
|
1742
|
-
|
|
1905
|
+
export const DataToolChoice$inboundSchema: z.ZodType<
|
|
1906
|
+
DataToolChoice,
|
|
1743
1907
|
z.ZodTypeDef,
|
|
1744
1908
|
unknown
|
|
1745
1909
|
> = z.union([
|
|
@@ -1747,20 +1911,20 @@ export const ListAgentsToolChoice$inboundSchema: z.ZodType<
|
|
|
1747
1911
|
ListAgentsToolChoice1$inboundSchema,
|
|
1748
1912
|
]);
|
|
1749
1913
|
|
|
1750
|
-
export function
|
|
1914
|
+
export function dataToolChoiceFromJSON(
|
|
1751
1915
|
jsonString: string,
|
|
1752
|
-
): SafeParseResult<
|
|
1916
|
+
): SafeParseResult<DataToolChoice, SDKValidationError> {
|
|
1753
1917
|
return safeParse(
|
|
1754
1918
|
jsonString,
|
|
1755
|
-
(x) =>
|
|
1756
|
-
`Failed to parse '
|
|
1919
|
+
(x) => DataToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
1920
|
+
`Failed to parse 'DataToolChoice' from JSON`,
|
|
1757
1921
|
);
|
|
1758
1922
|
}
|
|
1759
1923
|
|
|
1760
1924
|
/** @internal */
|
|
1761
|
-
export const
|
|
1762
|
-
typeof
|
|
1763
|
-
> = z.nativeEnum(
|
|
1925
|
+
export const DataModalities$inboundSchema: z.ZodNativeEnum<
|
|
1926
|
+
typeof DataModalities
|
|
1927
|
+
> = z.nativeEnum(DataModalities);
|
|
1764
1928
|
|
|
1765
1929
|
/** @internal */
|
|
1766
1930
|
export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -1768,116 +1932,89 @@ export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
|
|
|
1768
1932
|
> = z.nativeEnum(ListAgentsId1);
|
|
1769
1933
|
|
|
1770
1934
|
/** @internal */
|
|
1771
|
-
export const
|
|
1772
|
-
|
|
1773
|
-
z.ZodTypeDef,
|
|
1774
|
-
unknown
|
|
1775
|
-
> = z.union([ListAgentsId1$inboundSchema, z.string()]);
|
|
1935
|
+
export const DataId$inboundSchema: z.ZodType<DataId, z.ZodTypeDef, unknown> = z
|
|
1936
|
+
.union([ListAgentsId1$inboundSchema, z.string()]);
|
|
1776
1937
|
|
|
1777
|
-
export function
|
|
1938
|
+
export function dataIdFromJSON(
|
|
1778
1939
|
jsonString: string,
|
|
1779
|
-
): SafeParseResult<
|
|
1940
|
+
): SafeParseResult<DataId, SDKValidationError> {
|
|
1780
1941
|
return safeParse(
|
|
1781
1942
|
jsonString,
|
|
1782
|
-
(x) =>
|
|
1783
|
-
`Failed to parse '
|
|
1943
|
+
(x) => DataId$inboundSchema.parse(JSON.parse(x)),
|
|
1944
|
+
`Failed to parse 'DataId' from JSON`,
|
|
1784
1945
|
);
|
|
1785
1946
|
}
|
|
1786
1947
|
|
|
1787
1948
|
/** @internal */
|
|
1788
|
-
export const
|
|
1789
|
-
typeof
|
|
1790
|
-
> = z.nativeEnum(
|
|
1949
|
+
export const ListAgentsDataAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1950
|
+
typeof ListAgentsDataAgentsExecuteOn
|
|
1951
|
+
> = z.nativeEnum(ListAgentsDataAgentsExecuteOn);
|
|
1791
1952
|
|
|
1792
1953
|
/** @internal */
|
|
1793
|
-
export const
|
|
1794
|
-
|
|
1954
|
+
export const ListAgentsDataGuardrails$inboundSchema: z.ZodType<
|
|
1955
|
+
ListAgentsDataGuardrails,
|
|
1795
1956
|
z.ZodTypeDef,
|
|
1796
1957
|
unknown
|
|
1797
1958
|
> = z.object({
|
|
1798
1959
|
id: z.union([ListAgentsId1$inboundSchema, z.string()]),
|
|
1799
|
-
execute_on:
|
|
1960
|
+
execute_on: ListAgentsDataAgentsExecuteOn$inboundSchema,
|
|
1800
1961
|
}).transform((v) => {
|
|
1801
1962
|
return remap$(v, {
|
|
1802
1963
|
"execute_on": "executeOn",
|
|
1803
1964
|
});
|
|
1804
1965
|
});
|
|
1805
1966
|
|
|
1806
|
-
export function
|
|
1967
|
+
export function listAgentsDataGuardrailsFromJSON(
|
|
1807
1968
|
jsonString: string,
|
|
1808
|
-
): SafeParseResult<
|
|
1969
|
+
): SafeParseResult<ListAgentsDataGuardrails, SDKValidationError> {
|
|
1809
1970
|
return safeParse(
|
|
1810
1971
|
jsonString,
|
|
1811
|
-
(x) =>
|
|
1812
|
-
`Failed to parse '
|
|
1972
|
+
(x) => ListAgentsDataGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1973
|
+
`Failed to parse 'ListAgentsDataGuardrails' from JSON`,
|
|
1813
1974
|
);
|
|
1814
1975
|
}
|
|
1815
1976
|
|
|
1816
1977
|
/** @internal */
|
|
1817
|
-
export const
|
|
1818
|
-
|
|
1978
|
+
export const DataFallbacks$inboundSchema: z.ZodType<
|
|
1979
|
+
DataFallbacks,
|
|
1819
1980
|
z.ZodTypeDef,
|
|
1820
1981
|
unknown
|
|
1821
1982
|
> = z.object({
|
|
1822
1983
|
model: z.string(),
|
|
1823
1984
|
});
|
|
1824
1985
|
|
|
1825
|
-
export function
|
|
1826
|
-
jsonString: string,
|
|
1827
|
-
): SafeParseResult<ListAgentsFallbacks, SDKValidationError> {
|
|
1828
|
-
return safeParse(
|
|
1829
|
-
jsonString,
|
|
1830
|
-
(x) => ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
1831
|
-
`Failed to parse 'ListAgentsFallbacks' from JSON`,
|
|
1832
|
-
);
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
/** @internal */
|
|
1836
|
-
export const ListAgentsAgentsRetry$inboundSchema: z.ZodType<
|
|
1837
|
-
ListAgentsAgentsRetry,
|
|
1838
|
-
z.ZodTypeDef,
|
|
1839
|
-
unknown
|
|
1840
|
-
> = z.object({
|
|
1841
|
-
count: z.number().default(3),
|
|
1842
|
-
on_codes: z.array(z.number()).optional(),
|
|
1843
|
-
}).transform((v) => {
|
|
1844
|
-
return remap$(v, {
|
|
1845
|
-
"on_codes": "onCodes",
|
|
1846
|
-
});
|
|
1847
|
-
});
|
|
1848
|
-
|
|
1849
|
-
export function listAgentsAgentsRetryFromJSON(
|
|
1986
|
+
export function dataFallbacksFromJSON(
|
|
1850
1987
|
jsonString: string,
|
|
1851
|
-
): SafeParseResult<
|
|
1988
|
+
): SafeParseResult<DataFallbacks, SDKValidationError> {
|
|
1852
1989
|
return safeParse(
|
|
1853
1990
|
jsonString,
|
|
1854
|
-
(x) =>
|
|
1855
|
-
`Failed to parse '
|
|
1991
|
+
(x) => DataFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
1992
|
+
`Failed to parse 'DataFallbacks' from JSON`,
|
|
1856
1993
|
);
|
|
1857
1994
|
}
|
|
1858
1995
|
|
|
1859
1996
|
/** @internal */
|
|
1860
|
-
export const
|
|
1861
|
-
typeof
|
|
1862
|
-
> = z.nativeEnum(
|
|
1997
|
+
export const ListAgentsDataAgentsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1998
|
+
typeof ListAgentsDataAgentsResponseType
|
|
1999
|
+
> = z.nativeEnum(ListAgentsDataAgentsResponseType);
|
|
1863
2000
|
|
|
1864
2001
|
/** @internal */
|
|
1865
|
-
export const
|
|
1866
|
-
|
|
2002
|
+
export const DataCache$inboundSchema: z.ZodType<
|
|
2003
|
+
DataCache,
|
|
1867
2004
|
z.ZodTypeDef,
|
|
1868
2005
|
unknown
|
|
1869
2006
|
> = z.object({
|
|
1870
2007
|
ttl: z.number().default(1800),
|
|
1871
|
-
type:
|
|
2008
|
+
type: ListAgentsDataAgentsResponseType$inboundSchema,
|
|
1872
2009
|
});
|
|
1873
2010
|
|
|
1874
|
-
export function
|
|
2011
|
+
export function dataCacheFromJSON(
|
|
1875
2012
|
jsonString: string,
|
|
1876
|
-
): SafeParseResult<
|
|
2013
|
+
): SafeParseResult<DataCache, SDKValidationError> {
|
|
1877
2014
|
return safeParse(
|
|
1878
2015
|
jsonString,
|
|
1879
|
-
(x) =>
|
|
1880
|
-
`Failed to parse '
|
|
2016
|
+
(x) => DataCache$inboundSchema.parse(JSON.parse(x)),
|
|
2017
|
+
`Failed to parse 'DataCache' from JSON`,
|
|
1881
2018
|
);
|
|
1882
2019
|
}
|
|
1883
2020
|
|
|
@@ -1927,25 +2064,25 @@ export function listAgentsLoadBalancer1FromJSON(
|
|
|
1927
2064
|
}
|
|
1928
2065
|
|
|
1929
2066
|
/** @internal */
|
|
1930
|
-
export const
|
|
1931
|
-
|
|
2067
|
+
export const DataLoadBalancer$inboundSchema: z.ZodType<
|
|
2068
|
+
DataLoadBalancer,
|
|
1932
2069
|
z.ZodTypeDef,
|
|
1933
2070
|
unknown
|
|
1934
2071
|
> = z.lazy(() => ListAgentsLoadBalancer1$inboundSchema);
|
|
1935
2072
|
|
|
1936
|
-
export function
|
|
2073
|
+
export function dataLoadBalancerFromJSON(
|
|
1937
2074
|
jsonString: string,
|
|
1938
|
-
): SafeParseResult<
|
|
2075
|
+
): SafeParseResult<DataLoadBalancer, SDKValidationError> {
|
|
1939
2076
|
return safeParse(
|
|
1940
2077
|
jsonString,
|
|
1941
|
-
(x) =>
|
|
1942
|
-
`Failed to parse '
|
|
2078
|
+
(x) => DataLoadBalancer$inboundSchema.parse(JSON.parse(x)),
|
|
2079
|
+
`Failed to parse 'DataLoadBalancer' from JSON`,
|
|
1943
2080
|
);
|
|
1944
2081
|
}
|
|
1945
2082
|
|
|
1946
2083
|
/** @internal */
|
|
1947
|
-
export const
|
|
1948
|
-
|
|
2084
|
+
export const DataTimeout$inboundSchema: z.ZodType<
|
|
2085
|
+
DataTimeout,
|
|
1949
2086
|
z.ZodTypeDef,
|
|
1950
2087
|
unknown
|
|
1951
2088
|
> = z.object({
|
|
@@ -1956,43 +2093,36 @@ export const ListAgentsTimeout$inboundSchema: z.ZodType<
|
|
|
1956
2093
|
});
|
|
1957
2094
|
});
|
|
1958
2095
|
|
|
1959
|
-
export function
|
|
2096
|
+
export function dataTimeoutFromJSON(
|
|
1960
2097
|
jsonString: string,
|
|
1961
|
-
): SafeParseResult<
|
|
2098
|
+
): SafeParseResult<DataTimeout, SDKValidationError> {
|
|
1962
2099
|
return safeParse(
|
|
1963
2100
|
jsonString,
|
|
1964
|
-
(x) =>
|
|
1965
|
-
`Failed to parse '
|
|
2101
|
+
(x) => DataTimeout$inboundSchema.parse(JSON.parse(x)),
|
|
2102
|
+
`Failed to parse 'DataTimeout' from JSON`,
|
|
1966
2103
|
);
|
|
1967
2104
|
}
|
|
1968
2105
|
|
|
1969
2106
|
/** @internal */
|
|
1970
|
-
export const
|
|
1971
|
-
|
|
2107
|
+
export const DataParameters$inboundSchema: z.ZodType<
|
|
2108
|
+
DataParameters,
|
|
1972
2109
|
z.ZodTypeDef,
|
|
1973
2110
|
unknown
|
|
1974
2111
|
> = z.object({
|
|
1975
2112
|
name: z.string().optional(),
|
|
1976
|
-
audio: z.nullable(z.lazy(() => ListAgentsAudio$inboundSchema)).optional(),
|
|
1977
2113
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
1978
2114
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
1979
2115
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
1980
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
1981
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
1982
|
-
n: z.nullable(z.number().int()).optional(),
|
|
1983
2116
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
1984
2117
|
response_format: z.union([
|
|
1985
2118
|
z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
|
|
1986
2119
|
z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
1987
2120
|
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
1988
2121
|
]).optional(),
|
|
1989
|
-
reasoning_effort:
|
|
2122
|
+
reasoning_effort: DataReasoningEffort$inboundSchema.optional(),
|
|
1990
2123
|
verbosity: z.string().optional(),
|
|
1991
2124
|
seed: z.nullable(z.number()).optional(),
|
|
1992
2125
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1993
|
-
stream_options: z.nullable(
|
|
1994
|
-
z.lazy(() => ListAgentsStreamOptions$inboundSchema),
|
|
1995
|
-
).optional(),
|
|
1996
2126
|
thinking: z.union([
|
|
1997
2127
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1998
2128
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -2005,26 +2135,21 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
2005
2135
|
ListAgentsToolChoice1$inboundSchema,
|
|
2006
2136
|
]).optional(),
|
|
2007
2137
|
parallel_tool_calls: z.boolean().optional(),
|
|
2008
|
-
modalities: z.nullable(z.array(
|
|
2138
|
+
modalities: z.nullable(z.array(DataModalities$inboundSchema)).optional(),
|
|
2139
|
+
guardrails: z.array(z.lazy(() => ListAgentsDataGuardrails$inboundSchema))
|
|
2009
2140
|
.optional(),
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
|
|
2013
|
-
.optional(),
|
|
2014
|
-
retry: z.lazy(() => ListAgentsAgentsRetry$inboundSchema).optional(),
|
|
2015
|
-
cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
|
|
2141
|
+
fallbacks: z.array(z.lazy(() => DataFallbacks$inboundSchema)).optional(),
|
|
2142
|
+
cache: z.lazy(() => DataCache$inboundSchema).optional(),
|
|
2016
2143
|
load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
|
|
2017
|
-
timeout: z.lazy(() =>
|
|
2144
|
+
timeout: z.lazy(() => DataTimeout$inboundSchema).optional(),
|
|
2018
2145
|
}).transform((v) => {
|
|
2019
2146
|
return remap$(v, {
|
|
2020
2147
|
"frequency_penalty": "frequencyPenalty",
|
|
2021
2148
|
"max_tokens": "maxTokens",
|
|
2022
2149
|
"max_completion_tokens": "maxCompletionTokens",
|
|
2023
|
-
"top_logprobs": "topLogprobs",
|
|
2024
2150
|
"presence_penalty": "presencePenalty",
|
|
2025
2151
|
"response_format": "responseFormat",
|
|
2026
2152
|
"reasoning_effort": "reasoningEffort",
|
|
2027
|
-
"stream_options": "streamOptions",
|
|
2028
2153
|
"top_p": "topP",
|
|
2029
2154
|
"top_k": "topK",
|
|
2030
2155
|
"tool_choice": "toolChoice",
|
|
@@ -2033,19 +2158,19 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
2033
2158
|
});
|
|
2034
2159
|
});
|
|
2035
2160
|
|
|
2036
|
-
export function
|
|
2161
|
+
export function dataParametersFromJSON(
|
|
2037
2162
|
jsonString: string,
|
|
2038
|
-
): SafeParseResult<
|
|
2163
|
+
): SafeParseResult<DataParameters, SDKValidationError> {
|
|
2039
2164
|
return safeParse(
|
|
2040
2165
|
jsonString,
|
|
2041
|
-
(x) =>
|
|
2042
|
-
`Failed to parse '
|
|
2166
|
+
(x) => DataParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2167
|
+
`Failed to parse 'DataParameters' from JSON`,
|
|
2043
2168
|
);
|
|
2044
2169
|
}
|
|
2045
2170
|
|
|
2046
2171
|
/** @internal */
|
|
2047
|
-
export const
|
|
2048
|
-
|
|
2172
|
+
export const DataRetry$inboundSchema: z.ZodType<
|
|
2173
|
+
DataRetry,
|
|
2049
2174
|
z.ZodTypeDef,
|
|
2050
2175
|
unknown
|
|
2051
2176
|
> = z.object({
|
|
@@ -2057,49 +2182,13 @@ export const ListAgentsRetry$inboundSchema: z.ZodType<
|
|
|
2057
2182
|
});
|
|
2058
2183
|
});
|
|
2059
2184
|
|
|
2060
|
-
export function
|
|
2061
|
-
jsonString: string,
|
|
2062
|
-
): SafeParseResult<ListAgentsRetry, SDKValidationError> {
|
|
2063
|
-
return safeParse(
|
|
2064
|
-
jsonString,
|
|
2065
|
-
(x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2066
|
-
`Failed to parse 'ListAgentsRetry' from JSON`,
|
|
2067
|
-
);
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
/** @internal */
|
|
2071
|
-
export const ListAgentsFallbackModelConfigurationVoice$inboundSchema:
|
|
2072
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationVoice> = z
|
|
2073
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationVoice);
|
|
2074
|
-
|
|
2075
|
-
/** @internal */
|
|
2076
|
-
export const ListAgentsFallbackModelConfigurationFormat$inboundSchema:
|
|
2077
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationFormat> = z
|
|
2078
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationFormat);
|
|
2079
|
-
|
|
2080
|
-
/** @internal */
|
|
2081
|
-
export const ListAgentsFallbackModelConfigurationAudio$inboundSchema: z.ZodType<
|
|
2082
|
-
ListAgentsFallbackModelConfigurationAudio,
|
|
2083
|
-
z.ZodTypeDef,
|
|
2084
|
-
unknown
|
|
2085
|
-
> = z.object({
|
|
2086
|
-
voice: ListAgentsFallbackModelConfigurationVoice$inboundSchema,
|
|
2087
|
-
format: ListAgentsFallbackModelConfigurationFormat$inboundSchema,
|
|
2088
|
-
});
|
|
2089
|
-
|
|
2090
|
-
export function listAgentsFallbackModelConfigurationAudioFromJSON(
|
|
2185
|
+
export function dataRetryFromJSON(
|
|
2091
2186
|
jsonString: string,
|
|
2092
|
-
): SafeParseResult<
|
|
2093
|
-
ListAgentsFallbackModelConfigurationAudio,
|
|
2094
|
-
SDKValidationError
|
|
2095
|
-
> {
|
|
2187
|
+
): SafeParseResult<DataRetry, SDKValidationError> {
|
|
2096
2188
|
return safeParse(
|
|
2097
2189
|
jsonString,
|
|
2098
|
-
(x) =>
|
|
2099
|
-
|
|
2100
|
-
JSON.parse(x),
|
|
2101
|
-
),
|
|
2102
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationAudio' from JSON`,
|
|
2190
|
+
(x) => DataRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2191
|
+
`Failed to parse 'DataRetry' from JSON`,
|
|
2103
2192
|
);
|
|
2104
2193
|
}
|
|
2105
2194
|
|
|
@@ -2268,36 +2357,6 @@ export function listAgentsFallbackModelConfigurationStopFromJSON(
|
|
|
2268
2357
|
);
|
|
2269
2358
|
}
|
|
2270
2359
|
|
|
2271
|
-
/** @internal */
|
|
2272
|
-
export const ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema:
|
|
2273
|
-
z.ZodType<
|
|
2274
|
-
ListAgentsFallbackModelConfigurationStreamOptions,
|
|
2275
|
-
z.ZodTypeDef,
|
|
2276
|
-
unknown
|
|
2277
|
-
> = z.object({
|
|
2278
|
-
include_usage: z.boolean().optional(),
|
|
2279
|
-
}).transform((v) => {
|
|
2280
|
-
return remap$(v, {
|
|
2281
|
-
"include_usage": "includeUsage",
|
|
2282
|
-
});
|
|
2283
|
-
});
|
|
2284
|
-
|
|
2285
|
-
export function listAgentsFallbackModelConfigurationStreamOptionsFromJSON(
|
|
2286
|
-
jsonString: string,
|
|
2287
|
-
): SafeParseResult<
|
|
2288
|
-
ListAgentsFallbackModelConfigurationStreamOptions,
|
|
2289
|
-
SDKValidationError
|
|
2290
|
-
> {
|
|
2291
|
-
return safeParse(
|
|
2292
|
-
jsonString,
|
|
2293
|
-
(x) =>
|
|
2294
|
-
ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema.parse(
|
|
2295
|
-
JSON.parse(x),
|
|
2296
|
-
),
|
|
2297
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationStreamOptions' from JSON`,
|
|
2298
|
-
);
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
2360
|
/** @internal */
|
|
2302
2361
|
export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
|
|
2303
2362
|
z.ZodType<
|
|
@@ -2492,37 +2551,6 @@ export function listAgentsFallbackModelConfigurationFallbacksFromJSON(
|
|
|
2492
2551
|
);
|
|
2493
2552
|
}
|
|
2494
2553
|
|
|
2495
|
-
/** @internal */
|
|
2496
|
-
export const ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema:
|
|
2497
|
-
z.ZodType<
|
|
2498
|
-
ListAgentsFallbackModelConfigurationAgentsRetry,
|
|
2499
|
-
z.ZodTypeDef,
|
|
2500
|
-
unknown
|
|
2501
|
-
> = z.object({
|
|
2502
|
-
count: z.number().default(3),
|
|
2503
|
-
on_codes: z.array(z.number()).optional(),
|
|
2504
|
-
}).transform((v) => {
|
|
2505
|
-
return remap$(v, {
|
|
2506
|
-
"on_codes": "onCodes",
|
|
2507
|
-
});
|
|
2508
|
-
});
|
|
2509
|
-
|
|
2510
|
-
export function listAgentsFallbackModelConfigurationAgentsRetryFromJSON(
|
|
2511
|
-
jsonString: string,
|
|
2512
|
-
): SafeParseResult<
|
|
2513
|
-
ListAgentsFallbackModelConfigurationAgentsRetry,
|
|
2514
|
-
SDKValidationError
|
|
2515
|
-
> {
|
|
2516
|
-
return safeParse(
|
|
2517
|
-
jsonString,
|
|
2518
|
-
(x) =>
|
|
2519
|
-
ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema.parse(
|
|
2520
|
-
JSON.parse(x),
|
|
2521
|
-
),
|
|
2522
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationAgentsRetry' from JSON`,
|
|
2523
|
-
);
|
|
2524
|
-
}
|
|
2525
|
-
|
|
2526
2554
|
/** @internal */
|
|
2527
2555
|
export const ListAgentsFallbackModelConfigurationType$inboundSchema:
|
|
2528
2556
|
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> = z
|
|
@@ -2664,15 +2692,9 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2664
2692
|
unknown
|
|
2665
2693
|
> = z.object({
|
|
2666
2694
|
name: z.string().optional(),
|
|
2667
|
-
audio: z.nullable(
|
|
2668
|
-
z.lazy(() => ListAgentsFallbackModelConfigurationAudio$inboundSchema),
|
|
2669
|
-
).optional(),
|
|
2670
2695
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
2671
2696
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
2672
2697
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
2673
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2674
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
2675
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2676
2698
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
2677
2699
|
response_format: z.union([
|
|
2678
2700
|
z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
|
|
@@ -2687,11 +2709,6 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2687
2709
|
verbosity: z.string().optional(),
|
|
2688
2710
|
seed: z.nullable(z.number()).optional(),
|
|
2689
2711
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2690
|
-
stream_options: z.nullable(
|
|
2691
|
-
z.lazy(() =>
|
|
2692
|
-
ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema
|
|
2693
|
-
),
|
|
2694
|
-
).optional(),
|
|
2695
2712
|
thinking: z.union([
|
|
2696
2713
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2697
2714
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -2715,9 +2732,6 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2715
2732
|
fallbacks: z.array(
|
|
2716
2733
|
z.lazy(() => ListAgentsFallbackModelConfigurationFallbacks$inboundSchema),
|
|
2717
2734
|
).optional(),
|
|
2718
|
-
retry: z.lazy(() =>
|
|
2719
|
-
ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema
|
|
2720
|
-
).optional(),
|
|
2721
2735
|
cache: z.lazy(() => ListAgentsFallbackModelConfigurationCache$inboundSchema)
|
|
2722
2736
|
.optional(),
|
|
2723
2737
|
load_balancer: z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema)
|
|
@@ -2730,11 +2744,9 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2730
2744
|
"frequency_penalty": "frequencyPenalty",
|
|
2731
2745
|
"max_tokens": "maxTokens",
|
|
2732
2746
|
"max_completion_tokens": "maxCompletionTokens",
|
|
2733
|
-
"top_logprobs": "topLogprobs",
|
|
2734
2747
|
"presence_penalty": "presencePenalty",
|
|
2735
2748
|
"response_format": "responseFormat",
|
|
2736
2749
|
"reasoning_effort": "reasoningEffort",
|
|
2737
|
-
"stream_options": "streamOptions",
|
|
2738
2750
|
"top_p": "topP",
|
|
2739
2751
|
"top_k": "topK",
|
|
2740
2752
|
"tool_choice": "toolChoice",
|
|
@@ -2815,8 +2827,8 @@ export function listAgentsFallbackModelConfiguration2FromJSON(
|
|
|
2815
2827
|
}
|
|
2816
2828
|
|
|
2817
2829
|
/** @internal */
|
|
2818
|
-
export const
|
|
2819
|
-
|
|
2830
|
+
export const DataFallbackModelConfiguration$inboundSchema: z.ZodType<
|
|
2831
|
+
DataFallbackModelConfiguration,
|
|
2820
2832
|
z.ZodTypeDef,
|
|
2821
2833
|
unknown
|
|
2822
2834
|
> = z.union([
|
|
@@ -2824,27 +2836,26 @@ export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
|
|
|
2824
2836
|
z.string(),
|
|
2825
2837
|
]);
|
|
2826
2838
|
|
|
2827
|
-
export function
|
|
2839
|
+
export function dataFallbackModelConfigurationFromJSON(
|
|
2828
2840
|
jsonString: string,
|
|
2829
|
-
): SafeParseResult<
|
|
2841
|
+
): SafeParseResult<DataFallbackModelConfiguration, SDKValidationError> {
|
|
2830
2842
|
return safeParse(
|
|
2831
2843
|
jsonString,
|
|
2832
|
-
(x) =>
|
|
2833
|
-
|
|
2834
|
-
`Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
|
|
2844
|
+
(x) => DataFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
2845
|
+
`Failed to parse 'DataFallbackModelConfiguration' from JSON`,
|
|
2835
2846
|
);
|
|
2836
2847
|
}
|
|
2837
2848
|
|
|
2838
2849
|
/** @internal */
|
|
2839
|
-
export const
|
|
2840
|
-
|
|
2850
|
+
export const DataModel$inboundSchema: z.ZodType<
|
|
2851
|
+
DataModel,
|
|
2841
2852
|
z.ZodTypeDef,
|
|
2842
2853
|
unknown
|
|
2843
2854
|
> = z.object({
|
|
2844
2855
|
id: z.string(),
|
|
2845
2856
|
integration_id: z.nullable(z.string()).optional(),
|
|
2846
|
-
parameters: z.lazy(() =>
|
|
2847
|
-
retry: z.lazy(() =>
|
|
2857
|
+
parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
|
|
2858
|
+
retry: z.lazy(() => DataRetry$inboundSchema).optional(),
|
|
2848
2859
|
fallback_models: z.nullable(
|
|
2849
2860
|
z.array(z.union([
|
|
2850
2861
|
z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
@@ -2858,129 +2869,77 @@ export const ListAgentsModel$inboundSchema: z.ZodType<
|
|
|
2858
2869
|
});
|
|
2859
2870
|
});
|
|
2860
2871
|
|
|
2861
|
-
export function
|
|
2862
|
-
jsonString: string,
|
|
2863
|
-
): SafeParseResult<ListAgentsModel, SDKValidationError> {
|
|
2864
|
-
return safeParse(
|
|
2865
|
-
jsonString,
|
|
2866
|
-
(x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
|
|
2867
|
-
`Failed to parse 'ListAgentsModel' from JSON`,
|
|
2868
|
-
);
|
|
2869
|
-
}
|
|
2870
|
-
|
|
2871
|
-
/** @internal */
|
|
2872
|
-
export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
2873
|
-
ListAgentsTeamOfAgents,
|
|
2874
|
-
z.ZodTypeDef,
|
|
2875
|
-
unknown
|
|
2876
|
-
> = z.object({
|
|
2877
|
-
key: z.string(),
|
|
2878
|
-
role: z.string().optional(),
|
|
2879
|
-
});
|
|
2880
|
-
|
|
2881
|
-
export function listAgentsTeamOfAgentsFromJSON(
|
|
2882
|
-
jsonString: string,
|
|
2883
|
-
): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
|
|
2884
|
-
return safeParse(
|
|
2885
|
-
jsonString,
|
|
2886
|
-
(x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
2887
|
-
`Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
|
|
2888
|
-
);
|
|
2889
|
-
}
|
|
2890
|
-
|
|
2891
|
-
/** @internal */
|
|
2892
|
-
export const ListAgentsMetrics$inboundSchema: z.ZodType<
|
|
2893
|
-
ListAgentsMetrics,
|
|
2894
|
-
z.ZodTypeDef,
|
|
2895
|
-
unknown
|
|
2896
|
-
> = z.object({
|
|
2897
|
-
total_cost: z.number().default(0),
|
|
2898
|
-
}).transform((v) => {
|
|
2899
|
-
return remap$(v, {
|
|
2900
|
-
"total_cost": "totalCost",
|
|
2901
|
-
});
|
|
2902
|
-
});
|
|
2903
|
-
|
|
2904
|
-
export function listAgentsMetricsFromJSON(
|
|
2872
|
+
export function dataModelFromJSON(
|
|
2905
2873
|
jsonString: string,
|
|
2906
|
-
): SafeParseResult<
|
|
2874
|
+
): SafeParseResult<DataModel, SDKValidationError> {
|
|
2907
2875
|
return safeParse(
|
|
2908
2876
|
jsonString,
|
|
2909
|
-
(x) =>
|
|
2910
|
-
`Failed to parse '
|
|
2877
|
+
(x) => DataModel$inboundSchema.parse(JSON.parse(x)),
|
|
2878
|
+
`Failed to parse 'DataModel' from JSON`,
|
|
2911
2879
|
);
|
|
2912
2880
|
}
|
|
2913
2881
|
|
|
2914
2882
|
/** @internal */
|
|
2915
|
-
export const
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2883
|
+
export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
|
|
2884
|
+
.object({
|
|
2885
|
+
_id: z.string(),
|
|
2886
|
+
key: z.string(),
|
|
2887
|
+
display_name: z.string().optional(),
|
|
2888
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
2889
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
2890
|
+
created: z.string().optional(),
|
|
2891
|
+
updated: z.string().optional(),
|
|
2892
|
+
status: DataStatus$inboundSchema,
|
|
2893
|
+
version_hash: z.string().optional(),
|
|
2894
|
+
path: z.string(),
|
|
2895
|
+
memory_stores: z.array(z.string()).optional(),
|
|
2896
|
+
team_of_agents: z.array(z.lazy(() => DataTeamOfAgents$inboundSchema))
|
|
2897
|
+
.optional(),
|
|
2898
|
+
metrics: z.lazy(() => DataMetrics$inboundSchema).optional(),
|
|
2899
|
+
variables: z.record(z.any()).optional(),
|
|
2900
|
+
knowledge_bases: z.array(z.lazy(() => DataKnowledgeBases$inboundSchema))
|
|
2901
|
+
.optional(),
|
|
2902
|
+
source: DataSource$inboundSchema.optional(),
|
|
2903
|
+
type: z.literal("internal"),
|
|
2904
|
+
role: z.string(),
|
|
2905
|
+
description: z.string(),
|
|
2906
|
+
system_prompt: z.string().optional(),
|
|
2907
|
+
instructions: z.string(),
|
|
2908
|
+
settings: z.lazy(() => DataSettings$inboundSchema).optional(),
|
|
2909
|
+
model: z.lazy(() => DataModel$inboundSchema),
|
|
2910
|
+
}).transform((v) => {
|
|
2911
|
+
return remap$(v, {
|
|
2912
|
+
"_id": "id",
|
|
2913
|
+
"display_name": "displayName",
|
|
2914
|
+
"created_by_id": "createdById",
|
|
2915
|
+
"updated_by_id": "updatedById",
|
|
2916
|
+
"version_hash": "versionHash",
|
|
2917
|
+
"memory_stores": "memoryStores",
|
|
2918
|
+
"team_of_agents": "teamOfAgents",
|
|
2919
|
+
"knowledge_bases": "knowledgeBases",
|
|
2920
|
+
"system_prompt": "systemPrompt",
|
|
2921
|
+
});
|
|
2924
2922
|
});
|
|
2925
|
-
});
|
|
2926
2923
|
|
|
2927
|
-
export function
|
|
2924
|
+
export function data1FromJSON(
|
|
2928
2925
|
jsonString: string,
|
|
2929
|
-
): SafeParseResult<
|
|
2926
|
+
): SafeParseResult<Data1, SDKValidationError> {
|
|
2930
2927
|
return safeParse(
|
|
2931
2928
|
jsonString,
|
|
2932
|
-
(x) =>
|
|
2933
|
-
`Failed to parse '
|
|
2929
|
+
(x) => Data1$inboundSchema.parse(JSON.parse(x)),
|
|
2930
|
+
`Failed to parse 'Data1' from JSON`,
|
|
2934
2931
|
);
|
|
2935
2932
|
}
|
|
2936
2933
|
|
|
2937
|
-
/** @internal */
|
|
2938
|
-
export const ListAgentsSource$inboundSchema: z.ZodNativeEnum<
|
|
2939
|
-
typeof ListAgentsSource
|
|
2940
|
-
> = z.nativeEnum(ListAgentsSource);
|
|
2941
|
-
|
|
2942
2934
|
/** @internal */
|
|
2943
2935
|
export const ListAgentsData$inboundSchema: z.ZodType<
|
|
2944
2936
|
ListAgentsData,
|
|
2945
2937
|
z.ZodTypeDef,
|
|
2946
2938
|
unknown
|
|
2947
|
-
> = z.
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
2952
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
2953
|
-
created: z.string().optional(),
|
|
2954
|
-
updated: z.string().optional(),
|
|
2955
|
-
role: z.string(),
|
|
2956
|
-
description: z.string(),
|
|
2957
|
-
system_prompt: z.string().optional(),
|
|
2958
|
-
instructions: z.string(),
|
|
2959
|
-
status: ListAgentsStatus$inboundSchema,
|
|
2960
|
-
settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
|
|
2961
|
-
model: z.lazy(() => ListAgentsModel$inboundSchema),
|
|
2962
|
-
version_hash: z.string().optional(),
|
|
2963
|
-
path: z.string(),
|
|
2964
|
-
memory_stores: z.array(z.string()),
|
|
2965
|
-
team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema)),
|
|
2966
|
-
metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
|
|
2967
|
-
variables: z.record(z.any()).optional(),
|
|
2968
|
-
knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
|
|
2969
|
-
.optional(),
|
|
2970
|
-
source: ListAgentsSource$inboundSchema.optional(),
|
|
2971
|
-
}).transform((v) => {
|
|
2972
|
-
return remap$(v, {
|
|
2973
|
-
"_id": "id",
|
|
2974
|
-
"display_name": "displayName",
|
|
2975
|
-
"created_by_id": "createdById",
|
|
2976
|
-
"updated_by_id": "updatedById",
|
|
2977
|
-
"system_prompt": "systemPrompt",
|
|
2978
|
-
"version_hash": "versionHash",
|
|
2979
|
-
"memory_stores": "memoryStores",
|
|
2980
|
-
"team_of_agents": "teamOfAgents",
|
|
2981
|
-
"knowledge_bases": "knowledgeBases",
|
|
2982
|
-
});
|
|
2983
|
-
});
|
|
2939
|
+
> = z.union([
|
|
2940
|
+
z.lazy(() => Data1$inboundSchema),
|
|
2941
|
+
z.lazy(() => Data2$inboundSchema),
|
|
2942
|
+
]);
|
|
2984
2943
|
|
|
2985
2944
|
export function listAgentsDataFromJSON(
|
|
2986
2945
|
jsonString: string,
|
|
@@ -2999,7 +2958,12 @@ export const ListAgentsResponseBody$inboundSchema: z.ZodType<
|
|
|
2999
2958
|
unknown
|
|
3000
2959
|
> = z.object({
|
|
3001
2960
|
object: ListAgentsObject$inboundSchema,
|
|
3002
|
-
data: z.array(
|
|
2961
|
+
data: z.array(
|
|
2962
|
+
z.union([
|
|
2963
|
+
z.lazy(() => Data1$inboundSchema),
|
|
2964
|
+
z.lazy(() => Data2$inboundSchema),
|
|
2965
|
+
]),
|
|
2966
|
+
),
|
|
3003
2967
|
has_more: z.boolean(),
|
|
3004
2968
|
}).transform((v) => {
|
|
3005
2969
|
return remap$(v, {
|