@orq-ai/node 4.4.12 → 4.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +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/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/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- 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 +35 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- 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/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 +97 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +74 -49
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -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/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
|
@@ -20,7 +20,7 @@ export type RetrieveAgentRequestRequest = {
|
|
|
20
20
|
/**
|
|
21
21
|
* 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.
|
|
22
22
|
*/
|
|
23
|
-
export const
|
|
23
|
+
export const RetrieveAgentRequestResponseBodyAgentsStatus = {
|
|
24
24
|
Live: "live",
|
|
25
25
|
Draft: "draft",
|
|
26
26
|
Pending: "pending",
|
|
@@ -29,14 +29,196 @@ export const RetrieveAgentRequestStatus = {
|
|
|
29
29
|
/**
|
|
30
30
|
* 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.
|
|
31
31
|
*/
|
|
32
|
-
export type
|
|
33
|
-
typeof
|
|
32
|
+
export type RetrieveAgentRequestResponseBodyAgentsStatus = ClosedEnum<
|
|
33
|
+
typeof RetrieveAgentRequestResponseBodyAgentsStatus
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
export type RetrieveAgentRequestResponseBodyAgentsTeamOfAgents = {
|
|
37
|
+
/**
|
|
38
|
+
* The unique key of the agent within the workspace
|
|
39
|
+
*/
|
|
40
|
+
key: string;
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
*/
|
|
44
|
+
role?: string | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type RetrieveAgentRequestResponseBodyAgentsMetrics = {
|
|
48
|
+
totalCost: number;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type RetrieveAgentRequestResponseBodyAgentsKnowledgeBases = {
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier of the knowledge base to search
|
|
54
|
+
*/
|
|
55
|
+
knowledgeId: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const RetrieveAgentRequestResponseBodyAgentsSource = {
|
|
59
|
+
Internal: "internal",
|
|
60
|
+
External: "external",
|
|
61
|
+
Experiment: "experiment",
|
|
62
|
+
} as const;
|
|
63
|
+
export type RetrieveAgentRequestResponseBodyAgentsSource = ClosedEnum<
|
|
64
|
+
typeof RetrieveAgentRequestResponseBodyAgentsSource
|
|
65
|
+
>;
|
|
66
|
+
|
|
67
|
+
export type RetrieveAgentRequestResponseBodyHeaders = {
|
|
68
|
+
/**
|
|
69
|
+
* 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.
|
|
70
|
+
*/
|
|
71
|
+
value: string;
|
|
72
|
+
encrypted: boolean;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
77
|
+
*/
|
|
78
|
+
export type ResponseBodyA2AAgentConfiguration = {
|
|
79
|
+
/**
|
|
80
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
81
|
+
*/
|
|
82
|
+
agentUrl: string;
|
|
83
|
+
/**
|
|
84
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
85
|
+
*/
|
|
86
|
+
cardUrl?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* 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.
|
|
89
|
+
*/
|
|
90
|
+
headers?:
|
|
91
|
+
| { [k: string]: RetrieveAgentRequestResponseBodyHeaders }
|
|
92
|
+
| undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
95
|
+
*/
|
|
96
|
+
cachedCard?: any | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type RetrieveAgentRequestResponseBody2 = {
|
|
100
|
+
id: string;
|
|
101
|
+
/**
|
|
102
|
+
* Unique identifier for the agent within the workspace
|
|
103
|
+
*/
|
|
104
|
+
key: string;
|
|
105
|
+
displayName?: string | undefined;
|
|
106
|
+
projectId: string;
|
|
107
|
+
createdById?: string | null | undefined;
|
|
108
|
+
updatedById?: string | null | undefined;
|
|
109
|
+
created?: string | undefined;
|
|
110
|
+
updated?: string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* 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.
|
|
113
|
+
*/
|
|
114
|
+
status: RetrieveAgentRequestResponseBodyAgentsStatus;
|
|
115
|
+
versionHash?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
118
|
+
*
|
|
119
|
+
* @remarks
|
|
120
|
+
*
|
|
121
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
122
|
+
*
|
|
123
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
124
|
+
*/
|
|
125
|
+
path: string;
|
|
126
|
+
/**
|
|
127
|
+
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
128
|
+
*/
|
|
129
|
+
memoryStores?: Array<string> | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
132
|
+
*/
|
|
133
|
+
teamOfAgents?:
|
|
134
|
+
| Array<RetrieveAgentRequestResponseBodyAgentsTeamOfAgents>
|
|
135
|
+
| undefined;
|
|
136
|
+
metrics?: RetrieveAgentRequestResponseBodyAgentsMetrics | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Extracted variables from agent instructions
|
|
139
|
+
*/
|
|
140
|
+
variables?: { [k: string]: any } | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Agent knowledge bases reference
|
|
143
|
+
*/
|
|
144
|
+
knowledgeBases?:
|
|
145
|
+
| Array<RetrieveAgentRequestResponseBodyAgentsKnowledgeBases>
|
|
146
|
+
| undefined;
|
|
147
|
+
source?: RetrieveAgentRequestResponseBodyAgentsSource | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* External A2A-compliant agent
|
|
150
|
+
*/
|
|
151
|
+
type: "a2a";
|
|
152
|
+
/**
|
|
153
|
+
* Role fetched from agent card name or user-provided
|
|
154
|
+
*/
|
|
155
|
+
role: string;
|
|
156
|
+
/**
|
|
157
|
+
* Description fetched from agent card or user-provided
|
|
158
|
+
*/
|
|
159
|
+
description: string;
|
|
160
|
+
systemPrompt?: string | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Instructions from agent card description or user-provided
|
|
163
|
+
*/
|
|
164
|
+
instructions: string;
|
|
165
|
+
/**
|
|
166
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
167
|
+
*/
|
|
168
|
+
a2a: ResponseBodyA2AAgentConfiguration;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* 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.
|
|
173
|
+
*/
|
|
174
|
+
export const RetrieveAgentRequestResponseBodyStatus = {
|
|
175
|
+
Live: "live",
|
|
176
|
+
Draft: "draft",
|
|
177
|
+
Pending: "pending",
|
|
178
|
+
Published: "published",
|
|
179
|
+
} as const;
|
|
180
|
+
/**
|
|
181
|
+
* 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.
|
|
182
|
+
*/
|
|
183
|
+
export type RetrieveAgentRequestResponseBodyStatus = ClosedEnum<
|
|
184
|
+
typeof RetrieveAgentRequestResponseBodyStatus
|
|
185
|
+
>;
|
|
186
|
+
|
|
187
|
+
export type RetrieveAgentRequestResponseBodyTeamOfAgents = {
|
|
188
|
+
/**
|
|
189
|
+
* The unique key of the agent within the workspace
|
|
190
|
+
*/
|
|
191
|
+
key: string;
|
|
192
|
+
/**
|
|
193
|
+
* 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.
|
|
194
|
+
*/
|
|
195
|
+
role?: string | undefined;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export type RetrieveAgentRequestResponseBodyMetrics = {
|
|
199
|
+
totalCost: number;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export type RetrieveAgentRequestResponseBodyKnowledgeBases = {
|
|
203
|
+
/**
|
|
204
|
+
* Unique identifier of the knowledge base to search
|
|
205
|
+
*/
|
|
206
|
+
knowledgeId: string;
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export const RetrieveAgentRequestResponseBodySource = {
|
|
210
|
+
Internal: "internal",
|
|
211
|
+
External: "external",
|
|
212
|
+
Experiment: "experiment",
|
|
213
|
+
} as const;
|
|
214
|
+
export type RetrieveAgentRequestResponseBodySource = ClosedEnum<
|
|
215
|
+
typeof RetrieveAgentRequestResponseBodySource
|
|
34
216
|
>;
|
|
35
217
|
|
|
36
218
|
/**
|
|
37
219
|
* 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.
|
|
38
220
|
*/
|
|
39
|
-
export const
|
|
221
|
+
export const RetrieveAgentRequestResponseBodyToolApprovalRequired = {
|
|
40
222
|
All: "all",
|
|
41
223
|
RespectTool: "respect_tool",
|
|
42
224
|
None: "none",
|
|
@@ -44,11 +226,11 @@ export const RetrieveAgentRequestToolApprovalRequired = {
|
|
|
44
226
|
/**
|
|
45
227
|
* 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.
|
|
46
228
|
*/
|
|
47
|
-
export type
|
|
48
|
-
typeof
|
|
229
|
+
export type RetrieveAgentRequestResponseBodyToolApprovalRequired = ClosedEnum<
|
|
230
|
+
typeof RetrieveAgentRequestResponseBodyToolApprovalRequired
|
|
49
231
|
>;
|
|
50
232
|
|
|
51
|
-
export type
|
|
233
|
+
export type ResponseBodyConditions = {
|
|
52
234
|
/**
|
|
53
235
|
* The argument of the tool call to evaluate
|
|
54
236
|
*/
|
|
@@ -63,7 +245,7 @@ export type RetrieveAgentRequestConditions = {
|
|
|
63
245
|
value: string;
|
|
64
246
|
};
|
|
65
247
|
|
|
66
|
-
export type
|
|
248
|
+
export type RetrieveAgentRequestResponseBodyTools = {
|
|
67
249
|
/**
|
|
68
250
|
* The id of the resource
|
|
69
251
|
*/
|
|
@@ -83,7 +265,7 @@ export type RetrieveAgentRequestTools = {
|
|
|
83
265
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
84
266
|
*/
|
|
85
267
|
toolId?: string | undefined;
|
|
86
|
-
conditions?: Array<
|
|
268
|
+
conditions?: Array<ResponseBodyConditions> | undefined;
|
|
87
269
|
/**
|
|
88
270
|
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
89
271
|
*/
|
|
@@ -93,18 +275,18 @@ export type RetrieveAgentRequestTools = {
|
|
|
93
275
|
/**
|
|
94
276
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
95
277
|
*/
|
|
96
|
-
export const
|
|
278
|
+
export const RetrieveAgentRequestResponseBodyExecuteOn = {
|
|
97
279
|
Input: "input",
|
|
98
280
|
Output: "output",
|
|
99
281
|
} as const;
|
|
100
282
|
/**
|
|
101
283
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
102
284
|
*/
|
|
103
|
-
export type
|
|
104
|
-
typeof
|
|
285
|
+
export type RetrieveAgentRequestResponseBodyExecuteOn = ClosedEnum<
|
|
286
|
+
typeof RetrieveAgentRequestResponseBodyExecuteOn
|
|
105
287
|
>;
|
|
106
288
|
|
|
107
|
-
export type
|
|
289
|
+
export type RetrieveAgentRequestResponseBodyEvaluators = {
|
|
108
290
|
/**
|
|
109
291
|
* Unique key or identifier of the evaluator
|
|
110
292
|
*/
|
|
@@ -116,24 +298,24 @@ export type RetrieveAgentRequestEvaluators = {
|
|
|
116
298
|
/**
|
|
117
299
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
118
300
|
*/
|
|
119
|
-
executeOn:
|
|
301
|
+
executeOn: RetrieveAgentRequestResponseBodyExecuteOn;
|
|
120
302
|
};
|
|
121
303
|
|
|
122
304
|
/**
|
|
123
305
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
124
306
|
*/
|
|
125
|
-
export const
|
|
307
|
+
export const RetrieveAgentRequestResponseBodyAgentsExecuteOn = {
|
|
126
308
|
Input: "input",
|
|
127
309
|
Output: "output",
|
|
128
310
|
} as const;
|
|
129
311
|
/**
|
|
130
312
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
131
313
|
*/
|
|
132
|
-
export type
|
|
133
|
-
typeof
|
|
314
|
+
export type RetrieveAgentRequestResponseBodyAgentsExecuteOn = ClosedEnum<
|
|
315
|
+
typeof RetrieveAgentRequestResponseBodyAgentsExecuteOn
|
|
134
316
|
>;
|
|
135
317
|
|
|
136
|
-
export type
|
|
318
|
+
export type RetrieveAgentRequestResponseBodyGuardrails = {
|
|
137
319
|
/**
|
|
138
320
|
* Unique key or identifier of the evaluator
|
|
139
321
|
*/
|
|
@@ -145,10 +327,10 @@ export type RetrieveAgentRequestGuardrails = {
|
|
|
145
327
|
/**
|
|
146
328
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
147
329
|
*/
|
|
148
|
-
executeOn:
|
|
330
|
+
executeOn: RetrieveAgentRequestResponseBodyAgentsExecuteOn;
|
|
149
331
|
};
|
|
150
332
|
|
|
151
|
-
export type
|
|
333
|
+
export type RetrieveAgentRequestResponseBodySettings = {
|
|
152
334
|
/**
|
|
153
335
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
154
336
|
*/
|
|
@@ -164,65 +346,16 @@ export type RetrieveAgentRequestSettings = {
|
|
|
164
346
|
/**
|
|
165
347
|
* 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.
|
|
166
348
|
*/
|
|
167
|
-
toolApprovalRequired:
|
|
168
|
-
tools?: Array<
|
|
349
|
+
toolApprovalRequired: RetrieveAgentRequestResponseBodyToolApprovalRequired;
|
|
350
|
+
tools?: Array<RetrieveAgentRequestResponseBodyTools> | undefined;
|
|
169
351
|
/**
|
|
170
352
|
* Configuration for an evaluator applied to the agent
|
|
171
353
|
*/
|
|
172
|
-
evaluators?: Array<
|
|
354
|
+
evaluators?: Array<RetrieveAgentRequestResponseBodyEvaluators> | undefined;
|
|
173
355
|
/**
|
|
174
356
|
* Configuration for a guardrail applied to the agent
|
|
175
357
|
*/
|
|
176
|
-
guardrails?: Array<
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
181
|
-
*/
|
|
182
|
-
export const RetrieveAgentRequestVoice = {
|
|
183
|
-
Alloy: "alloy",
|
|
184
|
-
Echo: "echo",
|
|
185
|
-
Fable: "fable",
|
|
186
|
-
Onyx: "onyx",
|
|
187
|
-
Nova: "nova",
|
|
188
|
-
Shimmer: "shimmer",
|
|
189
|
-
} as const;
|
|
190
|
-
/**
|
|
191
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
192
|
-
*/
|
|
193
|
-
export type RetrieveAgentRequestVoice = ClosedEnum<
|
|
194
|
-
typeof RetrieveAgentRequestVoice
|
|
195
|
-
>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
199
|
-
*/
|
|
200
|
-
export const RetrieveAgentRequestFormat = {
|
|
201
|
-
Wav: "wav",
|
|
202
|
-
Mp3: "mp3",
|
|
203
|
-
Flac: "flac",
|
|
204
|
-
Opus: "opus",
|
|
205
|
-
Pcm16: "pcm16",
|
|
206
|
-
} as const;
|
|
207
|
-
/**
|
|
208
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
209
|
-
*/
|
|
210
|
-
export type RetrieveAgentRequestFormat = ClosedEnum<
|
|
211
|
-
typeof RetrieveAgentRequestFormat
|
|
212
|
-
>;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
216
|
-
*/
|
|
217
|
-
export type RetrieveAgentRequestAudio = {
|
|
218
|
-
/**
|
|
219
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
220
|
-
*/
|
|
221
|
-
voice: RetrieveAgentRequestVoice;
|
|
222
|
-
/**
|
|
223
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
224
|
-
*/
|
|
225
|
-
format: RetrieveAgentRequestFormat;
|
|
358
|
+
guardrails?: Array<RetrieveAgentRequestResponseBodyGuardrails> | undefined;
|
|
226
359
|
};
|
|
227
360
|
|
|
228
361
|
export type RetrieveAgentRequestResponseFormatJsonSchema = {
|
|
@@ -275,7 +408,7 @@ export type RetrieveAgentRequestResponseFormatText = {
|
|
|
275
408
|
/**
|
|
276
409
|
* An object specifying the format that the model must output
|
|
277
410
|
*/
|
|
278
|
-
export type
|
|
411
|
+
export type RetrieveAgentRequestResponseBodyResponseFormat =
|
|
279
412
|
| RetrieveAgentRequestResponseFormatText
|
|
280
413
|
| RetrieveAgentRequestResponseFormatJSONObject
|
|
281
414
|
| RetrieveAgentRequestResponseFormatAgentsJSONSchema;
|
|
@@ -292,7 +425,7 @@ export type RetrieveAgentRequestResponseFormat =
|
|
|
292
425
|
*
|
|
293
426
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
294
427
|
*/
|
|
295
|
-
export const
|
|
428
|
+
export const RetrieveAgentRequestResponseBodyReasoningEffort = {
|
|
296
429
|
None: "none",
|
|
297
430
|
Minimal: "minimal",
|
|
298
431
|
Low: "low",
|
|
@@ -312,26 +445,16 @@ export const RetrieveAgentRequestReasoningEffort = {
|
|
|
312
445
|
*
|
|
313
446
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
314
447
|
*/
|
|
315
|
-
export type
|
|
316
|
-
typeof
|
|
448
|
+
export type RetrieveAgentRequestResponseBodyReasoningEffort = ClosedEnum<
|
|
449
|
+
typeof RetrieveAgentRequestResponseBodyReasoningEffort
|
|
317
450
|
>;
|
|
318
451
|
|
|
319
452
|
/**
|
|
320
453
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
321
454
|
*/
|
|
322
|
-
export type
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
326
|
-
*/
|
|
327
|
-
export type RetrieveAgentRequestStreamOptions = {
|
|
328
|
-
/**
|
|
329
|
-
* 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.
|
|
330
|
-
*/
|
|
331
|
-
includeUsage?: boolean | undefined;
|
|
332
|
-
};
|
|
455
|
+
export type RetrieveAgentRequestResponseBodyStop = string | Array<string>;
|
|
333
456
|
|
|
334
|
-
export type
|
|
457
|
+
export type RetrieveAgentRequestResponseBodyThinking =
|
|
335
458
|
| components.ThinkingConfigDisabledSchema
|
|
336
459
|
| components.ThinkingConfigEnabledSchema;
|
|
337
460
|
|
|
@@ -375,16 +498,16 @@ export type RetrieveAgentRequestToolChoice1 = ClosedEnum<
|
|
|
375
498
|
/**
|
|
376
499
|
* Controls which (if any) tool is called by the model.
|
|
377
500
|
*/
|
|
378
|
-
export type
|
|
501
|
+
export type RetrieveAgentRequestResponseBodyToolChoice =
|
|
379
502
|
| RetrieveAgentRequestToolChoice2
|
|
380
503
|
| RetrieveAgentRequestToolChoice1;
|
|
381
504
|
|
|
382
|
-
export const
|
|
505
|
+
export const RetrieveAgentRequestResponseBodyModalities = {
|
|
383
506
|
Text: "text",
|
|
384
507
|
Audio: "audio",
|
|
385
508
|
} as const;
|
|
386
|
-
export type
|
|
387
|
-
typeof
|
|
509
|
+
export type RetrieveAgentRequestResponseBodyModalities = ClosedEnum<
|
|
510
|
+
typeof RetrieveAgentRequestResponseBodyModalities
|
|
388
511
|
>;
|
|
389
512
|
|
|
390
513
|
/**
|
|
@@ -402,67 +525,54 @@ export type RetrieveAgentRequestId1 = ClosedEnum<
|
|
|
402
525
|
typeof RetrieveAgentRequestId1
|
|
403
526
|
>;
|
|
404
527
|
|
|
405
|
-
export type
|
|
528
|
+
export type RetrieveAgentRequestResponseBodyId =
|
|
529
|
+
| RetrieveAgentRequestId1
|
|
530
|
+
| string;
|
|
406
531
|
|
|
407
532
|
/**
|
|
408
533
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
409
534
|
*/
|
|
410
|
-
export const
|
|
535
|
+
export const RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn = {
|
|
411
536
|
Input: "input",
|
|
412
537
|
Output: "output",
|
|
413
538
|
} as const;
|
|
414
539
|
/**
|
|
415
540
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
416
541
|
*/
|
|
417
|
-
export type
|
|
418
|
-
typeof
|
|
419
|
-
>;
|
|
542
|
+
export type RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn =
|
|
543
|
+
ClosedEnum<typeof RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn>;
|
|
420
544
|
|
|
421
|
-
export type
|
|
545
|
+
export type RetrieveAgentRequestResponseBodyAgentsGuardrails = {
|
|
422
546
|
id: RetrieveAgentRequestId1 | string;
|
|
423
547
|
/**
|
|
424
548
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
425
549
|
*/
|
|
426
|
-
executeOn:
|
|
550
|
+
executeOn: RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn;
|
|
427
551
|
};
|
|
428
552
|
|
|
429
|
-
export type
|
|
553
|
+
export type RetrieveAgentRequestResponseBodyFallbacks = {
|
|
430
554
|
/**
|
|
431
555
|
* Fallback model identifier
|
|
432
556
|
*/
|
|
433
557
|
model: string;
|
|
434
558
|
};
|
|
435
559
|
|
|
436
|
-
|
|
437
|
-
* Retry configuration for the request
|
|
438
|
-
*/
|
|
439
|
-
export type RetrieveAgentRequestAgentsRetry = {
|
|
440
|
-
/**
|
|
441
|
-
* Number of retry attempts (1-5)
|
|
442
|
-
*/
|
|
443
|
-
count: number;
|
|
444
|
-
/**
|
|
445
|
-
* HTTP status codes that trigger retry logic
|
|
446
|
-
*/
|
|
447
|
-
onCodes?: Array<number> | undefined;
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
export const RetrieveAgentRequestType = {
|
|
560
|
+
export const RetrieveAgentRequestResponseBodyAgentsResponseType = {
|
|
451
561
|
ExactMatch: "exact_match",
|
|
452
562
|
} as const;
|
|
453
|
-
export type
|
|
454
|
-
typeof
|
|
563
|
+
export type RetrieveAgentRequestResponseBodyAgentsResponseType = ClosedEnum<
|
|
564
|
+
typeof RetrieveAgentRequestResponseBodyAgentsResponseType
|
|
455
565
|
>;
|
|
456
566
|
|
|
457
567
|
/**
|
|
458
568
|
* Cache configuration for the request.
|
|
459
569
|
*/
|
|
460
|
-
export type
|
|
570
|
+
export type RetrieveAgentRequestResponseBodyCache = {
|
|
461
571
|
/**
|
|
462
572
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
463
573
|
*/
|
|
464
574
|
ttl: number;
|
|
465
|
-
type:
|
|
575
|
+
type: RetrieveAgentRequestResponseBodyAgentsResponseType;
|
|
466
576
|
};
|
|
467
577
|
|
|
468
578
|
export const RetrieveAgentRequestLoadBalancerType = {
|
|
@@ -491,13 +601,13 @@ export type RetrieveAgentRequestLoadBalancer1 = {
|
|
|
491
601
|
/**
|
|
492
602
|
* Load balancer configuration for the request.
|
|
493
603
|
*/
|
|
494
|
-
export type
|
|
604
|
+
export type RetrieveAgentRequestResponseBodyLoadBalancer =
|
|
495
605
|
RetrieveAgentRequestLoadBalancer1;
|
|
496
606
|
|
|
497
607
|
/**
|
|
498
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.
|
|
499
609
|
*/
|
|
500
|
-
export type
|
|
610
|
+
export type RetrieveAgentRequestResponseBodyTimeout = {
|
|
501
611
|
/**
|
|
502
612
|
* Timeout value in milliseconds
|
|
503
613
|
*/
|
|
@@ -507,15 +617,11 @@ export type RetrieveAgentRequestTimeout = {
|
|
|
507
617
|
/**
|
|
508
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.
|
|
509
619
|
*/
|
|
510
|
-
export type
|
|
620
|
+
export type RetrieveAgentRequestResponseBodyParameters = {
|
|
511
621
|
/**
|
|
512
622
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
513
623
|
*/
|
|
514
624
|
name?: string | undefined;
|
|
515
|
-
/**
|
|
516
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
517
|
-
*/
|
|
518
|
-
audio?: RetrieveAgentRequestAudio | null | undefined;
|
|
519
625
|
/**
|
|
520
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.
|
|
521
627
|
*/
|
|
@@ -532,18 +638,6 @@ export type RetrieveAgentRequestParameters = {
|
|
|
532
638
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
533
639
|
*/
|
|
534
640
|
maxCompletionTokens?: number | null | undefined;
|
|
535
|
-
/**
|
|
536
|
-
* 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.
|
|
537
|
-
*/
|
|
538
|
-
logprobs?: boolean | null | undefined;
|
|
539
|
-
/**
|
|
540
|
-
* 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.
|
|
541
|
-
*/
|
|
542
|
-
topLogprobs?: number | null | undefined;
|
|
543
|
-
/**
|
|
544
|
-
* 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.
|
|
545
|
-
*/
|
|
546
|
-
n?: number | null | undefined;
|
|
547
641
|
/**
|
|
548
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.
|
|
549
643
|
*/
|
|
@@ -568,7 +662,7 @@ export type RetrieveAgentRequestParameters = {
|
|
|
568
662
|
*
|
|
569
663
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
570
664
|
*/
|
|
571
|
-
reasoningEffort?:
|
|
665
|
+
reasoningEffort?: RetrieveAgentRequestResponseBodyReasoningEffort | undefined;
|
|
572
666
|
/**
|
|
573
667
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
574
668
|
*/
|
|
@@ -581,10 +675,6 @@ export type RetrieveAgentRequestParameters = {
|
|
|
581
675
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
582
676
|
*/
|
|
583
677
|
stop?: string | Array<string> | null | undefined;
|
|
584
|
-
/**
|
|
585
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
586
|
-
*/
|
|
587
|
-
streamOptions?: RetrieveAgentRequestStreamOptions | null | undefined;
|
|
588
678
|
thinking?:
|
|
589
679
|
| components.ThinkingConfigDisabledSchema
|
|
590
680
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -615,23 +705,24 @@ export type RetrieveAgentRequestParameters = {
|
|
|
615
705
|
/**
|
|
616
706
|
* 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"].
|
|
617
707
|
*/
|
|
618
|
-
modalities?:
|
|
708
|
+
modalities?:
|
|
709
|
+
| Array<RetrieveAgentRequestResponseBodyModalities>
|
|
710
|
+
| null
|
|
711
|
+
| undefined;
|
|
619
712
|
/**
|
|
620
713
|
* A list of guardrails to apply to the request.
|
|
621
714
|
*/
|
|
622
|
-
guardrails?:
|
|
715
|
+
guardrails?:
|
|
716
|
+
| Array<RetrieveAgentRequestResponseBodyAgentsGuardrails>
|
|
717
|
+
| undefined;
|
|
623
718
|
/**
|
|
624
719
|
* Array of fallback models to use if primary model fails
|
|
625
720
|
*/
|
|
626
|
-
fallbacks?: Array<
|
|
627
|
-
/**
|
|
628
|
-
* Retry configuration for the request
|
|
629
|
-
*/
|
|
630
|
-
retry?: RetrieveAgentRequestAgentsRetry | undefined;
|
|
721
|
+
fallbacks?: Array<RetrieveAgentRequestResponseBodyFallbacks> | undefined;
|
|
631
722
|
/**
|
|
632
723
|
* Cache configuration for the request.
|
|
633
724
|
*/
|
|
634
|
-
cache?:
|
|
725
|
+
cache?: RetrieveAgentRequestResponseBodyCache | undefined;
|
|
635
726
|
/**
|
|
636
727
|
* Load balancer configuration for the request.
|
|
637
728
|
*/
|
|
@@ -639,13 +730,13 @@ export type RetrieveAgentRequestParameters = {
|
|
|
639
730
|
/**
|
|
640
731
|
* 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.
|
|
641
732
|
*/
|
|
642
|
-
timeout?:
|
|
733
|
+
timeout?: RetrieveAgentRequestResponseBodyTimeout | undefined;
|
|
643
734
|
};
|
|
644
735
|
|
|
645
736
|
/**
|
|
646
737
|
* 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).
|
|
647
738
|
*/
|
|
648
|
-
export type
|
|
739
|
+
export type RetrieveAgentRequestResponseBodyRetry = {
|
|
649
740
|
/**
|
|
650
741
|
* Number of retry attempts (1-5)
|
|
651
742
|
*/
|
|
@@ -656,55 +747,6 @@ export type RetrieveAgentRequestRetry = {
|
|
|
656
747
|
onCodes?: Array<number> | undefined;
|
|
657
748
|
};
|
|
658
749
|
|
|
659
|
-
/**
|
|
660
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
661
|
-
*/
|
|
662
|
-
export const RetrieveAgentRequestFallbackModelConfigurationVoice = {
|
|
663
|
-
Alloy: "alloy",
|
|
664
|
-
Echo: "echo",
|
|
665
|
-
Fable: "fable",
|
|
666
|
-
Onyx: "onyx",
|
|
667
|
-
Nova: "nova",
|
|
668
|
-
Shimmer: "shimmer",
|
|
669
|
-
} as const;
|
|
670
|
-
/**
|
|
671
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
672
|
-
*/
|
|
673
|
-
export type RetrieveAgentRequestFallbackModelConfigurationVoice = ClosedEnum<
|
|
674
|
-
typeof RetrieveAgentRequestFallbackModelConfigurationVoice
|
|
675
|
-
>;
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
679
|
-
*/
|
|
680
|
-
export const RetrieveAgentRequestFallbackModelConfigurationFormat = {
|
|
681
|
-
Wav: "wav",
|
|
682
|
-
Mp3: "mp3",
|
|
683
|
-
Flac: "flac",
|
|
684
|
-
Opus: "opus",
|
|
685
|
-
Pcm16: "pcm16",
|
|
686
|
-
} as const;
|
|
687
|
-
/**
|
|
688
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
689
|
-
*/
|
|
690
|
-
export type RetrieveAgentRequestFallbackModelConfigurationFormat = ClosedEnum<
|
|
691
|
-
typeof RetrieveAgentRequestFallbackModelConfigurationFormat
|
|
692
|
-
>;
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
696
|
-
*/
|
|
697
|
-
export type RetrieveAgentRequestFallbackModelConfigurationAudio = {
|
|
698
|
-
/**
|
|
699
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
700
|
-
*/
|
|
701
|
-
voice: RetrieveAgentRequestFallbackModelConfigurationVoice;
|
|
702
|
-
/**
|
|
703
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
704
|
-
*/
|
|
705
|
-
format: RetrieveAgentRequestFallbackModelConfigurationFormat;
|
|
706
|
-
};
|
|
707
|
-
|
|
708
750
|
export type RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema = {
|
|
709
751
|
/**
|
|
710
752
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -804,16 +846,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationStop =
|
|
|
804
846
|
| string
|
|
805
847
|
| Array<string>;
|
|
806
848
|
|
|
807
|
-
/**
|
|
808
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
809
|
-
*/
|
|
810
|
-
export type RetrieveAgentRequestFallbackModelConfigurationStreamOptions = {
|
|
811
|
-
/**
|
|
812
|
-
* 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.
|
|
813
|
-
*/
|
|
814
|
-
includeUsage?: boolean | undefined;
|
|
815
|
-
};
|
|
816
|
-
|
|
817
849
|
export type RetrieveAgentRequestFallbackModelConfigurationThinking =
|
|
818
850
|
| components.ThinkingConfigDisabledSchema
|
|
819
851
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -916,20 +948,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationFallbacks = {
|
|
|
916
948
|
model: string;
|
|
917
949
|
};
|
|
918
950
|
|
|
919
|
-
/**
|
|
920
|
-
* Retry configuration for the request
|
|
921
|
-
*/
|
|
922
|
-
export type RetrieveAgentRequestFallbackModelConfigurationAgentsRetry = {
|
|
923
|
-
/**
|
|
924
|
-
* Number of retry attempts (1-5)
|
|
925
|
-
*/
|
|
926
|
-
count: number;
|
|
927
|
-
/**
|
|
928
|
-
* HTTP status codes that trigger retry logic
|
|
929
|
-
*/
|
|
930
|
-
onCodes?: Array<number> | undefined;
|
|
931
|
-
};
|
|
932
|
-
|
|
933
951
|
export const RetrieveAgentRequestFallbackModelConfigurationType = {
|
|
934
952
|
ExactMatch: "exact_match",
|
|
935
953
|
} as const;
|
|
@@ -995,13 +1013,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
995
1013
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
996
1014
|
*/
|
|
997
1015
|
name?: string | undefined;
|
|
998
|
-
/**
|
|
999
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
1000
|
-
*/
|
|
1001
|
-
audio?:
|
|
1002
|
-
| RetrieveAgentRequestFallbackModelConfigurationAudio
|
|
1003
|
-
| null
|
|
1004
|
-
| undefined;
|
|
1005
1016
|
/**
|
|
1006
1017
|
* 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.
|
|
1007
1018
|
*/
|
|
@@ -1018,18 +1029,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1018
1029
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
1019
1030
|
*/
|
|
1020
1031
|
maxCompletionTokens?: number | null | undefined;
|
|
1021
|
-
/**
|
|
1022
|
-
* 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.
|
|
1023
|
-
*/
|
|
1024
|
-
logprobs?: boolean | null | undefined;
|
|
1025
|
-
/**
|
|
1026
|
-
* 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.
|
|
1027
|
-
*/
|
|
1028
|
-
topLogprobs?: number | null | undefined;
|
|
1029
|
-
/**
|
|
1030
|
-
* 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.
|
|
1031
|
-
*/
|
|
1032
|
-
n?: number | null | undefined;
|
|
1033
1032
|
/**
|
|
1034
1033
|
* 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.
|
|
1035
1034
|
*/
|
|
@@ -1069,13 +1068,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1069
1068
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1070
1069
|
*/
|
|
1071
1070
|
stop?: string | Array<string> | null | undefined;
|
|
1072
|
-
/**
|
|
1073
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
1074
|
-
*/
|
|
1075
|
-
streamOptions?:
|
|
1076
|
-
| RetrieveAgentRequestFallbackModelConfigurationStreamOptions
|
|
1077
|
-
| null
|
|
1078
|
-
| undefined;
|
|
1079
1071
|
thinking?:
|
|
1080
1072
|
| components.ThinkingConfigDisabledSchema
|
|
1081
1073
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -1122,10 +1114,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1122
1114
|
fallbacks?:
|
|
1123
1115
|
| Array<RetrieveAgentRequestFallbackModelConfigurationFallbacks>
|
|
1124
1116
|
| undefined;
|
|
1125
|
-
/**
|
|
1126
|
-
* Retry configuration for the request
|
|
1127
|
-
*/
|
|
1128
|
-
retry?: RetrieveAgentRequestFallbackModelConfigurationAgentsRetry | undefined;
|
|
1129
1117
|
/**
|
|
1130
1118
|
* Cache configuration for the request.
|
|
1131
1119
|
*/
|
|
@@ -1177,11 +1165,11 @@ export type RetrieveAgentRequestFallbackModelConfiguration2 = {
|
|
|
1177
1165
|
/**
|
|
1178
1166
|
* 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.
|
|
1179
1167
|
*/
|
|
1180
|
-
export type
|
|
1168
|
+
export type RetrieveAgentRequestResponseBodyFallbackModelConfiguration =
|
|
1181
1169
|
| RetrieveAgentRequestFallbackModelConfiguration2
|
|
1182
1170
|
| string;
|
|
1183
1171
|
|
|
1184
|
-
export type
|
|
1172
|
+
export type ResponseBodyModel = {
|
|
1185
1173
|
/**
|
|
1186
1174
|
* The database ID of the primary model
|
|
1187
1175
|
*/
|
|
@@ -1193,11 +1181,11 @@ export type RetrieveAgentRequestModel = {
|
|
|
1193
1181
|
/**
|
|
1194
1182
|
* 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.
|
|
1195
1183
|
*/
|
|
1196
|
-
parameters?:
|
|
1184
|
+
parameters?: RetrieveAgentRequestResponseBodyParameters | undefined;
|
|
1197
1185
|
/**
|
|
1198
1186
|
* 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).
|
|
1199
1187
|
*/
|
|
1200
|
-
retry?:
|
|
1188
|
+
retry?: RetrieveAgentRequestResponseBodyRetry | undefined;
|
|
1201
1189
|
/**
|
|
1202
1190
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
1203
1191
|
*/
|
|
@@ -1207,63 +1195,22 @@ export type RetrieveAgentRequestModel = {
|
|
|
1207
1195
|
| undefined;
|
|
1208
1196
|
};
|
|
1209
1197
|
|
|
1210
|
-
export type
|
|
1198
|
+
export type RetrieveAgentRequestResponseBody1 = {
|
|
1199
|
+
id: string;
|
|
1211
1200
|
/**
|
|
1212
|
-
*
|
|
1213
|
-
*/
|
|
1214
|
-
key: string;
|
|
1215
|
-
/**
|
|
1216
|
-
* 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.
|
|
1217
|
-
*/
|
|
1218
|
-
role?: string | undefined;
|
|
1219
|
-
};
|
|
1220
|
-
|
|
1221
|
-
export type RetrieveAgentRequestMetrics = {
|
|
1222
|
-
totalCost: number;
|
|
1223
|
-
};
|
|
1224
|
-
|
|
1225
|
-
export type RetrieveAgentRequestKnowledgeBases = {
|
|
1226
|
-
/**
|
|
1227
|
-
* Unique identifier of the knowledge base to search
|
|
1228
|
-
*/
|
|
1229
|
-
knowledgeId: string;
|
|
1230
|
-
};
|
|
1231
|
-
|
|
1232
|
-
export const RetrieveAgentRequestSource = {
|
|
1233
|
-
Internal: "internal",
|
|
1234
|
-
External: "external",
|
|
1235
|
-
Experiment: "experiment",
|
|
1236
|
-
} as const;
|
|
1237
|
-
export type RetrieveAgentRequestSource = ClosedEnum<
|
|
1238
|
-
typeof RetrieveAgentRequestSource
|
|
1239
|
-
>;
|
|
1240
|
-
|
|
1241
|
-
/**
|
|
1242
|
-
* Agent successfully retrieved. Returns the complete agent manifest with all configuration details, including models, tools, knowledge bases, and execution settings.
|
|
1243
|
-
*/
|
|
1244
|
-
export type RetrieveAgentRequestResponseBody = {
|
|
1245
|
-
id: string;
|
|
1246
|
-
/**
|
|
1247
|
-
* Unique identifier for the agent within the workspace
|
|
1201
|
+
* Unique identifier for the agent within the workspace
|
|
1248
1202
|
*/
|
|
1249
1203
|
key: string;
|
|
1250
1204
|
displayName?: string | undefined;
|
|
1251
|
-
workspaceId: string;
|
|
1252
1205
|
projectId: string;
|
|
1253
1206
|
createdById?: string | null | undefined;
|
|
1254
1207
|
updatedById?: string | null | undefined;
|
|
1255
1208
|
created?: string | undefined;
|
|
1256
1209
|
updated?: string | undefined;
|
|
1257
|
-
role: string;
|
|
1258
|
-
description: string;
|
|
1259
|
-
systemPrompt?: string | undefined;
|
|
1260
|
-
instructions: string;
|
|
1261
1210
|
/**
|
|
1262
1211
|
* 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.
|
|
1263
1212
|
*/
|
|
1264
|
-
status:
|
|
1265
|
-
settings?: RetrieveAgentRequestSettings | undefined;
|
|
1266
|
-
model: RetrieveAgentRequestModel;
|
|
1213
|
+
status: RetrieveAgentRequestResponseBodyStatus;
|
|
1267
1214
|
versionHash?: string | undefined;
|
|
1268
1215
|
/**
|
|
1269
1216
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -1278,12 +1225,14 @@ export type RetrieveAgentRequestResponseBody = {
|
|
|
1278
1225
|
/**
|
|
1279
1226
|
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
1280
1227
|
*/
|
|
1281
|
-
memoryStores
|
|
1228
|
+
memoryStores?: Array<string> | undefined;
|
|
1282
1229
|
/**
|
|
1283
1230
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1284
1231
|
*/
|
|
1285
|
-
teamOfAgents
|
|
1286
|
-
|
|
1232
|
+
teamOfAgents?:
|
|
1233
|
+
| Array<RetrieveAgentRequestResponseBodyTeamOfAgents>
|
|
1234
|
+
| undefined;
|
|
1235
|
+
metrics?: RetrieveAgentRequestResponseBodyMetrics | undefined;
|
|
1287
1236
|
/**
|
|
1288
1237
|
* Extracted variables from agent instructions
|
|
1289
1238
|
*/
|
|
@@ -1291,10 +1240,29 @@ export type RetrieveAgentRequestResponseBody = {
|
|
|
1291
1240
|
/**
|
|
1292
1241
|
* Agent knowledge bases reference
|
|
1293
1242
|
*/
|
|
1294
|
-
knowledgeBases?:
|
|
1295
|
-
|
|
1243
|
+
knowledgeBases?:
|
|
1244
|
+
| Array<RetrieveAgentRequestResponseBodyKnowledgeBases>
|
|
1245
|
+
| undefined;
|
|
1246
|
+
source?: RetrieveAgentRequestResponseBodySource | undefined;
|
|
1247
|
+
/**
|
|
1248
|
+
* Orquesta-managed agent
|
|
1249
|
+
*/
|
|
1250
|
+
type: "internal";
|
|
1251
|
+
role: string;
|
|
1252
|
+
description: string;
|
|
1253
|
+
systemPrompt?: string | undefined;
|
|
1254
|
+
instructions: string;
|
|
1255
|
+
settings?: RetrieveAgentRequestResponseBodySettings | undefined;
|
|
1256
|
+
model: ResponseBodyModel;
|
|
1296
1257
|
};
|
|
1297
1258
|
|
|
1259
|
+
/**
|
|
1260
|
+
* Agent successfully retrieved. Returns the complete agent manifest with all configuration details, including models, tools, knowledge bases, and execution settings.
|
|
1261
|
+
*/
|
|
1262
|
+
export type RetrieveAgentRequestResponseBody =
|
|
1263
|
+
| RetrieveAgentRequestResponseBody1
|
|
1264
|
+
| RetrieveAgentRequestResponseBody2;
|
|
1265
|
+
|
|
1298
1266
|
/** @internal */
|
|
1299
1267
|
export type RetrieveAgentRequestRequest$Outbound = {
|
|
1300
1268
|
agent_key: string;
|
|
@@ -1324,199 +1292,496 @@ export function retrieveAgentRequestRequestToJSON(
|
|
|
1324
1292
|
}
|
|
1325
1293
|
|
|
1326
1294
|
/** @internal */
|
|
1327
|
-
export const
|
|
1328
|
-
typeof
|
|
1329
|
-
|
|
1295
|
+
export const RetrieveAgentRequestResponseBodyAgentsStatus$inboundSchema:
|
|
1296
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyAgentsStatus> = z
|
|
1297
|
+
.nativeEnum(RetrieveAgentRequestResponseBodyAgentsStatus);
|
|
1298
|
+
|
|
1299
|
+
/** @internal */
|
|
1300
|
+
export const RetrieveAgentRequestResponseBodyAgentsTeamOfAgents$inboundSchema:
|
|
1301
|
+
z.ZodType<
|
|
1302
|
+
RetrieveAgentRequestResponseBodyAgentsTeamOfAgents,
|
|
1303
|
+
z.ZodTypeDef,
|
|
1304
|
+
unknown
|
|
1305
|
+
> = z.object({
|
|
1306
|
+
key: z.string(),
|
|
1307
|
+
role: z.string().optional(),
|
|
1308
|
+
});
|
|
1309
|
+
|
|
1310
|
+
export function retrieveAgentRequestResponseBodyAgentsTeamOfAgentsFromJSON(
|
|
1311
|
+
jsonString: string,
|
|
1312
|
+
): SafeParseResult<
|
|
1313
|
+
RetrieveAgentRequestResponseBodyAgentsTeamOfAgents,
|
|
1314
|
+
SDKValidationError
|
|
1315
|
+
> {
|
|
1316
|
+
return safeParse(
|
|
1317
|
+
jsonString,
|
|
1318
|
+
(x) =>
|
|
1319
|
+
RetrieveAgentRequestResponseBodyAgentsTeamOfAgents$inboundSchema.parse(
|
|
1320
|
+
JSON.parse(x),
|
|
1321
|
+
),
|
|
1322
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyAgentsTeamOfAgents' from JSON`,
|
|
1323
|
+
);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/** @internal */
|
|
1327
|
+
export const RetrieveAgentRequestResponseBodyAgentsMetrics$inboundSchema:
|
|
1328
|
+
z.ZodType<
|
|
1329
|
+
RetrieveAgentRequestResponseBodyAgentsMetrics,
|
|
1330
|
+
z.ZodTypeDef,
|
|
1331
|
+
unknown
|
|
1332
|
+
> = z.object({
|
|
1333
|
+
total_cost: z.number().default(0),
|
|
1334
|
+
}).transform((v) => {
|
|
1335
|
+
return remap$(v, {
|
|
1336
|
+
"total_cost": "totalCost",
|
|
1337
|
+
});
|
|
1338
|
+
});
|
|
1339
|
+
|
|
1340
|
+
export function retrieveAgentRequestResponseBodyAgentsMetricsFromJSON(
|
|
1341
|
+
jsonString: string,
|
|
1342
|
+
): SafeParseResult<
|
|
1343
|
+
RetrieveAgentRequestResponseBodyAgentsMetrics,
|
|
1344
|
+
SDKValidationError
|
|
1345
|
+
> {
|
|
1346
|
+
return safeParse(
|
|
1347
|
+
jsonString,
|
|
1348
|
+
(x) =>
|
|
1349
|
+
RetrieveAgentRequestResponseBodyAgentsMetrics$inboundSchema.parse(
|
|
1350
|
+
JSON.parse(x),
|
|
1351
|
+
),
|
|
1352
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyAgentsMetrics' from JSON`,
|
|
1353
|
+
);
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
/** @internal */
|
|
1357
|
+
export const RetrieveAgentRequestResponseBodyAgentsKnowledgeBases$inboundSchema:
|
|
1358
|
+
z.ZodType<
|
|
1359
|
+
RetrieveAgentRequestResponseBodyAgentsKnowledgeBases,
|
|
1360
|
+
z.ZodTypeDef,
|
|
1361
|
+
unknown
|
|
1362
|
+
> = z.object({
|
|
1363
|
+
knowledge_id: z.string(),
|
|
1364
|
+
}).transform((v) => {
|
|
1365
|
+
return remap$(v, {
|
|
1366
|
+
"knowledge_id": "knowledgeId",
|
|
1367
|
+
});
|
|
1368
|
+
});
|
|
1369
|
+
|
|
1370
|
+
export function retrieveAgentRequestResponseBodyAgentsKnowledgeBasesFromJSON(
|
|
1371
|
+
jsonString: string,
|
|
1372
|
+
): SafeParseResult<
|
|
1373
|
+
RetrieveAgentRequestResponseBodyAgentsKnowledgeBases,
|
|
1374
|
+
SDKValidationError
|
|
1375
|
+
> {
|
|
1376
|
+
return safeParse(
|
|
1377
|
+
jsonString,
|
|
1378
|
+
(x) =>
|
|
1379
|
+
RetrieveAgentRequestResponseBodyAgentsKnowledgeBases$inboundSchema.parse(
|
|
1380
|
+
JSON.parse(x),
|
|
1381
|
+
),
|
|
1382
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyAgentsKnowledgeBases' from JSON`,
|
|
1383
|
+
);
|
|
1384
|
+
}
|
|
1330
1385
|
|
|
1331
1386
|
/** @internal */
|
|
1332
|
-
export const
|
|
1333
|
-
z.ZodNativeEnum<typeof
|
|
1334
|
-
.nativeEnum(
|
|
1387
|
+
export const RetrieveAgentRequestResponseBodyAgentsSource$inboundSchema:
|
|
1388
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyAgentsSource> = z
|
|
1389
|
+
.nativeEnum(RetrieveAgentRequestResponseBodyAgentsSource);
|
|
1335
1390
|
|
|
1336
1391
|
/** @internal */
|
|
1337
|
-
export const
|
|
1338
|
-
|
|
1392
|
+
export const RetrieveAgentRequestResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
1393
|
+
RetrieveAgentRequestResponseBodyHeaders,
|
|
1339
1394
|
z.ZodTypeDef,
|
|
1340
1395
|
unknown
|
|
1341
1396
|
> = z.object({
|
|
1342
|
-
condition: z.string(),
|
|
1343
|
-
operator: z.string(),
|
|
1344
1397
|
value: z.string(),
|
|
1398
|
+
encrypted: z.boolean().default(false),
|
|
1345
1399
|
});
|
|
1346
1400
|
|
|
1347
|
-
export function
|
|
1401
|
+
export function retrieveAgentRequestResponseBodyHeadersFromJSON(
|
|
1348
1402
|
jsonString: string,
|
|
1349
|
-
): SafeParseResult<
|
|
1403
|
+
): SafeParseResult<
|
|
1404
|
+
RetrieveAgentRequestResponseBodyHeaders,
|
|
1405
|
+
SDKValidationError
|
|
1406
|
+
> {
|
|
1350
1407
|
return safeParse(
|
|
1351
1408
|
jsonString,
|
|
1352
|
-
(x) =>
|
|
1353
|
-
|
|
1409
|
+
(x) =>
|
|
1410
|
+
RetrieveAgentRequestResponseBodyHeaders$inboundSchema.parse(
|
|
1411
|
+
JSON.parse(x),
|
|
1412
|
+
),
|
|
1413
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyHeaders' from JSON`,
|
|
1354
1414
|
);
|
|
1355
1415
|
}
|
|
1356
1416
|
|
|
1357
1417
|
/** @internal */
|
|
1358
|
-
export const
|
|
1359
|
-
|
|
1418
|
+
export const ResponseBodyA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
1419
|
+
ResponseBodyA2AAgentConfiguration,
|
|
1360
1420
|
z.ZodTypeDef,
|
|
1361
1421
|
unknown
|
|
1362
1422
|
> = z.object({
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1423
|
+
agent_url: z.string(),
|
|
1424
|
+
card_url: z.string().optional(),
|
|
1425
|
+
headers: z.record(
|
|
1426
|
+
z.lazy(() => RetrieveAgentRequestResponseBodyHeaders$inboundSchema),
|
|
1427
|
+
).optional(),
|
|
1428
|
+
cached_card: z.any().optional(),
|
|
1429
|
+
}).transform((v) => {
|
|
1430
|
+
return remap$(v, {
|
|
1431
|
+
"agent_url": "agentUrl",
|
|
1432
|
+
"card_url": "cardUrl",
|
|
1433
|
+
"cached_card": "cachedCard",
|
|
1434
|
+
});
|
|
1435
|
+
});
|
|
1436
|
+
|
|
1437
|
+
export function responseBodyA2AAgentConfigurationFromJSON(
|
|
1438
|
+
jsonString: string,
|
|
1439
|
+
): SafeParseResult<ResponseBodyA2AAgentConfiguration, SDKValidationError> {
|
|
1440
|
+
return safeParse(
|
|
1441
|
+
jsonString,
|
|
1442
|
+
(x) => ResponseBodyA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
1443
|
+
`Failed to parse 'ResponseBodyA2AAgentConfiguration' from JSON`,
|
|
1444
|
+
);
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
/** @internal */
|
|
1448
|
+
export const RetrieveAgentRequestResponseBody2$inboundSchema: z.ZodType<
|
|
1449
|
+
RetrieveAgentRequestResponseBody2,
|
|
1450
|
+
z.ZodTypeDef,
|
|
1451
|
+
unknown
|
|
1452
|
+
> = z.object({
|
|
1453
|
+
_id: z.string(),
|
|
1454
|
+
key: z.string(),
|
|
1366
1455
|
display_name: z.string().optional(),
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1456
|
+
project_id: z.string(),
|
|
1457
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
1458
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
1459
|
+
created: z.string().optional(),
|
|
1460
|
+
updated: z.string().optional(),
|
|
1461
|
+
status: RetrieveAgentRequestResponseBodyAgentsStatus$inboundSchema,
|
|
1462
|
+
version_hash: z.string().optional(),
|
|
1463
|
+
path: z.string(),
|
|
1464
|
+
memory_stores: z.array(z.string()).optional(),
|
|
1465
|
+
team_of_agents: z.array(
|
|
1466
|
+
z.lazy(() =>
|
|
1467
|
+
RetrieveAgentRequestResponseBodyAgentsTeamOfAgents$inboundSchema
|
|
1468
|
+
),
|
|
1372
1469
|
).optional(),
|
|
1373
|
-
|
|
1470
|
+
metrics: z.lazy(() =>
|
|
1471
|
+
RetrieveAgentRequestResponseBodyAgentsMetrics$inboundSchema
|
|
1472
|
+
).optional(),
|
|
1473
|
+
variables: z.record(z.any()).optional(),
|
|
1474
|
+
knowledge_bases: z.array(
|
|
1475
|
+
z.lazy(() =>
|
|
1476
|
+
RetrieveAgentRequestResponseBodyAgentsKnowledgeBases$inboundSchema
|
|
1477
|
+
),
|
|
1478
|
+
).optional(),
|
|
1479
|
+
source: RetrieveAgentRequestResponseBodyAgentsSource$inboundSchema.optional(),
|
|
1480
|
+
type: z.literal("a2a"),
|
|
1481
|
+
role: z.string(),
|
|
1482
|
+
description: z.string(),
|
|
1483
|
+
system_prompt: z.string().optional(),
|
|
1484
|
+
instructions: z.string(),
|
|
1485
|
+
a2a: z.lazy(() => ResponseBodyA2AAgentConfiguration$inboundSchema),
|
|
1374
1486
|
}).transform((v) => {
|
|
1375
1487
|
return remap$(v, {
|
|
1376
|
-
"
|
|
1488
|
+
"_id": "id",
|
|
1377
1489
|
"display_name": "displayName",
|
|
1378
|
-
"
|
|
1379
|
-
"
|
|
1490
|
+
"project_id": "projectId",
|
|
1491
|
+
"created_by_id": "createdById",
|
|
1492
|
+
"updated_by_id": "updatedById",
|
|
1493
|
+
"version_hash": "versionHash",
|
|
1494
|
+
"memory_stores": "memoryStores",
|
|
1495
|
+
"team_of_agents": "teamOfAgents",
|
|
1496
|
+
"knowledge_bases": "knowledgeBases",
|
|
1497
|
+
"system_prompt": "systemPrompt",
|
|
1380
1498
|
});
|
|
1381
1499
|
});
|
|
1382
1500
|
|
|
1383
|
-
export function
|
|
1501
|
+
export function retrieveAgentRequestResponseBody2FromJSON(
|
|
1384
1502
|
jsonString: string,
|
|
1385
|
-
): SafeParseResult<
|
|
1503
|
+
): SafeParseResult<RetrieveAgentRequestResponseBody2, SDKValidationError> {
|
|
1386
1504
|
return safeParse(
|
|
1387
1505
|
jsonString,
|
|
1388
|
-
(x) =>
|
|
1389
|
-
`Failed to parse '
|
|
1506
|
+
(x) => RetrieveAgentRequestResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
1507
|
+
`Failed to parse 'RetrieveAgentRequestResponseBody2' from JSON`,
|
|
1390
1508
|
);
|
|
1391
1509
|
}
|
|
1392
1510
|
|
|
1393
1511
|
/** @internal */
|
|
1394
|
-
export const
|
|
1395
|
-
typeof
|
|
1396
|
-
|
|
1512
|
+
export const RetrieveAgentRequestResponseBodyStatus$inboundSchema:
|
|
1513
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyStatus> = z.nativeEnum(
|
|
1514
|
+
RetrieveAgentRequestResponseBodyStatus,
|
|
1515
|
+
);
|
|
1516
|
+
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export const RetrieveAgentRequestResponseBodyTeamOfAgents$inboundSchema:
|
|
1519
|
+
z.ZodType<
|
|
1520
|
+
RetrieveAgentRequestResponseBodyTeamOfAgents,
|
|
1521
|
+
z.ZodTypeDef,
|
|
1522
|
+
unknown
|
|
1523
|
+
> = z.object({
|
|
1524
|
+
key: z.string(),
|
|
1525
|
+
role: z.string().optional(),
|
|
1526
|
+
});
|
|
1527
|
+
|
|
1528
|
+
export function retrieveAgentRequestResponseBodyTeamOfAgentsFromJSON(
|
|
1529
|
+
jsonString: string,
|
|
1530
|
+
): SafeParseResult<
|
|
1531
|
+
RetrieveAgentRequestResponseBodyTeamOfAgents,
|
|
1532
|
+
SDKValidationError
|
|
1533
|
+
> {
|
|
1534
|
+
return safeParse(
|
|
1535
|
+
jsonString,
|
|
1536
|
+
(x) =>
|
|
1537
|
+
RetrieveAgentRequestResponseBodyTeamOfAgents$inboundSchema.parse(
|
|
1538
|
+
JSON.parse(x),
|
|
1539
|
+
),
|
|
1540
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyTeamOfAgents' from JSON`,
|
|
1541
|
+
);
|
|
1542
|
+
}
|
|
1397
1543
|
|
|
1398
1544
|
/** @internal */
|
|
1399
|
-
export const
|
|
1400
|
-
|
|
1545
|
+
export const RetrieveAgentRequestResponseBodyMetrics$inboundSchema: z.ZodType<
|
|
1546
|
+
RetrieveAgentRequestResponseBodyMetrics,
|
|
1401
1547
|
z.ZodTypeDef,
|
|
1402
1548
|
unknown
|
|
1403
1549
|
> = z.object({
|
|
1404
|
-
|
|
1405
|
-
sample_rate: z.number().default(50),
|
|
1406
|
-
execute_on: RetrieveAgentRequestExecuteOn$inboundSchema,
|
|
1550
|
+
total_cost: z.number().default(0),
|
|
1407
1551
|
}).transform((v) => {
|
|
1408
1552
|
return remap$(v, {
|
|
1409
|
-
"
|
|
1410
|
-
"execute_on": "executeOn",
|
|
1553
|
+
"total_cost": "totalCost",
|
|
1411
1554
|
});
|
|
1412
1555
|
});
|
|
1413
1556
|
|
|
1414
|
-
export function
|
|
1557
|
+
export function retrieveAgentRequestResponseBodyMetricsFromJSON(
|
|
1415
1558
|
jsonString: string,
|
|
1416
|
-
): SafeParseResult<
|
|
1559
|
+
): SafeParseResult<
|
|
1560
|
+
RetrieveAgentRequestResponseBodyMetrics,
|
|
1561
|
+
SDKValidationError
|
|
1562
|
+
> {
|
|
1417
1563
|
return safeParse(
|
|
1418
1564
|
jsonString,
|
|
1419
|
-
(x) =>
|
|
1420
|
-
|
|
1565
|
+
(x) =>
|
|
1566
|
+
RetrieveAgentRequestResponseBodyMetrics$inboundSchema.parse(
|
|
1567
|
+
JSON.parse(x),
|
|
1568
|
+
),
|
|
1569
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyMetrics' from JSON`,
|
|
1421
1570
|
);
|
|
1422
1571
|
}
|
|
1423
1572
|
|
|
1424
1573
|
/** @internal */
|
|
1425
|
-
export const
|
|
1426
|
-
|
|
1427
|
-
|
|
1574
|
+
export const RetrieveAgentRequestResponseBodyKnowledgeBases$inboundSchema:
|
|
1575
|
+
z.ZodType<
|
|
1576
|
+
RetrieveAgentRequestResponseBodyKnowledgeBases,
|
|
1577
|
+
z.ZodTypeDef,
|
|
1578
|
+
unknown
|
|
1579
|
+
> = z.object({
|
|
1580
|
+
knowledge_id: z.string(),
|
|
1581
|
+
}).transform((v) => {
|
|
1582
|
+
return remap$(v, {
|
|
1583
|
+
"knowledge_id": "knowledgeId",
|
|
1584
|
+
});
|
|
1585
|
+
});
|
|
1586
|
+
|
|
1587
|
+
export function retrieveAgentRequestResponseBodyKnowledgeBasesFromJSON(
|
|
1588
|
+
jsonString: string,
|
|
1589
|
+
): SafeParseResult<
|
|
1590
|
+
RetrieveAgentRequestResponseBodyKnowledgeBases,
|
|
1591
|
+
SDKValidationError
|
|
1592
|
+
> {
|
|
1593
|
+
return safeParse(
|
|
1594
|
+
jsonString,
|
|
1595
|
+
(x) =>
|
|
1596
|
+
RetrieveAgentRequestResponseBodyKnowledgeBases$inboundSchema.parse(
|
|
1597
|
+
JSON.parse(x),
|
|
1598
|
+
),
|
|
1599
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyKnowledgeBases' from JSON`,
|
|
1600
|
+
);
|
|
1601
|
+
}
|
|
1428
1602
|
|
|
1429
1603
|
/** @internal */
|
|
1430
|
-
export const
|
|
1431
|
-
|
|
1604
|
+
export const RetrieveAgentRequestResponseBodySource$inboundSchema:
|
|
1605
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodySource> = z.nativeEnum(
|
|
1606
|
+
RetrieveAgentRequestResponseBodySource,
|
|
1607
|
+
);
|
|
1608
|
+
|
|
1609
|
+
/** @internal */
|
|
1610
|
+
export const RetrieveAgentRequestResponseBodyToolApprovalRequired$inboundSchema:
|
|
1611
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyToolApprovalRequired> =
|
|
1612
|
+
z.nativeEnum(RetrieveAgentRequestResponseBodyToolApprovalRequired);
|
|
1613
|
+
|
|
1614
|
+
/** @internal */
|
|
1615
|
+
export const ResponseBodyConditions$inboundSchema: z.ZodType<
|
|
1616
|
+
ResponseBodyConditions,
|
|
1432
1617
|
z.ZodTypeDef,
|
|
1433
1618
|
unknown
|
|
1434
1619
|
> = z.object({
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
}).transform((v) => {
|
|
1439
|
-
return remap$(v, {
|
|
1440
|
-
"sample_rate": "sampleRate",
|
|
1441
|
-
"execute_on": "executeOn",
|
|
1442
|
-
});
|
|
1620
|
+
condition: z.string(),
|
|
1621
|
+
operator: z.string(),
|
|
1622
|
+
value: z.string(),
|
|
1443
1623
|
});
|
|
1444
1624
|
|
|
1445
|
-
export function
|
|
1625
|
+
export function responseBodyConditionsFromJSON(
|
|
1446
1626
|
jsonString: string,
|
|
1447
|
-
): SafeParseResult<
|
|
1627
|
+
): SafeParseResult<ResponseBodyConditions, SDKValidationError> {
|
|
1448
1628
|
return safeParse(
|
|
1449
1629
|
jsonString,
|
|
1450
|
-
(x) =>
|
|
1451
|
-
`Failed to parse '
|
|
1630
|
+
(x) => ResponseBodyConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1631
|
+
`Failed to parse 'ResponseBodyConditions' from JSON`,
|
|
1452
1632
|
);
|
|
1453
1633
|
}
|
|
1454
1634
|
|
|
1455
1635
|
/** @internal */
|
|
1456
|
-
export const
|
|
1457
|
-
|
|
1636
|
+
export const RetrieveAgentRequestResponseBodyTools$inboundSchema: z.ZodType<
|
|
1637
|
+
RetrieveAgentRequestResponseBodyTools,
|
|
1458
1638
|
z.ZodTypeDef,
|
|
1459
1639
|
unknown
|
|
1460
1640
|
> = z.object({
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1641
|
+
id: z.string(),
|
|
1642
|
+
key: z.string().optional(),
|
|
1643
|
+
action_type: z.string(),
|
|
1644
|
+
display_name: z.string().optional(),
|
|
1645
|
+
description: z.string().optional(),
|
|
1646
|
+
requires_approval: z.boolean().default(false),
|
|
1647
|
+
tool_id: z.string().optional(),
|
|
1648
|
+
conditions: z.array(z.lazy(() => ResponseBodyConditions$inboundSchema))
|
|
1467
1649
|
.optional(),
|
|
1468
|
-
|
|
1469
|
-
z.lazy(() => RetrieveAgentRequestEvaluators$inboundSchema),
|
|
1470
|
-
).optional(),
|
|
1471
|
-
guardrails: z.array(
|
|
1472
|
-
z.lazy(() => RetrieveAgentRequestGuardrails$inboundSchema),
|
|
1473
|
-
).optional(),
|
|
1650
|
+
timeout: z.number().default(120),
|
|
1474
1651
|
}).transform((v) => {
|
|
1475
1652
|
return remap$(v, {
|
|
1476
|
-
"
|
|
1477
|
-
"
|
|
1478
|
-
"
|
|
1479
|
-
"
|
|
1653
|
+
"action_type": "actionType",
|
|
1654
|
+
"display_name": "displayName",
|
|
1655
|
+
"requires_approval": "requiresApproval",
|
|
1656
|
+
"tool_id": "toolId",
|
|
1480
1657
|
});
|
|
1481
1658
|
});
|
|
1482
1659
|
|
|
1483
|
-
export function
|
|
1660
|
+
export function retrieveAgentRequestResponseBodyToolsFromJSON(
|
|
1661
|
+
jsonString: string,
|
|
1662
|
+
): SafeParseResult<RetrieveAgentRequestResponseBodyTools, SDKValidationError> {
|
|
1663
|
+
return safeParse(
|
|
1664
|
+
jsonString,
|
|
1665
|
+
(x) =>
|
|
1666
|
+
RetrieveAgentRequestResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
1667
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyTools' from JSON`,
|
|
1668
|
+
);
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
/** @internal */
|
|
1672
|
+
export const RetrieveAgentRequestResponseBodyExecuteOn$inboundSchema:
|
|
1673
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyExecuteOn> = z
|
|
1674
|
+
.nativeEnum(RetrieveAgentRequestResponseBodyExecuteOn);
|
|
1675
|
+
|
|
1676
|
+
/** @internal */
|
|
1677
|
+
export const RetrieveAgentRequestResponseBodyEvaluators$inboundSchema:
|
|
1678
|
+
z.ZodType<RetrieveAgentRequestResponseBodyEvaluators, z.ZodTypeDef, unknown> =
|
|
1679
|
+
z.object({
|
|
1680
|
+
id: z.string(),
|
|
1681
|
+
sample_rate: z.number().default(50),
|
|
1682
|
+
execute_on: RetrieveAgentRequestResponseBodyExecuteOn$inboundSchema,
|
|
1683
|
+
}).transform((v) => {
|
|
1684
|
+
return remap$(v, {
|
|
1685
|
+
"sample_rate": "sampleRate",
|
|
1686
|
+
"execute_on": "executeOn",
|
|
1687
|
+
});
|
|
1688
|
+
});
|
|
1689
|
+
|
|
1690
|
+
export function retrieveAgentRequestResponseBodyEvaluatorsFromJSON(
|
|
1484
1691
|
jsonString: string,
|
|
1485
|
-
): SafeParseResult<
|
|
1692
|
+
): SafeParseResult<
|
|
1693
|
+
RetrieveAgentRequestResponseBodyEvaluators,
|
|
1694
|
+
SDKValidationError
|
|
1695
|
+
> {
|
|
1486
1696
|
return safeParse(
|
|
1487
1697
|
jsonString,
|
|
1488
|
-
(x) =>
|
|
1489
|
-
|
|
1698
|
+
(x) =>
|
|
1699
|
+
RetrieveAgentRequestResponseBodyEvaluators$inboundSchema.parse(
|
|
1700
|
+
JSON.parse(x),
|
|
1701
|
+
),
|
|
1702
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyEvaluators' from JSON`,
|
|
1490
1703
|
);
|
|
1491
1704
|
}
|
|
1492
1705
|
|
|
1493
1706
|
/** @internal */
|
|
1494
|
-
export const
|
|
1495
|
-
typeof
|
|
1496
|
-
|
|
1707
|
+
export const RetrieveAgentRequestResponseBodyAgentsExecuteOn$inboundSchema:
|
|
1708
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyAgentsExecuteOn> = z
|
|
1709
|
+
.nativeEnum(RetrieveAgentRequestResponseBodyAgentsExecuteOn);
|
|
1497
1710
|
|
|
1498
1711
|
/** @internal */
|
|
1499
|
-
export const
|
|
1500
|
-
|
|
1501
|
-
|
|
1712
|
+
export const RetrieveAgentRequestResponseBodyGuardrails$inboundSchema:
|
|
1713
|
+
z.ZodType<RetrieveAgentRequestResponseBodyGuardrails, z.ZodTypeDef, unknown> =
|
|
1714
|
+
z.object({
|
|
1715
|
+
id: z.string(),
|
|
1716
|
+
sample_rate: z.number().default(50),
|
|
1717
|
+
execute_on: RetrieveAgentRequestResponseBodyAgentsExecuteOn$inboundSchema,
|
|
1718
|
+
}).transform((v) => {
|
|
1719
|
+
return remap$(v, {
|
|
1720
|
+
"sample_rate": "sampleRate",
|
|
1721
|
+
"execute_on": "executeOn",
|
|
1722
|
+
});
|
|
1723
|
+
});
|
|
1724
|
+
|
|
1725
|
+
export function retrieveAgentRequestResponseBodyGuardrailsFromJSON(
|
|
1726
|
+
jsonString: string,
|
|
1727
|
+
): SafeParseResult<
|
|
1728
|
+
RetrieveAgentRequestResponseBodyGuardrails,
|
|
1729
|
+
SDKValidationError
|
|
1730
|
+
> {
|
|
1731
|
+
return safeParse(
|
|
1732
|
+
jsonString,
|
|
1733
|
+
(x) =>
|
|
1734
|
+
RetrieveAgentRequestResponseBodyGuardrails$inboundSchema.parse(
|
|
1735
|
+
JSON.parse(x),
|
|
1736
|
+
),
|
|
1737
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyGuardrails' from JSON`,
|
|
1738
|
+
);
|
|
1739
|
+
}
|
|
1502
1740
|
|
|
1503
1741
|
/** @internal */
|
|
1504
|
-
export const
|
|
1505
|
-
|
|
1742
|
+
export const RetrieveAgentRequestResponseBodySettings$inboundSchema: z.ZodType<
|
|
1743
|
+
RetrieveAgentRequestResponseBodySettings,
|
|
1506
1744
|
z.ZodTypeDef,
|
|
1507
1745
|
unknown
|
|
1508
1746
|
> = z.object({
|
|
1509
|
-
|
|
1510
|
-
|
|
1747
|
+
max_iterations: z.number().int().default(100),
|
|
1748
|
+
max_execution_time: z.number().int().default(600),
|
|
1749
|
+
max_cost: z.number().default(0),
|
|
1750
|
+
tool_approval_required:
|
|
1751
|
+
RetrieveAgentRequestResponseBodyToolApprovalRequired$inboundSchema.default(
|
|
1752
|
+
"respect_tool",
|
|
1753
|
+
),
|
|
1754
|
+
tools: z.array(
|
|
1755
|
+
z.lazy(() => RetrieveAgentRequestResponseBodyTools$inboundSchema),
|
|
1756
|
+
).optional(),
|
|
1757
|
+
evaluators: z.array(
|
|
1758
|
+
z.lazy(() => RetrieveAgentRequestResponseBodyEvaluators$inboundSchema),
|
|
1759
|
+
).optional(),
|
|
1760
|
+
guardrails: z.array(
|
|
1761
|
+
z.lazy(() => RetrieveAgentRequestResponseBodyGuardrails$inboundSchema),
|
|
1762
|
+
).optional(),
|
|
1763
|
+
}).transform((v) => {
|
|
1764
|
+
return remap$(v, {
|
|
1765
|
+
"max_iterations": "maxIterations",
|
|
1766
|
+
"max_execution_time": "maxExecutionTime",
|
|
1767
|
+
"max_cost": "maxCost",
|
|
1768
|
+
"tool_approval_required": "toolApprovalRequired",
|
|
1769
|
+
});
|
|
1511
1770
|
});
|
|
1512
1771
|
|
|
1513
|
-
export function
|
|
1772
|
+
export function retrieveAgentRequestResponseBodySettingsFromJSON(
|
|
1514
1773
|
jsonString: string,
|
|
1515
|
-
): SafeParseResult<
|
|
1774
|
+
): SafeParseResult<
|
|
1775
|
+
RetrieveAgentRequestResponseBodySettings,
|
|
1776
|
+
SDKValidationError
|
|
1777
|
+
> {
|
|
1516
1778
|
return safeParse(
|
|
1517
1779
|
jsonString,
|
|
1518
|
-
(x) =>
|
|
1519
|
-
|
|
1780
|
+
(x) =>
|
|
1781
|
+
RetrieveAgentRequestResponseBodySettings$inboundSchema.parse(
|
|
1782
|
+
JSON.parse(x),
|
|
1783
|
+
),
|
|
1784
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodySettings' from JSON`,
|
|
1520
1785
|
);
|
|
1521
1786
|
}
|
|
1522
1787
|
|
|
@@ -1629,77 +1894,61 @@ export function retrieveAgentRequestResponseFormatTextFromJSON(
|
|
|
1629
1894
|
}
|
|
1630
1895
|
|
|
1631
1896
|
/** @internal */
|
|
1632
|
-
export const
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
z.
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1897
|
+
export const RetrieveAgentRequestResponseBodyResponseFormat$inboundSchema:
|
|
1898
|
+
z.ZodType<
|
|
1899
|
+
RetrieveAgentRequestResponseBodyResponseFormat,
|
|
1900
|
+
z.ZodTypeDef,
|
|
1901
|
+
unknown
|
|
1902
|
+
> = z.union([
|
|
1903
|
+
z.lazy(() => RetrieveAgentRequestResponseFormatText$inboundSchema),
|
|
1904
|
+
z.lazy(() => RetrieveAgentRequestResponseFormatJSONObject$inboundSchema),
|
|
1905
|
+
z.lazy(() =>
|
|
1906
|
+
RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema
|
|
1907
|
+
),
|
|
1908
|
+
]);
|
|
1643
1909
|
|
|
1644
|
-
export function
|
|
1910
|
+
export function retrieveAgentRequestResponseBodyResponseFormatFromJSON(
|
|
1645
1911
|
jsonString: string,
|
|
1646
|
-
): SafeParseResult<
|
|
1912
|
+
): SafeParseResult<
|
|
1913
|
+
RetrieveAgentRequestResponseBodyResponseFormat,
|
|
1914
|
+
SDKValidationError
|
|
1915
|
+
> {
|
|
1647
1916
|
return safeParse(
|
|
1648
1917
|
jsonString,
|
|
1649
1918
|
(x) =>
|
|
1650
|
-
|
|
1651
|
-
|
|
1919
|
+
RetrieveAgentRequestResponseBodyResponseFormat$inboundSchema.parse(
|
|
1920
|
+
JSON.parse(x),
|
|
1921
|
+
),
|
|
1922
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyResponseFormat' from JSON`,
|
|
1652
1923
|
);
|
|
1653
1924
|
}
|
|
1654
1925
|
|
|
1655
1926
|
/** @internal */
|
|
1656
|
-
export const
|
|
1657
|
-
typeof
|
|
1658
|
-
|
|
1927
|
+
export const RetrieveAgentRequestResponseBodyReasoningEffort$inboundSchema:
|
|
1928
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyReasoningEffort> = z
|
|
1929
|
+
.nativeEnum(RetrieveAgentRequestResponseBodyReasoningEffort);
|
|
1659
1930
|
|
|
1660
1931
|
/** @internal */
|
|
1661
|
-
export const
|
|
1662
|
-
|
|
1932
|
+
export const RetrieveAgentRequestResponseBodyStop$inboundSchema: z.ZodType<
|
|
1933
|
+
RetrieveAgentRequestResponseBodyStop,
|
|
1663
1934
|
z.ZodTypeDef,
|
|
1664
1935
|
unknown
|
|
1665
1936
|
> = z.union([z.string(), z.array(z.string())]);
|
|
1666
1937
|
|
|
1667
|
-
export function
|
|
1668
|
-
jsonString: string,
|
|
1669
|
-
): SafeParseResult<RetrieveAgentRequestStop, SDKValidationError> {
|
|
1670
|
-
return safeParse(
|
|
1671
|
-
jsonString,
|
|
1672
|
-
(x) => RetrieveAgentRequestStop$inboundSchema.parse(JSON.parse(x)),
|
|
1673
|
-
`Failed to parse 'RetrieveAgentRequestStop' from JSON`,
|
|
1674
|
-
);
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
/** @internal */
|
|
1678
|
-
export const RetrieveAgentRequestStreamOptions$inboundSchema: z.ZodType<
|
|
1679
|
-
RetrieveAgentRequestStreamOptions,
|
|
1680
|
-
z.ZodTypeDef,
|
|
1681
|
-
unknown
|
|
1682
|
-
> = z.object({
|
|
1683
|
-
include_usage: z.boolean().optional(),
|
|
1684
|
-
}).transform((v) => {
|
|
1685
|
-
return remap$(v, {
|
|
1686
|
-
"include_usage": "includeUsage",
|
|
1687
|
-
});
|
|
1688
|
-
});
|
|
1689
|
-
|
|
1690
|
-
export function retrieveAgentRequestStreamOptionsFromJSON(
|
|
1938
|
+
export function retrieveAgentRequestResponseBodyStopFromJSON(
|
|
1691
1939
|
jsonString: string,
|
|
1692
|
-
): SafeParseResult<
|
|
1940
|
+
): SafeParseResult<RetrieveAgentRequestResponseBodyStop, SDKValidationError> {
|
|
1693
1941
|
return safeParse(
|
|
1694
1942
|
jsonString,
|
|
1695
|
-
(x) =>
|
|
1696
|
-
|
|
1943
|
+
(x) =>
|
|
1944
|
+
RetrieveAgentRequestResponseBodyStop$inboundSchema.parse(JSON.parse(x)),
|
|
1945
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyStop' from JSON`,
|
|
1697
1946
|
);
|
|
1698
1947
|
}
|
|
1699
1948
|
|
|
1700
1949
|
/** @internal */
|
|
1701
|
-
export const
|
|
1702
|
-
|
|
1950
|
+
export const RetrieveAgentRequestResponseBodyThinking$inboundSchema: z.ZodType<
|
|
1951
|
+
RetrieveAgentRequestResponseBodyThinking,
|
|
1703
1952
|
z.ZodTypeDef,
|
|
1704
1953
|
unknown
|
|
1705
1954
|
> = z.union([
|
|
@@ -1707,13 +1956,19 @@ export const RetrieveAgentRequestThinking$inboundSchema: z.ZodType<
|
|
|
1707
1956
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1708
1957
|
]);
|
|
1709
1958
|
|
|
1710
|
-
export function
|
|
1959
|
+
export function retrieveAgentRequestResponseBodyThinkingFromJSON(
|
|
1711
1960
|
jsonString: string,
|
|
1712
|
-
): SafeParseResult<
|
|
1961
|
+
): SafeParseResult<
|
|
1962
|
+
RetrieveAgentRequestResponseBodyThinking,
|
|
1963
|
+
SDKValidationError
|
|
1964
|
+
> {
|
|
1713
1965
|
return safeParse(
|
|
1714
1966
|
jsonString,
|
|
1715
|
-
(x) =>
|
|
1716
|
-
|
|
1967
|
+
(x) =>
|
|
1968
|
+
RetrieveAgentRequestResponseBodyThinking$inboundSchema.parse(
|
|
1969
|
+
JSON.parse(x),
|
|
1970
|
+
),
|
|
1971
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyThinking' from JSON`,
|
|
1717
1972
|
);
|
|
1718
1973
|
}
|
|
1719
1974
|
|
|
@@ -1768,29 +2023,33 @@ export const RetrieveAgentRequestToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
|
1768
2023
|
> = z.nativeEnum(RetrieveAgentRequestToolChoice1);
|
|
1769
2024
|
|
|
1770
2025
|
/** @internal */
|
|
1771
|
-
export const
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
RetrieveAgentRequestToolChoice1$inboundSchema,
|
|
1778
|
-
]);
|
|
2026
|
+
export const RetrieveAgentRequestResponseBodyToolChoice$inboundSchema:
|
|
2027
|
+
z.ZodType<RetrieveAgentRequestResponseBodyToolChoice, z.ZodTypeDef, unknown> =
|
|
2028
|
+
z.union([
|
|
2029
|
+
z.lazy(() => RetrieveAgentRequestToolChoice2$inboundSchema),
|
|
2030
|
+
RetrieveAgentRequestToolChoice1$inboundSchema,
|
|
2031
|
+
]);
|
|
1779
2032
|
|
|
1780
|
-
export function
|
|
2033
|
+
export function retrieveAgentRequestResponseBodyToolChoiceFromJSON(
|
|
1781
2034
|
jsonString: string,
|
|
1782
|
-
): SafeParseResult<
|
|
2035
|
+
): SafeParseResult<
|
|
2036
|
+
RetrieveAgentRequestResponseBodyToolChoice,
|
|
2037
|
+
SDKValidationError
|
|
2038
|
+
> {
|
|
1783
2039
|
return safeParse(
|
|
1784
2040
|
jsonString,
|
|
1785
|
-
(x) =>
|
|
1786
|
-
|
|
2041
|
+
(x) =>
|
|
2042
|
+
RetrieveAgentRequestResponseBodyToolChoice$inboundSchema.parse(
|
|
2043
|
+
JSON.parse(x),
|
|
2044
|
+
),
|
|
2045
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyToolChoice' from JSON`,
|
|
1787
2046
|
);
|
|
1788
2047
|
}
|
|
1789
2048
|
|
|
1790
2049
|
/** @internal */
|
|
1791
|
-
export const
|
|
1792
|
-
typeof
|
|
1793
|
-
|
|
2050
|
+
export const RetrieveAgentRequestResponseBodyModalities$inboundSchema:
|
|
2051
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyModalities> = z
|
|
2052
|
+
.nativeEnum(RetrieveAgentRequestResponseBodyModalities);
|
|
1794
2053
|
|
|
1795
2054
|
/** @internal */
|
|
1796
2055
|
export const RetrieveAgentRequestId1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -1798,117 +2057,109 @@ export const RetrieveAgentRequestId1$inboundSchema: z.ZodNativeEnum<
|
|
|
1798
2057
|
> = z.nativeEnum(RetrieveAgentRequestId1);
|
|
1799
2058
|
|
|
1800
2059
|
/** @internal */
|
|
1801
|
-
export const
|
|
1802
|
-
|
|
2060
|
+
export const RetrieveAgentRequestResponseBodyId$inboundSchema: z.ZodType<
|
|
2061
|
+
RetrieveAgentRequestResponseBodyId,
|
|
1803
2062
|
z.ZodTypeDef,
|
|
1804
2063
|
unknown
|
|
1805
2064
|
> = z.union([RetrieveAgentRequestId1$inboundSchema, z.string()]);
|
|
1806
2065
|
|
|
1807
|
-
export function
|
|
2066
|
+
export function retrieveAgentRequestResponseBodyIdFromJSON(
|
|
1808
2067
|
jsonString: string,
|
|
1809
|
-
): SafeParseResult<
|
|
2068
|
+
): SafeParseResult<RetrieveAgentRequestResponseBodyId, SDKValidationError> {
|
|
1810
2069
|
return safeParse(
|
|
1811
2070
|
jsonString,
|
|
1812
|
-
(x) =>
|
|
1813
|
-
|
|
2071
|
+
(x) =>
|
|
2072
|
+
RetrieveAgentRequestResponseBodyId$inboundSchema.parse(JSON.parse(x)),
|
|
2073
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyId' from JSON`,
|
|
1814
2074
|
);
|
|
1815
2075
|
}
|
|
1816
2076
|
|
|
1817
2077
|
/** @internal */
|
|
1818
|
-
export const
|
|
1819
|
-
z.ZodNativeEnum<
|
|
1820
|
-
|
|
2078
|
+
export const RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn$inboundSchema:
|
|
2079
|
+
z.ZodNativeEnum<
|
|
2080
|
+
typeof RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn
|
|
2081
|
+
> = z.nativeEnum(RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn);
|
|
1821
2082
|
|
|
1822
2083
|
/** @internal */
|
|
1823
|
-
export const
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
2084
|
+
export const RetrieveAgentRequestResponseBodyAgentsGuardrails$inboundSchema:
|
|
2085
|
+
z.ZodType<
|
|
2086
|
+
RetrieveAgentRequestResponseBodyAgentsGuardrails,
|
|
2087
|
+
z.ZodTypeDef,
|
|
2088
|
+
unknown
|
|
2089
|
+
> = z.object({
|
|
2090
|
+
id: z.union([RetrieveAgentRequestId1$inboundSchema, z.string()]),
|
|
2091
|
+
execute_on:
|
|
2092
|
+
RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn$inboundSchema,
|
|
2093
|
+
}).transform((v) => {
|
|
2094
|
+
return remap$(v, {
|
|
2095
|
+
"execute_on": "executeOn",
|
|
2096
|
+
});
|
|
1833
2097
|
});
|
|
1834
|
-
});
|
|
1835
2098
|
|
|
1836
|
-
export function
|
|
2099
|
+
export function retrieveAgentRequestResponseBodyAgentsGuardrailsFromJSON(
|
|
1837
2100
|
jsonString: string,
|
|
1838
|
-
): SafeParseResult<
|
|
2101
|
+
): SafeParseResult<
|
|
2102
|
+
RetrieveAgentRequestResponseBodyAgentsGuardrails,
|
|
2103
|
+
SDKValidationError
|
|
2104
|
+
> {
|
|
1839
2105
|
return safeParse(
|
|
1840
2106
|
jsonString,
|
|
1841
2107
|
(x) =>
|
|
1842
|
-
|
|
1843
|
-
|
|
2108
|
+
RetrieveAgentRequestResponseBodyAgentsGuardrails$inboundSchema.parse(
|
|
2109
|
+
JSON.parse(x),
|
|
2110
|
+
),
|
|
2111
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyAgentsGuardrails' from JSON`,
|
|
1844
2112
|
);
|
|
1845
2113
|
}
|
|
1846
2114
|
|
|
1847
2115
|
/** @internal */
|
|
1848
|
-
export const
|
|
1849
|
-
|
|
2116
|
+
export const RetrieveAgentRequestResponseBodyFallbacks$inboundSchema: z.ZodType<
|
|
2117
|
+
RetrieveAgentRequestResponseBodyFallbacks,
|
|
1850
2118
|
z.ZodTypeDef,
|
|
1851
2119
|
unknown
|
|
1852
2120
|
> = z.object({
|
|
1853
2121
|
model: z.string(),
|
|
1854
2122
|
});
|
|
1855
2123
|
|
|
1856
|
-
export function
|
|
1857
|
-
jsonString: string,
|
|
1858
|
-
): SafeParseResult<RetrieveAgentRequestFallbacks, SDKValidationError> {
|
|
1859
|
-
return safeParse(
|
|
1860
|
-
jsonString,
|
|
1861
|
-
(x) => RetrieveAgentRequestFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
1862
|
-
`Failed to parse 'RetrieveAgentRequestFallbacks' from JSON`,
|
|
1863
|
-
);
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
/** @internal */
|
|
1867
|
-
export const RetrieveAgentRequestAgentsRetry$inboundSchema: z.ZodType<
|
|
1868
|
-
RetrieveAgentRequestAgentsRetry,
|
|
1869
|
-
z.ZodTypeDef,
|
|
1870
|
-
unknown
|
|
1871
|
-
> = z.object({
|
|
1872
|
-
count: z.number().default(3),
|
|
1873
|
-
on_codes: z.array(z.number()).optional(),
|
|
1874
|
-
}).transform((v) => {
|
|
1875
|
-
return remap$(v, {
|
|
1876
|
-
"on_codes": "onCodes",
|
|
1877
|
-
});
|
|
1878
|
-
});
|
|
1879
|
-
|
|
1880
|
-
export function retrieveAgentRequestAgentsRetryFromJSON(
|
|
2124
|
+
export function retrieveAgentRequestResponseBodyFallbacksFromJSON(
|
|
1881
2125
|
jsonString: string,
|
|
1882
|
-
): SafeParseResult<
|
|
2126
|
+
): SafeParseResult<
|
|
2127
|
+
RetrieveAgentRequestResponseBodyFallbacks,
|
|
2128
|
+
SDKValidationError
|
|
2129
|
+
> {
|
|
1883
2130
|
return safeParse(
|
|
1884
2131
|
jsonString,
|
|
1885
|
-
(x) =>
|
|
1886
|
-
|
|
2132
|
+
(x) =>
|
|
2133
|
+
RetrieveAgentRequestResponseBodyFallbacks$inboundSchema.parse(
|
|
2134
|
+
JSON.parse(x),
|
|
2135
|
+
),
|
|
2136
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyFallbacks' from JSON`,
|
|
1887
2137
|
);
|
|
1888
2138
|
}
|
|
1889
2139
|
|
|
1890
2140
|
/** @internal */
|
|
1891
|
-
export const
|
|
1892
|
-
typeof
|
|
1893
|
-
|
|
2141
|
+
export const RetrieveAgentRequestResponseBodyAgentsResponseType$inboundSchema:
|
|
2142
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyAgentsResponseType> = z
|
|
2143
|
+
.nativeEnum(RetrieveAgentRequestResponseBodyAgentsResponseType);
|
|
1894
2144
|
|
|
1895
2145
|
/** @internal */
|
|
1896
|
-
export const
|
|
1897
|
-
|
|
2146
|
+
export const RetrieveAgentRequestResponseBodyCache$inboundSchema: z.ZodType<
|
|
2147
|
+
RetrieveAgentRequestResponseBodyCache,
|
|
1898
2148
|
z.ZodTypeDef,
|
|
1899
2149
|
unknown
|
|
1900
2150
|
> = z.object({
|
|
1901
2151
|
ttl: z.number().default(1800),
|
|
1902
|
-
type:
|
|
2152
|
+
type: RetrieveAgentRequestResponseBodyAgentsResponseType$inboundSchema,
|
|
1903
2153
|
});
|
|
1904
2154
|
|
|
1905
|
-
export function
|
|
2155
|
+
export function retrieveAgentRequestResponseBodyCacheFromJSON(
|
|
1906
2156
|
jsonString: string,
|
|
1907
|
-
): SafeParseResult<
|
|
2157
|
+
): SafeParseResult<RetrieveAgentRequestResponseBodyCache, SDKValidationError> {
|
|
1908
2158
|
return safeParse(
|
|
1909
2159
|
jsonString,
|
|
1910
|
-
(x) =>
|
|
1911
|
-
|
|
2160
|
+
(x) =>
|
|
2161
|
+
RetrieveAgentRequestResponseBodyCache$inboundSchema.parse(JSON.parse(x)),
|
|
2162
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyCache' from JSON`,
|
|
1912
2163
|
);
|
|
1913
2164
|
}
|
|
1914
2165
|
|
|
@@ -1962,25 +2213,32 @@ export function retrieveAgentRequestLoadBalancer1FromJSON(
|
|
|
1962
2213
|
}
|
|
1963
2214
|
|
|
1964
2215
|
/** @internal */
|
|
1965
|
-
export const
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
2216
|
+
export const RetrieveAgentRequestResponseBodyLoadBalancer$inboundSchema:
|
|
2217
|
+
z.ZodType<
|
|
2218
|
+
RetrieveAgentRequestResponseBodyLoadBalancer,
|
|
2219
|
+
z.ZodTypeDef,
|
|
2220
|
+
unknown
|
|
2221
|
+
> = z.lazy(() => RetrieveAgentRequestLoadBalancer1$inboundSchema);
|
|
1970
2222
|
|
|
1971
|
-
export function
|
|
2223
|
+
export function retrieveAgentRequestResponseBodyLoadBalancerFromJSON(
|
|
1972
2224
|
jsonString: string,
|
|
1973
|
-
): SafeParseResult<
|
|
2225
|
+
): SafeParseResult<
|
|
2226
|
+
RetrieveAgentRequestResponseBodyLoadBalancer,
|
|
2227
|
+
SDKValidationError
|
|
2228
|
+
> {
|
|
1974
2229
|
return safeParse(
|
|
1975
2230
|
jsonString,
|
|
1976
|
-
(x) =>
|
|
1977
|
-
|
|
2231
|
+
(x) =>
|
|
2232
|
+
RetrieveAgentRequestResponseBodyLoadBalancer$inboundSchema.parse(
|
|
2233
|
+
JSON.parse(x),
|
|
2234
|
+
),
|
|
2235
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyLoadBalancer' from JSON`,
|
|
1978
2236
|
);
|
|
1979
2237
|
}
|
|
1980
2238
|
|
|
1981
2239
|
/** @internal */
|
|
1982
|
-
export const
|
|
1983
|
-
|
|
2240
|
+
export const RetrieveAgentRequestResponseBodyTimeout$inboundSchema: z.ZodType<
|
|
2241
|
+
RetrieveAgentRequestResponseBodyTimeout,
|
|
1984
2242
|
z.ZodTypeDef,
|
|
1985
2243
|
unknown
|
|
1986
2244
|
> = z.object({
|
|
@@ -1991,102 +2249,112 @@ export const RetrieveAgentRequestTimeout$inboundSchema: z.ZodType<
|
|
|
1991
2249
|
});
|
|
1992
2250
|
});
|
|
1993
2251
|
|
|
1994
|
-
export function
|
|
2252
|
+
export function retrieveAgentRequestResponseBodyTimeoutFromJSON(
|
|
1995
2253
|
jsonString: string,
|
|
1996
|
-
): SafeParseResult<
|
|
2254
|
+
): SafeParseResult<
|
|
2255
|
+
RetrieveAgentRequestResponseBodyTimeout,
|
|
2256
|
+
SDKValidationError
|
|
2257
|
+
> {
|
|
1997
2258
|
return safeParse(
|
|
1998
2259
|
jsonString,
|
|
1999
|
-
(x) =>
|
|
2000
|
-
|
|
2260
|
+
(x) =>
|
|
2261
|
+
RetrieveAgentRequestResponseBodyTimeout$inboundSchema.parse(
|
|
2262
|
+
JSON.parse(x),
|
|
2263
|
+
),
|
|
2264
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyTimeout' from JSON`,
|
|
2001
2265
|
);
|
|
2002
2266
|
}
|
|
2003
2267
|
|
|
2004
2268
|
/** @internal */
|
|
2005
|
-
export const
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
}).transform((v) => {
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
});
|
|
2075
|
-
});
|
|
2269
|
+
export const RetrieveAgentRequestResponseBodyParameters$inboundSchema:
|
|
2270
|
+
z.ZodType<RetrieveAgentRequestResponseBodyParameters, z.ZodTypeDef, unknown> =
|
|
2271
|
+
z.object({
|
|
2272
|
+
name: z.string().optional(),
|
|
2273
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
2274
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
2275
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
2276
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
2277
|
+
response_format: z.union([
|
|
2278
|
+
z.lazy(() => RetrieveAgentRequestResponseFormatText$inboundSchema),
|
|
2279
|
+
z.lazy(() =>
|
|
2280
|
+
RetrieveAgentRequestResponseFormatJSONObject$inboundSchema
|
|
2281
|
+
),
|
|
2282
|
+
z.lazy(() =>
|
|
2283
|
+
RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema
|
|
2284
|
+
),
|
|
2285
|
+
]).optional(),
|
|
2286
|
+
reasoning_effort:
|
|
2287
|
+
RetrieveAgentRequestResponseBodyReasoningEffort$inboundSchema
|
|
2288
|
+
.optional(),
|
|
2289
|
+
verbosity: z.string().optional(),
|
|
2290
|
+
seed: z.nullable(z.number()).optional(),
|
|
2291
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2292
|
+
thinking: z.union([
|
|
2293
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2294
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2295
|
+
]).optional(),
|
|
2296
|
+
temperature: z.nullable(z.number()).optional(),
|
|
2297
|
+
top_p: z.nullable(z.number()).optional(),
|
|
2298
|
+
top_k: z.nullable(z.number()).optional(),
|
|
2299
|
+
tool_choice: z.union([
|
|
2300
|
+
z.lazy(() => RetrieveAgentRequestToolChoice2$inboundSchema),
|
|
2301
|
+
RetrieveAgentRequestToolChoice1$inboundSchema,
|
|
2302
|
+
]).optional(),
|
|
2303
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
2304
|
+
modalities: z.nullable(
|
|
2305
|
+
z.array(RetrieveAgentRequestResponseBodyModalities$inboundSchema),
|
|
2306
|
+
).optional(),
|
|
2307
|
+
guardrails: z.array(
|
|
2308
|
+
z.lazy(() =>
|
|
2309
|
+
RetrieveAgentRequestResponseBodyAgentsGuardrails$inboundSchema
|
|
2310
|
+
),
|
|
2311
|
+
).optional(),
|
|
2312
|
+
fallbacks: z.array(
|
|
2313
|
+
z.lazy(() => RetrieveAgentRequestResponseBodyFallbacks$inboundSchema),
|
|
2314
|
+
).optional(),
|
|
2315
|
+
cache: z.lazy(() => RetrieveAgentRequestResponseBodyCache$inboundSchema)
|
|
2316
|
+
.optional(),
|
|
2317
|
+
load_balancer: z.lazy(() =>
|
|
2318
|
+
RetrieveAgentRequestLoadBalancer1$inboundSchema
|
|
2319
|
+
).optional(),
|
|
2320
|
+
timeout: z.lazy(() =>
|
|
2321
|
+
RetrieveAgentRequestResponseBodyTimeout$inboundSchema
|
|
2322
|
+
).optional(),
|
|
2323
|
+
}).transform((v) => {
|
|
2324
|
+
return remap$(v, {
|
|
2325
|
+
"frequency_penalty": "frequencyPenalty",
|
|
2326
|
+
"max_tokens": "maxTokens",
|
|
2327
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
2328
|
+
"presence_penalty": "presencePenalty",
|
|
2329
|
+
"response_format": "responseFormat",
|
|
2330
|
+
"reasoning_effort": "reasoningEffort",
|
|
2331
|
+
"top_p": "topP",
|
|
2332
|
+
"top_k": "topK",
|
|
2333
|
+
"tool_choice": "toolChoice",
|
|
2334
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
2335
|
+
"load_balancer": "loadBalancer",
|
|
2336
|
+
});
|
|
2337
|
+
});
|
|
2076
2338
|
|
|
2077
|
-
export function
|
|
2339
|
+
export function retrieveAgentRequestResponseBodyParametersFromJSON(
|
|
2078
2340
|
jsonString: string,
|
|
2079
|
-
): SafeParseResult<
|
|
2341
|
+
): SafeParseResult<
|
|
2342
|
+
RetrieveAgentRequestResponseBodyParameters,
|
|
2343
|
+
SDKValidationError
|
|
2344
|
+
> {
|
|
2080
2345
|
return safeParse(
|
|
2081
2346
|
jsonString,
|
|
2082
|
-
(x) =>
|
|
2083
|
-
|
|
2347
|
+
(x) =>
|
|
2348
|
+
RetrieveAgentRequestResponseBodyParameters$inboundSchema.parse(
|
|
2349
|
+
JSON.parse(x),
|
|
2350
|
+
),
|
|
2351
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyParameters' from JSON`,
|
|
2084
2352
|
);
|
|
2085
2353
|
}
|
|
2086
2354
|
|
|
2087
2355
|
/** @internal */
|
|
2088
|
-
export const
|
|
2089
|
-
|
|
2356
|
+
export const RetrieveAgentRequestResponseBodyRetry$inboundSchema: z.ZodType<
|
|
2357
|
+
RetrieveAgentRequestResponseBodyRetry,
|
|
2090
2358
|
z.ZodTypeDef,
|
|
2091
2359
|
unknown
|
|
2092
2360
|
> = z.object({
|
|
@@ -2098,50 +2366,14 @@ export const RetrieveAgentRequestRetry$inboundSchema: z.ZodType<
|
|
|
2098
2366
|
});
|
|
2099
2367
|
});
|
|
2100
2368
|
|
|
2101
|
-
export function
|
|
2102
|
-
jsonString: string,
|
|
2103
|
-
): SafeParseResult<RetrieveAgentRequestRetry, SDKValidationError> {
|
|
2104
|
-
return safeParse(
|
|
2105
|
-
jsonString,
|
|
2106
|
-
(x) => RetrieveAgentRequestRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2107
|
-
`Failed to parse 'RetrieveAgentRequestRetry' from JSON`,
|
|
2108
|
-
);
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
/** @internal */
|
|
2112
|
-
export const RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema:
|
|
2113
|
-
z.ZodNativeEnum<typeof RetrieveAgentRequestFallbackModelConfigurationVoice> =
|
|
2114
|
-
z.nativeEnum(RetrieveAgentRequestFallbackModelConfigurationVoice);
|
|
2115
|
-
|
|
2116
|
-
/** @internal */
|
|
2117
|
-
export const RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema:
|
|
2118
|
-
z.ZodNativeEnum<typeof RetrieveAgentRequestFallbackModelConfigurationFormat> =
|
|
2119
|
-
z.nativeEnum(RetrieveAgentRequestFallbackModelConfigurationFormat);
|
|
2120
|
-
|
|
2121
|
-
/** @internal */
|
|
2122
|
-
export const RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema:
|
|
2123
|
-
z.ZodType<
|
|
2124
|
-
RetrieveAgentRequestFallbackModelConfigurationAudio,
|
|
2125
|
-
z.ZodTypeDef,
|
|
2126
|
-
unknown
|
|
2127
|
-
> = z.object({
|
|
2128
|
-
voice: RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema,
|
|
2129
|
-
format: RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema,
|
|
2130
|
-
});
|
|
2131
|
-
|
|
2132
|
-
export function retrieveAgentRequestFallbackModelConfigurationAudioFromJSON(
|
|
2369
|
+
export function retrieveAgentRequestResponseBodyRetryFromJSON(
|
|
2133
2370
|
jsonString: string,
|
|
2134
|
-
): SafeParseResult<
|
|
2135
|
-
RetrieveAgentRequestFallbackModelConfigurationAudio,
|
|
2136
|
-
SDKValidationError
|
|
2137
|
-
> {
|
|
2371
|
+
): SafeParseResult<RetrieveAgentRequestResponseBodyRetry, SDKValidationError> {
|
|
2138
2372
|
return safeParse(
|
|
2139
2373
|
jsonString,
|
|
2140
2374
|
(x) =>
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
),
|
|
2144
|
-
`Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationAudio' from JSON`,
|
|
2375
|
+
RetrieveAgentRequestResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2376
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyRetry' from JSON`,
|
|
2145
2377
|
);
|
|
2146
2378
|
}
|
|
2147
2379
|
|
|
@@ -2320,35 +2552,6 @@ export function retrieveAgentRequestFallbackModelConfigurationStopFromJSON(
|
|
|
2320
2552
|
);
|
|
2321
2553
|
}
|
|
2322
2554
|
|
|
2323
|
-
/** @internal */
|
|
2324
|
-
export const RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema:
|
|
2325
|
-
z.ZodType<
|
|
2326
|
-
RetrieveAgentRequestFallbackModelConfigurationStreamOptions,
|
|
2327
|
-
z.ZodTypeDef,
|
|
2328
|
-
unknown
|
|
2329
|
-
> = z.object({
|
|
2330
|
-
include_usage: z.boolean().optional(),
|
|
2331
|
-
}).transform((v) => {
|
|
2332
|
-
return remap$(v, {
|
|
2333
|
-
"include_usage": "includeUsage",
|
|
2334
|
-
});
|
|
2335
|
-
});
|
|
2336
|
-
|
|
2337
|
-
export function retrieveAgentRequestFallbackModelConfigurationStreamOptionsFromJSON(
|
|
2338
|
-
jsonString: string,
|
|
2339
|
-
): SafeParseResult<
|
|
2340
|
-
RetrieveAgentRequestFallbackModelConfigurationStreamOptions,
|
|
2341
|
-
SDKValidationError
|
|
2342
|
-
> {
|
|
2343
|
-
return safeParse(
|
|
2344
|
-
jsonString,
|
|
2345
|
-
(x) =>
|
|
2346
|
-
RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
|
|
2347
|
-
.parse(JSON.parse(x)),
|
|
2348
|
-
`Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationStreamOptions' from JSON`,
|
|
2349
|
-
);
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
2555
|
/** @internal */
|
|
2353
2556
|
export const RetrieveAgentRequestFallbackModelConfigurationThinking$inboundSchema:
|
|
2354
2557
|
z.ZodType<
|
|
@@ -2558,36 +2761,6 @@ export function retrieveAgentRequestFallbackModelConfigurationFallbacksFromJSON(
|
|
|
2558
2761
|
);
|
|
2559
2762
|
}
|
|
2560
2763
|
|
|
2561
|
-
/** @internal */
|
|
2562
|
-
export const RetrieveAgentRequestFallbackModelConfigurationAgentsRetry$inboundSchema:
|
|
2563
|
-
z.ZodType<
|
|
2564
|
-
RetrieveAgentRequestFallbackModelConfigurationAgentsRetry,
|
|
2565
|
-
z.ZodTypeDef,
|
|
2566
|
-
unknown
|
|
2567
|
-
> = z.object({
|
|
2568
|
-
count: z.number().default(3),
|
|
2569
|
-
on_codes: z.array(z.number()).optional(),
|
|
2570
|
-
}).transform((v) => {
|
|
2571
|
-
return remap$(v, {
|
|
2572
|
-
"on_codes": "onCodes",
|
|
2573
|
-
});
|
|
2574
|
-
});
|
|
2575
|
-
|
|
2576
|
-
export function retrieveAgentRequestFallbackModelConfigurationAgentsRetryFromJSON(
|
|
2577
|
-
jsonString: string,
|
|
2578
|
-
): SafeParseResult<
|
|
2579
|
-
RetrieveAgentRequestFallbackModelConfigurationAgentsRetry,
|
|
2580
|
-
SDKValidationError
|
|
2581
|
-
> {
|
|
2582
|
-
return safeParse(
|
|
2583
|
-
jsonString,
|
|
2584
|
-
(x) =>
|
|
2585
|
-
RetrieveAgentRequestFallbackModelConfigurationAgentsRetry$inboundSchema
|
|
2586
|
-
.parse(JSON.parse(x)),
|
|
2587
|
-
`Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationAgentsRetry' from JSON`,
|
|
2588
|
-
);
|
|
2589
|
-
}
|
|
2590
|
-
|
|
2591
2764
|
/** @internal */
|
|
2592
2765
|
export const RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema:
|
|
2593
2766
|
z.ZodNativeEnum<typeof RetrieveAgentRequestFallbackModelConfigurationType> = z
|
|
@@ -2741,17 +2914,9 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2741
2914
|
unknown
|
|
2742
2915
|
> = z.object({
|
|
2743
2916
|
name: z.string().optional(),
|
|
2744
|
-
audio: z.nullable(
|
|
2745
|
-
z.lazy(() =>
|
|
2746
|
-
RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema
|
|
2747
|
-
),
|
|
2748
|
-
).optional(),
|
|
2749
2917
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
2750
2918
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
2751
2919
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
2752
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2753
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
2754
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2755
2920
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
2756
2921
|
response_format: z.union([
|
|
2757
2922
|
z.lazy(() => RetrieveAgentRequestResponseFormatAgentsText$inboundSchema),
|
|
@@ -2768,11 +2933,6 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2768
2933
|
verbosity: z.string().optional(),
|
|
2769
2934
|
seed: z.nullable(z.number()).optional(),
|
|
2770
2935
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2771
|
-
stream_options: z.nullable(
|
|
2772
|
-
z.lazy(() =>
|
|
2773
|
-
RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
|
|
2774
|
-
),
|
|
2775
|
-
).optional(),
|
|
2776
2936
|
thinking: z.union([
|
|
2777
2937
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2778
2938
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -2800,9 +2960,6 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2800
2960
|
RetrieveAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
|
|
2801
2961
|
),
|
|
2802
2962
|
).optional(),
|
|
2803
|
-
retry: z.lazy(() =>
|
|
2804
|
-
RetrieveAgentRequestFallbackModelConfigurationAgentsRetry$inboundSchema
|
|
2805
|
-
).optional(),
|
|
2806
2963
|
cache: z.lazy(() =>
|
|
2807
2964
|
RetrieveAgentRequestFallbackModelConfigurationCache$inboundSchema
|
|
2808
2965
|
).optional(),
|
|
@@ -2817,11 +2974,9 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2817
2974
|
"frequency_penalty": "frequencyPenalty",
|
|
2818
2975
|
"max_tokens": "maxTokens",
|
|
2819
2976
|
"max_completion_tokens": "maxCompletionTokens",
|
|
2820
|
-
"top_logprobs": "topLogprobs",
|
|
2821
2977
|
"presence_penalty": "presencePenalty",
|
|
2822
2978
|
"response_format": "responseFormat",
|
|
2823
2979
|
"reasoning_effort": "reasoningEffort",
|
|
2824
|
-
"stream_options": "streamOptions",
|
|
2825
2980
|
"top_p": "topP",
|
|
2826
2981
|
"top_k": "topK",
|
|
2827
2982
|
"tool_choice": "toolChoice",
|
|
@@ -2909,9 +3064,9 @@ export function retrieveAgentRequestFallbackModelConfiguration2FromJSON(
|
|
|
2909
3064
|
}
|
|
2910
3065
|
|
|
2911
3066
|
/** @internal */
|
|
2912
|
-
export const
|
|
3067
|
+
export const RetrieveAgentRequestResponseBodyFallbackModelConfiguration$inboundSchema:
|
|
2913
3068
|
z.ZodType<
|
|
2914
|
-
|
|
3069
|
+
RetrieveAgentRequestResponseBodyFallbackModelConfiguration,
|
|
2915
3070
|
z.ZodTypeDef,
|
|
2916
3071
|
unknown
|
|
2917
3072
|
> = z.union([
|
|
@@ -2919,33 +3074,34 @@ export const RetrieveAgentRequestFallbackModelConfiguration$inboundSchema:
|
|
|
2919
3074
|
z.string(),
|
|
2920
3075
|
]);
|
|
2921
3076
|
|
|
2922
|
-
export function
|
|
3077
|
+
export function retrieveAgentRequestResponseBodyFallbackModelConfigurationFromJSON(
|
|
2923
3078
|
jsonString: string,
|
|
2924
3079
|
): SafeParseResult<
|
|
2925
|
-
|
|
3080
|
+
RetrieveAgentRequestResponseBodyFallbackModelConfiguration,
|
|
2926
3081
|
SDKValidationError
|
|
2927
3082
|
> {
|
|
2928
3083
|
return safeParse(
|
|
2929
3084
|
jsonString,
|
|
2930
3085
|
(x) =>
|
|
2931
|
-
|
|
2932
|
-
JSON.parse(x),
|
|
2933
|
-
|
|
2934
|
-
`Failed to parse 'RetrieveAgentRequestFallbackModelConfiguration' from JSON`,
|
|
3086
|
+
RetrieveAgentRequestResponseBodyFallbackModelConfiguration$inboundSchema
|
|
3087
|
+
.parse(JSON.parse(x)),
|
|
3088
|
+
`Failed to parse 'RetrieveAgentRequestResponseBodyFallbackModelConfiguration' from JSON`,
|
|
2935
3089
|
);
|
|
2936
3090
|
}
|
|
2937
3091
|
|
|
2938
3092
|
/** @internal */
|
|
2939
|
-
export const
|
|
2940
|
-
|
|
3093
|
+
export const ResponseBodyModel$inboundSchema: z.ZodType<
|
|
3094
|
+
ResponseBodyModel,
|
|
2941
3095
|
z.ZodTypeDef,
|
|
2942
3096
|
unknown
|
|
2943
3097
|
> = z.object({
|
|
2944
3098
|
id: z.string(),
|
|
2945
3099
|
integration_id: z.nullable(z.string()).optional(),
|
|
2946
|
-
parameters: z.lazy(() =>
|
|
3100
|
+
parameters: z.lazy(() =>
|
|
3101
|
+
RetrieveAgentRequestResponseBodyParameters$inboundSchema
|
|
3102
|
+
).optional(),
|
|
3103
|
+
retry: z.lazy(() => RetrieveAgentRequestResponseBodyRetry$inboundSchema)
|
|
2947
3104
|
.optional(),
|
|
2948
|
-
retry: z.lazy(() => RetrieveAgentRequestRetry$inboundSchema).optional(),
|
|
2949
3105
|
fallback_models: z.nullable(
|
|
2950
3106
|
z.array(z.union([
|
|
2951
3107
|
z.lazy(() =>
|
|
@@ -2961,138 +3117,87 @@ export const RetrieveAgentRequestModel$inboundSchema: z.ZodType<
|
|
|
2961
3117
|
});
|
|
2962
3118
|
});
|
|
2963
3119
|
|
|
2964
|
-
export function
|
|
2965
|
-
jsonString: string,
|
|
2966
|
-
): SafeParseResult<RetrieveAgentRequestModel, SDKValidationError> {
|
|
2967
|
-
return safeParse(
|
|
2968
|
-
jsonString,
|
|
2969
|
-
(x) => RetrieveAgentRequestModel$inboundSchema.parse(JSON.parse(x)),
|
|
2970
|
-
`Failed to parse 'RetrieveAgentRequestModel' from JSON`,
|
|
2971
|
-
);
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
|
-
/** @internal */
|
|
2975
|
-
export const RetrieveAgentRequestTeamOfAgents$inboundSchema: z.ZodType<
|
|
2976
|
-
RetrieveAgentRequestTeamOfAgents,
|
|
2977
|
-
z.ZodTypeDef,
|
|
2978
|
-
unknown
|
|
2979
|
-
> = z.object({
|
|
2980
|
-
key: z.string(),
|
|
2981
|
-
role: z.string().optional(),
|
|
2982
|
-
});
|
|
2983
|
-
|
|
2984
|
-
export function retrieveAgentRequestTeamOfAgentsFromJSON(
|
|
2985
|
-
jsonString: string,
|
|
2986
|
-
): SafeParseResult<RetrieveAgentRequestTeamOfAgents, SDKValidationError> {
|
|
2987
|
-
return safeParse(
|
|
2988
|
-
jsonString,
|
|
2989
|
-
(x) => RetrieveAgentRequestTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
2990
|
-
`Failed to parse 'RetrieveAgentRequestTeamOfAgents' from JSON`,
|
|
2991
|
-
);
|
|
2992
|
-
}
|
|
2993
|
-
|
|
2994
|
-
/** @internal */
|
|
2995
|
-
export const RetrieveAgentRequestMetrics$inboundSchema: z.ZodType<
|
|
2996
|
-
RetrieveAgentRequestMetrics,
|
|
2997
|
-
z.ZodTypeDef,
|
|
2998
|
-
unknown
|
|
2999
|
-
> = z.object({
|
|
3000
|
-
total_cost: z.number().default(0),
|
|
3001
|
-
}).transform((v) => {
|
|
3002
|
-
return remap$(v, {
|
|
3003
|
-
"total_cost": "totalCost",
|
|
3004
|
-
});
|
|
3005
|
-
});
|
|
3006
|
-
|
|
3007
|
-
export function retrieveAgentRequestMetricsFromJSON(
|
|
3120
|
+
export function responseBodyModelFromJSON(
|
|
3008
3121
|
jsonString: string,
|
|
3009
|
-
): SafeParseResult<
|
|
3122
|
+
): SafeParseResult<ResponseBodyModel, SDKValidationError> {
|
|
3010
3123
|
return safeParse(
|
|
3011
3124
|
jsonString,
|
|
3012
|
-
(x) =>
|
|
3013
|
-
`Failed to parse '
|
|
3014
|
-
);
|
|
3015
|
-
}
|
|
3016
|
-
|
|
3017
|
-
/** @internal */
|
|
3018
|
-
export const RetrieveAgentRequestKnowledgeBases$inboundSchema: z.ZodType<
|
|
3019
|
-
RetrieveAgentRequestKnowledgeBases,
|
|
3020
|
-
z.ZodTypeDef,
|
|
3021
|
-
unknown
|
|
3022
|
-
> = z.object({
|
|
3023
|
-
knowledge_id: z.string(),
|
|
3024
|
-
}).transform((v) => {
|
|
3025
|
-
return remap$(v, {
|
|
3026
|
-
"knowledge_id": "knowledgeId",
|
|
3027
|
-
});
|
|
3028
|
-
});
|
|
3029
|
-
|
|
3030
|
-
export function retrieveAgentRequestKnowledgeBasesFromJSON(
|
|
3031
|
-
jsonString: string,
|
|
3032
|
-
): SafeParseResult<RetrieveAgentRequestKnowledgeBases, SDKValidationError> {
|
|
3033
|
-
return safeParse(
|
|
3034
|
-
jsonString,
|
|
3035
|
-
(x) =>
|
|
3036
|
-
RetrieveAgentRequestKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
3037
|
-
`Failed to parse 'RetrieveAgentRequestKnowledgeBases' from JSON`,
|
|
3125
|
+
(x) => ResponseBodyModel$inboundSchema.parse(JSON.parse(x)),
|
|
3126
|
+
`Failed to parse 'ResponseBodyModel' from JSON`,
|
|
3038
3127
|
);
|
|
3039
3128
|
}
|
|
3040
3129
|
|
|
3041
3130
|
/** @internal */
|
|
3042
|
-
export const
|
|
3043
|
-
|
|
3044
|
-
> = z.nativeEnum(RetrieveAgentRequestSource);
|
|
3045
|
-
|
|
3046
|
-
/** @internal */
|
|
3047
|
-
export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
3048
|
-
RetrieveAgentRequestResponseBody,
|
|
3131
|
+
export const RetrieveAgentRequestResponseBody1$inboundSchema: z.ZodType<
|
|
3132
|
+
RetrieveAgentRequestResponseBody1,
|
|
3049
3133
|
z.ZodTypeDef,
|
|
3050
3134
|
unknown
|
|
3051
3135
|
> = z.object({
|
|
3052
3136
|
_id: z.string(),
|
|
3053
3137
|
key: z.string(),
|
|
3054
3138
|
display_name: z.string().optional(),
|
|
3055
|
-
workspace_id: z.string(),
|
|
3056
3139
|
project_id: z.string(),
|
|
3057
3140
|
created_by_id: z.nullable(z.string()).optional(),
|
|
3058
3141
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3059
3142
|
created: z.string().optional(),
|
|
3060
3143
|
updated: z.string().optional(),
|
|
3061
|
-
|
|
3062
|
-
description: z.string(),
|
|
3063
|
-
system_prompt: z.string().optional(),
|
|
3064
|
-
instructions: z.string(),
|
|
3065
|
-
status: RetrieveAgentRequestStatus$inboundSchema,
|
|
3066
|
-
settings: z.lazy(() => RetrieveAgentRequestSettings$inboundSchema).optional(),
|
|
3067
|
-
model: z.lazy(() => RetrieveAgentRequestModel$inboundSchema),
|
|
3144
|
+
status: RetrieveAgentRequestResponseBodyStatus$inboundSchema,
|
|
3068
3145
|
version_hash: z.string().optional(),
|
|
3069
3146
|
path: z.string(),
|
|
3070
|
-
memory_stores: z.array(z.string()),
|
|
3147
|
+
memory_stores: z.array(z.string()).optional(),
|
|
3071
3148
|
team_of_agents: z.array(
|
|
3072
|
-
z.lazy(() =>
|
|
3073
|
-
),
|
|
3074
|
-
metrics: z.lazy(() =>
|
|
3149
|
+
z.lazy(() => RetrieveAgentRequestResponseBodyTeamOfAgents$inboundSchema),
|
|
3150
|
+
).optional(),
|
|
3151
|
+
metrics: z.lazy(() => RetrieveAgentRequestResponseBodyMetrics$inboundSchema)
|
|
3152
|
+
.optional(),
|
|
3075
3153
|
variables: z.record(z.any()).optional(),
|
|
3076
3154
|
knowledge_bases: z.array(
|
|
3077
|
-
z.lazy(() =>
|
|
3155
|
+
z.lazy(() => RetrieveAgentRequestResponseBodyKnowledgeBases$inboundSchema),
|
|
3078
3156
|
).optional(),
|
|
3079
|
-
source:
|
|
3157
|
+
source: RetrieveAgentRequestResponseBodySource$inboundSchema.optional(),
|
|
3158
|
+
type: z.literal("internal"),
|
|
3159
|
+
role: z.string(),
|
|
3160
|
+
description: z.string(),
|
|
3161
|
+
system_prompt: z.string().optional(),
|
|
3162
|
+
instructions: z.string(),
|
|
3163
|
+
settings: z.lazy(() => RetrieveAgentRequestResponseBodySettings$inboundSchema)
|
|
3164
|
+
.optional(),
|
|
3165
|
+
model: z.lazy(() => ResponseBodyModel$inboundSchema),
|
|
3080
3166
|
}).transform((v) => {
|
|
3081
3167
|
return remap$(v, {
|
|
3082
3168
|
"_id": "id",
|
|
3083
3169
|
"display_name": "displayName",
|
|
3084
|
-
"workspace_id": "workspaceId",
|
|
3085
3170
|
"project_id": "projectId",
|
|
3086
3171
|
"created_by_id": "createdById",
|
|
3087
3172
|
"updated_by_id": "updatedById",
|
|
3088
|
-
"system_prompt": "systemPrompt",
|
|
3089
3173
|
"version_hash": "versionHash",
|
|
3090
3174
|
"memory_stores": "memoryStores",
|
|
3091
3175
|
"team_of_agents": "teamOfAgents",
|
|
3092
3176
|
"knowledge_bases": "knowledgeBases",
|
|
3177
|
+
"system_prompt": "systemPrompt",
|
|
3093
3178
|
});
|
|
3094
3179
|
});
|
|
3095
3180
|
|
|
3181
|
+
export function retrieveAgentRequestResponseBody1FromJSON(
|
|
3182
|
+
jsonString: string,
|
|
3183
|
+
): SafeParseResult<RetrieveAgentRequestResponseBody1, SDKValidationError> {
|
|
3184
|
+
return safeParse(
|
|
3185
|
+
jsonString,
|
|
3186
|
+
(x) => RetrieveAgentRequestResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
3187
|
+
`Failed to parse 'RetrieveAgentRequestResponseBody1' from JSON`,
|
|
3188
|
+
);
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
/** @internal */
|
|
3192
|
+
export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
3193
|
+
RetrieveAgentRequestResponseBody,
|
|
3194
|
+
z.ZodTypeDef,
|
|
3195
|
+
unknown
|
|
3196
|
+
> = z.union([
|
|
3197
|
+
z.lazy(() => RetrieveAgentRequestResponseBody1$inboundSchema),
|
|
3198
|
+
z.lazy(() => RetrieveAgentRequestResponseBody2$inboundSchema),
|
|
3199
|
+
]);
|
|
3200
|
+
|
|
3096
3201
|
export function retrieveAgentRequestResponseBodyFromJSON(
|
|
3097
3202
|
jsonString: string,
|
|
3098
3203
|
): SafeParseResult<RetrieveAgentRequestResponseBody, SDKValidationError> {
|