@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
|
@@ -36,44 +36,38 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.ListAgentsResponseBody$inboundSchema = exports.ListAgentsData$inboundSchema = exports.
|
|
39
|
+
exports.ListAgentsToolChoiceType$inboundSchema = exports.ListAgentsThinking$inboundSchema = exports.ListAgentsStop$inboundSchema = exports.ListAgentsReasoningEffort$inboundSchema = exports.ListAgentsResponseFormat$inboundSchema = exports.ListAgentsResponseFormatText$inboundSchema = exports.ListAgentsResponseFormatJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema = exports.ListAgentsResponseFormatJsonSchema$inboundSchema = exports.ListAgentsSettings$inboundSchema = exports.ListAgentsGuardrails$inboundSchema = exports.ListAgentsAgentsExecuteOn$inboundSchema = exports.ListAgentsEvaluators$inboundSchema = exports.ListAgentsExecuteOn$inboundSchema = exports.ListAgentsTools$inboundSchema = exports.ListAgentsConditions$inboundSchema = exports.ListAgentsToolApprovalRequired$inboundSchema = exports.ListAgentsType$inboundSchema = exports.ListAgentsSource$inboundSchema = exports.ListAgentsKnowledgeBases$inboundSchema = exports.ListAgentsMetrics$inboundSchema = exports.ListAgentsTeamOfAgents$inboundSchema = exports.ListAgentsStatus$inboundSchema = exports.ListAgentsObject$inboundSchema = exports.ListAgentsRequest$outboundSchema = exports.QueryParamType$outboundSchema = exports.ListAgentsLoadBalancerAgentsType = exports.ListAgentsFallbackModelConfigurationType = exports.ListAgentsFallbackModelConfigurationExecuteOn = exports.ListAgentsIdAgents1 = exports.ListAgentsFallbackModelConfigurationModalities = exports.ListAgentsToolChoiceAgents1 = exports.ListAgentsToolChoiceAgentsType = exports.ListAgentsFallbackModelConfigurationReasoningEffort = exports.ListAgentsLoadBalancerType = exports.ListAgentsAgentsType = exports.ListAgentsAgentsResponseExecuteOn = exports.ListAgentsId1 = exports.ListAgentsModalities = exports.ListAgentsToolChoice1 = exports.ListAgentsToolChoiceType = exports.ListAgentsReasoningEffort = exports.ListAgentsAgentsExecuteOn = exports.ListAgentsExecuteOn = exports.ListAgentsToolApprovalRequired = exports.ListAgentsType = exports.ListAgentsSource = exports.ListAgentsStatus = exports.ListAgentsObject = exports.QueryParamType = void 0;
|
|
40
|
+
exports.ListAgentsModel$inboundSchema = exports.ListAgentsFallbackModelConfiguration$inboundSchema = exports.ListAgentsFallbackModelConfiguration2$inboundSchema = exports.ListAgentsFallbackModelConfigurationRetry$inboundSchema = exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = exports.ListAgentsFallbackModelConfigurationTimeout$inboundSchema = exports.ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema = exports.ListAgentsLoadBalancerAgents1$inboundSchema = exports.ListAgentsLoadBalancerAgentsModels$inboundSchema = exports.ListAgentsLoadBalancerAgentsType$inboundSchema = exports.ListAgentsFallbackModelConfigurationCache$inboundSchema = exports.ListAgentsFallbackModelConfigurationType$inboundSchema = exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema = exports.ListAgentsFallbackModelConfigurationGuardrails$inboundSchema = exports.ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema = exports.ListAgentsFallbackModelConfigurationId$inboundSchema = exports.ListAgentsIdAgents1$inboundSchema = exports.ListAgentsFallbackModelConfigurationModalities$inboundSchema = exports.ListAgentsFallbackModelConfigurationToolChoice$inboundSchema = exports.ListAgentsToolChoiceAgents1$inboundSchema = exports.ListAgentsToolChoiceAgents2$inboundSchema = exports.ListAgentsToolChoiceAgentsFunction$inboundSchema = exports.ListAgentsToolChoiceAgentsType$inboundSchema = exports.ListAgentsFallbackModelConfigurationThinking$inboundSchema = exports.ListAgentsFallbackModelConfigurationStop$inboundSchema = exports.ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema = exports.ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema = exports.ListAgentsResponseFormatAgentsText$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = exports.ListAgentsRetry$inboundSchema = exports.ListAgentsParameters$inboundSchema = exports.ListAgentsTimeout$inboundSchema = exports.ListAgentsLoadBalancer$inboundSchema = exports.ListAgentsLoadBalancer1$inboundSchema = exports.ListAgentsLoadBalancerModels$inboundSchema = exports.ListAgentsLoadBalancerType$inboundSchema = exports.ListAgentsCache$inboundSchema = exports.ListAgentsAgentsType$inboundSchema = exports.ListAgentsFallbacks$inboundSchema = exports.ListAgentsAgentsGuardrails$inboundSchema = exports.ListAgentsAgentsResponseExecuteOn$inboundSchema = exports.ListAgentsId$inboundSchema = exports.ListAgentsId1$inboundSchema = exports.ListAgentsModalities$inboundSchema = exports.ListAgentsToolChoice$inboundSchema = exports.ListAgentsToolChoice1$inboundSchema = exports.ListAgentsToolChoice2$inboundSchema = exports.ListAgentsToolChoiceFunction$inboundSchema = void 0;
|
|
41
|
+
exports.ListAgentsResponseBody$inboundSchema = exports.ListAgentsData$inboundSchema = exports.ListAgentsA2AAgentConfiguration$inboundSchema = exports.ListAgentsHeaders$inboundSchema = void 0;
|
|
42
42
|
exports.listAgentsRequestToJSON = listAgentsRequestToJSON;
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.dataKnowledgeBasesFromJSON = dataKnowledgeBasesFromJSON;
|
|
52
|
-
exports.dataConditionsFromJSON = dataConditionsFromJSON;
|
|
53
|
-
exports.dataToolsFromJSON = dataToolsFromJSON;
|
|
54
|
-
exports.dataEvaluatorsFromJSON = dataEvaluatorsFromJSON;
|
|
55
|
-
exports.dataGuardrailsFromJSON = dataGuardrailsFromJSON;
|
|
56
|
-
exports.dataSettingsFromJSON = dataSettingsFromJSON;
|
|
43
|
+
exports.listAgentsTeamOfAgentsFromJSON = listAgentsTeamOfAgentsFromJSON;
|
|
44
|
+
exports.listAgentsMetricsFromJSON = listAgentsMetricsFromJSON;
|
|
45
|
+
exports.listAgentsKnowledgeBasesFromJSON = listAgentsKnowledgeBasesFromJSON;
|
|
46
|
+
exports.listAgentsConditionsFromJSON = listAgentsConditionsFromJSON;
|
|
47
|
+
exports.listAgentsToolsFromJSON = listAgentsToolsFromJSON;
|
|
48
|
+
exports.listAgentsEvaluatorsFromJSON = listAgentsEvaluatorsFromJSON;
|
|
49
|
+
exports.listAgentsGuardrailsFromJSON = listAgentsGuardrailsFromJSON;
|
|
50
|
+
exports.listAgentsSettingsFromJSON = listAgentsSettingsFromJSON;
|
|
57
51
|
exports.listAgentsResponseFormatJsonSchemaFromJSON = listAgentsResponseFormatJsonSchemaFromJSON;
|
|
58
52
|
exports.listAgentsResponseFormatAgentsJSONSchemaFromJSON = listAgentsResponseFormatAgentsJSONSchemaFromJSON;
|
|
59
53
|
exports.listAgentsResponseFormatJSONObjectFromJSON = listAgentsResponseFormatJSONObjectFromJSON;
|
|
60
54
|
exports.listAgentsResponseFormatTextFromJSON = listAgentsResponseFormatTextFromJSON;
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
55
|
+
exports.listAgentsResponseFormatFromJSON = listAgentsResponseFormatFromJSON;
|
|
56
|
+
exports.listAgentsStopFromJSON = listAgentsStopFromJSON;
|
|
57
|
+
exports.listAgentsThinkingFromJSON = listAgentsThinkingFromJSON;
|
|
64
58
|
exports.listAgentsToolChoiceFunctionFromJSON = listAgentsToolChoiceFunctionFromJSON;
|
|
65
59
|
exports.listAgentsToolChoice2FromJSON = listAgentsToolChoice2FromJSON;
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
60
|
+
exports.listAgentsToolChoiceFromJSON = listAgentsToolChoiceFromJSON;
|
|
61
|
+
exports.listAgentsIdFromJSON = listAgentsIdFromJSON;
|
|
62
|
+
exports.listAgentsAgentsGuardrailsFromJSON = listAgentsAgentsGuardrailsFromJSON;
|
|
63
|
+
exports.listAgentsFallbacksFromJSON = listAgentsFallbacksFromJSON;
|
|
64
|
+
exports.listAgentsCacheFromJSON = listAgentsCacheFromJSON;
|
|
71
65
|
exports.listAgentsLoadBalancerModelsFromJSON = listAgentsLoadBalancerModelsFromJSON;
|
|
72
66
|
exports.listAgentsLoadBalancer1FromJSON = listAgentsLoadBalancer1FromJSON;
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
76
|
-
exports.
|
|
67
|
+
exports.listAgentsLoadBalancerFromJSON = listAgentsLoadBalancerFromJSON;
|
|
68
|
+
exports.listAgentsTimeoutFromJSON = listAgentsTimeoutFromJSON;
|
|
69
|
+
exports.listAgentsParametersFromJSON = listAgentsParametersFromJSON;
|
|
70
|
+
exports.listAgentsRetryFromJSON = listAgentsRetryFromJSON;
|
|
77
71
|
exports.listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON = listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON;
|
|
78
72
|
exports.listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON = listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON;
|
|
79
73
|
exports.listAgentsResponseFormatAgentsJSONObjectFromJSON = listAgentsResponseFormatAgentsJSONObjectFromJSON;
|
|
@@ -95,9 +89,10 @@ exports.listAgentsFallbackModelConfigurationTimeoutFromJSON = listAgentsFallback
|
|
|
95
89
|
exports.listAgentsFallbackModelConfigurationParametersFromJSON = listAgentsFallbackModelConfigurationParametersFromJSON;
|
|
96
90
|
exports.listAgentsFallbackModelConfigurationRetryFromJSON = listAgentsFallbackModelConfigurationRetryFromJSON;
|
|
97
91
|
exports.listAgentsFallbackModelConfiguration2FromJSON = listAgentsFallbackModelConfiguration2FromJSON;
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
92
|
+
exports.listAgentsFallbackModelConfigurationFromJSON = listAgentsFallbackModelConfigurationFromJSON;
|
|
93
|
+
exports.listAgentsModelFromJSON = listAgentsModelFromJSON;
|
|
94
|
+
exports.listAgentsHeadersFromJSON = listAgentsHeadersFromJSON;
|
|
95
|
+
exports.listAgentsA2AAgentConfigurationFromJSON = listAgentsA2AAgentConfigurationFromJSON;
|
|
101
96
|
exports.listAgentsDataFromJSON = listAgentsDataFromJSON;
|
|
102
97
|
exports.listAgentsResponseBodyFromJSON = listAgentsResponseBodyFromJSON;
|
|
103
98
|
const z = __importStar(require("zod/v3"));
|
|
@@ -117,35 +112,28 @@ exports.ListAgentsObject = {
|
|
|
117
112
|
/**
|
|
118
113
|
* 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.
|
|
119
114
|
*/
|
|
120
|
-
exports.
|
|
115
|
+
exports.ListAgentsStatus = {
|
|
121
116
|
Live: "live",
|
|
122
117
|
Draft: "draft",
|
|
123
118
|
Pending: "pending",
|
|
124
119
|
Published: "published",
|
|
125
120
|
};
|
|
126
|
-
exports.
|
|
121
|
+
exports.ListAgentsSource = {
|
|
127
122
|
Internal: "internal",
|
|
128
123
|
External: "external",
|
|
129
124
|
Experiment: "experiment",
|
|
130
125
|
};
|
|
131
126
|
/**
|
|
132
|
-
*
|
|
127
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
133
128
|
*/
|
|
134
|
-
exports.
|
|
135
|
-
Live: "live",
|
|
136
|
-
Draft: "draft",
|
|
137
|
-
Pending: "pending",
|
|
138
|
-
Published: "published",
|
|
139
|
-
};
|
|
140
|
-
exports.DataSource = {
|
|
129
|
+
exports.ListAgentsType = {
|
|
141
130
|
Internal: "internal",
|
|
142
|
-
|
|
143
|
-
Experiment: "experiment",
|
|
131
|
+
A2a: "a2a",
|
|
144
132
|
};
|
|
145
133
|
/**
|
|
146
134
|
* 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.
|
|
147
135
|
*/
|
|
148
|
-
exports.
|
|
136
|
+
exports.ListAgentsToolApprovalRequired = {
|
|
149
137
|
All: "all",
|
|
150
138
|
RespectTool: "respect_tool",
|
|
151
139
|
None: "none",
|
|
@@ -153,14 +141,14 @@ exports.DataToolApprovalRequired = {
|
|
|
153
141
|
/**
|
|
154
142
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
155
143
|
*/
|
|
156
|
-
exports.
|
|
144
|
+
exports.ListAgentsExecuteOn = {
|
|
157
145
|
Input: "input",
|
|
158
146
|
Output: "output",
|
|
159
147
|
};
|
|
160
148
|
/**
|
|
161
149
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
162
150
|
*/
|
|
163
|
-
exports.
|
|
151
|
+
exports.ListAgentsAgentsExecuteOn = {
|
|
164
152
|
Input: "input",
|
|
165
153
|
Output: "output",
|
|
166
154
|
};
|
|
@@ -176,7 +164,7 @@ exports.ListAgentsDataExecuteOn = {
|
|
|
176
164
|
*
|
|
177
165
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
178
166
|
*/
|
|
179
|
-
exports.
|
|
167
|
+
exports.ListAgentsReasoningEffort = {
|
|
180
168
|
None: "none",
|
|
181
169
|
Minimal: "minimal",
|
|
182
170
|
Low: "low",
|
|
@@ -195,7 +183,7 @@ exports.ListAgentsToolChoice1 = {
|
|
|
195
183
|
Auto: "auto",
|
|
196
184
|
Required: "required",
|
|
197
185
|
};
|
|
198
|
-
exports.
|
|
186
|
+
exports.ListAgentsModalities = {
|
|
199
187
|
Text: "text",
|
|
200
188
|
Audio: "audio",
|
|
201
189
|
};
|
|
@@ -210,11 +198,11 @@ exports.ListAgentsId1 = {
|
|
|
210
198
|
/**
|
|
211
199
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
212
200
|
*/
|
|
213
|
-
exports.
|
|
201
|
+
exports.ListAgentsAgentsResponseExecuteOn = {
|
|
214
202
|
Input: "input",
|
|
215
203
|
Output: "output",
|
|
216
204
|
};
|
|
217
|
-
exports.
|
|
205
|
+
exports.ListAgentsAgentsType = {
|
|
218
206
|
ExactMatch: "exact_match",
|
|
219
207
|
};
|
|
220
208
|
exports.ListAgentsLoadBalancerType = {
|
|
@@ -296,153 +284,54 @@ function listAgentsRequestToJSON(listAgentsRequest) {
|
|
|
296
284
|
/** @internal */
|
|
297
285
|
exports.ListAgentsObject$inboundSchema = z.nativeEnum(exports.ListAgentsObject);
|
|
298
286
|
/** @internal */
|
|
299
|
-
exports.
|
|
287
|
+
exports.ListAgentsStatus$inboundSchema = z.nativeEnum(exports.ListAgentsStatus);
|
|
300
288
|
/** @internal */
|
|
301
|
-
exports.
|
|
289
|
+
exports.ListAgentsTeamOfAgents$inboundSchema = z.object({
|
|
302
290
|
key: z.string(),
|
|
303
291
|
role: z.string().optional(),
|
|
304
292
|
});
|
|
305
|
-
function
|
|
306
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
293
|
+
function listAgentsTeamOfAgentsFromJSON(jsonString) {
|
|
294
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTeamOfAgents' from JSON`);
|
|
307
295
|
}
|
|
308
296
|
/** @internal */
|
|
309
|
-
exports.
|
|
297
|
+
exports.ListAgentsMetrics$inboundSchema = z.object({
|
|
310
298
|
total_cost: z.number().default(0),
|
|
311
299
|
}).transform((v) => {
|
|
312
300
|
return (0, primitives_js_1.remap)(v, {
|
|
313
301
|
"total_cost": "totalCost",
|
|
314
302
|
});
|
|
315
303
|
});
|
|
316
|
-
function
|
|
317
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
304
|
+
function listAgentsMetricsFromJSON(jsonString) {
|
|
305
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsMetrics' from JSON`);
|
|
318
306
|
}
|
|
319
307
|
/** @internal */
|
|
320
|
-
exports.
|
|
308
|
+
exports.ListAgentsKnowledgeBases$inboundSchema = z.object({
|
|
321
309
|
knowledge_id: z.string(),
|
|
322
310
|
}).transform((v) => {
|
|
323
311
|
return (0, primitives_js_1.remap)(v, {
|
|
324
312
|
"knowledge_id": "knowledgeId",
|
|
325
313
|
});
|
|
326
314
|
});
|
|
327
|
-
function
|
|
328
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
315
|
+
function listAgentsKnowledgeBasesFromJSON(jsonString) {
|
|
316
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsKnowledgeBases' from JSON`);
|
|
329
317
|
}
|
|
330
318
|
/** @internal */
|
|
331
|
-
exports.
|
|
319
|
+
exports.ListAgentsSource$inboundSchema = z.nativeEnum(exports.ListAgentsSource);
|
|
332
320
|
/** @internal */
|
|
333
|
-
exports.
|
|
334
|
-
value: z.string(),
|
|
335
|
-
encrypted: z.boolean().default(false),
|
|
336
|
-
});
|
|
337
|
-
function dataHeadersFromJSON(jsonString) {
|
|
338
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataHeaders' from JSON`);
|
|
339
|
-
}
|
|
321
|
+
exports.ListAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsType);
|
|
340
322
|
/** @internal */
|
|
341
|
-
exports.
|
|
342
|
-
agent_url: z.string(),
|
|
343
|
-
card_url: z.string().optional(),
|
|
344
|
-
headers: z.record(z.lazy(() => exports.DataHeaders$inboundSchema)).optional(),
|
|
345
|
-
cached_card: z.any().optional(),
|
|
346
|
-
}).transform((v) => {
|
|
347
|
-
return (0, primitives_js_1.remap)(v, {
|
|
348
|
-
"agent_url": "agentUrl",
|
|
349
|
-
"card_url": "cardUrl",
|
|
350
|
-
"cached_card": "cachedCard",
|
|
351
|
-
});
|
|
352
|
-
});
|
|
353
|
-
function dataA2AAgentConfigurationFromJSON(jsonString) {
|
|
354
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataA2AAgentConfiguration' from JSON`);
|
|
355
|
-
}
|
|
323
|
+
exports.ListAgentsToolApprovalRequired$inboundSchema = z.nativeEnum(exports.ListAgentsToolApprovalRequired);
|
|
356
324
|
/** @internal */
|
|
357
|
-
exports.
|
|
358
|
-
.object({
|
|
359
|
-
_id: z.string(),
|
|
360
|
-
key: z.string(),
|
|
361
|
-
display_name: z.string().optional(),
|
|
362
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
363
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
364
|
-
created: z.string().optional(),
|
|
365
|
-
updated: z.string().optional(),
|
|
366
|
-
status: exports.ListAgentsDataStatus$inboundSchema,
|
|
367
|
-
version_hash: z.string().optional(),
|
|
368
|
-
path: z.string(),
|
|
369
|
-
memory_stores: z.array(z.string()).optional(),
|
|
370
|
-
team_of_agents: z.array(z.lazy(() => exports.ListAgentsDataTeamOfAgents$inboundSchema)).optional(),
|
|
371
|
-
metrics: z.lazy(() => exports.ListAgentsDataMetrics$inboundSchema).optional(),
|
|
372
|
-
variables: z.record(z.any()).optional(),
|
|
373
|
-
knowledge_bases: z.array(z.lazy(() => exports.ListAgentsDataKnowledgeBases$inboundSchema)).optional(),
|
|
374
|
-
source: exports.ListAgentsDataSource$inboundSchema.optional(),
|
|
375
|
-
type: z.literal("a2a"),
|
|
376
|
-
role: z.string(),
|
|
377
|
-
description: z.string(),
|
|
378
|
-
system_prompt: z.string().optional(),
|
|
379
|
-
instructions: z.string(),
|
|
380
|
-
a2a: z.lazy(() => exports.DataA2AAgentConfiguration$inboundSchema),
|
|
381
|
-
}).transform((v) => {
|
|
382
|
-
return (0, primitives_js_1.remap)(v, {
|
|
383
|
-
"_id": "id",
|
|
384
|
-
"display_name": "displayName",
|
|
385
|
-
"created_by_id": "createdById",
|
|
386
|
-
"updated_by_id": "updatedById",
|
|
387
|
-
"version_hash": "versionHash",
|
|
388
|
-
"memory_stores": "memoryStores",
|
|
389
|
-
"team_of_agents": "teamOfAgents",
|
|
390
|
-
"knowledge_bases": "knowledgeBases",
|
|
391
|
-
"system_prompt": "systemPrompt",
|
|
392
|
-
});
|
|
393
|
-
});
|
|
394
|
-
function data2FromJSON(jsonString) {
|
|
395
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data2' from JSON`);
|
|
396
|
-
}
|
|
397
|
-
/** @internal */
|
|
398
|
-
exports.DataStatus$inboundSchema = z
|
|
399
|
-
.nativeEnum(exports.DataStatus);
|
|
400
|
-
/** @internal */
|
|
401
|
-
exports.DataTeamOfAgents$inboundSchema = z.object({
|
|
402
|
-
key: z.string(),
|
|
403
|
-
role: z.string().optional(),
|
|
404
|
-
});
|
|
405
|
-
function dataTeamOfAgentsFromJSON(jsonString) {
|
|
406
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataTeamOfAgents' from JSON`);
|
|
407
|
-
}
|
|
408
|
-
/** @internal */
|
|
409
|
-
exports.DataMetrics$inboundSchema = z.object({
|
|
410
|
-
total_cost: z.number().default(0),
|
|
411
|
-
}).transform((v) => {
|
|
412
|
-
return (0, primitives_js_1.remap)(v, {
|
|
413
|
-
"total_cost": "totalCost",
|
|
414
|
-
});
|
|
415
|
-
});
|
|
416
|
-
function dataMetricsFromJSON(jsonString) {
|
|
417
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataMetrics' from JSON`);
|
|
418
|
-
}
|
|
419
|
-
/** @internal */
|
|
420
|
-
exports.DataKnowledgeBases$inboundSchema = z.object({
|
|
421
|
-
knowledge_id: z.string(),
|
|
422
|
-
}).transform((v) => {
|
|
423
|
-
return (0, primitives_js_1.remap)(v, {
|
|
424
|
-
"knowledge_id": "knowledgeId",
|
|
425
|
-
});
|
|
426
|
-
});
|
|
427
|
-
function dataKnowledgeBasesFromJSON(jsonString) {
|
|
428
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataKnowledgeBases' from JSON`);
|
|
429
|
-
}
|
|
430
|
-
/** @internal */
|
|
431
|
-
exports.DataSource$inboundSchema = z
|
|
432
|
-
.nativeEnum(exports.DataSource);
|
|
433
|
-
/** @internal */
|
|
434
|
-
exports.DataToolApprovalRequired$inboundSchema = z.nativeEnum(exports.DataToolApprovalRequired);
|
|
435
|
-
/** @internal */
|
|
436
|
-
exports.DataConditions$inboundSchema = z.object({
|
|
325
|
+
exports.ListAgentsConditions$inboundSchema = z.object({
|
|
437
326
|
condition: z.string(),
|
|
438
327
|
operator: z.string(),
|
|
439
328
|
value: z.string(),
|
|
440
329
|
});
|
|
441
|
-
function
|
|
442
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
330
|
+
function listAgentsConditionsFromJSON(jsonString) {
|
|
331
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsConditions' from JSON`);
|
|
443
332
|
}
|
|
444
333
|
/** @internal */
|
|
445
|
-
exports.
|
|
334
|
+
exports.ListAgentsTools$inboundSchema = z.object({
|
|
446
335
|
id: z.string(),
|
|
447
336
|
key: z.string().optional(),
|
|
448
337
|
action_type: z.string(),
|
|
@@ -450,7 +339,8 @@ exports.DataTools$inboundSchema = z.object({
|
|
|
450
339
|
description: z.string().optional(),
|
|
451
340
|
requires_approval: z.boolean().default(false),
|
|
452
341
|
tool_id: z.string().optional(),
|
|
453
|
-
conditions: z.array(z.lazy(() => exports.
|
|
342
|
+
conditions: z.array(z.lazy(() => exports.ListAgentsConditions$inboundSchema))
|
|
343
|
+
.optional(),
|
|
454
344
|
timeout: z.number().default(120),
|
|
455
345
|
}).transform((v) => {
|
|
456
346
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -460,50 +350,52 @@ exports.DataTools$inboundSchema = z.object({
|
|
|
460
350
|
"tool_id": "toolId",
|
|
461
351
|
});
|
|
462
352
|
});
|
|
463
|
-
function
|
|
464
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
353
|
+
function listAgentsToolsFromJSON(jsonString) {
|
|
354
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTools' from JSON`);
|
|
465
355
|
}
|
|
466
356
|
/** @internal */
|
|
467
|
-
exports.
|
|
357
|
+
exports.ListAgentsExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsExecuteOn);
|
|
468
358
|
/** @internal */
|
|
469
|
-
exports.
|
|
359
|
+
exports.ListAgentsEvaluators$inboundSchema = z.object({
|
|
470
360
|
id: z.string(),
|
|
471
361
|
sample_rate: z.number().default(50),
|
|
472
|
-
execute_on: exports.
|
|
362
|
+
execute_on: exports.ListAgentsExecuteOn$inboundSchema,
|
|
473
363
|
}).transform((v) => {
|
|
474
364
|
return (0, primitives_js_1.remap)(v, {
|
|
475
365
|
"sample_rate": "sampleRate",
|
|
476
366
|
"execute_on": "executeOn",
|
|
477
367
|
});
|
|
478
368
|
});
|
|
479
|
-
function
|
|
480
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
369
|
+
function listAgentsEvaluatorsFromJSON(jsonString) {
|
|
370
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsEvaluators' from JSON`);
|
|
481
371
|
}
|
|
482
372
|
/** @internal */
|
|
483
|
-
exports.
|
|
373
|
+
exports.ListAgentsAgentsExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsAgentsExecuteOn);
|
|
484
374
|
/** @internal */
|
|
485
|
-
exports.
|
|
375
|
+
exports.ListAgentsGuardrails$inboundSchema = z.object({
|
|
486
376
|
id: z.string(),
|
|
487
377
|
sample_rate: z.number().default(50),
|
|
488
|
-
execute_on: exports.
|
|
378
|
+
execute_on: exports.ListAgentsAgentsExecuteOn$inboundSchema,
|
|
489
379
|
}).transform((v) => {
|
|
490
380
|
return (0, primitives_js_1.remap)(v, {
|
|
491
381
|
"sample_rate": "sampleRate",
|
|
492
382
|
"execute_on": "executeOn",
|
|
493
383
|
});
|
|
494
384
|
});
|
|
495
|
-
function
|
|
496
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
385
|
+
function listAgentsGuardrailsFromJSON(jsonString) {
|
|
386
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsGuardrails' from JSON`);
|
|
497
387
|
}
|
|
498
388
|
/** @internal */
|
|
499
|
-
exports.
|
|
389
|
+
exports.ListAgentsSettings$inboundSchema = z.object({
|
|
500
390
|
max_iterations: z.number().int().default(100),
|
|
501
391
|
max_execution_time: z.number().int().default(600),
|
|
502
392
|
max_cost: z.number().default(0),
|
|
503
|
-
tool_approval_required: exports.
|
|
504
|
-
tools: z.array(z.lazy(() => exports.
|
|
505
|
-
evaluators: z.array(z.lazy(() => exports.
|
|
506
|
-
|
|
393
|
+
tool_approval_required: exports.ListAgentsToolApprovalRequired$inboundSchema.default("respect_tool"),
|
|
394
|
+
tools: z.array(z.lazy(() => exports.ListAgentsTools$inboundSchema)).optional(),
|
|
395
|
+
evaluators: z.array(z.lazy(() => exports.ListAgentsEvaluators$inboundSchema))
|
|
396
|
+
.optional(),
|
|
397
|
+
guardrails: z.array(z.lazy(() => exports.ListAgentsGuardrails$inboundSchema))
|
|
398
|
+
.optional(),
|
|
507
399
|
}).transform((v) => {
|
|
508
400
|
return (0, primitives_js_1.remap)(v, {
|
|
509
401
|
"max_iterations": "maxIterations",
|
|
@@ -512,8 +404,8 @@ exports.DataSettings$inboundSchema = z.object({
|
|
|
512
404
|
"tool_approval_required": "toolApprovalRequired",
|
|
513
405
|
});
|
|
514
406
|
});
|
|
515
|
-
function
|
|
516
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
407
|
+
function listAgentsSettingsFromJSON(jsonString) {
|
|
408
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsSettings' from JSON`);
|
|
517
409
|
}
|
|
518
410
|
/** @internal */
|
|
519
411
|
exports.ListAgentsResponseFormatJsonSchema$inboundSchema = z.object({
|
|
@@ -552,28 +444,28 @@ function listAgentsResponseFormatTextFromJSON(jsonString) {
|
|
|
552
444
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatText' from JSON`);
|
|
553
445
|
}
|
|
554
446
|
/** @internal */
|
|
555
|
-
exports.
|
|
447
|
+
exports.ListAgentsResponseFormat$inboundSchema = z.union([
|
|
556
448
|
z.lazy(() => exports.ListAgentsResponseFormatText$inboundSchema),
|
|
557
449
|
z.lazy(() => exports.ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
558
450
|
z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
559
451
|
]);
|
|
560
|
-
function
|
|
561
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
452
|
+
function listAgentsResponseFormatFromJSON(jsonString) {
|
|
453
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormat' from JSON`);
|
|
562
454
|
}
|
|
563
455
|
/** @internal */
|
|
564
|
-
exports.
|
|
456
|
+
exports.ListAgentsReasoningEffort$inboundSchema = z.nativeEnum(exports.ListAgentsReasoningEffort);
|
|
565
457
|
/** @internal */
|
|
566
|
-
exports.
|
|
567
|
-
function
|
|
568
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
458
|
+
exports.ListAgentsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
459
|
+
function listAgentsStopFromJSON(jsonString) {
|
|
460
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsStop' from JSON`);
|
|
569
461
|
}
|
|
570
462
|
/** @internal */
|
|
571
|
-
exports.
|
|
463
|
+
exports.ListAgentsThinking$inboundSchema = z.union([
|
|
572
464
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
573
465
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
574
466
|
]);
|
|
575
|
-
function
|
|
576
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
467
|
+
function listAgentsThinkingFromJSON(jsonString) {
|
|
468
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsThinking' from JSON`);
|
|
577
469
|
}
|
|
578
470
|
/** @internal */
|
|
579
471
|
exports.ListAgentsToolChoiceType$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceType);
|
|
@@ -595,53 +487,52 @@ function listAgentsToolChoice2FromJSON(jsonString) {
|
|
|
595
487
|
/** @internal */
|
|
596
488
|
exports.ListAgentsToolChoice1$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoice1);
|
|
597
489
|
/** @internal */
|
|
598
|
-
exports.
|
|
490
|
+
exports.ListAgentsToolChoice$inboundSchema = z.union([
|
|
599
491
|
z.lazy(() => exports.ListAgentsToolChoice2$inboundSchema),
|
|
600
492
|
exports.ListAgentsToolChoice1$inboundSchema,
|
|
601
493
|
]);
|
|
602
|
-
function
|
|
603
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
494
|
+
function listAgentsToolChoiceFromJSON(jsonString) {
|
|
495
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoice' from JSON`);
|
|
604
496
|
}
|
|
605
497
|
/** @internal */
|
|
606
|
-
exports.
|
|
498
|
+
exports.ListAgentsModalities$inboundSchema = z.nativeEnum(exports.ListAgentsModalities);
|
|
607
499
|
/** @internal */
|
|
608
500
|
exports.ListAgentsId1$inboundSchema = z.nativeEnum(exports.ListAgentsId1);
|
|
609
501
|
/** @internal */
|
|
610
|
-
exports.
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataId' from JSON`);
|
|
502
|
+
exports.ListAgentsId$inboundSchema = z.union([exports.ListAgentsId1$inboundSchema, z.string()]);
|
|
503
|
+
function listAgentsIdFromJSON(jsonString) {
|
|
504
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsId' from JSON`);
|
|
614
505
|
}
|
|
615
506
|
/** @internal */
|
|
616
|
-
exports.
|
|
507
|
+
exports.ListAgentsAgentsResponseExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsAgentsResponseExecuteOn);
|
|
617
508
|
/** @internal */
|
|
618
|
-
exports.
|
|
509
|
+
exports.ListAgentsAgentsGuardrails$inboundSchema = z.object({
|
|
619
510
|
id: z.union([exports.ListAgentsId1$inboundSchema, z.string()]),
|
|
620
|
-
execute_on: exports.
|
|
511
|
+
execute_on: exports.ListAgentsAgentsResponseExecuteOn$inboundSchema,
|
|
621
512
|
}).transform((v) => {
|
|
622
513
|
return (0, primitives_js_1.remap)(v, {
|
|
623
514
|
"execute_on": "executeOn",
|
|
624
515
|
});
|
|
625
516
|
});
|
|
626
|
-
function
|
|
627
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
517
|
+
function listAgentsAgentsGuardrailsFromJSON(jsonString) {
|
|
518
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsAgentsGuardrails' from JSON`);
|
|
628
519
|
}
|
|
629
520
|
/** @internal */
|
|
630
|
-
exports.
|
|
521
|
+
exports.ListAgentsFallbacks$inboundSchema = z.object({
|
|
631
522
|
model: z.string(),
|
|
632
523
|
});
|
|
633
|
-
function
|
|
634
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
524
|
+
function listAgentsFallbacksFromJSON(jsonString) {
|
|
525
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbacks' from JSON`);
|
|
635
526
|
}
|
|
636
527
|
/** @internal */
|
|
637
|
-
exports.
|
|
528
|
+
exports.ListAgentsAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsAgentsType);
|
|
638
529
|
/** @internal */
|
|
639
|
-
exports.
|
|
530
|
+
exports.ListAgentsCache$inboundSchema = z.object({
|
|
640
531
|
ttl: z.number().default(1800),
|
|
641
|
-
type: exports.
|
|
532
|
+
type: exports.ListAgentsAgentsType$inboundSchema,
|
|
642
533
|
});
|
|
643
|
-
function
|
|
644
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
534
|
+
function listAgentsCacheFromJSON(jsonString) {
|
|
535
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsCache' from JSON`);
|
|
645
536
|
}
|
|
646
537
|
/** @internal */
|
|
647
538
|
exports.ListAgentsLoadBalancerType$inboundSchema = z.nativeEnum(exports.ListAgentsLoadBalancerType);
|
|
@@ -662,23 +553,23 @@ function listAgentsLoadBalancer1FromJSON(jsonString) {
|
|
|
662
553
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancer1' from JSON`);
|
|
663
554
|
}
|
|
664
555
|
/** @internal */
|
|
665
|
-
exports.
|
|
666
|
-
function
|
|
667
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
556
|
+
exports.ListAgentsLoadBalancer$inboundSchema = z.lazy(() => exports.ListAgentsLoadBalancer1$inboundSchema);
|
|
557
|
+
function listAgentsLoadBalancerFromJSON(jsonString) {
|
|
558
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancer' from JSON`);
|
|
668
559
|
}
|
|
669
560
|
/** @internal */
|
|
670
|
-
exports.
|
|
561
|
+
exports.ListAgentsTimeout$inboundSchema = z.object({
|
|
671
562
|
call_timeout: z.number(),
|
|
672
563
|
}).transform((v) => {
|
|
673
564
|
return (0, primitives_js_1.remap)(v, {
|
|
674
565
|
"call_timeout": "callTimeout",
|
|
675
566
|
});
|
|
676
567
|
});
|
|
677
|
-
function
|
|
678
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
568
|
+
function listAgentsTimeoutFromJSON(jsonString) {
|
|
569
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTimeout' from JSON`);
|
|
679
570
|
}
|
|
680
571
|
/** @internal */
|
|
681
|
-
exports.
|
|
572
|
+
exports.ListAgentsParameters$inboundSchema = z.object({
|
|
682
573
|
name: z.string().optional(),
|
|
683
574
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
684
575
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
@@ -689,7 +580,7 @@ exports.DataParameters$inboundSchema = z.object({
|
|
|
689
580
|
z.lazy(() => exports.ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
690
581
|
z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
691
582
|
]).optional(),
|
|
692
|
-
reasoning_effort: exports.
|
|
583
|
+
reasoning_effort: exports.ListAgentsReasoningEffort$inboundSchema.optional(),
|
|
693
584
|
verbosity: z.string().optional(),
|
|
694
585
|
seed: z.nullable(z.number()).optional(),
|
|
695
586
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -705,13 +596,15 @@ exports.DataParameters$inboundSchema = z.object({
|
|
|
705
596
|
exports.ListAgentsToolChoice1$inboundSchema,
|
|
706
597
|
]).optional(),
|
|
707
598
|
parallel_tool_calls: z.boolean().optional(),
|
|
708
|
-
modalities: z.nullable(z.array(exports.
|
|
709
|
-
|
|
599
|
+
modalities: z.nullable(z.array(exports.ListAgentsModalities$inboundSchema))
|
|
600
|
+
.optional(),
|
|
601
|
+
guardrails: z.array(z.lazy(() => exports.ListAgentsAgentsGuardrails$inboundSchema))
|
|
710
602
|
.optional(),
|
|
711
|
-
fallbacks: z.array(z.lazy(() => exports.
|
|
712
|
-
|
|
603
|
+
fallbacks: z.array(z.lazy(() => exports.ListAgentsFallbacks$inboundSchema))
|
|
604
|
+
.optional(),
|
|
605
|
+
cache: z.lazy(() => exports.ListAgentsCache$inboundSchema).optional(),
|
|
713
606
|
load_balancer: z.lazy(() => exports.ListAgentsLoadBalancer1$inboundSchema).optional(),
|
|
714
|
-
timeout: z.lazy(() => exports.
|
|
607
|
+
timeout: z.lazy(() => exports.ListAgentsTimeout$inboundSchema).optional(),
|
|
715
608
|
}).transform((v) => {
|
|
716
609
|
return (0, primitives_js_1.remap)(v, {
|
|
717
610
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -727,11 +620,11 @@ exports.DataParameters$inboundSchema = z.object({
|
|
|
727
620
|
"load_balancer": "loadBalancer",
|
|
728
621
|
});
|
|
729
622
|
});
|
|
730
|
-
function
|
|
731
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
623
|
+
function listAgentsParametersFromJSON(jsonString) {
|
|
624
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsParameters' from JSON`);
|
|
732
625
|
}
|
|
733
626
|
/** @internal */
|
|
734
|
-
exports.
|
|
627
|
+
exports.ListAgentsRetry$inboundSchema = z.object({
|
|
735
628
|
count: z.number().default(3),
|
|
736
629
|
on_codes: z.array(z.number()).optional(),
|
|
737
630
|
}).transform((v) => {
|
|
@@ -739,8 +632,8 @@ exports.DataRetry$inboundSchema = z.object({
|
|
|
739
632
|
"on_codes": "onCodes",
|
|
740
633
|
});
|
|
741
634
|
});
|
|
742
|
-
function
|
|
743
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
635
|
+
function listAgentsRetryFromJSON(jsonString) {
|
|
636
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsRetry' from JSON`);
|
|
744
637
|
}
|
|
745
638
|
/** @internal */
|
|
746
639
|
exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = z.object({
|
|
@@ -984,19 +877,19 @@ function listAgentsFallbackModelConfiguration2FromJSON(jsonString) {
|
|
|
984
877
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`);
|
|
985
878
|
}
|
|
986
879
|
/** @internal */
|
|
987
|
-
exports.
|
|
880
|
+
exports.ListAgentsFallbackModelConfiguration$inboundSchema = z.union([
|
|
988
881
|
z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
989
882
|
z.string(),
|
|
990
883
|
]);
|
|
991
|
-
function
|
|
992
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
884
|
+
function listAgentsFallbackModelConfigurationFromJSON(jsonString) {
|
|
885
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`);
|
|
993
886
|
}
|
|
994
887
|
/** @internal */
|
|
995
|
-
exports.
|
|
888
|
+
exports.ListAgentsModel$inboundSchema = z.object({
|
|
996
889
|
id: z.string(),
|
|
997
890
|
integration_id: z.nullable(z.string()).optional(),
|
|
998
|
-
parameters: z.lazy(() => exports.
|
|
999
|
-
retry: z.lazy(() => exports.
|
|
891
|
+
parameters: z.lazy(() => exports.ListAgentsParameters$inboundSchema).optional(),
|
|
892
|
+
retry: z.lazy(() => exports.ListAgentsRetry$inboundSchema).optional(),
|
|
1000
893
|
fallback_models: z.nullable(z.array(z.union([
|
|
1001
894
|
z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
1002
895
|
z.string(),
|
|
@@ -1007,12 +900,35 @@ exports.DataModel$inboundSchema = z.object({
|
|
|
1007
900
|
"fallback_models": "fallbackModels",
|
|
1008
901
|
});
|
|
1009
902
|
});
|
|
1010
|
-
function
|
|
1011
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
903
|
+
function listAgentsModelFromJSON(jsonString) {
|
|
904
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsModel' from JSON`);
|
|
1012
905
|
}
|
|
1013
906
|
/** @internal */
|
|
1014
|
-
exports.
|
|
1015
|
-
.
|
|
907
|
+
exports.ListAgentsHeaders$inboundSchema = z.object({
|
|
908
|
+
value: z.string(),
|
|
909
|
+
encrypted: z.boolean().default(false),
|
|
910
|
+
});
|
|
911
|
+
function listAgentsHeadersFromJSON(jsonString) {
|
|
912
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsHeaders' from JSON`);
|
|
913
|
+
}
|
|
914
|
+
/** @internal */
|
|
915
|
+
exports.ListAgentsA2AAgentConfiguration$inboundSchema = z.object({
|
|
916
|
+
agent_url: z.string(),
|
|
917
|
+
card_url: z.string().optional(),
|
|
918
|
+
headers: z.record(z.lazy(() => exports.ListAgentsHeaders$inboundSchema)).optional(),
|
|
919
|
+
cached_card: z.any().optional(),
|
|
920
|
+
}).transform((v) => {
|
|
921
|
+
return (0, primitives_js_1.remap)(v, {
|
|
922
|
+
"agent_url": "agentUrl",
|
|
923
|
+
"card_url": "cardUrl",
|
|
924
|
+
"cached_card": "cachedCard",
|
|
925
|
+
});
|
|
926
|
+
});
|
|
927
|
+
function listAgentsA2AAgentConfigurationFromJSON(jsonString) {
|
|
928
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsA2AAgentConfiguration' from JSON`);
|
|
929
|
+
}
|
|
930
|
+
/** @internal */
|
|
931
|
+
exports.ListAgentsData$inboundSchema = z.object({
|
|
1016
932
|
_id: z.string(),
|
|
1017
933
|
key: z.string(),
|
|
1018
934
|
display_name: z.string().optional(),
|
|
@@ -1020,24 +936,25 @@ exports.Data1$inboundSchema = z
|
|
|
1020
936
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1021
937
|
created: z.string().optional(),
|
|
1022
938
|
updated: z.string().optional(),
|
|
1023
|
-
status: exports.
|
|
939
|
+
status: exports.ListAgentsStatus$inboundSchema,
|
|
1024
940
|
version_hash: z.string().optional(),
|
|
1025
941
|
path: z.string(),
|
|
1026
942
|
memory_stores: z.array(z.string()).optional(),
|
|
1027
|
-
team_of_agents: z.array(z.lazy(() => exports.
|
|
943
|
+
team_of_agents: z.array(z.lazy(() => exports.ListAgentsTeamOfAgents$inboundSchema))
|
|
1028
944
|
.optional(),
|
|
1029
|
-
metrics: z.lazy(() => exports.
|
|
945
|
+
metrics: z.lazy(() => exports.ListAgentsMetrics$inboundSchema).optional(),
|
|
1030
946
|
variables: z.record(z.any()).optional(),
|
|
1031
|
-
knowledge_bases: z.array(z.lazy(() => exports.
|
|
947
|
+
knowledge_bases: z.array(z.lazy(() => exports.ListAgentsKnowledgeBases$inboundSchema))
|
|
1032
948
|
.optional(),
|
|
1033
|
-
source: exports.
|
|
1034
|
-
type:
|
|
949
|
+
source: exports.ListAgentsSource$inboundSchema.optional(),
|
|
950
|
+
type: exports.ListAgentsType$inboundSchema.default("internal"),
|
|
1035
951
|
role: z.string(),
|
|
1036
952
|
description: z.string(),
|
|
1037
953
|
system_prompt: z.string().optional(),
|
|
1038
954
|
instructions: z.string(),
|
|
1039
|
-
settings: z.lazy(() => exports.
|
|
1040
|
-
model: z.lazy(() => exports.
|
|
955
|
+
settings: z.lazy(() => exports.ListAgentsSettings$inboundSchema).optional(),
|
|
956
|
+
model: z.lazy(() => exports.ListAgentsModel$inboundSchema),
|
|
957
|
+
a2a: z.lazy(() => exports.ListAgentsA2AAgentConfiguration$inboundSchema).optional(),
|
|
1041
958
|
}).transform((v) => {
|
|
1042
959
|
return (0, primitives_js_1.remap)(v, {
|
|
1043
960
|
"_id": "id",
|
|
@@ -1051,24 +968,13 @@ exports.Data1$inboundSchema = z
|
|
|
1051
968
|
"system_prompt": "systemPrompt",
|
|
1052
969
|
});
|
|
1053
970
|
});
|
|
1054
|
-
function data1FromJSON(jsonString) {
|
|
1055
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data1' from JSON`);
|
|
1056
|
-
}
|
|
1057
|
-
/** @internal */
|
|
1058
|
-
exports.ListAgentsData$inboundSchema = z.union([
|
|
1059
|
-
z.lazy(() => exports.Data1$inboundSchema),
|
|
1060
|
-
z.lazy(() => exports.Data2$inboundSchema),
|
|
1061
|
-
]);
|
|
1062
971
|
function listAgentsDataFromJSON(jsonString) {
|
|
1063
972
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsData' from JSON`);
|
|
1064
973
|
}
|
|
1065
974
|
/** @internal */
|
|
1066
975
|
exports.ListAgentsResponseBody$inboundSchema = z.object({
|
|
1067
976
|
object: exports.ListAgentsObject$inboundSchema,
|
|
1068
|
-
data: z.array(z.
|
|
1069
|
-
z.lazy(() => exports.Data1$inboundSchema),
|
|
1070
|
-
z.lazy(() => exports.Data2$inboundSchema),
|
|
1071
|
-
])),
|
|
977
|
+
data: z.array(z.lazy(() => exports.ListAgentsData$inboundSchema)),
|
|
1072
978
|
has_more: z.boolean(),
|
|
1073
979
|
}).transform((v) => {
|
|
1074
980
|
return (0, primitives_js_1.remap)(v, {
|