@orq-ai/node 4.5.0-rc.40 → 4.5.0-rc.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +161 -271
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +162 -256
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +39 -39
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +49 -52
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.d.ts +39 -39
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +47 -49
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.js +16 -16
- package/models/operations/listagents.d.ts +167 -276
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +172 -266
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listknowledgebases.d.ts +8 -8
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +15 -13
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +169 -279
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +173 -270
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +169 -279
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +174 -270
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +376 -619
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createknowledge.ts +17 -19
- package/src/models/operations/createtool.ts +91 -103
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +87 -93
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listagents.ts +383 -611
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +64 -72
- package/src/models/operations/retrieveagentrequest.ts +489 -884
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +362 -668
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -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 RetrieveAgentRequestStatus = {
|
|
24
24
|
Live: "live",
|
|
25
25
|
Draft: "draft",
|
|
26
26
|
Pending: "pending",
|
|
@@ -29,11 +29,11 @@ export const RetrieveAgentRequestResponseBodyAgentsStatus = {
|
|
|
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 RetrieveAgentRequestStatus = ClosedEnum<
|
|
33
|
+
typeof RetrieveAgentRequestStatus
|
|
34
34
|
>;
|
|
35
35
|
|
|
36
|
-
export type
|
|
36
|
+
export type RetrieveAgentRequestTeamOfAgents = {
|
|
37
37
|
/**
|
|
38
38
|
* The unique key of the agent within the workspace
|
|
39
39
|
*/
|
|
@@ -44,181 +44,44 @@ export type RetrieveAgentRequestResponseBodyAgentsTeamOfAgents = {
|
|
|
44
44
|
role?: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
export type
|
|
47
|
+
export type RetrieveAgentRequestMetrics = {
|
|
48
48
|
totalCost: number;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
export type
|
|
51
|
+
export type RetrieveAgentRequestKnowledgeBases = {
|
|
52
52
|
/**
|
|
53
53
|
* Unique identifier of the knowledge base to search
|
|
54
54
|
*/
|
|
55
55
|
knowledgeId: string;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
export const
|
|
58
|
+
export const RetrieveAgentRequestSource = {
|
|
59
59
|
Internal: "internal",
|
|
60
60
|
External: "external",
|
|
61
61
|
Experiment: "experiment",
|
|
62
62
|
} as const;
|
|
63
|
-
export type
|
|
64
|
-
typeof
|
|
63
|
+
export type RetrieveAgentRequestSource = ClosedEnum<
|
|
64
|
+
typeof RetrieveAgentRequestSource
|
|
65
65
|
>;
|
|
66
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
67
|
/**
|
|
76
|
-
*
|
|
68
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
77
69
|
*/
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
|
|
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",
|
|
70
|
+
export const RetrieveAgentRequestType = {
|
|
71
|
+
Internal: "internal",
|
|
72
|
+
A2a: "a2a",
|
|
179
73
|
} as const;
|
|
180
74
|
/**
|
|
181
|
-
*
|
|
75
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
182
76
|
*/
|
|
183
|
-
export type
|
|
184
|
-
typeof
|
|
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
|
|
77
|
+
export type RetrieveAgentRequestType = ClosedEnum<
|
|
78
|
+
typeof RetrieveAgentRequestType
|
|
216
79
|
>;
|
|
217
80
|
|
|
218
81
|
/**
|
|
219
82
|
* 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.
|
|
220
83
|
*/
|
|
221
|
-
export const
|
|
84
|
+
export const RetrieveAgentRequestToolApprovalRequired = {
|
|
222
85
|
All: "all",
|
|
223
86
|
RespectTool: "respect_tool",
|
|
224
87
|
None: "none",
|
|
@@ -226,11 +89,11 @@ export const RetrieveAgentRequestResponseBodyToolApprovalRequired = {
|
|
|
226
89
|
/**
|
|
227
90
|
* 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.
|
|
228
91
|
*/
|
|
229
|
-
export type
|
|
230
|
-
typeof
|
|
92
|
+
export type RetrieveAgentRequestToolApprovalRequired = ClosedEnum<
|
|
93
|
+
typeof RetrieveAgentRequestToolApprovalRequired
|
|
231
94
|
>;
|
|
232
95
|
|
|
233
|
-
export type
|
|
96
|
+
export type RetrieveAgentRequestConditions = {
|
|
234
97
|
/**
|
|
235
98
|
* The argument of the tool call to evaluate
|
|
236
99
|
*/
|
|
@@ -245,7 +108,7 @@ export type ResponseBodyConditions = {
|
|
|
245
108
|
value: string;
|
|
246
109
|
};
|
|
247
110
|
|
|
248
|
-
export type
|
|
111
|
+
export type RetrieveAgentRequestTools = {
|
|
249
112
|
/**
|
|
250
113
|
* The id of the resource
|
|
251
114
|
*/
|
|
@@ -265,7 +128,7 @@ export type RetrieveAgentRequestResponseBodyTools = {
|
|
|
265
128
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
266
129
|
*/
|
|
267
130
|
toolId?: string | undefined;
|
|
268
|
-
conditions?: Array<
|
|
131
|
+
conditions?: Array<RetrieveAgentRequestConditions> | undefined;
|
|
269
132
|
/**
|
|
270
133
|
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
271
134
|
*/
|
|
@@ -275,18 +138,18 @@ export type RetrieveAgentRequestResponseBodyTools = {
|
|
|
275
138
|
/**
|
|
276
139
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
277
140
|
*/
|
|
278
|
-
export const
|
|
141
|
+
export const RetrieveAgentRequestExecuteOn = {
|
|
279
142
|
Input: "input",
|
|
280
143
|
Output: "output",
|
|
281
144
|
} as const;
|
|
282
145
|
/**
|
|
283
146
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
284
147
|
*/
|
|
285
|
-
export type
|
|
286
|
-
typeof
|
|
148
|
+
export type RetrieveAgentRequestExecuteOn = ClosedEnum<
|
|
149
|
+
typeof RetrieveAgentRequestExecuteOn
|
|
287
150
|
>;
|
|
288
151
|
|
|
289
|
-
export type
|
|
152
|
+
export type RetrieveAgentRequestEvaluators = {
|
|
290
153
|
/**
|
|
291
154
|
* Unique key or identifier of the evaluator
|
|
292
155
|
*/
|
|
@@ -298,24 +161,24 @@ export type RetrieveAgentRequestResponseBodyEvaluators = {
|
|
|
298
161
|
/**
|
|
299
162
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
300
163
|
*/
|
|
301
|
-
executeOn:
|
|
164
|
+
executeOn: RetrieveAgentRequestExecuteOn;
|
|
302
165
|
};
|
|
303
166
|
|
|
304
167
|
/**
|
|
305
168
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
306
169
|
*/
|
|
307
|
-
export const
|
|
170
|
+
export const RetrieveAgentRequestAgentsExecuteOn = {
|
|
308
171
|
Input: "input",
|
|
309
172
|
Output: "output",
|
|
310
173
|
} as const;
|
|
311
174
|
/**
|
|
312
175
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
313
176
|
*/
|
|
314
|
-
export type
|
|
315
|
-
typeof
|
|
177
|
+
export type RetrieveAgentRequestAgentsExecuteOn = ClosedEnum<
|
|
178
|
+
typeof RetrieveAgentRequestAgentsExecuteOn
|
|
316
179
|
>;
|
|
317
180
|
|
|
318
|
-
export type
|
|
181
|
+
export type RetrieveAgentRequestGuardrails = {
|
|
319
182
|
/**
|
|
320
183
|
* Unique key or identifier of the evaluator
|
|
321
184
|
*/
|
|
@@ -327,10 +190,10 @@ export type RetrieveAgentRequestResponseBodyGuardrails = {
|
|
|
327
190
|
/**
|
|
328
191
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
329
192
|
*/
|
|
330
|
-
executeOn:
|
|
193
|
+
executeOn: RetrieveAgentRequestAgentsExecuteOn;
|
|
331
194
|
};
|
|
332
195
|
|
|
333
|
-
export type
|
|
196
|
+
export type RetrieveAgentRequestSettings = {
|
|
334
197
|
/**
|
|
335
198
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
336
199
|
*/
|
|
@@ -346,16 +209,16 @@ export type RetrieveAgentRequestResponseBodySettings = {
|
|
|
346
209
|
/**
|
|
347
210
|
* 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.
|
|
348
211
|
*/
|
|
349
|
-
toolApprovalRequired:
|
|
350
|
-
tools?: Array<
|
|
212
|
+
toolApprovalRequired: RetrieveAgentRequestToolApprovalRequired;
|
|
213
|
+
tools?: Array<RetrieveAgentRequestTools> | undefined;
|
|
351
214
|
/**
|
|
352
215
|
* Configuration for an evaluator applied to the agent
|
|
353
216
|
*/
|
|
354
|
-
evaluators?: Array<
|
|
217
|
+
evaluators?: Array<RetrieveAgentRequestEvaluators> | undefined;
|
|
355
218
|
/**
|
|
356
219
|
* Configuration for a guardrail applied to the agent
|
|
357
220
|
*/
|
|
358
|
-
guardrails?: Array<
|
|
221
|
+
guardrails?: Array<RetrieveAgentRequestGuardrails> | undefined;
|
|
359
222
|
};
|
|
360
223
|
|
|
361
224
|
export type RetrieveAgentRequestResponseFormatJsonSchema = {
|
|
@@ -408,7 +271,7 @@ export type RetrieveAgentRequestResponseFormatText = {
|
|
|
408
271
|
/**
|
|
409
272
|
* An object specifying the format that the model must output
|
|
410
273
|
*/
|
|
411
|
-
export type
|
|
274
|
+
export type RetrieveAgentRequestResponseFormat =
|
|
412
275
|
| RetrieveAgentRequestResponseFormatText
|
|
413
276
|
| RetrieveAgentRequestResponseFormatJSONObject
|
|
414
277
|
| RetrieveAgentRequestResponseFormatAgentsJSONSchema;
|
|
@@ -425,7 +288,7 @@ export type RetrieveAgentRequestResponseBodyResponseFormat =
|
|
|
425
288
|
*
|
|
426
289
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
427
290
|
*/
|
|
428
|
-
export const
|
|
291
|
+
export const RetrieveAgentRequestReasoningEffort = {
|
|
429
292
|
None: "none",
|
|
430
293
|
Minimal: "minimal",
|
|
431
294
|
Low: "low",
|
|
@@ -445,16 +308,16 @@ export const RetrieveAgentRequestResponseBodyReasoningEffort = {
|
|
|
445
308
|
*
|
|
446
309
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
447
310
|
*/
|
|
448
|
-
export type
|
|
449
|
-
typeof
|
|
311
|
+
export type RetrieveAgentRequestReasoningEffort = ClosedEnum<
|
|
312
|
+
typeof RetrieveAgentRequestReasoningEffort
|
|
450
313
|
>;
|
|
451
314
|
|
|
452
315
|
/**
|
|
453
316
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
454
317
|
*/
|
|
455
|
-
export type
|
|
318
|
+
export type RetrieveAgentRequestStop = string | Array<string>;
|
|
456
319
|
|
|
457
|
-
export type
|
|
320
|
+
export type RetrieveAgentRequestThinking =
|
|
458
321
|
| components.ThinkingConfigDisabledSchema
|
|
459
322
|
| components.ThinkingConfigEnabledSchema;
|
|
460
323
|
|
|
@@ -498,16 +361,16 @@ export type RetrieveAgentRequestToolChoice1 = ClosedEnum<
|
|
|
498
361
|
/**
|
|
499
362
|
* Controls which (if any) tool is called by the model.
|
|
500
363
|
*/
|
|
501
|
-
export type
|
|
364
|
+
export type RetrieveAgentRequestToolChoice =
|
|
502
365
|
| RetrieveAgentRequestToolChoice2
|
|
503
366
|
| RetrieveAgentRequestToolChoice1;
|
|
504
367
|
|
|
505
|
-
export const
|
|
368
|
+
export const RetrieveAgentRequestModalities = {
|
|
506
369
|
Text: "text",
|
|
507
370
|
Audio: "audio",
|
|
508
371
|
} as const;
|
|
509
|
-
export type
|
|
510
|
-
typeof
|
|
372
|
+
export type RetrieveAgentRequestModalities = ClosedEnum<
|
|
373
|
+
typeof RetrieveAgentRequestModalities
|
|
511
374
|
>;
|
|
512
375
|
|
|
513
376
|
/**
|
|
@@ -525,54 +388,53 @@ export type RetrieveAgentRequestId1 = ClosedEnum<
|
|
|
525
388
|
typeof RetrieveAgentRequestId1
|
|
526
389
|
>;
|
|
527
390
|
|
|
528
|
-
export type
|
|
529
|
-
| RetrieveAgentRequestId1
|
|
530
|
-
| string;
|
|
391
|
+
export type RetrieveAgentRequestId = RetrieveAgentRequestId1 | string;
|
|
531
392
|
|
|
532
393
|
/**
|
|
533
394
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
534
395
|
*/
|
|
535
|
-
export const
|
|
396
|
+
export const RetrieveAgentRequestAgentsResponseExecuteOn = {
|
|
536
397
|
Input: "input",
|
|
537
398
|
Output: "output",
|
|
538
399
|
} as const;
|
|
539
400
|
/**
|
|
540
401
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
541
402
|
*/
|
|
542
|
-
export type
|
|
543
|
-
|
|
403
|
+
export type RetrieveAgentRequestAgentsResponseExecuteOn = ClosedEnum<
|
|
404
|
+
typeof RetrieveAgentRequestAgentsResponseExecuteOn
|
|
405
|
+
>;
|
|
544
406
|
|
|
545
|
-
export type
|
|
407
|
+
export type RetrieveAgentRequestAgentsGuardrails = {
|
|
546
408
|
id: RetrieveAgentRequestId1 | string;
|
|
547
409
|
/**
|
|
548
410
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
549
411
|
*/
|
|
550
|
-
executeOn:
|
|
412
|
+
executeOn: RetrieveAgentRequestAgentsResponseExecuteOn;
|
|
551
413
|
};
|
|
552
414
|
|
|
553
|
-
export type
|
|
415
|
+
export type RetrieveAgentRequestFallbacks = {
|
|
554
416
|
/**
|
|
555
417
|
* Fallback model identifier
|
|
556
418
|
*/
|
|
557
419
|
model: string;
|
|
558
420
|
};
|
|
559
421
|
|
|
560
|
-
export const
|
|
422
|
+
export const RetrieveAgentRequestAgentsType = {
|
|
561
423
|
ExactMatch: "exact_match",
|
|
562
424
|
} as const;
|
|
563
|
-
export type
|
|
564
|
-
typeof
|
|
425
|
+
export type RetrieveAgentRequestAgentsType = ClosedEnum<
|
|
426
|
+
typeof RetrieveAgentRequestAgentsType
|
|
565
427
|
>;
|
|
566
428
|
|
|
567
429
|
/**
|
|
568
430
|
* Cache configuration for the request.
|
|
569
431
|
*/
|
|
570
|
-
export type
|
|
432
|
+
export type RetrieveAgentRequestCache = {
|
|
571
433
|
/**
|
|
572
434
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
573
435
|
*/
|
|
574
436
|
ttl: number;
|
|
575
|
-
type:
|
|
437
|
+
type: RetrieveAgentRequestAgentsType;
|
|
576
438
|
};
|
|
577
439
|
|
|
578
440
|
export const RetrieveAgentRequestLoadBalancerType = {
|
|
@@ -601,13 +463,13 @@ export type RetrieveAgentRequestLoadBalancer1 = {
|
|
|
601
463
|
/**
|
|
602
464
|
* Load balancer configuration for the request.
|
|
603
465
|
*/
|
|
604
|
-
export type
|
|
466
|
+
export type RetrieveAgentRequestLoadBalancer =
|
|
605
467
|
RetrieveAgentRequestLoadBalancer1;
|
|
606
468
|
|
|
607
469
|
/**
|
|
608
470
|
* 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.
|
|
609
471
|
*/
|
|
610
|
-
export type
|
|
472
|
+
export type RetrieveAgentRequestTimeout = {
|
|
611
473
|
/**
|
|
612
474
|
* Timeout value in milliseconds
|
|
613
475
|
*/
|
|
@@ -617,7 +479,7 @@ export type RetrieveAgentRequestResponseBodyTimeout = {
|
|
|
617
479
|
/**
|
|
618
480
|
* 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.
|
|
619
481
|
*/
|
|
620
|
-
export type
|
|
482
|
+
export type RetrieveAgentRequestParameters = {
|
|
621
483
|
/**
|
|
622
484
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
623
485
|
*/
|
|
@@ -662,7 +524,7 @@ export type RetrieveAgentRequestResponseBodyParameters = {
|
|
|
662
524
|
*
|
|
663
525
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
664
526
|
*/
|
|
665
|
-
reasoningEffort?:
|
|
527
|
+
reasoningEffort?: RetrieveAgentRequestReasoningEffort | undefined;
|
|
666
528
|
/**
|
|
667
529
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
668
530
|
*/
|
|
@@ -705,24 +567,19 @@ export type RetrieveAgentRequestResponseBodyParameters = {
|
|
|
705
567
|
/**
|
|
706
568
|
* 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"].
|
|
707
569
|
*/
|
|
708
|
-
modalities?:
|
|
709
|
-
| Array<RetrieveAgentRequestResponseBodyModalities>
|
|
710
|
-
| null
|
|
711
|
-
| undefined;
|
|
570
|
+
modalities?: Array<RetrieveAgentRequestModalities> | null | undefined;
|
|
712
571
|
/**
|
|
713
572
|
* A list of guardrails to apply to the request.
|
|
714
573
|
*/
|
|
715
|
-
guardrails?:
|
|
716
|
-
| Array<RetrieveAgentRequestResponseBodyAgentsGuardrails>
|
|
717
|
-
| undefined;
|
|
574
|
+
guardrails?: Array<RetrieveAgentRequestAgentsGuardrails> | undefined;
|
|
718
575
|
/**
|
|
719
576
|
* Array of fallback models to use if primary model fails
|
|
720
577
|
*/
|
|
721
|
-
fallbacks?: Array<
|
|
578
|
+
fallbacks?: Array<RetrieveAgentRequestFallbacks> | undefined;
|
|
722
579
|
/**
|
|
723
580
|
* Cache configuration for the request.
|
|
724
581
|
*/
|
|
725
|
-
cache?:
|
|
582
|
+
cache?: RetrieveAgentRequestCache | undefined;
|
|
726
583
|
/**
|
|
727
584
|
* Load balancer configuration for the request.
|
|
728
585
|
*/
|
|
@@ -730,13 +587,13 @@ export type RetrieveAgentRequestResponseBodyParameters = {
|
|
|
730
587
|
/**
|
|
731
588
|
* 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.
|
|
732
589
|
*/
|
|
733
|
-
timeout?:
|
|
590
|
+
timeout?: RetrieveAgentRequestTimeout | undefined;
|
|
734
591
|
};
|
|
735
592
|
|
|
736
593
|
/**
|
|
737
594
|
* 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).
|
|
738
595
|
*/
|
|
739
|
-
export type
|
|
596
|
+
export type RetrieveAgentRequestRetry = {
|
|
740
597
|
/**
|
|
741
598
|
* Number of retry attempts (1-5)
|
|
742
599
|
*/
|
|
@@ -1165,11 +1022,11 @@ export type RetrieveAgentRequestFallbackModelConfiguration2 = {
|
|
|
1165
1022
|
/**
|
|
1166
1023
|
* 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.
|
|
1167
1024
|
*/
|
|
1168
|
-
export type
|
|
1025
|
+
export type RetrieveAgentRequestFallbackModelConfiguration =
|
|
1169
1026
|
| RetrieveAgentRequestFallbackModelConfiguration2
|
|
1170
1027
|
| string;
|
|
1171
1028
|
|
|
1172
|
-
export type
|
|
1029
|
+
export type RetrieveAgentRequestModel = {
|
|
1173
1030
|
/**
|
|
1174
1031
|
* The database ID of the primary model
|
|
1175
1032
|
*/
|
|
@@ -1181,11 +1038,11 @@ export type ResponseBodyModel = {
|
|
|
1181
1038
|
/**
|
|
1182
1039
|
* 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.
|
|
1183
1040
|
*/
|
|
1184
|
-
parameters?:
|
|
1041
|
+
parameters?: RetrieveAgentRequestParameters | undefined;
|
|
1185
1042
|
/**
|
|
1186
1043
|
* 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).
|
|
1187
1044
|
*/
|
|
1188
|
-
retry?:
|
|
1045
|
+
retry?: RetrieveAgentRequestRetry | undefined;
|
|
1189
1046
|
/**
|
|
1190
1047
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
1191
1048
|
*/
|
|
@@ -1195,7 +1052,40 @@ export type ResponseBodyModel = {
|
|
|
1195
1052
|
| undefined;
|
|
1196
1053
|
};
|
|
1197
1054
|
|
|
1198
|
-
export type
|
|
1055
|
+
export type RetrieveAgentRequestHeaders = {
|
|
1056
|
+
/**
|
|
1057
|
+
* 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.
|
|
1058
|
+
*/
|
|
1059
|
+
value: string;
|
|
1060
|
+
encrypted: boolean;
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
1065
|
+
*/
|
|
1066
|
+
export type RetrieveAgentRequestA2AAgentConfiguration = {
|
|
1067
|
+
/**
|
|
1068
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
1069
|
+
*/
|
|
1070
|
+
agentUrl: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
1073
|
+
*/
|
|
1074
|
+
cardUrl?: string | undefined;
|
|
1075
|
+
/**
|
|
1076
|
+
* 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.
|
|
1077
|
+
*/
|
|
1078
|
+
headers?: { [k: string]: RetrieveAgentRequestHeaders } | undefined;
|
|
1079
|
+
/**
|
|
1080
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
1081
|
+
*/
|
|
1082
|
+
cachedCard?: any | undefined;
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Agent successfully retrieved. Returns the complete agent manifest with all configuration details, including models, tools, knowledge bases, and execution settings.
|
|
1087
|
+
*/
|
|
1088
|
+
export type RetrieveAgentRequestResponseBody = {
|
|
1199
1089
|
id: string;
|
|
1200
1090
|
/**
|
|
1201
1091
|
* Unique identifier for the agent within the workspace
|
|
@@ -1210,7 +1100,7 @@ export type RetrieveAgentRequestResponseBody1 = {
|
|
|
1210
1100
|
/**
|
|
1211
1101
|
* 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.
|
|
1212
1102
|
*/
|
|
1213
|
-
status:
|
|
1103
|
+
status: RetrieveAgentRequestStatus;
|
|
1214
1104
|
versionHash?: string | undefined;
|
|
1215
1105
|
/**
|
|
1216
1106
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -1229,10 +1119,8 @@ export type RetrieveAgentRequestResponseBody1 = {
|
|
|
1229
1119
|
/**
|
|
1230
1120
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1231
1121
|
*/
|
|
1232
|
-
teamOfAgents?:
|
|
1233
|
-
|
|
1234
|
-
| undefined;
|
|
1235
|
-
metrics?: RetrieveAgentRequestResponseBodyMetrics | undefined;
|
|
1122
|
+
teamOfAgents?: Array<RetrieveAgentRequestTeamOfAgents> | undefined;
|
|
1123
|
+
metrics?: RetrieveAgentRequestMetrics | undefined;
|
|
1236
1124
|
/**
|
|
1237
1125
|
* Extracted variables from agent instructions
|
|
1238
1126
|
*/
|
|
@@ -1240,29 +1128,24 @@ export type RetrieveAgentRequestResponseBody1 = {
|
|
|
1240
1128
|
/**
|
|
1241
1129
|
* Agent knowledge bases reference
|
|
1242
1130
|
*/
|
|
1243
|
-
knowledgeBases?:
|
|
1244
|
-
|
|
1245
|
-
| undefined;
|
|
1246
|
-
source?: RetrieveAgentRequestResponseBodySource | undefined;
|
|
1131
|
+
knowledgeBases?: Array<RetrieveAgentRequestKnowledgeBases> | undefined;
|
|
1132
|
+
source?: RetrieveAgentRequestSource | undefined;
|
|
1247
1133
|
/**
|
|
1248
|
-
* Orquesta-managed
|
|
1134
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
1249
1135
|
*/
|
|
1250
|
-
type:
|
|
1136
|
+
type: RetrieveAgentRequestType;
|
|
1251
1137
|
role: string;
|
|
1252
1138
|
description: string;
|
|
1253
1139
|
systemPrompt?: string | undefined;
|
|
1254
1140
|
instructions: string;
|
|
1255
|
-
settings?:
|
|
1256
|
-
model:
|
|
1141
|
+
settings?: RetrieveAgentRequestSettings | undefined;
|
|
1142
|
+
model: RetrieveAgentRequestModel;
|
|
1143
|
+
/**
|
|
1144
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
1145
|
+
*/
|
|
1146
|
+
a2a?: RetrieveAgentRequestA2AAgentConfiguration | undefined;
|
|
1257
1147
|
};
|
|
1258
1148
|
|
|
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
|
-
|
|
1266
1149
|
/** @internal */
|
|
1267
1150
|
export type RetrieveAgentRequestRequest$Outbound = {
|
|
1268
1151
|
agent_key: string;
|
|
@@ -1292,258 +1175,33 @@ export function retrieveAgentRequestRequestToJSON(
|
|
|
1292
1175
|
}
|
|
1293
1176
|
|
|
1294
1177
|
/** @internal */
|
|
1295
|
-
export const
|
|
1296
|
-
|
|
1297
|
-
|
|
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
|
-
}
|
|
1385
|
-
|
|
1386
|
-
/** @internal */
|
|
1387
|
-
export const RetrieveAgentRequestResponseBodyAgentsSource$inboundSchema:
|
|
1388
|
-
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyAgentsSource> = z
|
|
1389
|
-
.nativeEnum(RetrieveAgentRequestResponseBodyAgentsSource);
|
|
1390
|
-
|
|
1391
|
-
/** @internal */
|
|
1392
|
-
export const RetrieveAgentRequestResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
1393
|
-
RetrieveAgentRequestResponseBodyHeaders,
|
|
1394
|
-
z.ZodTypeDef,
|
|
1395
|
-
unknown
|
|
1396
|
-
> = z.object({
|
|
1397
|
-
value: z.string(),
|
|
1398
|
-
encrypted: z.boolean().default(false),
|
|
1399
|
-
});
|
|
1400
|
-
|
|
1401
|
-
export function retrieveAgentRequestResponseBodyHeadersFromJSON(
|
|
1402
|
-
jsonString: string,
|
|
1403
|
-
): SafeParseResult<
|
|
1404
|
-
RetrieveAgentRequestResponseBodyHeaders,
|
|
1405
|
-
SDKValidationError
|
|
1406
|
-
> {
|
|
1407
|
-
return safeParse(
|
|
1408
|
-
jsonString,
|
|
1409
|
-
(x) =>
|
|
1410
|
-
RetrieveAgentRequestResponseBodyHeaders$inboundSchema.parse(
|
|
1411
|
-
JSON.parse(x),
|
|
1412
|
-
),
|
|
1413
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyHeaders' from JSON`,
|
|
1414
|
-
);
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
/** @internal */
|
|
1418
|
-
export const ResponseBodyA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
1419
|
-
ResponseBodyA2AAgentConfiguration,
|
|
1420
|
-
z.ZodTypeDef,
|
|
1421
|
-
unknown
|
|
1422
|
-
> = z.object({
|
|
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(),
|
|
1455
|
-
display_name: z.string().optional(),
|
|
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
|
-
),
|
|
1469
|
-
).optional(),
|
|
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),
|
|
1486
|
-
}).transform((v) => {
|
|
1487
|
-
return remap$(v, {
|
|
1488
|
-
"_id": "id",
|
|
1489
|
-
"display_name": "displayName",
|
|
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",
|
|
1498
|
-
});
|
|
1499
|
-
});
|
|
1500
|
-
|
|
1501
|
-
export function retrieveAgentRequestResponseBody2FromJSON(
|
|
1502
|
-
jsonString: string,
|
|
1503
|
-
): SafeParseResult<RetrieveAgentRequestResponseBody2, SDKValidationError> {
|
|
1504
|
-
return safeParse(
|
|
1505
|
-
jsonString,
|
|
1506
|
-
(x) => RetrieveAgentRequestResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
1507
|
-
`Failed to parse 'RetrieveAgentRequestResponseBody2' from JSON`,
|
|
1508
|
-
);
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
/** @internal */
|
|
1512
|
-
export const RetrieveAgentRequestResponseBodyStatus$inboundSchema:
|
|
1513
|
-
z.ZodNativeEnum<typeof RetrieveAgentRequestResponseBodyStatus> = z.nativeEnum(
|
|
1514
|
-
RetrieveAgentRequestResponseBodyStatus,
|
|
1515
|
-
);
|
|
1178
|
+
export const RetrieveAgentRequestStatus$inboundSchema: z.ZodNativeEnum<
|
|
1179
|
+
typeof RetrieveAgentRequestStatus
|
|
1180
|
+
> = z.nativeEnum(RetrieveAgentRequestStatus);
|
|
1516
1181
|
|
|
1517
|
-
/** @internal */
|
|
1518
|
-
export const
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
});
|
|
1182
|
+
/** @internal */
|
|
1183
|
+
export const RetrieveAgentRequestTeamOfAgents$inboundSchema: z.ZodType<
|
|
1184
|
+
RetrieveAgentRequestTeamOfAgents,
|
|
1185
|
+
z.ZodTypeDef,
|
|
1186
|
+
unknown
|
|
1187
|
+
> = z.object({
|
|
1188
|
+
key: z.string(),
|
|
1189
|
+
role: z.string().optional(),
|
|
1190
|
+
});
|
|
1527
1191
|
|
|
1528
|
-
export function
|
|
1192
|
+
export function retrieveAgentRequestTeamOfAgentsFromJSON(
|
|
1529
1193
|
jsonString: string,
|
|
1530
|
-
): SafeParseResult<
|
|
1531
|
-
RetrieveAgentRequestResponseBodyTeamOfAgents,
|
|
1532
|
-
SDKValidationError
|
|
1533
|
-
> {
|
|
1194
|
+
): SafeParseResult<RetrieveAgentRequestTeamOfAgents, SDKValidationError> {
|
|
1534
1195
|
return safeParse(
|
|
1535
1196
|
jsonString,
|
|
1536
|
-
(x) =>
|
|
1537
|
-
|
|
1538
|
-
JSON.parse(x),
|
|
1539
|
-
),
|
|
1540
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyTeamOfAgents' from JSON`,
|
|
1197
|
+
(x) => RetrieveAgentRequestTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
1198
|
+
`Failed to parse 'RetrieveAgentRequestTeamOfAgents' from JSON`,
|
|
1541
1199
|
);
|
|
1542
1200
|
}
|
|
1543
1201
|
|
|
1544
1202
|
/** @internal */
|
|
1545
|
-
export const
|
|
1546
|
-
|
|
1203
|
+
export const RetrieveAgentRequestMetrics$inboundSchema: z.ZodType<
|
|
1204
|
+
RetrieveAgentRequestMetrics,
|
|
1547
1205
|
z.ZodTypeDef,
|
|
1548
1206
|
unknown
|
|
1549
1207
|
> = z.object({
|
|
@@ -1554,66 +1212,58 @@ export const RetrieveAgentRequestResponseBodyMetrics$inboundSchema: z.ZodType<
|
|
|
1554
1212
|
});
|
|
1555
1213
|
});
|
|
1556
1214
|
|
|
1557
|
-
export function
|
|
1215
|
+
export function retrieveAgentRequestMetricsFromJSON(
|
|
1558
1216
|
jsonString: string,
|
|
1559
|
-
): SafeParseResult<
|
|
1560
|
-
RetrieveAgentRequestResponseBodyMetrics,
|
|
1561
|
-
SDKValidationError
|
|
1562
|
-
> {
|
|
1217
|
+
): SafeParseResult<RetrieveAgentRequestMetrics, SDKValidationError> {
|
|
1563
1218
|
return safeParse(
|
|
1564
1219
|
jsonString,
|
|
1565
|
-
(x) =>
|
|
1566
|
-
|
|
1567
|
-
JSON.parse(x),
|
|
1568
|
-
),
|
|
1569
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyMetrics' from JSON`,
|
|
1220
|
+
(x) => RetrieveAgentRequestMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
1221
|
+
`Failed to parse 'RetrieveAgentRequestMetrics' from JSON`,
|
|
1570
1222
|
);
|
|
1571
1223
|
}
|
|
1572
1224
|
|
|
1573
1225
|
/** @internal */
|
|
1574
|
-
export const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
"knowledge_id": "knowledgeId",
|
|
1584
|
-
});
|
|
1226
|
+
export const RetrieveAgentRequestKnowledgeBases$inboundSchema: z.ZodType<
|
|
1227
|
+
RetrieveAgentRequestKnowledgeBases,
|
|
1228
|
+
z.ZodTypeDef,
|
|
1229
|
+
unknown
|
|
1230
|
+
> = z.object({
|
|
1231
|
+
knowledge_id: z.string(),
|
|
1232
|
+
}).transform((v) => {
|
|
1233
|
+
return remap$(v, {
|
|
1234
|
+
"knowledge_id": "knowledgeId",
|
|
1585
1235
|
});
|
|
1236
|
+
});
|
|
1586
1237
|
|
|
1587
|
-
export function
|
|
1238
|
+
export function retrieveAgentRequestKnowledgeBasesFromJSON(
|
|
1588
1239
|
jsonString: string,
|
|
1589
|
-
): SafeParseResult<
|
|
1590
|
-
RetrieveAgentRequestResponseBodyKnowledgeBases,
|
|
1591
|
-
SDKValidationError
|
|
1592
|
-
> {
|
|
1240
|
+
): SafeParseResult<RetrieveAgentRequestKnowledgeBases, SDKValidationError> {
|
|
1593
1241
|
return safeParse(
|
|
1594
1242
|
jsonString,
|
|
1595
1243
|
(x) =>
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
),
|
|
1599
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyKnowledgeBases' from JSON`,
|
|
1244
|
+
RetrieveAgentRequestKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1245
|
+
`Failed to parse 'RetrieveAgentRequestKnowledgeBases' from JSON`,
|
|
1600
1246
|
);
|
|
1601
1247
|
}
|
|
1602
1248
|
|
|
1603
1249
|
/** @internal */
|
|
1604
|
-
export const
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1250
|
+
export const RetrieveAgentRequestSource$inboundSchema: z.ZodNativeEnum<
|
|
1251
|
+
typeof RetrieveAgentRequestSource
|
|
1252
|
+
> = z.nativeEnum(RetrieveAgentRequestSource);
|
|
1253
|
+
|
|
1254
|
+
/** @internal */
|
|
1255
|
+
export const RetrieveAgentRequestType$inboundSchema: z.ZodNativeEnum<
|
|
1256
|
+
typeof RetrieveAgentRequestType
|
|
1257
|
+
> = z.nativeEnum(RetrieveAgentRequestType);
|
|
1608
1258
|
|
|
1609
1259
|
/** @internal */
|
|
1610
|
-
export const
|
|
1611
|
-
z.ZodNativeEnum<typeof
|
|
1612
|
-
|
|
1260
|
+
export const RetrieveAgentRequestToolApprovalRequired$inboundSchema:
|
|
1261
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestToolApprovalRequired> = z
|
|
1262
|
+
.nativeEnum(RetrieveAgentRequestToolApprovalRequired);
|
|
1613
1263
|
|
|
1614
1264
|
/** @internal */
|
|
1615
|
-
export const
|
|
1616
|
-
|
|
1265
|
+
export const RetrieveAgentRequestConditions$inboundSchema: z.ZodType<
|
|
1266
|
+
RetrieveAgentRequestConditions,
|
|
1617
1267
|
z.ZodTypeDef,
|
|
1618
1268
|
unknown
|
|
1619
1269
|
> = z.object({
|
|
@@ -1622,19 +1272,19 @@ export const ResponseBodyConditions$inboundSchema: z.ZodType<
|
|
|
1622
1272
|
value: z.string(),
|
|
1623
1273
|
});
|
|
1624
1274
|
|
|
1625
|
-
export function
|
|
1275
|
+
export function retrieveAgentRequestConditionsFromJSON(
|
|
1626
1276
|
jsonString: string,
|
|
1627
|
-
): SafeParseResult<
|
|
1277
|
+
): SafeParseResult<RetrieveAgentRequestConditions, SDKValidationError> {
|
|
1628
1278
|
return safeParse(
|
|
1629
1279
|
jsonString,
|
|
1630
|
-
(x) =>
|
|
1631
|
-
`Failed to parse '
|
|
1280
|
+
(x) => RetrieveAgentRequestConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1281
|
+
`Failed to parse 'RetrieveAgentRequestConditions' from JSON`,
|
|
1632
1282
|
);
|
|
1633
1283
|
}
|
|
1634
1284
|
|
|
1635
1285
|
/** @internal */
|
|
1636
|
-
export const
|
|
1637
|
-
|
|
1286
|
+
export const RetrieveAgentRequestTools$inboundSchema: z.ZodType<
|
|
1287
|
+
RetrieveAgentRequestTools,
|
|
1638
1288
|
z.ZodTypeDef,
|
|
1639
1289
|
unknown
|
|
1640
1290
|
> = z.object({
|
|
@@ -1645,8 +1295,9 @@ export const RetrieveAgentRequestResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1645
1295
|
description: z.string().optional(),
|
|
1646
1296
|
requires_approval: z.boolean().default(false),
|
|
1647
1297
|
tool_id: z.string().optional(),
|
|
1648
|
-
conditions: z.array(
|
|
1649
|
-
.
|
|
1298
|
+
conditions: z.array(
|
|
1299
|
+
z.lazy(() => RetrieveAgentRequestConditions$inboundSchema),
|
|
1300
|
+
).optional(),
|
|
1650
1301
|
timeout: z.number().default(120),
|
|
1651
1302
|
}).transform((v) => {
|
|
1652
1303
|
return remap$(v, {
|
|
@@ -1657,108 +1308,96 @@ export const RetrieveAgentRequestResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1657
1308
|
});
|
|
1658
1309
|
});
|
|
1659
1310
|
|
|
1660
|
-
export function
|
|
1311
|
+
export function retrieveAgentRequestToolsFromJSON(
|
|
1661
1312
|
jsonString: string,
|
|
1662
|
-
): SafeParseResult<
|
|
1313
|
+
): SafeParseResult<RetrieveAgentRequestTools, SDKValidationError> {
|
|
1663
1314
|
return safeParse(
|
|
1664
1315
|
jsonString,
|
|
1665
|
-
(x) =>
|
|
1666
|
-
|
|
1667
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyTools' from JSON`,
|
|
1316
|
+
(x) => RetrieveAgentRequestTools$inboundSchema.parse(JSON.parse(x)),
|
|
1317
|
+
`Failed to parse 'RetrieveAgentRequestTools' from JSON`,
|
|
1668
1318
|
);
|
|
1669
1319
|
}
|
|
1670
1320
|
|
|
1671
1321
|
/** @internal */
|
|
1672
|
-
export const
|
|
1673
|
-
|
|
1674
|
-
|
|
1322
|
+
export const RetrieveAgentRequestExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1323
|
+
typeof RetrieveAgentRequestExecuteOn
|
|
1324
|
+
> = z.nativeEnum(RetrieveAgentRequestExecuteOn);
|
|
1675
1325
|
|
|
1676
1326
|
/** @internal */
|
|
1677
|
-
export const
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1327
|
+
export const RetrieveAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
1328
|
+
RetrieveAgentRequestEvaluators,
|
|
1329
|
+
z.ZodTypeDef,
|
|
1330
|
+
unknown
|
|
1331
|
+
> = z.object({
|
|
1332
|
+
id: z.string(),
|
|
1333
|
+
sample_rate: z.number().default(50),
|
|
1334
|
+
execute_on: RetrieveAgentRequestExecuteOn$inboundSchema,
|
|
1335
|
+
}).transform((v) => {
|
|
1336
|
+
return remap$(v, {
|
|
1337
|
+
"sample_rate": "sampleRate",
|
|
1338
|
+
"execute_on": "executeOn",
|
|
1339
|
+
});
|
|
1340
|
+
});
|
|
1689
1341
|
|
|
1690
|
-
export function
|
|
1342
|
+
export function retrieveAgentRequestEvaluatorsFromJSON(
|
|
1691
1343
|
jsonString: string,
|
|
1692
|
-
): SafeParseResult<
|
|
1693
|
-
RetrieveAgentRequestResponseBodyEvaluators,
|
|
1694
|
-
SDKValidationError
|
|
1695
|
-
> {
|
|
1344
|
+
): SafeParseResult<RetrieveAgentRequestEvaluators, SDKValidationError> {
|
|
1696
1345
|
return safeParse(
|
|
1697
1346
|
jsonString,
|
|
1698
|
-
(x) =>
|
|
1699
|
-
|
|
1700
|
-
JSON.parse(x),
|
|
1701
|
-
),
|
|
1702
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyEvaluators' from JSON`,
|
|
1347
|
+
(x) => RetrieveAgentRequestEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
1348
|
+
`Failed to parse 'RetrieveAgentRequestEvaluators' from JSON`,
|
|
1703
1349
|
);
|
|
1704
1350
|
}
|
|
1705
1351
|
|
|
1706
1352
|
/** @internal */
|
|
1707
|
-
export const
|
|
1708
|
-
|
|
1709
|
-
|
|
1353
|
+
export const RetrieveAgentRequestAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1354
|
+
typeof RetrieveAgentRequestAgentsExecuteOn
|
|
1355
|
+
> = z.nativeEnum(RetrieveAgentRequestAgentsExecuteOn);
|
|
1710
1356
|
|
|
1711
1357
|
/** @internal */
|
|
1712
|
-
export const
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1358
|
+
export const RetrieveAgentRequestGuardrails$inboundSchema: z.ZodType<
|
|
1359
|
+
RetrieveAgentRequestGuardrails,
|
|
1360
|
+
z.ZodTypeDef,
|
|
1361
|
+
unknown
|
|
1362
|
+
> = z.object({
|
|
1363
|
+
id: z.string(),
|
|
1364
|
+
sample_rate: z.number().default(50),
|
|
1365
|
+
execute_on: RetrieveAgentRequestAgentsExecuteOn$inboundSchema,
|
|
1366
|
+
}).transform((v) => {
|
|
1367
|
+
return remap$(v, {
|
|
1368
|
+
"sample_rate": "sampleRate",
|
|
1369
|
+
"execute_on": "executeOn",
|
|
1370
|
+
});
|
|
1371
|
+
});
|
|
1724
1372
|
|
|
1725
|
-
export function
|
|
1373
|
+
export function retrieveAgentRequestGuardrailsFromJSON(
|
|
1726
1374
|
jsonString: string,
|
|
1727
|
-
): SafeParseResult<
|
|
1728
|
-
RetrieveAgentRequestResponseBodyGuardrails,
|
|
1729
|
-
SDKValidationError
|
|
1730
|
-
> {
|
|
1375
|
+
): SafeParseResult<RetrieveAgentRequestGuardrails, SDKValidationError> {
|
|
1731
1376
|
return safeParse(
|
|
1732
1377
|
jsonString,
|
|
1733
|
-
(x) =>
|
|
1734
|
-
|
|
1735
|
-
JSON.parse(x),
|
|
1736
|
-
),
|
|
1737
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyGuardrails' from JSON`,
|
|
1378
|
+
(x) => RetrieveAgentRequestGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1379
|
+
`Failed to parse 'RetrieveAgentRequestGuardrails' from JSON`,
|
|
1738
1380
|
);
|
|
1739
1381
|
}
|
|
1740
1382
|
|
|
1741
1383
|
/** @internal */
|
|
1742
|
-
export const
|
|
1743
|
-
|
|
1384
|
+
export const RetrieveAgentRequestSettings$inboundSchema: z.ZodType<
|
|
1385
|
+
RetrieveAgentRequestSettings,
|
|
1744
1386
|
z.ZodTypeDef,
|
|
1745
1387
|
unknown
|
|
1746
1388
|
> = z.object({
|
|
1747
1389
|
max_iterations: z.number().int().default(100),
|
|
1748
1390
|
max_execution_time: z.number().int().default(600),
|
|
1749
1391
|
max_cost: z.number().default(0),
|
|
1750
|
-
tool_approval_required:
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
),
|
|
1754
|
-
tools: z.array(
|
|
1755
|
-
z.lazy(() => RetrieveAgentRequestResponseBodyTools$inboundSchema),
|
|
1756
|
-
).optional(),
|
|
1392
|
+
tool_approval_required: RetrieveAgentRequestToolApprovalRequired$inboundSchema
|
|
1393
|
+
.default("respect_tool"),
|
|
1394
|
+
tools: z.array(z.lazy(() => RetrieveAgentRequestTools$inboundSchema))
|
|
1395
|
+
.optional(),
|
|
1757
1396
|
evaluators: z.array(
|
|
1758
|
-
z.lazy(() =>
|
|
1397
|
+
z.lazy(() => RetrieveAgentRequestEvaluators$inboundSchema),
|
|
1759
1398
|
).optional(),
|
|
1760
1399
|
guardrails: z.array(
|
|
1761
|
-
z.lazy(() =>
|
|
1400
|
+
z.lazy(() => RetrieveAgentRequestGuardrails$inboundSchema),
|
|
1762
1401
|
).optional(),
|
|
1763
1402
|
}).transform((v) => {
|
|
1764
1403
|
return remap$(v, {
|
|
@@ -1769,19 +1408,13 @@ export const RetrieveAgentRequestResponseBodySettings$inboundSchema: z.ZodType<
|
|
|
1769
1408
|
});
|
|
1770
1409
|
});
|
|
1771
1410
|
|
|
1772
|
-
export function
|
|
1411
|
+
export function retrieveAgentRequestSettingsFromJSON(
|
|
1773
1412
|
jsonString: string,
|
|
1774
|
-
): SafeParseResult<
|
|
1775
|
-
RetrieveAgentRequestResponseBodySettings,
|
|
1776
|
-
SDKValidationError
|
|
1777
|
-
> {
|
|
1413
|
+
): SafeParseResult<RetrieveAgentRequestSettings, SDKValidationError> {
|
|
1778
1414
|
return safeParse(
|
|
1779
1415
|
jsonString,
|
|
1780
|
-
(x) =>
|
|
1781
|
-
|
|
1782
|
-
JSON.parse(x),
|
|
1783
|
-
),
|
|
1784
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodySettings' from JSON`,
|
|
1416
|
+
(x) => RetrieveAgentRequestSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1417
|
+
`Failed to parse 'RetrieveAgentRequestSettings' from JSON`,
|
|
1785
1418
|
);
|
|
1786
1419
|
}
|
|
1787
1420
|
|
|
@@ -1894,61 +1527,54 @@ export function retrieveAgentRequestResponseFormatTextFromJSON(
|
|
|
1894
1527
|
}
|
|
1895
1528
|
|
|
1896
1529
|
/** @internal */
|
|
1897
|
-
export const
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
]);
|
|
1530
|
+
export const RetrieveAgentRequestResponseFormat$inboundSchema: z.ZodType<
|
|
1531
|
+
RetrieveAgentRequestResponseFormat,
|
|
1532
|
+
z.ZodTypeDef,
|
|
1533
|
+
unknown
|
|
1534
|
+
> = z.union([
|
|
1535
|
+
z.lazy(() => RetrieveAgentRequestResponseFormatText$inboundSchema),
|
|
1536
|
+
z.lazy(() => RetrieveAgentRequestResponseFormatJSONObject$inboundSchema),
|
|
1537
|
+
z.lazy(() =>
|
|
1538
|
+
RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema
|
|
1539
|
+
),
|
|
1540
|
+
]);
|
|
1909
1541
|
|
|
1910
|
-
export function
|
|
1542
|
+
export function retrieveAgentRequestResponseFormatFromJSON(
|
|
1911
1543
|
jsonString: string,
|
|
1912
|
-
): SafeParseResult<
|
|
1913
|
-
RetrieveAgentRequestResponseBodyResponseFormat,
|
|
1914
|
-
SDKValidationError
|
|
1915
|
-
> {
|
|
1544
|
+
): SafeParseResult<RetrieveAgentRequestResponseFormat, SDKValidationError> {
|
|
1916
1545
|
return safeParse(
|
|
1917
1546
|
jsonString,
|
|
1918
1547
|
(x) =>
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
),
|
|
1922
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyResponseFormat' from JSON`,
|
|
1548
|
+
RetrieveAgentRequestResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1549
|
+
`Failed to parse 'RetrieveAgentRequestResponseFormat' from JSON`,
|
|
1923
1550
|
);
|
|
1924
1551
|
}
|
|
1925
1552
|
|
|
1926
1553
|
/** @internal */
|
|
1927
|
-
export const
|
|
1928
|
-
|
|
1929
|
-
|
|
1554
|
+
export const RetrieveAgentRequestReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1555
|
+
typeof RetrieveAgentRequestReasoningEffort
|
|
1556
|
+
> = z.nativeEnum(RetrieveAgentRequestReasoningEffort);
|
|
1930
1557
|
|
|
1931
1558
|
/** @internal */
|
|
1932
|
-
export const
|
|
1933
|
-
|
|
1559
|
+
export const RetrieveAgentRequestStop$inboundSchema: z.ZodType<
|
|
1560
|
+
RetrieveAgentRequestStop,
|
|
1934
1561
|
z.ZodTypeDef,
|
|
1935
1562
|
unknown
|
|
1936
1563
|
> = z.union([z.string(), z.array(z.string())]);
|
|
1937
1564
|
|
|
1938
|
-
export function
|
|
1565
|
+
export function retrieveAgentRequestStopFromJSON(
|
|
1939
1566
|
jsonString: string,
|
|
1940
|
-
): SafeParseResult<
|
|
1567
|
+
): SafeParseResult<RetrieveAgentRequestStop, SDKValidationError> {
|
|
1941
1568
|
return safeParse(
|
|
1942
1569
|
jsonString,
|
|
1943
|
-
(x) =>
|
|
1944
|
-
|
|
1945
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyStop' from JSON`,
|
|
1570
|
+
(x) => RetrieveAgentRequestStop$inboundSchema.parse(JSON.parse(x)),
|
|
1571
|
+
`Failed to parse 'RetrieveAgentRequestStop' from JSON`,
|
|
1946
1572
|
);
|
|
1947
1573
|
}
|
|
1948
1574
|
|
|
1949
1575
|
/** @internal */
|
|
1950
|
-
export const
|
|
1951
|
-
|
|
1576
|
+
export const RetrieveAgentRequestThinking$inboundSchema: z.ZodType<
|
|
1577
|
+
RetrieveAgentRequestThinking,
|
|
1952
1578
|
z.ZodTypeDef,
|
|
1953
1579
|
unknown
|
|
1954
1580
|
> = z.union([
|
|
@@ -1956,19 +1582,13 @@ export const RetrieveAgentRequestResponseBodyThinking$inboundSchema: z.ZodType<
|
|
|
1956
1582
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1957
1583
|
]);
|
|
1958
1584
|
|
|
1959
|
-
export function
|
|
1585
|
+
export function retrieveAgentRequestThinkingFromJSON(
|
|
1960
1586
|
jsonString: string,
|
|
1961
|
-
): SafeParseResult<
|
|
1962
|
-
RetrieveAgentRequestResponseBodyThinking,
|
|
1963
|
-
SDKValidationError
|
|
1964
|
-
> {
|
|
1587
|
+
): SafeParseResult<RetrieveAgentRequestThinking, SDKValidationError> {
|
|
1965
1588
|
return safeParse(
|
|
1966
1589
|
jsonString,
|
|
1967
|
-
(x) =>
|
|
1968
|
-
|
|
1969
|
-
JSON.parse(x),
|
|
1970
|
-
),
|
|
1971
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyThinking' from JSON`,
|
|
1590
|
+
(x) => RetrieveAgentRequestThinking$inboundSchema.parse(JSON.parse(x)),
|
|
1591
|
+
`Failed to parse 'RetrieveAgentRequestThinking' from JSON`,
|
|
1972
1592
|
);
|
|
1973
1593
|
}
|
|
1974
1594
|
|
|
@@ -2023,33 +1643,29 @@ export const RetrieveAgentRequestToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
|
2023
1643
|
> = z.nativeEnum(RetrieveAgentRequestToolChoice1);
|
|
2024
1644
|
|
|
2025
1645
|
/** @internal */
|
|
2026
|
-
export const
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
1646
|
+
export const RetrieveAgentRequestToolChoice$inboundSchema: z.ZodType<
|
|
1647
|
+
RetrieveAgentRequestToolChoice,
|
|
1648
|
+
z.ZodTypeDef,
|
|
1649
|
+
unknown
|
|
1650
|
+
> = z.union([
|
|
1651
|
+
z.lazy(() => RetrieveAgentRequestToolChoice2$inboundSchema),
|
|
1652
|
+
RetrieveAgentRequestToolChoice1$inboundSchema,
|
|
1653
|
+
]);
|
|
2032
1654
|
|
|
2033
|
-
export function
|
|
1655
|
+
export function retrieveAgentRequestToolChoiceFromJSON(
|
|
2034
1656
|
jsonString: string,
|
|
2035
|
-
): SafeParseResult<
|
|
2036
|
-
RetrieveAgentRequestResponseBodyToolChoice,
|
|
2037
|
-
SDKValidationError
|
|
2038
|
-
> {
|
|
1657
|
+
): SafeParseResult<RetrieveAgentRequestToolChoice, SDKValidationError> {
|
|
2039
1658
|
return safeParse(
|
|
2040
1659
|
jsonString,
|
|
2041
|
-
(x) =>
|
|
2042
|
-
|
|
2043
|
-
JSON.parse(x),
|
|
2044
|
-
),
|
|
2045
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyToolChoice' from JSON`,
|
|
1660
|
+
(x) => RetrieveAgentRequestToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
1661
|
+
`Failed to parse 'RetrieveAgentRequestToolChoice' from JSON`,
|
|
2046
1662
|
);
|
|
2047
1663
|
}
|
|
2048
1664
|
|
|
2049
1665
|
/** @internal */
|
|
2050
|
-
export const
|
|
2051
|
-
|
|
2052
|
-
|
|
1666
|
+
export const RetrieveAgentRequestModalities$inboundSchema: z.ZodNativeEnum<
|
|
1667
|
+
typeof RetrieveAgentRequestModalities
|
|
1668
|
+
> = z.nativeEnum(RetrieveAgentRequestModalities);
|
|
2053
1669
|
|
|
2054
1670
|
/** @internal */
|
|
2055
1671
|
export const RetrieveAgentRequestId1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -2057,109 +1673,93 @@ export const RetrieveAgentRequestId1$inboundSchema: z.ZodNativeEnum<
|
|
|
2057
1673
|
> = z.nativeEnum(RetrieveAgentRequestId1);
|
|
2058
1674
|
|
|
2059
1675
|
/** @internal */
|
|
2060
|
-
export const
|
|
2061
|
-
|
|
1676
|
+
export const RetrieveAgentRequestId$inboundSchema: z.ZodType<
|
|
1677
|
+
RetrieveAgentRequestId,
|
|
2062
1678
|
z.ZodTypeDef,
|
|
2063
1679
|
unknown
|
|
2064
1680
|
> = z.union([RetrieveAgentRequestId1$inboundSchema, z.string()]);
|
|
2065
1681
|
|
|
2066
|
-
export function
|
|
1682
|
+
export function retrieveAgentRequestIdFromJSON(
|
|
2067
1683
|
jsonString: string,
|
|
2068
|
-
): SafeParseResult<
|
|
1684
|
+
): SafeParseResult<RetrieveAgentRequestId, SDKValidationError> {
|
|
2069
1685
|
return safeParse(
|
|
2070
1686
|
jsonString,
|
|
2071
|
-
(x) =>
|
|
2072
|
-
|
|
2073
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyId' from JSON`,
|
|
1687
|
+
(x) => RetrieveAgentRequestId$inboundSchema.parse(JSON.parse(x)),
|
|
1688
|
+
`Failed to parse 'RetrieveAgentRequestId' from JSON`,
|
|
2074
1689
|
);
|
|
2075
1690
|
}
|
|
2076
1691
|
|
|
2077
1692
|
/** @internal */
|
|
2078
|
-
export const
|
|
2079
|
-
z.ZodNativeEnum<
|
|
2080
|
-
|
|
2081
|
-
> = z.nativeEnum(RetrieveAgentRequestResponseBodyAgentsResponseExecuteOn);
|
|
1693
|
+
export const RetrieveAgentRequestAgentsResponseExecuteOn$inboundSchema:
|
|
1694
|
+
z.ZodNativeEnum<typeof RetrieveAgentRequestAgentsResponseExecuteOn> = z
|
|
1695
|
+
.nativeEnum(RetrieveAgentRequestAgentsResponseExecuteOn);
|
|
2082
1696
|
|
|
2083
1697
|
/** @internal */
|
|
2084
|
-
export const
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
return remap$(v, {
|
|
2095
|
-
"execute_on": "executeOn",
|
|
2096
|
-
});
|
|
1698
|
+
export const RetrieveAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
|
|
1699
|
+
RetrieveAgentRequestAgentsGuardrails,
|
|
1700
|
+
z.ZodTypeDef,
|
|
1701
|
+
unknown
|
|
1702
|
+
> = z.object({
|
|
1703
|
+
id: z.union([RetrieveAgentRequestId1$inboundSchema, z.string()]),
|
|
1704
|
+
execute_on: RetrieveAgentRequestAgentsResponseExecuteOn$inboundSchema,
|
|
1705
|
+
}).transform((v) => {
|
|
1706
|
+
return remap$(v, {
|
|
1707
|
+
"execute_on": "executeOn",
|
|
2097
1708
|
});
|
|
1709
|
+
});
|
|
2098
1710
|
|
|
2099
|
-
export function
|
|
1711
|
+
export function retrieveAgentRequestAgentsGuardrailsFromJSON(
|
|
2100
1712
|
jsonString: string,
|
|
2101
|
-
): SafeParseResult<
|
|
2102
|
-
RetrieveAgentRequestResponseBodyAgentsGuardrails,
|
|
2103
|
-
SDKValidationError
|
|
2104
|
-
> {
|
|
1713
|
+
): SafeParseResult<RetrieveAgentRequestAgentsGuardrails, SDKValidationError> {
|
|
2105
1714
|
return safeParse(
|
|
2106
1715
|
jsonString,
|
|
2107
1716
|
(x) =>
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
),
|
|
2111
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyAgentsGuardrails' from JSON`,
|
|
1717
|
+
RetrieveAgentRequestAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1718
|
+
`Failed to parse 'RetrieveAgentRequestAgentsGuardrails' from JSON`,
|
|
2112
1719
|
);
|
|
2113
1720
|
}
|
|
2114
1721
|
|
|
2115
1722
|
/** @internal */
|
|
2116
|
-
export const
|
|
2117
|
-
|
|
1723
|
+
export const RetrieveAgentRequestFallbacks$inboundSchema: z.ZodType<
|
|
1724
|
+
RetrieveAgentRequestFallbacks,
|
|
2118
1725
|
z.ZodTypeDef,
|
|
2119
1726
|
unknown
|
|
2120
1727
|
> = z.object({
|
|
2121
1728
|
model: z.string(),
|
|
2122
1729
|
});
|
|
2123
1730
|
|
|
2124
|
-
export function
|
|
1731
|
+
export function retrieveAgentRequestFallbacksFromJSON(
|
|
2125
1732
|
jsonString: string,
|
|
2126
|
-
): SafeParseResult<
|
|
2127
|
-
RetrieveAgentRequestResponseBodyFallbacks,
|
|
2128
|
-
SDKValidationError
|
|
2129
|
-
> {
|
|
1733
|
+
): SafeParseResult<RetrieveAgentRequestFallbacks, SDKValidationError> {
|
|
2130
1734
|
return safeParse(
|
|
2131
1735
|
jsonString,
|
|
2132
|
-
(x) =>
|
|
2133
|
-
|
|
2134
|
-
JSON.parse(x),
|
|
2135
|
-
),
|
|
2136
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyFallbacks' from JSON`,
|
|
1736
|
+
(x) => RetrieveAgentRequestFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
1737
|
+
`Failed to parse 'RetrieveAgentRequestFallbacks' from JSON`,
|
|
2137
1738
|
);
|
|
2138
1739
|
}
|
|
2139
1740
|
|
|
2140
1741
|
/** @internal */
|
|
2141
|
-
export const
|
|
2142
|
-
|
|
2143
|
-
|
|
1742
|
+
export const RetrieveAgentRequestAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
1743
|
+
typeof RetrieveAgentRequestAgentsType
|
|
1744
|
+
> = z.nativeEnum(RetrieveAgentRequestAgentsType);
|
|
2144
1745
|
|
|
2145
1746
|
/** @internal */
|
|
2146
|
-
export const
|
|
2147
|
-
|
|
1747
|
+
export const RetrieveAgentRequestCache$inboundSchema: z.ZodType<
|
|
1748
|
+
RetrieveAgentRequestCache,
|
|
2148
1749
|
z.ZodTypeDef,
|
|
2149
1750
|
unknown
|
|
2150
1751
|
> = z.object({
|
|
2151
1752
|
ttl: z.number().default(1800),
|
|
2152
|
-
type:
|
|
1753
|
+
type: RetrieveAgentRequestAgentsType$inboundSchema,
|
|
2153
1754
|
});
|
|
2154
1755
|
|
|
2155
|
-
export function
|
|
1756
|
+
export function retrieveAgentRequestCacheFromJSON(
|
|
2156
1757
|
jsonString: string,
|
|
2157
|
-
): SafeParseResult<
|
|
1758
|
+
): SafeParseResult<RetrieveAgentRequestCache, SDKValidationError> {
|
|
2158
1759
|
return safeParse(
|
|
2159
1760
|
jsonString,
|
|
2160
|
-
(x) =>
|
|
2161
|
-
|
|
2162
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyCache' from JSON`,
|
|
1761
|
+
(x) => RetrieveAgentRequestCache$inboundSchema.parse(JSON.parse(x)),
|
|
1762
|
+
`Failed to parse 'RetrieveAgentRequestCache' from JSON`,
|
|
2163
1763
|
);
|
|
2164
1764
|
}
|
|
2165
1765
|
|
|
@@ -2213,32 +1813,25 @@ export function retrieveAgentRequestLoadBalancer1FromJSON(
|
|
|
2213
1813
|
}
|
|
2214
1814
|
|
|
2215
1815
|
/** @internal */
|
|
2216
|
-
export const
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
> = z.lazy(() => RetrieveAgentRequestLoadBalancer1$inboundSchema);
|
|
1816
|
+
export const RetrieveAgentRequestLoadBalancer$inboundSchema: z.ZodType<
|
|
1817
|
+
RetrieveAgentRequestLoadBalancer,
|
|
1818
|
+
z.ZodTypeDef,
|
|
1819
|
+
unknown
|
|
1820
|
+
> = z.lazy(() => RetrieveAgentRequestLoadBalancer1$inboundSchema);
|
|
2222
1821
|
|
|
2223
|
-
export function
|
|
1822
|
+
export function retrieveAgentRequestLoadBalancerFromJSON(
|
|
2224
1823
|
jsonString: string,
|
|
2225
|
-
): SafeParseResult<
|
|
2226
|
-
RetrieveAgentRequestResponseBodyLoadBalancer,
|
|
2227
|
-
SDKValidationError
|
|
2228
|
-
> {
|
|
1824
|
+
): SafeParseResult<RetrieveAgentRequestLoadBalancer, SDKValidationError> {
|
|
2229
1825
|
return safeParse(
|
|
2230
1826
|
jsonString,
|
|
2231
|
-
(x) =>
|
|
2232
|
-
|
|
2233
|
-
JSON.parse(x),
|
|
2234
|
-
),
|
|
2235
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyLoadBalancer' from JSON`,
|
|
1827
|
+
(x) => RetrieveAgentRequestLoadBalancer$inboundSchema.parse(JSON.parse(x)),
|
|
1828
|
+
`Failed to parse 'RetrieveAgentRequestLoadBalancer' from JSON`,
|
|
2236
1829
|
);
|
|
2237
1830
|
}
|
|
2238
1831
|
|
|
2239
1832
|
/** @internal */
|
|
2240
|
-
export const
|
|
2241
|
-
|
|
1833
|
+
export const RetrieveAgentRequestTimeout$inboundSchema: z.ZodType<
|
|
1834
|
+
RetrieveAgentRequestTimeout,
|
|
2242
1835
|
z.ZodTypeDef,
|
|
2243
1836
|
unknown
|
|
2244
1837
|
> = z.object({
|
|
@@ -2249,112 +1842,91 @@ export const RetrieveAgentRequestResponseBodyTimeout$inboundSchema: z.ZodType<
|
|
|
2249
1842
|
});
|
|
2250
1843
|
});
|
|
2251
1844
|
|
|
2252
|
-
export function
|
|
1845
|
+
export function retrieveAgentRequestTimeoutFromJSON(
|
|
2253
1846
|
jsonString: string,
|
|
2254
|
-
): SafeParseResult<
|
|
2255
|
-
RetrieveAgentRequestResponseBodyTimeout,
|
|
2256
|
-
SDKValidationError
|
|
2257
|
-
> {
|
|
1847
|
+
): SafeParseResult<RetrieveAgentRequestTimeout, SDKValidationError> {
|
|
2258
1848
|
return safeParse(
|
|
2259
1849
|
jsonString,
|
|
2260
|
-
(x) =>
|
|
2261
|
-
|
|
2262
|
-
JSON.parse(x),
|
|
2263
|
-
),
|
|
2264
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyTimeout' from JSON`,
|
|
1850
|
+
(x) => RetrieveAgentRequestTimeout$inboundSchema.parse(JSON.parse(x)),
|
|
1851
|
+
`Failed to parse 'RetrieveAgentRequestTimeout' from JSON`,
|
|
2265
1852
|
);
|
|
2266
1853
|
}
|
|
2267
1854
|
|
|
2268
1855
|
/** @internal */
|
|
2269
|
-
export const
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
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
|
-
});
|
|
1856
|
+
export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
|
|
1857
|
+
RetrieveAgentRequestParameters,
|
|
1858
|
+
z.ZodTypeDef,
|
|
1859
|
+
unknown
|
|
1860
|
+
> = z.object({
|
|
1861
|
+
name: z.string().optional(),
|
|
1862
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
1863
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
1864
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
1865
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
1866
|
+
response_format: z.union([
|
|
1867
|
+
z.lazy(() => RetrieveAgentRequestResponseFormatText$inboundSchema),
|
|
1868
|
+
z.lazy(() => RetrieveAgentRequestResponseFormatJSONObject$inboundSchema),
|
|
1869
|
+
z.lazy(() =>
|
|
1870
|
+
RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema
|
|
1871
|
+
),
|
|
1872
|
+
]).optional(),
|
|
1873
|
+
reasoning_effort: RetrieveAgentRequestReasoningEffort$inboundSchema
|
|
1874
|
+
.optional(),
|
|
1875
|
+
verbosity: z.string().optional(),
|
|
1876
|
+
seed: z.nullable(z.number()).optional(),
|
|
1877
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1878
|
+
thinking: z.union([
|
|
1879
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1880
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1881
|
+
]).optional(),
|
|
1882
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1883
|
+
top_p: z.nullable(z.number()).optional(),
|
|
1884
|
+
top_k: z.nullable(z.number()).optional(),
|
|
1885
|
+
tool_choice: z.union([
|
|
1886
|
+
z.lazy(() => RetrieveAgentRequestToolChoice2$inboundSchema),
|
|
1887
|
+
RetrieveAgentRequestToolChoice1$inboundSchema,
|
|
1888
|
+
]).optional(),
|
|
1889
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
1890
|
+
modalities: z.nullable(z.array(RetrieveAgentRequestModalities$inboundSchema))
|
|
1891
|
+
.optional(),
|
|
1892
|
+
guardrails: z.array(
|
|
1893
|
+
z.lazy(() => RetrieveAgentRequestAgentsGuardrails$inboundSchema),
|
|
1894
|
+
).optional(),
|
|
1895
|
+
fallbacks: z.array(z.lazy(() => RetrieveAgentRequestFallbacks$inboundSchema))
|
|
1896
|
+
.optional(),
|
|
1897
|
+
cache: z.lazy(() => RetrieveAgentRequestCache$inboundSchema).optional(),
|
|
1898
|
+
load_balancer: z.lazy(() => RetrieveAgentRequestLoadBalancer1$inboundSchema)
|
|
1899
|
+
.optional(),
|
|
1900
|
+
timeout: z.lazy(() => RetrieveAgentRequestTimeout$inboundSchema).optional(),
|
|
1901
|
+
}).transform((v) => {
|
|
1902
|
+
return remap$(v, {
|
|
1903
|
+
"frequency_penalty": "frequencyPenalty",
|
|
1904
|
+
"max_tokens": "maxTokens",
|
|
1905
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
1906
|
+
"presence_penalty": "presencePenalty",
|
|
1907
|
+
"response_format": "responseFormat",
|
|
1908
|
+
"reasoning_effort": "reasoningEffort",
|
|
1909
|
+
"top_p": "topP",
|
|
1910
|
+
"top_k": "topK",
|
|
1911
|
+
"tool_choice": "toolChoice",
|
|
1912
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
1913
|
+
"load_balancer": "loadBalancer",
|
|
1914
|
+
});
|
|
1915
|
+
});
|
|
2338
1916
|
|
|
2339
|
-
export function
|
|
1917
|
+
export function retrieveAgentRequestParametersFromJSON(
|
|
2340
1918
|
jsonString: string,
|
|
2341
|
-
): SafeParseResult<
|
|
2342
|
-
RetrieveAgentRequestResponseBodyParameters,
|
|
2343
|
-
SDKValidationError
|
|
2344
|
-
> {
|
|
1919
|
+
): SafeParseResult<RetrieveAgentRequestParameters, SDKValidationError> {
|
|
2345
1920
|
return safeParse(
|
|
2346
1921
|
jsonString,
|
|
2347
|
-
(x) =>
|
|
2348
|
-
|
|
2349
|
-
JSON.parse(x),
|
|
2350
|
-
),
|
|
2351
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyParameters' from JSON`,
|
|
1922
|
+
(x) => RetrieveAgentRequestParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1923
|
+
`Failed to parse 'RetrieveAgentRequestParameters' from JSON`,
|
|
2352
1924
|
);
|
|
2353
1925
|
}
|
|
2354
1926
|
|
|
2355
1927
|
/** @internal */
|
|
2356
|
-
export const
|
|
2357
|
-
|
|
1928
|
+
export const RetrieveAgentRequestRetry$inboundSchema: z.ZodType<
|
|
1929
|
+
RetrieveAgentRequestRetry,
|
|
2358
1930
|
z.ZodTypeDef,
|
|
2359
1931
|
unknown
|
|
2360
1932
|
> = z.object({
|
|
@@ -2366,14 +1938,13 @@ export const RetrieveAgentRequestResponseBodyRetry$inboundSchema: z.ZodType<
|
|
|
2366
1938
|
});
|
|
2367
1939
|
});
|
|
2368
1940
|
|
|
2369
|
-
export function
|
|
1941
|
+
export function retrieveAgentRequestRetryFromJSON(
|
|
2370
1942
|
jsonString: string,
|
|
2371
|
-
): SafeParseResult<
|
|
1943
|
+
): SafeParseResult<RetrieveAgentRequestRetry, SDKValidationError> {
|
|
2372
1944
|
return safeParse(
|
|
2373
1945
|
jsonString,
|
|
2374
|
-
(x) =>
|
|
2375
|
-
|
|
2376
|
-
`Failed to parse 'RetrieveAgentRequestResponseBodyRetry' from JSON`,
|
|
1946
|
+
(x) => RetrieveAgentRequestRetry$inboundSchema.parse(JSON.parse(x)),
|
|
1947
|
+
`Failed to parse 'RetrieveAgentRequestRetry' from JSON`,
|
|
2377
1948
|
);
|
|
2378
1949
|
}
|
|
2379
1950
|
|
|
@@ -3064,9 +2635,9 @@ export function retrieveAgentRequestFallbackModelConfiguration2FromJSON(
|
|
|
3064
2635
|
}
|
|
3065
2636
|
|
|
3066
2637
|
/** @internal */
|
|
3067
|
-
export const
|
|
2638
|
+
export const RetrieveAgentRequestFallbackModelConfiguration$inboundSchema:
|
|
3068
2639
|
z.ZodType<
|
|
3069
|
-
|
|
2640
|
+
RetrieveAgentRequestFallbackModelConfiguration,
|
|
3070
2641
|
z.ZodTypeDef,
|
|
3071
2642
|
unknown
|
|
3072
2643
|
> = z.union([
|
|
@@ -3074,34 +2645,33 @@ export const RetrieveAgentRequestResponseBodyFallbackModelConfiguration$inboundS
|
|
|
3074
2645
|
z.string(),
|
|
3075
2646
|
]);
|
|
3076
2647
|
|
|
3077
|
-
export function
|
|
2648
|
+
export function retrieveAgentRequestFallbackModelConfigurationFromJSON(
|
|
3078
2649
|
jsonString: string,
|
|
3079
2650
|
): SafeParseResult<
|
|
3080
|
-
|
|
2651
|
+
RetrieveAgentRequestFallbackModelConfiguration,
|
|
3081
2652
|
SDKValidationError
|
|
3082
2653
|
> {
|
|
3083
2654
|
return safeParse(
|
|
3084
2655
|
jsonString,
|
|
3085
2656
|
(x) =>
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
2657
|
+
RetrieveAgentRequestFallbackModelConfiguration$inboundSchema.parse(
|
|
2658
|
+
JSON.parse(x),
|
|
2659
|
+
),
|
|
2660
|
+
`Failed to parse 'RetrieveAgentRequestFallbackModelConfiguration' from JSON`,
|
|
3089
2661
|
);
|
|
3090
2662
|
}
|
|
3091
2663
|
|
|
3092
2664
|
/** @internal */
|
|
3093
|
-
export const
|
|
3094
|
-
|
|
2665
|
+
export const RetrieveAgentRequestModel$inboundSchema: z.ZodType<
|
|
2666
|
+
RetrieveAgentRequestModel,
|
|
3095
2667
|
z.ZodTypeDef,
|
|
3096
2668
|
unknown
|
|
3097
2669
|
> = z.object({
|
|
3098
2670
|
id: z.string(),
|
|
3099
2671
|
integration_id: z.nullable(z.string()).optional(),
|
|
3100
|
-
parameters: z.lazy(() =>
|
|
3101
|
-
RetrieveAgentRequestResponseBodyParameters$inboundSchema
|
|
3102
|
-
).optional(),
|
|
3103
|
-
retry: z.lazy(() => RetrieveAgentRequestResponseBodyRetry$inboundSchema)
|
|
2672
|
+
parameters: z.lazy(() => RetrieveAgentRequestParameters$inboundSchema)
|
|
3104
2673
|
.optional(),
|
|
2674
|
+
retry: z.lazy(() => RetrieveAgentRequestRetry$inboundSchema).optional(),
|
|
3105
2675
|
fallback_models: z.nullable(
|
|
3106
2676
|
z.array(z.union([
|
|
3107
2677
|
z.lazy(() =>
|
|
@@ -3117,19 +2687,74 @@ export const ResponseBodyModel$inboundSchema: z.ZodType<
|
|
|
3117
2687
|
});
|
|
3118
2688
|
});
|
|
3119
2689
|
|
|
3120
|
-
export function
|
|
2690
|
+
export function retrieveAgentRequestModelFromJSON(
|
|
2691
|
+
jsonString: string,
|
|
2692
|
+
): SafeParseResult<RetrieveAgentRequestModel, SDKValidationError> {
|
|
2693
|
+
return safeParse(
|
|
2694
|
+
jsonString,
|
|
2695
|
+
(x) => RetrieveAgentRequestModel$inboundSchema.parse(JSON.parse(x)),
|
|
2696
|
+
`Failed to parse 'RetrieveAgentRequestModel' from JSON`,
|
|
2697
|
+
);
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
/** @internal */
|
|
2701
|
+
export const RetrieveAgentRequestHeaders$inboundSchema: z.ZodType<
|
|
2702
|
+
RetrieveAgentRequestHeaders,
|
|
2703
|
+
z.ZodTypeDef,
|
|
2704
|
+
unknown
|
|
2705
|
+
> = z.object({
|
|
2706
|
+
value: z.string(),
|
|
2707
|
+
encrypted: z.boolean().default(false),
|
|
2708
|
+
});
|
|
2709
|
+
|
|
2710
|
+
export function retrieveAgentRequestHeadersFromJSON(
|
|
2711
|
+
jsonString: string,
|
|
2712
|
+
): SafeParseResult<RetrieveAgentRequestHeaders, SDKValidationError> {
|
|
2713
|
+
return safeParse(
|
|
2714
|
+
jsonString,
|
|
2715
|
+
(x) => RetrieveAgentRequestHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
2716
|
+
`Failed to parse 'RetrieveAgentRequestHeaders' from JSON`,
|
|
2717
|
+
);
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
/** @internal */
|
|
2721
|
+
export const RetrieveAgentRequestA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
2722
|
+
RetrieveAgentRequestA2AAgentConfiguration,
|
|
2723
|
+
z.ZodTypeDef,
|
|
2724
|
+
unknown
|
|
2725
|
+
> = z.object({
|
|
2726
|
+
agent_url: z.string(),
|
|
2727
|
+
card_url: z.string().optional(),
|
|
2728
|
+
headers: z.record(z.lazy(() => RetrieveAgentRequestHeaders$inboundSchema))
|
|
2729
|
+
.optional(),
|
|
2730
|
+
cached_card: z.any().optional(),
|
|
2731
|
+
}).transform((v) => {
|
|
2732
|
+
return remap$(v, {
|
|
2733
|
+
"agent_url": "agentUrl",
|
|
2734
|
+
"card_url": "cardUrl",
|
|
2735
|
+
"cached_card": "cachedCard",
|
|
2736
|
+
});
|
|
2737
|
+
});
|
|
2738
|
+
|
|
2739
|
+
export function retrieveAgentRequestA2AAgentConfigurationFromJSON(
|
|
3121
2740
|
jsonString: string,
|
|
3122
|
-
): SafeParseResult<
|
|
2741
|
+
): SafeParseResult<
|
|
2742
|
+
RetrieveAgentRequestA2AAgentConfiguration,
|
|
2743
|
+
SDKValidationError
|
|
2744
|
+
> {
|
|
3123
2745
|
return safeParse(
|
|
3124
2746
|
jsonString,
|
|
3125
|
-
(x) =>
|
|
3126
|
-
|
|
2747
|
+
(x) =>
|
|
2748
|
+
RetrieveAgentRequestA2AAgentConfiguration$inboundSchema.parse(
|
|
2749
|
+
JSON.parse(x),
|
|
2750
|
+
),
|
|
2751
|
+
`Failed to parse 'RetrieveAgentRequestA2AAgentConfiguration' from JSON`,
|
|
3127
2752
|
);
|
|
3128
2753
|
}
|
|
3129
2754
|
|
|
3130
2755
|
/** @internal */
|
|
3131
|
-
export const
|
|
3132
|
-
|
|
2756
|
+
export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
2757
|
+
RetrieveAgentRequestResponseBody,
|
|
3133
2758
|
z.ZodTypeDef,
|
|
3134
2759
|
unknown
|
|
3135
2760
|
> = z.object({
|
|
@@ -3141,28 +2766,28 @@ export const RetrieveAgentRequestResponseBody1$inboundSchema: z.ZodType<
|
|
|
3141
2766
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3142
2767
|
created: z.string().optional(),
|
|
3143
2768
|
updated: z.string().optional(),
|
|
3144
|
-
status:
|
|
2769
|
+
status: RetrieveAgentRequestStatus$inboundSchema,
|
|
3145
2770
|
version_hash: z.string().optional(),
|
|
3146
2771
|
path: z.string(),
|
|
3147
2772
|
memory_stores: z.array(z.string()).optional(),
|
|
3148
2773
|
team_of_agents: z.array(
|
|
3149
|
-
z.lazy(() =>
|
|
2774
|
+
z.lazy(() => RetrieveAgentRequestTeamOfAgents$inboundSchema),
|
|
3150
2775
|
).optional(),
|
|
3151
|
-
metrics: z.lazy(() =>
|
|
3152
|
-
.optional(),
|
|
2776
|
+
metrics: z.lazy(() => RetrieveAgentRequestMetrics$inboundSchema).optional(),
|
|
3153
2777
|
variables: z.record(z.any()).optional(),
|
|
3154
2778
|
knowledge_bases: z.array(
|
|
3155
|
-
z.lazy(() =>
|
|
2779
|
+
z.lazy(() => RetrieveAgentRequestKnowledgeBases$inboundSchema),
|
|
3156
2780
|
).optional(),
|
|
3157
|
-
source:
|
|
3158
|
-
type:
|
|
2781
|
+
source: RetrieveAgentRequestSource$inboundSchema.optional(),
|
|
2782
|
+
type: RetrieveAgentRequestType$inboundSchema.default("internal"),
|
|
3159
2783
|
role: z.string(),
|
|
3160
2784
|
description: z.string(),
|
|
3161
2785
|
system_prompt: z.string().optional(),
|
|
3162
2786
|
instructions: z.string(),
|
|
3163
|
-
settings: z.lazy(() =>
|
|
2787
|
+
settings: z.lazy(() => RetrieveAgentRequestSettings$inboundSchema).optional(),
|
|
2788
|
+
model: z.lazy(() => RetrieveAgentRequestModel$inboundSchema),
|
|
2789
|
+
a2a: z.lazy(() => RetrieveAgentRequestA2AAgentConfiguration$inboundSchema)
|
|
3164
2790
|
.optional(),
|
|
3165
|
-
model: z.lazy(() => ResponseBodyModel$inboundSchema),
|
|
3166
2791
|
}).transform((v) => {
|
|
3167
2792
|
return remap$(v, {
|
|
3168
2793
|
"_id": "id",
|
|
@@ -3178,26 +2803,6 @@ export const RetrieveAgentRequestResponseBody1$inboundSchema: z.ZodType<
|
|
|
3178
2803
|
});
|
|
3179
2804
|
});
|
|
3180
2805
|
|
|
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
|
-
|
|
3201
2806
|
export function retrieveAgentRequestResponseBodyFromJSON(
|
|
3202
2807
|
jsonString: string,
|
|
3203
2808
|
): SafeParseResult<RetrieveAgentRequestResponseBody, SDKValidationError> {
|