@orq-ai/node 4.5.0-rc.40 → 4.5.0-rc.42
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
|
@@ -49,7 +49,7 @@ export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
|
|
|
49
49
|
/**
|
|
50
50
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
51
51
|
*/
|
|
52
|
-
export const
|
|
52
|
+
export const ListAgentsStatus = {
|
|
53
53
|
Live: "live",
|
|
54
54
|
Draft: "draft",
|
|
55
55
|
Pending: "pending",
|
|
@@ -58,9 +58,9 @@ export const ListAgentsDataStatus = {
|
|
|
58
58
|
/**
|
|
59
59
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
60
60
|
*/
|
|
61
|
-
export type
|
|
61
|
+
export type ListAgentsStatus = ClosedEnum<typeof ListAgentsStatus>;
|
|
62
62
|
|
|
63
|
-
export type
|
|
63
|
+
export type ListAgentsTeamOfAgents = {
|
|
64
64
|
/**
|
|
65
65
|
* The unique key of the agent within the workspace
|
|
66
66
|
*/
|
|
@@ -71,168 +71,40 @@ export type ListAgentsDataTeamOfAgents = {
|
|
|
71
71
|
role?: string | undefined;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
export type
|
|
74
|
+
export type ListAgentsMetrics = {
|
|
75
75
|
totalCost: number;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
export type
|
|
78
|
+
export type ListAgentsKnowledgeBases = {
|
|
79
79
|
/**
|
|
80
80
|
* Unique identifier of the knowledge base to search
|
|
81
81
|
*/
|
|
82
82
|
knowledgeId: string;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
export const
|
|
85
|
+
export const ListAgentsSource = {
|
|
86
86
|
Internal: "internal",
|
|
87
87
|
External: "external",
|
|
88
88
|
Experiment: "experiment",
|
|
89
89
|
} as const;
|
|
90
|
-
export type
|
|
91
|
-
|
|
92
|
-
export type DataHeaders = {
|
|
93
|
-
/**
|
|
94
|
-
* Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
|
|
95
|
-
*/
|
|
96
|
-
value: string;
|
|
97
|
-
encrypted: boolean;
|
|
98
|
-
};
|
|
90
|
+
export type ListAgentsSource = ClosedEnum<typeof ListAgentsSource>;
|
|
99
91
|
|
|
100
92
|
/**
|
|
101
|
-
*
|
|
93
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
102
94
|
*/
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
*/
|
|
107
|
-
agentUrl: string;
|
|
108
|
-
/**
|
|
109
|
-
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
110
|
-
*/
|
|
111
|
-
cardUrl?: string | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* HTTP headers for A2A agent requests with encryption support (max 20 headers). **Update behavior**: Empty string values preserve existing encrypted headers, allowing partial updates without credential re-entry.
|
|
114
|
-
*/
|
|
115
|
-
headers?: { [k: string]: DataHeaders } | undefined;
|
|
116
|
-
/**
|
|
117
|
-
* Cached agent card from discovery. Refreshed periodically.
|
|
118
|
-
*/
|
|
119
|
-
cachedCard?: any | undefined;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export type Data2 = {
|
|
123
|
-
id: string;
|
|
124
|
-
/**
|
|
125
|
-
* Unique identifier for the agent within the workspace
|
|
126
|
-
*/
|
|
127
|
-
key: string;
|
|
128
|
-
displayName?: string | undefined;
|
|
129
|
-
createdById?: string | null | undefined;
|
|
130
|
-
updatedById?: string | null | undefined;
|
|
131
|
-
created?: string | undefined;
|
|
132
|
-
updated?: string | undefined;
|
|
133
|
-
/**
|
|
134
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
135
|
-
*/
|
|
136
|
-
status: ListAgentsDataStatus;
|
|
137
|
-
versionHash?: string | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
140
|
-
*
|
|
141
|
-
* @remarks
|
|
142
|
-
*
|
|
143
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
144
|
-
*
|
|
145
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
146
|
-
*/
|
|
147
|
-
path: string;
|
|
148
|
-
/**
|
|
149
|
-
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
150
|
-
*/
|
|
151
|
-
memoryStores?: Array<string> | undefined;
|
|
152
|
-
/**
|
|
153
|
-
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
154
|
-
*/
|
|
155
|
-
teamOfAgents?: Array<ListAgentsDataTeamOfAgents> | undefined;
|
|
156
|
-
metrics?: ListAgentsDataMetrics | undefined;
|
|
157
|
-
/**
|
|
158
|
-
* Extracted variables from agent instructions
|
|
159
|
-
*/
|
|
160
|
-
variables?: { [k: string]: any } | undefined;
|
|
161
|
-
/**
|
|
162
|
-
* Agent knowledge bases reference
|
|
163
|
-
*/
|
|
164
|
-
knowledgeBases?: Array<ListAgentsDataKnowledgeBases> | undefined;
|
|
165
|
-
source?: ListAgentsDataSource | undefined;
|
|
166
|
-
/**
|
|
167
|
-
* External A2A-compliant agent
|
|
168
|
-
*/
|
|
169
|
-
type: "a2a";
|
|
170
|
-
/**
|
|
171
|
-
* Role fetched from agent card name or user-provided
|
|
172
|
-
*/
|
|
173
|
-
role: string;
|
|
174
|
-
/**
|
|
175
|
-
* Description fetched from agent card or user-provided
|
|
176
|
-
*/
|
|
177
|
-
description: string;
|
|
178
|
-
systemPrompt?: string | undefined;
|
|
179
|
-
/**
|
|
180
|
-
* Instructions from agent card description or user-provided
|
|
181
|
-
*/
|
|
182
|
-
instructions: string;
|
|
183
|
-
/**
|
|
184
|
-
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
185
|
-
*/
|
|
186
|
-
a2a: DataA2AAgentConfiguration;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
191
|
-
*/
|
|
192
|
-
export const DataStatus = {
|
|
193
|
-
Live: "live",
|
|
194
|
-
Draft: "draft",
|
|
195
|
-
Pending: "pending",
|
|
196
|
-
Published: "published",
|
|
95
|
+
export const ListAgentsType = {
|
|
96
|
+
Internal: "internal",
|
|
97
|
+
A2a: "a2a",
|
|
197
98
|
} as const;
|
|
198
99
|
/**
|
|
199
|
-
*
|
|
100
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
200
101
|
*/
|
|
201
|
-
export type
|
|
202
|
-
|
|
203
|
-
export type DataTeamOfAgents = {
|
|
204
|
-
/**
|
|
205
|
-
* The unique key of the agent within the workspace
|
|
206
|
-
*/
|
|
207
|
-
key: string;
|
|
208
|
-
/**
|
|
209
|
-
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
210
|
-
*/
|
|
211
|
-
role?: string | undefined;
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
export type DataMetrics = {
|
|
215
|
-
totalCost: number;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
export type DataKnowledgeBases = {
|
|
219
|
-
/**
|
|
220
|
-
* Unique identifier of the knowledge base to search
|
|
221
|
-
*/
|
|
222
|
-
knowledgeId: string;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export const DataSource = {
|
|
226
|
-
Internal: "internal",
|
|
227
|
-
External: "external",
|
|
228
|
-
Experiment: "experiment",
|
|
229
|
-
} as const;
|
|
230
|
-
export type DataSource = ClosedEnum<typeof DataSource>;
|
|
102
|
+
export type ListAgentsType = ClosedEnum<typeof ListAgentsType>;
|
|
231
103
|
|
|
232
104
|
/**
|
|
233
105
|
* 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.
|
|
234
106
|
*/
|
|
235
|
-
export const
|
|
107
|
+
export const ListAgentsToolApprovalRequired = {
|
|
236
108
|
All: "all",
|
|
237
109
|
RespectTool: "respect_tool",
|
|
238
110
|
None: "none",
|
|
@@ -240,11 +112,11 @@ export const DataToolApprovalRequired = {
|
|
|
240
112
|
/**
|
|
241
113
|
* 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.
|
|
242
114
|
*/
|
|
243
|
-
export type
|
|
244
|
-
typeof
|
|
115
|
+
export type ListAgentsToolApprovalRequired = ClosedEnum<
|
|
116
|
+
typeof ListAgentsToolApprovalRequired
|
|
245
117
|
>;
|
|
246
118
|
|
|
247
|
-
export type
|
|
119
|
+
export type ListAgentsConditions = {
|
|
248
120
|
/**
|
|
249
121
|
* The argument of the tool call to evaluate
|
|
250
122
|
*/
|
|
@@ -259,7 +131,7 @@ export type DataConditions = {
|
|
|
259
131
|
value: string;
|
|
260
132
|
};
|
|
261
133
|
|
|
262
|
-
export type
|
|
134
|
+
export type ListAgentsTools = {
|
|
263
135
|
/**
|
|
264
136
|
* The id of the resource
|
|
265
137
|
*/
|
|
@@ -279,7 +151,7 @@ export type DataTools = {
|
|
|
279
151
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
280
152
|
*/
|
|
281
153
|
toolId?: string | undefined;
|
|
282
|
-
conditions?: Array<
|
|
154
|
+
conditions?: Array<ListAgentsConditions> | undefined;
|
|
283
155
|
/**
|
|
284
156
|
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
285
157
|
*/
|
|
@@ -289,16 +161,16 @@ export type DataTools = {
|
|
|
289
161
|
/**
|
|
290
162
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
291
163
|
*/
|
|
292
|
-
export const
|
|
164
|
+
export const ListAgentsExecuteOn = {
|
|
293
165
|
Input: "input",
|
|
294
166
|
Output: "output",
|
|
295
167
|
} as const;
|
|
296
168
|
/**
|
|
297
169
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
298
170
|
*/
|
|
299
|
-
export type
|
|
171
|
+
export type ListAgentsExecuteOn = ClosedEnum<typeof ListAgentsExecuteOn>;
|
|
300
172
|
|
|
301
|
-
export type
|
|
173
|
+
export type ListAgentsEvaluators = {
|
|
302
174
|
/**
|
|
303
175
|
* Unique key or identifier of the evaluator
|
|
304
176
|
*/
|
|
@@ -310,24 +182,24 @@ export type DataEvaluators = {
|
|
|
310
182
|
/**
|
|
311
183
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
312
184
|
*/
|
|
313
|
-
executeOn:
|
|
185
|
+
executeOn: ListAgentsExecuteOn;
|
|
314
186
|
};
|
|
315
187
|
|
|
316
188
|
/**
|
|
317
189
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
318
190
|
*/
|
|
319
|
-
export const
|
|
191
|
+
export const ListAgentsAgentsExecuteOn = {
|
|
320
192
|
Input: "input",
|
|
321
193
|
Output: "output",
|
|
322
194
|
} as const;
|
|
323
195
|
/**
|
|
324
196
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
325
197
|
*/
|
|
326
|
-
export type
|
|
327
|
-
typeof
|
|
198
|
+
export type ListAgentsAgentsExecuteOn = ClosedEnum<
|
|
199
|
+
typeof ListAgentsAgentsExecuteOn
|
|
328
200
|
>;
|
|
329
201
|
|
|
330
|
-
export type
|
|
202
|
+
export type ListAgentsGuardrails = {
|
|
331
203
|
/**
|
|
332
204
|
* Unique key or identifier of the evaluator
|
|
333
205
|
*/
|
|
@@ -339,10 +211,10 @@ export type DataGuardrails = {
|
|
|
339
211
|
/**
|
|
340
212
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
341
213
|
*/
|
|
342
|
-
executeOn:
|
|
214
|
+
executeOn: ListAgentsAgentsExecuteOn;
|
|
343
215
|
};
|
|
344
216
|
|
|
345
|
-
export type
|
|
217
|
+
export type ListAgentsSettings = {
|
|
346
218
|
/**
|
|
347
219
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
348
220
|
*/
|
|
@@ -358,16 +230,16 @@ export type DataSettings = {
|
|
|
358
230
|
/**
|
|
359
231
|
* 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.
|
|
360
232
|
*/
|
|
361
|
-
toolApprovalRequired:
|
|
362
|
-
tools?: Array<
|
|
233
|
+
toolApprovalRequired: ListAgentsToolApprovalRequired;
|
|
234
|
+
tools?: Array<ListAgentsTools> | undefined;
|
|
363
235
|
/**
|
|
364
236
|
* Configuration for an evaluator applied to the agent
|
|
365
237
|
*/
|
|
366
|
-
evaluators?: Array<
|
|
238
|
+
evaluators?: Array<ListAgentsEvaluators> | undefined;
|
|
367
239
|
/**
|
|
368
240
|
* Configuration for a guardrail applied to the agent
|
|
369
241
|
*/
|
|
370
|
-
guardrails?: Array<
|
|
242
|
+
guardrails?: Array<ListAgentsGuardrails> | undefined;
|
|
371
243
|
};
|
|
372
244
|
|
|
373
245
|
export type ListAgentsResponseFormatJsonSchema = {
|
|
@@ -420,7 +292,7 @@ export type ListAgentsResponseFormatText = {
|
|
|
420
292
|
/**
|
|
421
293
|
* An object specifying the format that the model must output
|
|
422
294
|
*/
|
|
423
|
-
export type
|
|
295
|
+
export type ListAgentsResponseFormat =
|
|
424
296
|
| ListAgentsResponseFormatText
|
|
425
297
|
| ListAgentsResponseFormatJSONObject
|
|
426
298
|
| ListAgentsResponseFormatAgentsJSONSchema;
|
|
@@ -437,7 +309,7 @@ export type DataResponseFormat =
|
|
|
437
309
|
*
|
|
438
310
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
439
311
|
*/
|
|
440
|
-
export const
|
|
312
|
+
export const ListAgentsReasoningEffort = {
|
|
441
313
|
None: "none",
|
|
442
314
|
Minimal: "minimal",
|
|
443
315
|
Low: "low",
|
|
@@ -457,14 +329,16 @@ export const DataReasoningEffort = {
|
|
|
457
329
|
*
|
|
458
330
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
459
331
|
*/
|
|
460
|
-
export type
|
|
332
|
+
export type ListAgentsReasoningEffort = ClosedEnum<
|
|
333
|
+
typeof ListAgentsReasoningEffort
|
|
334
|
+
>;
|
|
461
335
|
|
|
462
336
|
/**
|
|
463
337
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
464
338
|
*/
|
|
465
|
-
export type
|
|
339
|
+
export type ListAgentsStop = string | Array<string>;
|
|
466
340
|
|
|
467
|
-
export type
|
|
341
|
+
export type ListAgentsThinking =
|
|
468
342
|
| components.ThinkingConfigDisabledSchema
|
|
469
343
|
| components.ThinkingConfigEnabledSchema;
|
|
470
344
|
|
|
@@ -506,13 +380,15 @@ export type ListAgentsToolChoice1 = ClosedEnum<typeof ListAgentsToolChoice1>;
|
|
|
506
380
|
/**
|
|
507
381
|
* Controls which (if any) tool is called by the model.
|
|
508
382
|
*/
|
|
509
|
-
export type
|
|
383
|
+
export type ListAgentsToolChoice =
|
|
384
|
+
| ListAgentsToolChoice2
|
|
385
|
+
| ListAgentsToolChoice1;
|
|
510
386
|
|
|
511
|
-
export const
|
|
387
|
+
export const ListAgentsModalities = {
|
|
512
388
|
Text: "text",
|
|
513
389
|
Audio: "audio",
|
|
514
390
|
} as const;
|
|
515
|
-
export type
|
|
391
|
+
export type ListAgentsModalities = ClosedEnum<typeof ListAgentsModalities>;
|
|
516
392
|
|
|
517
393
|
/**
|
|
518
394
|
* The key of the guardrail.
|
|
@@ -527,53 +403,51 @@ export const ListAgentsId1 = {
|
|
|
527
403
|
*/
|
|
528
404
|
export type ListAgentsId1 = ClosedEnum<typeof ListAgentsId1>;
|
|
529
405
|
|
|
530
|
-
export type
|
|
406
|
+
export type ListAgentsId = ListAgentsId1 | string;
|
|
531
407
|
|
|
532
408
|
/**
|
|
533
409
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
534
410
|
*/
|
|
535
|
-
export const
|
|
411
|
+
export const ListAgentsAgentsResponseExecuteOn = {
|
|
536
412
|
Input: "input",
|
|
537
413
|
Output: "output",
|
|
538
414
|
} as const;
|
|
539
415
|
/**
|
|
540
416
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
541
417
|
*/
|
|
542
|
-
export type
|
|
543
|
-
typeof
|
|
418
|
+
export type ListAgentsAgentsResponseExecuteOn = ClosedEnum<
|
|
419
|
+
typeof ListAgentsAgentsResponseExecuteOn
|
|
544
420
|
>;
|
|
545
421
|
|
|
546
|
-
export type
|
|
422
|
+
export type ListAgentsAgentsGuardrails = {
|
|
547
423
|
id: ListAgentsId1 | string;
|
|
548
424
|
/**
|
|
549
425
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
550
426
|
*/
|
|
551
|
-
executeOn:
|
|
427
|
+
executeOn: ListAgentsAgentsResponseExecuteOn;
|
|
552
428
|
};
|
|
553
429
|
|
|
554
|
-
export type
|
|
430
|
+
export type ListAgentsFallbacks = {
|
|
555
431
|
/**
|
|
556
432
|
* Fallback model identifier
|
|
557
433
|
*/
|
|
558
434
|
model: string;
|
|
559
435
|
};
|
|
560
436
|
|
|
561
|
-
export const
|
|
437
|
+
export const ListAgentsAgentsType = {
|
|
562
438
|
ExactMatch: "exact_match",
|
|
563
439
|
} as const;
|
|
564
|
-
export type
|
|
565
|
-
typeof ListAgentsDataAgentsResponseType
|
|
566
|
-
>;
|
|
440
|
+
export type ListAgentsAgentsType = ClosedEnum<typeof ListAgentsAgentsType>;
|
|
567
441
|
|
|
568
442
|
/**
|
|
569
443
|
* Cache configuration for the request.
|
|
570
444
|
*/
|
|
571
|
-
export type
|
|
445
|
+
export type ListAgentsCache = {
|
|
572
446
|
/**
|
|
573
447
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
574
448
|
*/
|
|
575
449
|
ttl: number;
|
|
576
|
-
type:
|
|
450
|
+
type: ListAgentsAgentsType;
|
|
577
451
|
};
|
|
578
452
|
|
|
579
453
|
export const ListAgentsLoadBalancerType = {
|
|
@@ -602,12 +476,12 @@ export type ListAgentsLoadBalancer1 = {
|
|
|
602
476
|
/**
|
|
603
477
|
* Load balancer configuration for the request.
|
|
604
478
|
*/
|
|
605
|
-
export type
|
|
479
|
+
export type ListAgentsLoadBalancer = ListAgentsLoadBalancer1;
|
|
606
480
|
|
|
607
481
|
/**
|
|
608
482
|
* 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
483
|
*/
|
|
610
|
-
export type
|
|
484
|
+
export type ListAgentsTimeout = {
|
|
611
485
|
/**
|
|
612
486
|
* Timeout value in milliseconds
|
|
613
487
|
*/
|
|
@@ -617,7 +491,7 @@ export type DataTimeout = {
|
|
|
617
491
|
/**
|
|
618
492
|
* 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
493
|
*/
|
|
620
|
-
export type
|
|
494
|
+
export type ListAgentsParameters = {
|
|
621
495
|
/**
|
|
622
496
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
623
497
|
*/
|
|
@@ -662,7 +536,7 @@ export type DataParameters = {
|
|
|
662
536
|
*
|
|
663
537
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
664
538
|
*/
|
|
665
|
-
reasoningEffort?:
|
|
539
|
+
reasoningEffort?: ListAgentsReasoningEffort | undefined;
|
|
666
540
|
/**
|
|
667
541
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
668
542
|
*/
|
|
@@ -702,19 +576,19 @@ export type DataParameters = {
|
|
|
702
576
|
/**
|
|
703
577
|
* 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"].
|
|
704
578
|
*/
|
|
705
|
-
modalities?: Array<
|
|
579
|
+
modalities?: Array<ListAgentsModalities> | null | undefined;
|
|
706
580
|
/**
|
|
707
581
|
* A list of guardrails to apply to the request.
|
|
708
582
|
*/
|
|
709
|
-
guardrails?: Array<
|
|
583
|
+
guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
|
|
710
584
|
/**
|
|
711
585
|
* Array of fallback models to use if primary model fails
|
|
712
586
|
*/
|
|
713
|
-
fallbacks?: Array<
|
|
587
|
+
fallbacks?: Array<ListAgentsFallbacks> | undefined;
|
|
714
588
|
/**
|
|
715
589
|
* Cache configuration for the request.
|
|
716
590
|
*/
|
|
717
|
-
cache?:
|
|
591
|
+
cache?: ListAgentsCache | undefined;
|
|
718
592
|
/**
|
|
719
593
|
* Load balancer configuration for the request.
|
|
720
594
|
*/
|
|
@@ -722,13 +596,13 @@ export type DataParameters = {
|
|
|
722
596
|
/**
|
|
723
597
|
* 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.
|
|
724
598
|
*/
|
|
725
|
-
timeout?:
|
|
599
|
+
timeout?: ListAgentsTimeout | undefined;
|
|
726
600
|
};
|
|
727
601
|
|
|
728
602
|
/**
|
|
729
603
|
* 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).
|
|
730
604
|
*/
|
|
731
|
-
export type
|
|
605
|
+
export type ListAgentsRetry = {
|
|
732
606
|
/**
|
|
733
607
|
* Number of retry attempts (1-5)
|
|
734
608
|
*/
|
|
@@ -1150,11 +1024,11 @@ export type ListAgentsFallbackModelConfiguration2 = {
|
|
|
1150
1024
|
/**
|
|
1151
1025
|
* 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.
|
|
1152
1026
|
*/
|
|
1153
|
-
export type
|
|
1027
|
+
export type ListAgentsFallbackModelConfiguration =
|
|
1154
1028
|
| ListAgentsFallbackModelConfiguration2
|
|
1155
1029
|
| string;
|
|
1156
1030
|
|
|
1157
|
-
export type
|
|
1031
|
+
export type ListAgentsModel = {
|
|
1158
1032
|
/**
|
|
1159
1033
|
* The database ID of the primary model
|
|
1160
1034
|
*/
|
|
@@ -1166,11 +1040,11 @@ export type DataModel = {
|
|
|
1166
1040
|
/**
|
|
1167
1041
|
* 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.
|
|
1168
1042
|
*/
|
|
1169
|
-
parameters?:
|
|
1043
|
+
parameters?: ListAgentsParameters | undefined;
|
|
1170
1044
|
/**
|
|
1171
1045
|
* 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).
|
|
1172
1046
|
*/
|
|
1173
|
-
retry?:
|
|
1047
|
+
retry?: ListAgentsRetry | undefined;
|
|
1174
1048
|
/**
|
|
1175
1049
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
1176
1050
|
*/
|
|
@@ -1180,7 +1054,37 @@ export type DataModel = {
|
|
|
1180
1054
|
| undefined;
|
|
1181
1055
|
};
|
|
1182
1056
|
|
|
1183
|
-
export type
|
|
1057
|
+
export type ListAgentsHeaders = {
|
|
1058
|
+
/**
|
|
1059
|
+
* 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.
|
|
1060
|
+
*/
|
|
1061
|
+
value: string;
|
|
1062
|
+
encrypted: boolean;
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
1067
|
+
*/
|
|
1068
|
+
export type ListAgentsA2AAgentConfiguration = {
|
|
1069
|
+
/**
|
|
1070
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
1071
|
+
*/
|
|
1072
|
+
agentUrl: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
1075
|
+
*/
|
|
1076
|
+
cardUrl?: string | undefined;
|
|
1077
|
+
/**
|
|
1078
|
+
* 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.
|
|
1079
|
+
*/
|
|
1080
|
+
headers?: { [k: string]: ListAgentsHeaders } | undefined;
|
|
1081
|
+
/**
|
|
1082
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
1083
|
+
*/
|
|
1084
|
+
cachedCard?: any | undefined;
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
export type ListAgentsData = {
|
|
1184
1088
|
id: string;
|
|
1185
1089
|
/**
|
|
1186
1090
|
* Unique identifier for the agent within the workspace
|
|
@@ -1194,7 +1098,7 @@ export type Data1 = {
|
|
|
1194
1098
|
/**
|
|
1195
1099
|
* 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.
|
|
1196
1100
|
*/
|
|
1197
|
-
status:
|
|
1101
|
+
status: ListAgentsStatus;
|
|
1198
1102
|
versionHash?: string | undefined;
|
|
1199
1103
|
/**
|
|
1200
1104
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -1213,8 +1117,8 @@ export type Data1 = {
|
|
|
1213
1117
|
/**
|
|
1214
1118
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1215
1119
|
*/
|
|
1216
|
-
teamOfAgents?: Array<
|
|
1217
|
-
metrics?:
|
|
1120
|
+
teamOfAgents?: Array<ListAgentsTeamOfAgents> | undefined;
|
|
1121
|
+
metrics?: ListAgentsMetrics | undefined;
|
|
1218
1122
|
/**
|
|
1219
1123
|
* Extracted variables from agent instructions
|
|
1220
1124
|
*/
|
|
@@ -1222,28 +1126,30 @@ export type Data1 = {
|
|
|
1222
1126
|
/**
|
|
1223
1127
|
* Agent knowledge bases reference
|
|
1224
1128
|
*/
|
|
1225
|
-
knowledgeBases?: Array<
|
|
1226
|
-
source?:
|
|
1129
|
+
knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
|
|
1130
|
+
source?: ListAgentsSource | undefined;
|
|
1227
1131
|
/**
|
|
1228
|
-
* Orquesta-managed
|
|
1132
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
1229
1133
|
*/
|
|
1230
|
-
type:
|
|
1134
|
+
type: ListAgentsType;
|
|
1231
1135
|
role: string;
|
|
1232
1136
|
description: string;
|
|
1233
1137
|
systemPrompt?: string | undefined;
|
|
1234
1138
|
instructions: string;
|
|
1235
|
-
settings?:
|
|
1236
|
-
model:
|
|
1139
|
+
settings?: ListAgentsSettings | undefined;
|
|
1140
|
+
model: ListAgentsModel;
|
|
1141
|
+
/**
|
|
1142
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
1143
|
+
*/
|
|
1144
|
+
a2a?: ListAgentsA2AAgentConfiguration | undefined;
|
|
1237
1145
|
};
|
|
1238
1146
|
|
|
1239
|
-
export type ListAgentsData = Data1 | Data2;
|
|
1240
|
-
|
|
1241
1147
|
/**
|
|
1242
1148
|
* Successfully retrieved the list of agents. Returns a paginated response containing agent manifests with complete configurations, including primary and fallback models, tools, knowledge bases, and execution settings.
|
|
1243
1149
|
*/
|
|
1244
1150
|
export type ListAgentsResponseBody = {
|
|
1245
1151
|
object: ListAgentsObject;
|
|
1246
|
-
data: Array<
|
|
1152
|
+
data: Array<ListAgentsData>;
|
|
1247
1153
|
hasMore: boolean;
|
|
1248
1154
|
};
|
|
1249
1155
|
|
|
@@ -1291,13 +1197,13 @@ export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
|
|
|
1291
1197
|
> = z.nativeEnum(ListAgentsObject);
|
|
1292
1198
|
|
|
1293
1199
|
/** @internal */
|
|
1294
|
-
export const
|
|
1295
|
-
typeof
|
|
1296
|
-
> = z.nativeEnum(
|
|
1200
|
+
export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1201
|
+
typeof ListAgentsStatus
|
|
1202
|
+
> = z.nativeEnum(ListAgentsStatus);
|
|
1297
1203
|
|
|
1298
1204
|
/** @internal */
|
|
1299
|
-
export const
|
|
1300
|
-
|
|
1205
|
+
export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
1206
|
+
ListAgentsTeamOfAgents,
|
|
1301
1207
|
z.ZodTypeDef,
|
|
1302
1208
|
unknown
|
|
1303
1209
|
> = z.object({
|
|
@@ -1305,19 +1211,19 @@ export const ListAgentsDataTeamOfAgents$inboundSchema: z.ZodType<
|
|
|
1305
1211
|
role: z.string().optional(),
|
|
1306
1212
|
});
|
|
1307
1213
|
|
|
1308
|
-
export function
|
|
1214
|
+
export function listAgentsTeamOfAgentsFromJSON(
|
|
1309
1215
|
jsonString: string,
|
|
1310
|
-
): SafeParseResult<
|
|
1216
|
+
): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
|
|
1311
1217
|
return safeParse(
|
|
1312
1218
|
jsonString,
|
|
1313
|
-
(x) =>
|
|
1314
|
-
`Failed to parse '
|
|
1219
|
+
(x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
1220
|
+
`Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
|
|
1315
1221
|
);
|
|
1316
1222
|
}
|
|
1317
1223
|
|
|
1318
1224
|
/** @internal */
|
|
1319
|
-
export const
|
|
1320
|
-
|
|
1225
|
+
export const ListAgentsMetrics$inboundSchema: z.ZodType<
|
|
1226
|
+
ListAgentsMetrics,
|
|
1321
1227
|
z.ZodTypeDef,
|
|
1322
1228
|
unknown
|
|
1323
1229
|
> = z.object({
|
|
@@ -1328,19 +1234,19 @@ export const ListAgentsDataMetrics$inboundSchema: z.ZodType<
|
|
|
1328
1234
|
});
|
|
1329
1235
|
});
|
|
1330
1236
|
|
|
1331
|
-
export function
|
|
1237
|
+
export function listAgentsMetricsFromJSON(
|
|
1332
1238
|
jsonString: string,
|
|
1333
|
-
): SafeParseResult<
|
|
1239
|
+
): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
|
|
1334
1240
|
return safeParse(
|
|
1335
1241
|
jsonString,
|
|
1336
|
-
(x) =>
|
|
1337
|
-
`Failed to parse '
|
|
1242
|
+
(x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
1243
|
+
`Failed to parse 'ListAgentsMetrics' from JSON`,
|
|
1338
1244
|
);
|
|
1339
1245
|
}
|
|
1340
1246
|
|
|
1341
1247
|
/** @internal */
|
|
1342
|
-
export const
|
|
1343
|
-
|
|
1248
|
+
export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
1249
|
+
ListAgentsKnowledgeBases,
|
|
1344
1250
|
z.ZodTypeDef,
|
|
1345
1251
|
unknown
|
|
1346
1252
|
> = z.object({
|
|
@@ -1351,204 +1257,34 @@ export const ListAgentsDataKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1351
1257
|
});
|
|
1352
1258
|
});
|
|
1353
1259
|
|
|
1354
|
-
export function
|
|
1355
|
-
jsonString: string,
|
|
1356
|
-
): SafeParseResult<ListAgentsDataKnowledgeBases, SDKValidationError> {
|
|
1357
|
-
return safeParse(
|
|
1358
|
-
jsonString,
|
|
1359
|
-
(x) => ListAgentsDataKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1360
|
-
`Failed to parse 'ListAgentsDataKnowledgeBases' from JSON`,
|
|
1361
|
-
);
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
/** @internal */
|
|
1365
|
-
export const ListAgentsDataSource$inboundSchema: z.ZodNativeEnum<
|
|
1366
|
-
typeof ListAgentsDataSource
|
|
1367
|
-
> = z.nativeEnum(ListAgentsDataSource);
|
|
1368
|
-
|
|
1369
|
-
/** @internal */
|
|
1370
|
-
export const DataHeaders$inboundSchema: z.ZodType<
|
|
1371
|
-
DataHeaders,
|
|
1372
|
-
z.ZodTypeDef,
|
|
1373
|
-
unknown
|
|
1374
|
-
> = z.object({
|
|
1375
|
-
value: z.string(),
|
|
1376
|
-
encrypted: z.boolean().default(false),
|
|
1377
|
-
});
|
|
1378
|
-
|
|
1379
|
-
export function dataHeadersFromJSON(
|
|
1380
|
-
jsonString: string,
|
|
1381
|
-
): SafeParseResult<DataHeaders, SDKValidationError> {
|
|
1382
|
-
return safeParse(
|
|
1383
|
-
jsonString,
|
|
1384
|
-
(x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
1385
|
-
`Failed to parse 'DataHeaders' from JSON`,
|
|
1386
|
-
);
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
/** @internal */
|
|
1390
|
-
export const DataA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
1391
|
-
DataA2AAgentConfiguration,
|
|
1392
|
-
z.ZodTypeDef,
|
|
1393
|
-
unknown
|
|
1394
|
-
> = z.object({
|
|
1395
|
-
agent_url: z.string(),
|
|
1396
|
-
card_url: z.string().optional(),
|
|
1397
|
-
headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
|
|
1398
|
-
cached_card: z.any().optional(),
|
|
1399
|
-
}).transform((v) => {
|
|
1400
|
-
return remap$(v, {
|
|
1401
|
-
"agent_url": "agentUrl",
|
|
1402
|
-
"card_url": "cardUrl",
|
|
1403
|
-
"cached_card": "cachedCard",
|
|
1404
|
-
});
|
|
1405
|
-
});
|
|
1406
|
-
|
|
1407
|
-
export function dataA2AAgentConfigurationFromJSON(
|
|
1408
|
-
jsonString: string,
|
|
1409
|
-
): SafeParseResult<DataA2AAgentConfiguration, SDKValidationError> {
|
|
1410
|
-
return safeParse(
|
|
1411
|
-
jsonString,
|
|
1412
|
-
(x) => DataA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
1413
|
-
`Failed to parse 'DataA2AAgentConfiguration' from JSON`,
|
|
1414
|
-
);
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
/** @internal */
|
|
1418
|
-
export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
1419
|
-
.object({
|
|
1420
|
-
_id: z.string(),
|
|
1421
|
-
key: z.string(),
|
|
1422
|
-
display_name: z.string().optional(),
|
|
1423
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1424
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1425
|
-
created: z.string().optional(),
|
|
1426
|
-
updated: z.string().optional(),
|
|
1427
|
-
status: ListAgentsDataStatus$inboundSchema,
|
|
1428
|
-
version_hash: z.string().optional(),
|
|
1429
|
-
path: z.string(),
|
|
1430
|
-
memory_stores: z.array(z.string()).optional(),
|
|
1431
|
-
team_of_agents: z.array(
|
|
1432
|
-
z.lazy(() => ListAgentsDataTeamOfAgents$inboundSchema),
|
|
1433
|
-
).optional(),
|
|
1434
|
-
metrics: z.lazy(() => ListAgentsDataMetrics$inboundSchema).optional(),
|
|
1435
|
-
variables: z.record(z.any()).optional(),
|
|
1436
|
-
knowledge_bases: z.array(
|
|
1437
|
-
z.lazy(() => ListAgentsDataKnowledgeBases$inboundSchema),
|
|
1438
|
-
).optional(),
|
|
1439
|
-
source: ListAgentsDataSource$inboundSchema.optional(),
|
|
1440
|
-
type: z.literal("a2a"),
|
|
1441
|
-
role: z.string(),
|
|
1442
|
-
description: z.string(),
|
|
1443
|
-
system_prompt: z.string().optional(),
|
|
1444
|
-
instructions: z.string(),
|
|
1445
|
-
a2a: z.lazy(() => DataA2AAgentConfiguration$inboundSchema),
|
|
1446
|
-
}).transform((v) => {
|
|
1447
|
-
return remap$(v, {
|
|
1448
|
-
"_id": "id",
|
|
1449
|
-
"display_name": "displayName",
|
|
1450
|
-
"created_by_id": "createdById",
|
|
1451
|
-
"updated_by_id": "updatedById",
|
|
1452
|
-
"version_hash": "versionHash",
|
|
1453
|
-
"memory_stores": "memoryStores",
|
|
1454
|
-
"team_of_agents": "teamOfAgents",
|
|
1455
|
-
"knowledge_bases": "knowledgeBases",
|
|
1456
|
-
"system_prompt": "systemPrompt",
|
|
1457
|
-
});
|
|
1458
|
-
});
|
|
1459
|
-
|
|
1460
|
-
export function data2FromJSON(
|
|
1260
|
+
export function listAgentsKnowledgeBasesFromJSON(
|
|
1461
1261
|
jsonString: string,
|
|
1462
|
-
): SafeParseResult<
|
|
1262
|
+
): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
|
|
1463
1263
|
return safeParse(
|
|
1464
1264
|
jsonString,
|
|
1465
|
-
(x) =>
|
|
1466
|
-
`Failed to parse '
|
|
1265
|
+
(x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1266
|
+
`Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
|
|
1467
1267
|
);
|
|
1468
1268
|
}
|
|
1469
1269
|
|
|
1470
1270
|
/** @internal */
|
|
1471
|
-
export const
|
|
1472
|
-
|
|
1271
|
+
export const ListAgentsSource$inboundSchema: z.ZodNativeEnum<
|
|
1272
|
+
typeof ListAgentsSource
|
|
1273
|
+
> = z.nativeEnum(ListAgentsSource);
|
|
1473
1274
|
|
|
1474
1275
|
/** @internal */
|
|
1475
|
-
export const
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
unknown
|
|
1479
|
-
> = z.object({
|
|
1480
|
-
key: z.string(),
|
|
1481
|
-
role: z.string().optional(),
|
|
1482
|
-
});
|
|
1483
|
-
|
|
1484
|
-
export function dataTeamOfAgentsFromJSON(
|
|
1485
|
-
jsonString: string,
|
|
1486
|
-
): SafeParseResult<DataTeamOfAgents, SDKValidationError> {
|
|
1487
|
-
return safeParse(
|
|
1488
|
-
jsonString,
|
|
1489
|
-
(x) => DataTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
1490
|
-
`Failed to parse 'DataTeamOfAgents' from JSON`,
|
|
1491
|
-
);
|
|
1492
|
-
}
|
|
1276
|
+
export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
1277
|
+
typeof ListAgentsType
|
|
1278
|
+
> = z.nativeEnum(ListAgentsType);
|
|
1493
1279
|
|
|
1494
1280
|
/** @internal */
|
|
1495
|
-
export const
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
unknown
|
|
1499
|
-
> = z.object({
|
|
1500
|
-
total_cost: z.number().default(0),
|
|
1501
|
-
}).transform((v) => {
|
|
1502
|
-
return remap$(v, {
|
|
1503
|
-
"total_cost": "totalCost",
|
|
1504
|
-
});
|
|
1505
|
-
});
|
|
1506
|
-
|
|
1507
|
-
export function dataMetricsFromJSON(
|
|
1508
|
-
jsonString: string,
|
|
1509
|
-
): SafeParseResult<DataMetrics, SDKValidationError> {
|
|
1510
|
-
return safeParse(
|
|
1511
|
-
jsonString,
|
|
1512
|
-
(x) => DataMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
1513
|
-
`Failed to parse 'DataMetrics' from JSON`,
|
|
1514
|
-
);
|
|
1515
|
-
}
|
|
1281
|
+
export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
1282
|
+
typeof ListAgentsToolApprovalRequired
|
|
1283
|
+
> = z.nativeEnum(ListAgentsToolApprovalRequired);
|
|
1516
1284
|
|
|
1517
1285
|
/** @internal */
|
|
1518
|
-
export const
|
|
1519
|
-
|
|
1520
|
-
z.ZodTypeDef,
|
|
1521
|
-
unknown
|
|
1522
|
-
> = z.object({
|
|
1523
|
-
knowledge_id: z.string(),
|
|
1524
|
-
}).transform((v) => {
|
|
1525
|
-
return remap$(v, {
|
|
1526
|
-
"knowledge_id": "knowledgeId",
|
|
1527
|
-
});
|
|
1528
|
-
});
|
|
1529
|
-
|
|
1530
|
-
export function dataKnowledgeBasesFromJSON(
|
|
1531
|
-
jsonString: string,
|
|
1532
|
-
): SafeParseResult<DataKnowledgeBases, SDKValidationError> {
|
|
1533
|
-
return safeParse(
|
|
1534
|
-
jsonString,
|
|
1535
|
-
(x) => DataKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1536
|
-
`Failed to parse 'DataKnowledgeBases' from JSON`,
|
|
1537
|
-
);
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
/** @internal */
|
|
1541
|
-
export const DataSource$inboundSchema: z.ZodNativeEnum<typeof DataSource> = z
|
|
1542
|
-
.nativeEnum(DataSource);
|
|
1543
|
-
|
|
1544
|
-
/** @internal */
|
|
1545
|
-
export const DataToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
1546
|
-
typeof DataToolApprovalRequired
|
|
1547
|
-
> = z.nativeEnum(DataToolApprovalRequired);
|
|
1548
|
-
|
|
1549
|
-
/** @internal */
|
|
1550
|
-
export const DataConditions$inboundSchema: z.ZodType<
|
|
1551
|
-
DataConditions,
|
|
1286
|
+
export const ListAgentsConditions$inboundSchema: z.ZodType<
|
|
1287
|
+
ListAgentsConditions,
|
|
1552
1288
|
z.ZodTypeDef,
|
|
1553
1289
|
unknown
|
|
1554
1290
|
> = z.object({
|
|
@@ -1557,19 +1293,19 @@ export const DataConditions$inboundSchema: z.ZodType<
|
|
|
1557
1293
|
value: z.string(),
|
|
1558
1294
|
});
|
|
1559
1295
|
|
|
1560
|
-
export function
|
|
1296
|
+
export function listAgentsConditionsFromJSON(
|
|
1561
1297
|
jsonString: string,
|
|
1562
|
-
): SafeParseResult<
|
|
1298
|
+
): SafeParseResult<ListAgentsConditions, SDKValidationError> {
|
|
1563
1299
|
return safeParse(
|
|
1564
1300
|
jsonString,
|
|
1565
|
-
(x) =>
|
|
1566
|
-
`Failed to parse '
|
|
1301
|
+
(x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1302
|
+
`Failed to parse 'ListAgentsConditions' from JSON`,
|
|
1567
1303
|
);
|
|
1568
1304
|
}
|
|
1569
1305
|
|
|
1570
1306
|
/** @internal */
|
|
1571
|
-
export const
|
|
1572
|
-
|
|
1307
|
+
export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
1308
|
+
ListAgentsTools,
|
|
1573
1309
|
z.ZodTypeDef,
|
|
1574
1310
|
unknown
|
|
1575
1311
|
> = z.object({
|
|
@@ -1580,7 +1316,8 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
1580
1316
|
description: z.string().optional(),
|
|
1581
1317
|
requires_approval: z.boolean().default(false),
|
|
1582
1318
|
tool_id: z.string().optional(),
|
|
1583
|
-
conditions: z.array(z.lazy(() =>
|
|
1319
|
+
conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
|
|
1320
|
+
.optional(),
|
|
1584
1321
|
timeout: z.number().default(120),
|
|
1585
1322
|
}).transform((v) => {
|
|
1586
1323
|
return remap$(v, {
|
|
@@ -1591,30 +1328,30 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
1591
1328
|
});
|
|
1592
1329
|
});
|
|
1593
1330
|
|
|
1594
|
-
export function
|
|
1331
|
+
export function listAgentsToolsFromJSON(
|
|
1595
1332
|
jsonString: string,
|
|
1596
|
-
): SafeParseResult<
|
|
1333
|
+
): SafeParseResult<ListAgentsTools, SDKValidationError> {
|
|
1597
1334
|
return safeParse(
|
|
1598
1335
|
jsonString,
|
|
1599
|
-
(x) =>
|
|
1600
|
-
`Failed to parse '
|
|
1336
|
+
(x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
|
|
1337
|
+
`Failed to parse 'ListAgentsTools' from JSON`,
|
|
1601
1338
|
);
|
|
1602
1339
|
}
|
|
1603
1340
|
|
|
1604
1341
|
/** @internal */
|
|
1605
|
-
export const
|
|
1606
|
-
typeof
|
|
1607
|
-
> = z.nativeEnum(
|
|
1342
|
+
export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1343
|
+
typeof ListAgentsExecuteOn
|
|
1344
|
+
> = z.nativeEnum(ListAgentsExecuteOn);
|
|
1608
1345
|
|
|
1609
1346
|
/** @internal */
|
|
1610
|
-
export const
|
|
1611
|
-
|
|
1347
|
+
export const ListAgentsEvaluators$inboundSchema: z.ZodType<
|
|
1348
|
+
ListAgentsEvaluators,
|
|
1612
1349
|
z.ZodTypeDef,
|
|
1613
1350
|
unknown
|
|
1614
1351
|
> = z.object({
|
|
1615
1352
|
id: z.string(),
|
|
1616
1353
|
sample_rate: z.number().default(50),
|
|
1617
|
-
execute_on:
|
|
1354
|
+
execute_on: ListAgentsExecuteOn$inboundSchema,
|
|
1618
1355
|
}).transform((v) => {
|
|
1619
1356
|
return remap$(v, {
|
|
1620
1357
|
"sample_rate": "sampleRate",
|
|
@@ -1622,30 +1359,30 @@ export const DataEvaluators$inboundSchema: z.ZodType<
|
|
|
1622
1359
|
});
|
|
1623
1360
|
});
|
|
1624
1361
|
|
|
1625
|
-
export function
|
|
1362
|
+
export function listAgentsEvaluatorsFromJSON(
|
|
1626
1363
|
jsonString: string,
|
|
1627
|
-
): SafeParseResult<
|
|
1364
|
+
): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
|
|
1628
1365
|
return safeParse(
|
|
1629
1366
|
jsonString,
|
|
1630
|
-
(x) =>
|
|
1631
|
-
`Failed to parse '
|
|
1367
|
+
(x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
1368
|
+
`Failed to parse 'ListAgentsEvaluators' from JSON`,
|
|
1632
1369
|
);
|
|
1633
1370
|
}
|
|
1634
1371
|
|
|
1635
1372
|
/** @internal */
|
|
1636
|
-
export const
|
|
1637
|
-
typeof
|
|
1638
|
-
> = z.nativeEnum(
|
|
1373
|
+
export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1374
|
+
typeof ListAgentsAgentsExecuteOn
|
|
1375
|
+
> = z.nativeEnum(ListAgentsAgentsExecuteOn);
|
|
1639
1376
|
|
|
1640
1377
|
/** @internal */
|
|
1641
|
-
export const
|
|
1642
|
-
|
|
1378
|
+
export const ListAgentsGuardrails$inboundSchema: z.ZodType<
|
|
1379
|
+
ListAgentsGuardrails,
|
|
1643
1380
|
z.ZodTypeDef,
|
|
1644
1381
|
unknown
|
|
1645
1382
|
> = z.object({
|
|
1646
1383
|
id: z.string(),
|
|
1647
1384
|
sample_rate: z.number().default(50),
|
|
1648
|
-
execute_on:
|
|
1385
|
+
execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
|
|
1649
1386
|
}).transform((v) => {
|
|
1650
1387
|
return remap$(v, {
|
|
1651
1388
|
"sample_rate": "sampleRate",
|
|
@@ -1653,31 +1390,33 @@ export const DataGuardrails$inboundSchema: z.ZodType<
|
|
|
1653
1390
|
});
|
|
1654
1391
|
});
|
|
1655
1392
|
|
|
1656
|
-
export function
|
|
1393
|
+
export function listAgentsGuardrailsFromJSON(
|
|
1657
1394
|
jsonString: string,
|
|
1658
|
-
): SafeParseResult<
|
|
1395
|
+
): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
|
|
1659
1396
|
return safeParse(
|
|
1660
1397
|
jsonString,
|
|
1661
|
-
(x) =>
|
|
1662
|
-
`Failed to parse '
|
|
1398
|
+
(x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1399
|
+
`Failed to parse 'ListAgentsGuardrails' from JSON`,
|
|
1663
1400
|
);
|
|
1664
1401
|
}
|
|
1665
1402
|
|
|
1666
1403
|
/** @internal */
|
|
1667
|
-
export const
|
|
1668
|
-
|
|
1404
|
+
export const ListAgentsSettings$inboundSchema: z.ZodType<
|
|
1405
|
+
ListAgentsSettings,
|
|
1669
1406
|
z.ZodTypeDef,
|
|
1670
1407
|
unknown
|
|
1671
1408
|
> = z.object({
|
|
1672
1409
|
max_iterations: z.number().int().default(100),
|
|
1673
1410
|
max_execution_time: z.number().int().default(600),
|
|
1674
1411
|
max_cost: z.number().default(0),
|
|
1675
|
-
tool_approval_required:
|
|
1412
|
+
tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
|
|
1676
1413
|
"respect_tool",
|
|
1677
1414
|
),
|
|
1678
|
-
tools: z.array(z.lazy(() =>
|
|
1679
|
-
evaluators: z.array(z.lazy(() =>
|
|
1680
|
-
|
|
1415
|
+
tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
|
|
1416
|
+
evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
|
|
1417
|
+
.optional(),
|
|
1418
|
+
guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
|
|
1419
|
+
.optional(),
|
|
1681
1420
|
}).transform((v) => {
|
|
1682
1421
|
return remap$(v, {
|
|
1683
1422
|
"max_iterations": "maxIterations",
|
|
@@ -1687,13 +1426,13 @@ export const DataSettings$inboundSchema: z.ZodType<
|
|
|
1687
1426
|
});
|
|
1688
1427
|
});
|
|
1689
1428
|
|
|
1690
|
-
export function
|
|
1429
|
+
export function listAgentsSettingsFromJSON(
|
|
1691
1430
|
jsonString: string,
|
|
1692
|
-
): SafeParseResult<
|
|
1431
|
+
): SafeParseResult<ListAgentsSettings, SDKValidationError> {
|
|
1693
1432
|
return safeParse(
|
|
1694
1433
|
jsonString,
|
|
1695
|
-
(x) =>
|
|
1696
|
-
`Failed to parse '
|
|
1434
|
+
(x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1435
|
+
`Failed to parse 'ListAgentsSettings' from JSON`,
|
|
1697
1436
|
);
|
|
1698
1437
|
}
|
|
1699
1438
|
|
|
@@ -1790,8 +1529,8 @@ export function listAgentsResponseFormatTextFromJSON(
|
|
|
1790
1529
|
}
|
|
1791
1530
|
|
|
1792
1531
|
/** @internal */
|
|
1793
|
-
export const
|
|
1794
|
-
|
|
1532
|
+
export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
|
|
1533
|
+
ListAgentsResponseFormat,
|
|
1795
1534
|
z.ZodTypeDef,
|
|
1796
1535
|
unknown
|
|
1797
1536
|
> = z.union([
|
|
@@ -1800,41 +1539,41 @@ export const DataResponseFormat$inboundSchema: z.ZodType<
|
|
|
1800
1539
|
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
1801
1540
|
]);
|
|
1802
1541
|
|
|
1803
|
-
export function
|
|
1542
|
+
export function listAgentsResponseFormatFromJSON(
|
|
1804
1543
|
jsonString: string,
|
|
1805
|
-
): SafeParseResult<
|
|
1544
|
+
): SafeParseResult<ListAgentsResponseFormat, SDKValidationError> {
|
|
1806
1545
|
return safeParse(
|
|
1807
1546
|
jsonString,
|
|
1808
|
-
(x) =>
|
|
1809
|
-
`Failed to parse '
|
|
1547
|
+
(x) => ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1548
|
+
`Failed to parse 'ListAgentsResponseFormat' from JSON`,
|
|
1810
1549
|
);
|
|
1811
1550
|
}
|
|
1812
1551
|
|
|
1813
1552
|
/** @internal */
|
|
1814
|
-
export const
|
|
1815
|
-
typeof
|
|
1816
|
-
> = z.nativeEnum(
|
|
1553
|
+
export const ListAgentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1554
|
+
typeof ListAgentsReasoningEffort
|
|
1555
|
+
> = z.nativeEnum(ListAgentsReasoningEffort);
|
|
1817
1556
|
|
|
1818
1557
|
/** @internal */
|
|
1819
|
-
export const
|
|
1820
|
-
|
|
1558
|
+
export const ListAgentsStop$inboundSchema: z.ZodType<
|
|
1559
|
+
ListAgentsStop,
|
|
1821
1560
|
z.ZodTypeDef,
|
|
1822
1561
|
unknown
|
|
1823
1562
|
> = z.union([z.string(), z.array(z.string())]);
|
|
1824
1563
|
|
|
1825
|
-
export function
|
|
1564
|
+
export function listAgentsStopFromJSON(
|
|
1826
1565
|
jsonString: string,
|
|
1827
|
-
): SafeParseResult<
|
|
1566
|
+
): SafeParseResult<ListAgentsStop, SDKValidationError> {
|
|
1828
1567
|
return safeParse(
|
|
1829
1568
|
jsonString,
|
|
1830
|
-
(x) =>
|
|
1831
|
-
`Failed to parse '
|
|
1569
|
+
(x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
|
|
1570
|
+
`Failed to parse 'ListAgentsStop' from JSON`,
|
|
1832
1571
|
);
|
|
1833
1572
|
}
|
|
1834
1573
|
|
|
1835
1574
|
/** @internal */
|
|
1836
|
-
export const
|
|
1837
|
-
|
|
1575
|
+
export const ListAgentsThinking$inboundSchema: z.ZodType<
|
|
1576
|
+
ListAgentsThinking,
|
|
1838
1577
|
z.ZodTypeDef,
|
|
1839
1578
|
unknown
|
|
1840
1579
|
> = z.union([
|
|
@@ -1842,13 +1581,13 @@ export const DataThinking$inboundSchema: z.ZodType<
|
|
|
1842
1581
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1843
1582
|
]);
|
|
1844
1583
|
|
|
1845
|
-
export function
|
|
1584
|
+
export function listAgentsThinkingFromJSON(
|
|
1846
1585
|
jsonString: string,
|
|
1847
|
-
): SafeParseResult<
|
|
1586
|
+
): SafeParseResult<ListAgentsThinking, SDKValidationError> {
|
|
1848
1587
|
return safeParse(
|
|
1849
1588
|
jsonString,
|
|
1850
|
-
(x) =>
|
|
1851
|
-
`Failed to parse '
|
|
1589
|
+
(x) => ListAgentsThinking$inboundSchema.parse(JSON.parse(x)),
|
|
1590
|
+
`Failed to parse 'ListAgentsThinking' from JSON`,
|
|
1852
1591
|
);
|
|
1853
1592
|
}
|
|
1854
1593
|
|
|
@@ -1902,8 +1641,8 @@ export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
|
1902
1641
|
> = z.nativeEnum(ListAgentsToolChoice1);
|
|
1903
1642
|
|
|
1904
1643
|
/** @internal */
|
|
1905
|
-
export const
|
|
1906
|
-
|
|
1644
|
+
export const ListAgentsToolChoice$inboundSchema: z.ZodType<
|
|
1645
|
+
ListAgentsToolChoice,
|
|
1907
1646
|
z.ZodTypeDef,
|
|
1908
1647
|
unknown
|
|
1909
1648
|
> = z.union([
|
|
@@ -1911,20 +1650,20 @@ export const DataToolChoice$inboundSchema: z.ZodType<
|
|
|
1911
1650
|
ListAgentsToolChoice1$inboundSchema,
|
|
1912
1651
|
]);
|
|
1913
1652
|
|
|
1914
|
-
export function
|
|
1653
|
+
export function listAgentsToolChoiceFromJSON(
|
|
1915
1654
|
jsonString: string,
|
|
1916
|
-
): SafeParseResult<
|
|
1655
|
+
): SafeParseResult<ListAgentsToolChoice, SDKValidationError> {
|
|
1917
1656
|
return safeParse(
|
|
1918
1657
|
jsonString,
|
|
1919
|
-
(x) =>
|
|
1920
|
-
`Failed to parse '
|
|
1658
|
+
(x) => ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
1659
|
+
`Failed to parse 'ListAgentsToolChoice' from JSON`,
|
|
1921
1660
|
);
|
|
1922
1661
|
}
|
|
1923
1662
|
|
|
1924
1663
|
/** @internal */
|
|
1925
|
-
export const
|
|
1926
|
-
typeof
|
|
1927
|
-
> = z.nativeEnum(
|
|
1664
|
+
export const ListAgentsModalities$inboundSchema: z.ZodNativeEnum<
|
|
1665
|
+
typeof ListAgentsModalities
|
|
1666
|
+
> = z.nativeEnum(ListAgentsModalities);
|
|
1928
1667
|
|
|
1929
1668
|
/** @internal */
|
|
1930
1669
|
export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -1932,89 +1671,92 @@ export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
|
|
|
1932
1671
|
> = z.nativeEnum(ListAgentsId1);
|
|
1933
1672
|
|
|
1934
1673
|
/** @internal */
|
|
1935
|
-
export const
|
|
1936
|
-
|
|
1674
|
+
export const ListAgentsId$inboundSchema: z.ZodType<
|
|
1675
|
+
ListAgentsId,
|
|
1676
|
+
z.ZodTypeDef,
|
|
1677
|
+
unknown
|
|
1678
|
+
> = z.union([ListAgentsId1$inboundSchema, z.string()]);
|
|
1937
1679
|
|
|
1938
|
-
export function
|
|
1680
|
+
export function listAgentsIdFromJSON(
|
|
1939
1681
|
jsonString: string,
|
|
1940
|
-
): SafeParseResult<
|
|
1682
|
+
): SafeParseResult<ListAgentsId, SDKValidationError> {
|
|
1941
1683
|
return safeParse(
|
|
1942
1684
|
jsonString,
|
|
1943
|
-
(x) =>
|
|
1944
|
-
`Failed to parse '
|
|
1685
|
+
(x) => ListAgentsId$inboundSchema.parse(JSON.parse(x)),
|
|
1686
|
+
`Failed to parse 'ListAgentsId' from JSON`,
|
|
1945
1687
|
);
|
|
1946
1688
|
}
|
|
1947
1689
|
|
|
1948
1690
|
/** @internal */
|
|
1949
|
-
export const
|
|
1950
|
-
typeof
|
|
1951
|
-
> = z.nativeEnum(
|
|
1691
|
+
export const ListAgentsAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1692
|
+
typeof ListAgentsAgentsResponseExecuteOn
|
|
1693
|
+
> = z.nativeEnum(ListAgentsAgentsResponseExecuteOn);
|
|
1952
1694
|
|
|
1953
1695
|
/** @internal */
|
|
1954
|
-
export const
|
|
1955
|
-
|
|
1696
|
+
export const ListAgentsAgentsGuardrails$inboundSchema: z.ZodType<
|
|
1697
|
+
ListAgentsAgentsGuardrails,
|
|
1956
1698
|
z.ZodTypeDef,
|
|
1957
1699
|
unknown
|
|
1958
1700
|
> = z.object({
|
|
1959
1701
|
id: z.union([ListAgentsId1$inboundSchema, z.string()]),
|
|
1960
|
-
execute_on:
|
|
1702
|
+
execute_on: ListAgentsAgentsResponseExecuteOn$inboundSchema,
|
|
1961
1703
|
}).transform((v) => {
|
|
1962
1704
|
return remap$(v, {
|
|
1963
1705
|
"execute_on": "executeOn",
|
|
1964
1706
|
});
|
|
1965
1707
|
});
|
|
1966
1708
|
|
|
1967
|
-
export function
|
|
1709
|
+
export function listAgentsAgentsGuardrailsFromJSON(
|
|
1968
1710
|
jsonString: string,
|
|
1969
|
-
): SafeParseResult<
|
|
1711
|
+
): SafeParseResult<ListAgentsAgentsGuardrails, SDKValidationError> {
|
|
1970
1712
|
return safeParse(
|
|
1971
1713
|
jsonString,
|
|
1972
|
-
(x) =>
|
|
1973
|
-
`Failed to parse '
|
|
1714
|
+
(x) => ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1715
|
+
`Failed to parse 'ListAgentsAgentsGuardrails' from JSON`,
|
|
1974
1716
|
);
|
|
1975
1717
|
}
|
|
1976
1718
|
|
|
1977
1719
|
/** @internal */
|
|
1978
|
-
export const
|
|
1979
|
-
|
|
1720
|
+
export const ListAgentsFallbacks$inboundSchema: z.ZodType<
|
|
1721
|
+
ListAgentsFallbacks,
|
|
1980
1722
|
z.ZodTypeDef,
|
|
1981
1723
|
unknown
|
|
1982
1724
|
> = z.object({
|
|
1983
1725
|
model: z.string(),
|
|
1984
1726
|
});
|
|
1985
1727
|
|
|
1986
|
-
export function
|
|
1728
|
+
export function listAgentsFallbacksFromJSON(
|
|
1987
1729
|
jsonString: string,
|
|
1988
|
-
): SafeParseResult<
|
|
1730
|
+
): SafeParseResult<ListAgentsFallbacks, SDKValidationError> {
|
|
1989
1731
|
return safeParse(
|
|
1990
1732
|
jsonString,
|
|
1991
|
-
(x) =>
|
|
1992
|
-
`Failed to parse '
|
|
1733
|
+
(x) => ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
1734
|
+
`Failed to parse 'ListAgentsFallbacks' from JSON`,
|
|
1993
1735
|
);
|
|
1994
1736
|
}
|
|
1995
1737
|
|
|
1996
1738
|
/** @internal */
|
|
1997
|
-
export const
|
|
1998
|
-
typeof
|
|
1999
|
-
> = z.nativeEnum(
|
|
1739
|
+
export const ListAgentsAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
1740
|
+
typeof ListAgentsAgentsType
|
|
1741
|
+
> = z.nativeEnum(ListAgentsAgentsType);
|
|
2000
1742
|
|
|
2001
1743
|
/** @internal */
|
|
2002
|
-
export const
|
|
2003
|
-
|
|
1744
|
+
export const ListAgentsCache$inboundSchema: z.ZodType<
|
|
1745
|
+
ListAgentsCache,
|
|
2004
1746
|
z.ZodTypeDef,
|
|
2005
1747
|
unknown
|
|
2006
1748
|
> = z.object({
|
|
2007
1749
|
ttl: z.number().default(1800),
|
|
2008
|
-
type:
|
|
1750
|
+
type: ListAgentsAgentsType$inboundSchema,
|
|
2009
1751
|
});
|
|
2010
1752
|
|
|
2011
|
-
export function
|
|
1753
|
+
export function listAgentsCacheFromJSON(
|
|
2012
1754
|
jsonString: string,
|
|
2013
|
-
): SafeParseResult<
|
|
1755
|
+
): SafeParseResult<ListAgentsCache, SDKValidationError> {
|
|
2014
1756
|
return safeParse(
|
|
2015
1757
|
jsonString,
|
|
2016
|
-
(x) =>
|
|
2017
|
-
`Failed to parse '
|
|
1758
|
+
(x) => ListAgentsCache$inboundSchema.parse(JSON.parse(x)),
|
|
1759
|
+
`Failed to parse 'ListAgentsCache' from JSON`,
|
|
2018
1760
|
);
|
|
2019
1761
|
}
|
|
2020
1762
|
|
|
@@ -2064,25 +1806,25 @@ export function listAgentsLoadBalancer1FromJSON(
|
|
|
2064
1806
|
}
|
|
2065
1807
|
|
|
2066
1808
|
/** @internal */
|
|
2067
|
-
export const
|
|
2068
|
-
|
|
1809
|
+
export const ListAgentsLoadBalancer$inboundSchema: z.ZodType<
|
|
1810
|
+
ListAgentsLoadBalancer,
|
|
2069
1811
|
z.ZodTypeDef,
|
|
2070
1812
|
unknown
|
|
2071
1813
|
> = z.lazy(() => ListAgentsLoadBalancer1$inboundSchema);
|
|
2072
1814
|
|
|
2073
|
-
export function
|
|
1815
|
+
export function listAgentsLoadBalancerFromJSON(
|
|
2074
1816
|
jsonString: string,
|
|
2075
|
-
): SafeParseResult<
|
|
1817
|
+
): SafeParseResult<ListAgentsLoadBalancer, SDKValidationError> {
|
|
2076
1818
|
return safeParse(
|
|
2077
1819
|
jsonString,
|
|
2078
|
-
(x) =>
|
|
2079
|
-
`Failed to parse '
|
|
1820
|
+
(x) => ListAgentsLoadBalancer$inboundSchema.parse(JSON.parse(x)),
|
|
1821
|
+
`Failed to parse 'ListAgentsLoadBalancer' from JSON`,
|
|
2080
1822
|
);
|
|
2081
1823
|
}
|
|
2082
1824
|
|
|
2083
1825
|
/** @internal */
|
|
2084
|
-
export const
|
|
2085
|
-
|
|
1826
|
+
export const ListAgentsTimeout$inboundSchema: z.ZodType<
|
|
1827
|
+
ListAgentsTimeout,
|
|
2086
1828
|
z.ZodTypeDef,
|
|
2087
1829
|
unknown
|
|
2088
1830
|
> = z.object({
|
|
@@ -2093,19 +1835,19 @@ export const DataTimeout$inboundSchema: z.ZodType<
|
|
|
2093
1835
|
});
|
|
2094
1836
|
});
|
|
2095
1837
|
|
|
2096
|
-
export function
|
|
1838
|
+
export function listAgentsTimeoutFromJSON(
|
|
2097
1839
|
jsonString: string,
|
|
2098
|
-
): SafeParseResult<
|
|
1840
|
+
): SafeParseResult<ListAgentsTimeout, SDKValidationError> {
|
|
2099
1841
|
return safeParse(
|
|
2100
1842
|
jsonString,
|
|
2101
|
-
(x) =>
|
|
2102
|
-
`Failed to parse '
|
|
1843
|
+
(x) => ListAgentsTimeout$inboundSchema.parse(JSON.parse(x)),
|
|
1844
|
+
`Failed to parse 'ListAgentsTimeout' from JSON`,
|
|
2103
1845
|
);
|
|
2104
1846
|
}
|
|
2105
1847
|
|
|
2106
1848
|
/** @internal */
|
|
2107
|
-
export const
|
|
2108
|
-
|
|
1849
|
+
export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
1850
|
+
ListAgentsParameters,
|
|
2109
1851
|
z.ZodTypeDef,
|
|
2110
1852
|
unknown
|
|
2111
1853
|
> = z.object({
|
|
@@ -2119,7 +1861,7 @@ export const DataParameters$inboundSchema: z.ZodType<
|
|
|
2119
1861
|
z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
2120
1862
|
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
2121
1863
|
]).optional(),
|
|
2122
|
-
reasoning_effort:
|
|
1864
|
+
reasoning_effort: ListAgentsReasoningEffort$inboundSchema.optional(),
|
|
2123
1865
|
verbosity: z.string().optional(),
|
|
2124
1866
|
seed: z.nullable(z.number()).optional(),
|
|
2125
1867
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -2135,13 +1877,15 @@ export const DataParameters$inboundSchema: z.ZodType<
|
|
|
2135
1877
|
ListAgentsToolChoice1$inboundSchema,
|
|
2136
1878
|
]).optional(),
|
|
2137
1879
|
parallel_tool_calls: z.boolean().optional(),
|
|
2138
|
-
modalities: z.nullable(z.array(
|
|
2139
|
-
|
|
1880
|
+
modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
|
|
1881
|
+
.optional(),
|
|
1882
|
+
guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
|
|
1883
|
+
.optional(),
|
|
1884
|
+
fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
|
|
2140
1885
|
.optional(),
|
|
2141
|
-
|
|
2142
|
-
cache: z.lazy(() => DataCache$inboundSchema).optional(),
|
|
1886
|
+
cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
|
|
2143
1887
|
load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
|
|
2144
|
-
timeout: z.lazy(() =>
|
|
1888
|
+
timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
|
|
2145
1889
|
}).transform((v) => {
|
|
2146
1890
|
return remap$(v, {
|
|
2147
1891
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -2158,19 +1902,19 @@ export const DataParameters$inboundSchema: z.ZodType<
|
|
|
2158
1902
|
});
|
|
2159
1903
|
});
|
|
2160
1904
|
|
|
2161
|
-
export function
|
|
1905
|
+
export function listAgentsParametersFromJSON(
|
|
2162
1906
|
jsonString: string,
|
|
2163
|
-
): SafeParseResult<
|
|
1907
|
+
): SafeParseResult<ListAgentsParameters, SDKValidationError> {
|
|
2164
1908
|
return safeParse(
|
|
2165
1909
|
jsonString,
|
|
2166
|
-
(x) =>
|
|
2167
|
-
`Failed to parse '
|
|
1910
|
+
(x) => ListAgentsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1911
|
+
`Failed to parse 'ListAgentsParameters' from JSON`,
|
|
2168
1912
|
);
|
|
2169
1913
|
}
|
|
2170
1914
|
|
|
2171
1915
|
/** @internal */
|
|
2172
|
-
export const
|
|
2173
|
-
|
|
1916
|
+
export const ListAgentsRetry$inboundSchema: z.ZodType<
|
|
1917
|
+
ListAgentsRetry,
|
|
2174
1918
|
z.ZodTypeDef,
|
|
2175
1919
|
unknown
|
|
2176
1920
|
> = z.object({
|
|
@@ -2182,13 +1926,13 @@ export const DataRetry$inboundSchema: z.ZodType<
|
|
|
2182
1926
|
});
|
|
2183
1927
|
});
|
|
2184
1928
|
|
|
2185
|
-
export function
|
|
1929
|
+
export function listAgentsRetryFromJSON(
|
|
2186
1930
|
jsonString: string,
|
|
2187
|
-
): SafeParseResult<
|
|
1931
|
+
): SafeParseResult<ListAgentsRetry, SDKValidationError> {
|
|
2188
1932
|
return safeParse(
|
|
2189
1933
|
jsonString,
|
|
2190
|
-
(x) =>
|
|
2191
|
-
`Failed to parse '
|
|
1934
|
+
(x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
|
|
1935
|
+
`Failed to parse 'ListAgentsRetry' from JSON`,
|
|
2192
1936
|
);
|
|
2193
1937
|
}
|
|
2194
1938
|
|
|
@@ -2827,8 +2571,8 @@ export function listAgentsFallbackModelConfiguration2FromJSON(
|
|
|
2827
2571
|
}
|
|
2828
2572
|
|
|
2829
2573
|
/** @internal */
|
|
2830
|
-
export const
|
|
2831
|
-
|
|
2574
|
+
export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
|
|
2575
|
+
ListAgentsFallbackModelConfiguration,
|
|
2832
2576
|
z.ZodTypeDef,
|
|
2833
2577
|
unknown
|
|
2834
2578
|
> = z.union([
|
|
@@ -2836,26 +2580,27 @@ export const DataFallbackModelConfiguration$inboundSchema: z.ZodType<
|
|
|
2836
2580
|
z.string(),
|
|
2837
2581
|
]);
|
|
2838
2582
|
|
|
2839
|
-
export function
|
|
2583
|
+
export function listAgentsFallbackModelConfigurationFromJSON(
|
|
2840
2584
|
jsonString: string,
|
|
2841
|
-
): SafeParseResult<
|
|
2585
|
+
): SafeParseResult<ListAgentsFallbackModelConfiguration, SDKValidationError> {
|
|
2842
2586
|
return safeParse(
|
|
2843
2587
|
jsonString,
|
|
2844
|
-
(x) =>
|
|
2845
|
-
|
|
2588
|
+
(x) =>
|
|
2589
|
+
ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
2590
|
+
`Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
|
|
2846
2591
|
);
|
|
2847
2592
|
}
|
|
2848
2593
|
|
|
2849
2594
|
/** @internal */
|
|
2850
|
-
export const
|
|
2851
|
-
|
|
2595
|
+
export const ListAgentsModel$inboundSchema: z.ZodType<
|
|
2596
|
+
ListAgentsModel,
|
|
2852
2597
|
z.ZodTypeDef,
|
|
2853
2598
|
unknown
|
|
2854
2599
|
> = z.object({
|
|
2855
2600
|
id: z.string(),
|
|
2856
2601
|
integration_id: z.nullable(z.string()).optional(),
|
|
2857
|
-
parameters: z.lazy(() =>
|
|
2858
|
-
retry: z.lazy(() =>
|
|
2602
|
+
parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
|
|
2603
|
+
retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
|
|
2859
2604
|
fallback_models: z.nullable(
|
|
2860
2605
|
z.array(z.union([
|
|
2861
2606
|
z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
@@ -2869,65 +2614,61 @@ export const DataModel$inboundSchema: z.ZodType<
|
|
|
2869
2614
|
});
|
|
2870
2615
|
});
|
|
2871
2616
|
|
|
2872
|
-
export function
|
|
2617
|
+
export function listAgentsModelFromJSON(
|
|
2873
2618
|
jsonString: string,
|
|
2874
|
-
): SafeParseResult<
|
|
2619
|
+
): SafeParseResult<ListAgentsModel, SDKValidationError> {
|
|
2875
2620
|
return safeParse(
|
|
2876
2621
|
jsonString,
|
|
2877
|
-
(x) =>
|
|
2878
|
-
`Failed to parse '
|
|
2622
|
+
(x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
|
|
2623
|
+
`Failed to parse 'ListAgentsModel' from JSON`,
|
|
2879
2624
|
);
|
|
2880
2625
|
}
|
|
2881
2626
|
|
|
2882
2627
|
/** @internal */
|
|
2883
|
-
export const
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
"memory_stores": "memoryStores",
|
|
2918
|
-
"team_of_agents": "teamOfAgents",
|
|
2919
|
-
"knowledge_bases": "knowledgeBases",
|
|
2920
|
-
"system_prompt": "systemPrompt",
|
|
2921
|
-
});
|
|
2628
|
+
export const ListAgentsHeaders$inboundSchema: z.ZodType<
|
|
2629
|
+
ListAgentsHeaders,
|
|
2630
|
+
z.ZodTypeDef,
|
|
2631
|
+
unknown
|
|
2632
|
+
> = z.object({
|
|
2633
|
+
value: z.string(),
|
|
2634
|
+
encrypted: z.boolean().default(false),
|
|
2635
|
+
});
|
|
2636
|
+
|
|
2637
|
+
export function listAgentsHeadersFromJSON(
|
|
2638
|
+
jsonString: string,
|
|
2639
|
+
): SafeParseResult<ListAgentsHeaders, SDKValidationError> {
|
|
2640
|
+
return safeParse(
|
|
2641
|
+
jsonString,
|
|
2642
|
+
(x) => ListAgentsHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
2643
|
+
`Failed to parse 'ListAgentsHeaders' from JSON`,
|
|
2644
|
+
);
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
/** @internal */
|
|
2648
|
+
export const ListAgentsA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
2649
|
+
ListAgentsA2AAgentConfiguration,
|
|
2650
|
+
z.ZodTypeDef,
|
|
2651
|
+
unknown
|
|
2652
|
+
> = z.object({
|
|
2653
|
+
agent_url: z.string(),
|
|
2654
|
+
card_url: z.string().optional(),
|
|
2655
|
+
headers: z.record(z.lazy(() => ListAgentsHeaders$inboundSchema)).optional(),
|
|
2656
|
+
cached_card: z.any().optional(),
|
|
2657
|
+
}).transform((v) => {
|
|
2658
|
+
return remap$(v, {
|
|
2659
|
+
"agent_url": "agentUrl",
|
|
2660
|
+
"card_url": "cardUrl",
|
|
2661
|
+
"cached_card": "cachedCard",
|
|
2922
2662
|
});
|
|
2663
|
+
});
|
|
2923
2664
|
|
|
2924
|
-
export function
|
|
2665
|
+
export function listAgentsA2AAgentConfigurationFromJSON(
|
|
2925
2666
|
jsonString: string,
|
|
2926
|
-
): SafeParseResult<
|
|
2667
|
+
): SafeParseResult<ListAgentsA2AAgentConfiguration, SDKValidationError> {
|
|
2927
2668
|
return safeParse(
|
|
2928
2669
|
jsonString,
|
|
2929
|
-
(x) =>
|
|
2930
|
-
`Failed to parse '
|
|
2670
|
+
(x) => ListAgentsA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
2671
|
+
`Failed to parse 'ListAgentsA2AAgentConfiguration' from JSON`,
|
|
2931
2672
|
);
|
|
2932
2673
|
}
|
|
2933
2674
|
|
|
@@ -2936,10 +2677,46 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
2936
2677
|
ListAgentsData,
|
|
2937
2678
|
z.ZodTypeDef,
|
|
2938
2679
|
unknown
|
|
2939
|
-
> = z.
|
|
2940
|
-
z.
|
|
2941
|
-
z.
|
|
2942
|
-
|
|
2680
|
+
> = z.object({
|
|
2681
|
+
_id: z.string(),
|
|
2682
|
+
key: z.string(),
|
|
2683
|
+
display_name: z.string().optional(),
|
|
2684
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
2685
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
2686
|
+
created: z.string().optional(),
|
|
2687
|
+
updated: z.string().optional(),
|
|
2688
|
+
status: ListAgentsStatus$inboundSchema,
|
|
2689
|
+
version_hash: z.string().optional(),
|
|
2690
|
+
path: z.string(),
|
|
2691
|
+
memory_stores: z.array(z.string()).optional(),
|
|
2692
|
+
team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
|
|
2693
|
+
.optional(),
|
|
2694
|
+
metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
|
|
2695
|
+
variables: z.record(z.any()).optional(),
|
|
2696
|
+
knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
|
|
2697
|
+
.optional(),
|
|
2698
|
+
source: ListAgentsSource$inboundSchema.optional(),
|
|
2699
|
+
type: ListAgentsType$inboundSchema.default("internal"),
|
|
2700
|
+
role: z.string(),
|
|
2701
|
+
description: z.string(),
|
|
2702
|
+
system_prompt: z.string().optional(),
|
|
2703
|
+
instructions: z.string(),
|
|
2704
|
+
settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
|
|
2705
|
+
model: z.lazy(() => ListAgentsModel$inboundSchema),
|
|
2706
|
+
a2a: z.lazy(() => ListAgentsA2AAgentConfiguration$inboundSchema).optional(),
|
|
2707
|
+
}).transform((v) => {
|
|
2708
|
+
return remap$(v, {
|
|
2709
|
+
"_id": "id",
|
|
2710
|
+
"display_name": "displayName",
|
|
2711
|
+
"created_by_id": "createdById",
|
|
2712
|
+
"updated_by_id": "updatedById",
|
|
2713
|
+
"version_hash": "versionHash",
|
|
2714
|
+
"memory_stores": "memoryStores",
|
|
2715
|
+
"team_of_agents": "teamOfAgents",
|
|
2716
|
+
"knowledge_bases": "knowledgeBases",
|
|
2717
|
+
"system_prompt": "systemPrompt",
|
|
2718
|
+
});
|
|
2719
|
+
});
|
|
2943
2720
|
|
|
2944
2721
|
export function listAgentsDataFromJSON(
|
|
2945
2722
|
jsonString: string,
|
|
@@ -2958,12 +2735,7 @@ export const ListAgentsResponseBody$inboundSchema: z.ZodType<
|
|
|
2958
2735
|
unknown
|
|
2959
2736
|
> = z.object({
|
|
2960
2737
|
object: ListAgentsObject$inboundSchema,
|
|
2961
|
-
data: z.array(
|
|
2962
|
-
z.union([
|
|
2963
|
-
z.lazy(() => Data1$inboundSchema),
|
|
2964
|
-
z.lazy(() => Data2$inboundSchema),
|
|
2965
|
-
]),
|
|
2966
|
-
),
|
|
2738
|
+
data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
|
|
2967
2739
|
has_more: z.boolean(),
|
|
2968
2740
|
}).transform((v) => {
|
|
2969
2741
|
return remap$(v, {
|