@orq-ai/node 4.5.0-rc.40 → 4.5.0-rc.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +161 -271
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +162 -256
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +39 -39
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +49 -52
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.d.ts +39 -39
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +47 -49
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.js +16 -16
- package/models/operations/listagents.d.ts +167 -276
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +172 -266
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listknowledgebases.d.ts +8 -8
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +15 -13
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +169 -279
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +173 -270
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +169 -279
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +174 -270
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +376 -619
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createknowledge.ts +17 -19
- package/src/models/operations/createtool.ts +91 -103
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +87 -93
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listagents.ts +383 -611
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +64 -72
- package/src/models/operations/retrieveagentrequest.ts +489 -884
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +362 -668
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -36,44 +36,37 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.RetrieveAgentRequestResponseBody$inboundSchema = exports.RetrieveAgentRequestResponseBody1$inboundSchema = exports.ResponseBodyModel$inboundSchema = exports.RetrieveAgentRequestResponseBodyFallbackModelConfiguration$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationRetry$inboundSchema = void 0;
|
|
39
|
+
exports.RetrieveAgentRequestToolChoice$inboundSchema = exports.RetrieveAgentRequestToolChoice1$inboundSchema = exports.RetrieveAgentRequestToolChoice2$inboundSchema = exports.RetrieveAgentRequestToolChoiceFunction$inboundSchema = exports.RetrieveAgentRequestToolChoiceType$inboundSchema = exports.RetrieveAgentRequestThinking$inboundSchema = exports.RetrieveAgentRequestStop$inboundSchema = exports.RetrieveAgentRequestReasoningEffort$inboundSchema = exports.RetrieveAgentRequestResponseFormat$inboundSchema = exports.RetrieveAgentRequestResponseFormatText$inboundSchema = exports.RetrieveAgentRequestResponseFormatJSONObject$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema = exports.RetrieveAgentRequestResponseFormatJsonSchema$inboundSchema = exports.RetrieveAgentRequestSettings$inboundSchema = exports.RetrieveAgentRequestGuardrails$inboundSchema = exports.RetrieveAgentRequestAgentsExecuteOn$inboundSchema = exports.RetrieveAgentRequestEvaluators$inboundSchema = exports.RetrieveAgentRequestExecuteOn$inboundSchema = exports.RetrieveAgentRequestTools$inboundSchema = exports.RetrieveAgentRequestConditions$inboundSchema = exports.RetrieveAgentRequestToolApprovalRequired$inboundSchema = exports.RetrieveAgentRequestType$inboundSchema = exports.RetrieveAgentRequestSource$inboundSchema = exports.RetrieveAgentRequestKnowledgeBases$inboundSchema = exports.RetrieveAgentRequestMetrics$inboundSchema = exports.RetrieveAgentRequestTeamOfAgents$inboundSchema = exports.RetrieveAgentRequestStatus$inboundSchema = exports.RetrieveAgentRequestRequest$outboundSchema = exports.RetrieveAgentRequestLoadBalancerAgentsType = exports.RetrieveAgentRequestFallbackModelConfigurationType = exports.RetrieveAgentRequestFallbackModelConfigurationExecuteOn = exports.RetrieveAgentRequestIdAgents1 = exports.RetrieveAgentRequestFallbackModelConfigurationModalities = exports.RetrieveAgentRequestToolChoiceAgents1 = exports.RetrieveAgentRequestToolChoiceAgentsType = exports.RetrieveAgentRequestFallbackModelConfigurationReasoningEffort = exports.RetrieveAgentRequestLoadBalancerType = exports.RetrieveAgentRequestAgentsType = exports.RetrieveAgentRequestAgentsResponseExecuteOn = exports.RetrieveAgentRequestId1 = exports.RetrieveAgentRequestModalities = exports.RetrieveAgentRequestToolChoice1 = exports.RetrieveAgentRequestToolChoiceType = exports.RetrieveAgentRequestReasoningEffort = exports.RetrieveAgentRequestAgentsExecuteOn = exports.RetrieveAgentRequestExecuteOn = exports.RetrieveAgentRequestToolApprovalRequired = exports.RetrieveAgentRequestType = exports.RetrieveAgentRequestSource = exports.RetrieveAgentRequestStatus = void 0;
|
|
40
|
+
exports.RetrieveAgentRequestResponseBody$inboundSchema = exports.RetrieveAgentRequestA2AAgentConfiguration$inboundSchema = exports.RetrieveAgentRequestHeaders$inboundSchema = exports.RetrieveAgentRequestModel$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfiguration$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationRetry$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationTimeout$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationLoadBalancer$inboundSchema = exports.RetrieveAgentRequestLoadBalancerAgents1$inboundSchema = exports.RetrieveAgentRequestLoadBalancerAgentsModels$inboundSchema = exports.RetrieveAgentRequestLoadBalancerAgentsType$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationCache$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationFallbacks$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationGuardrails$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationExecuteOn$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationId$inboundSchema = exports.RetrieveAgentRequestIdAgents1$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationModalities$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationToolChoice$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgents1$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgents2$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgentsFunction$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgentsType$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationThinking$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationStop$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationReasoningEffort$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationResponseFormat$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsText$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema = exports.RetrieveAgentRequestRetry$inboundSchema = exports.RetrieveAgentRequestParameters$inboundSchema = exports.RetrieveAgentRequestTimeout$inboundSchema = exports.RetrieveAgentRequestLoadBalancer$inboundSchema = exports.RetrieveAgentRequestLoadBalancer1$inboundSchema = exports.RetrieveAgentRequestLoadBalancerModels$inboundSchema = exports.RetrieveAgentRequestLoadBalancerType$inboundSchema = exports.RetrieveAgentRequestCache$inboundSchema = exports.RetrieveAgentRequestAgentsType$inboundSchema = exports.RetrieveAgentRequestFallbacks$inboundSchema = exports.RetrieveAgentRequestAgentsGuardrails$inboundSchema = exports.RetrieveAgentRequestAgentsResponseExecuteOn$inboundSchema = exports.RetrieveAgentRequestId$inboundSchema = exports.RetrieveAgentRequestId1$inboundSchema = exports.RetrieveAgentRequestModalities$inboundSchema = void 0;
|
|
42
41
|
exports.retrieveAgentRequestRequestToJSON = retrieveAgentRequestRequestToJSON;
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.retrieveAgentRequestResponseBodyKnowledgeBasesFromJSON = retrieveAgentRequestResponseBodyKnowledgeBasesFromJSON;
|
|
52
|
-
exports.responseBodyConditionsFromJSON = responseBodyConditionsFromJSON;
|
|
53
|
-
exports.retrieveAgentRequestResponseBodyToolsFromJSON = retrieveAgentRequestResponseBodyToolsFromJSON;
|
|
54
|
-
exports.retrieveAgentRequestResponseBodyEvaluatorsFromJSON = retrieveAgentRequestResponseBodyEvaluatorsFromJSON;
|
|
55
|
-
exports.retrieveAgentRequestResponseBodyGuardrailsFromJSON = retrieveAgentRequestResponseBodyGuardrailsFromJSON;
|
|
56
|
-
exports.retrieveAgentRequestResponseBodySettingsFromJSON = retrieveAgentRequestResponseBodySettingsFromJSON;
|
|
42
|
+
exports.retrieveAgentRequestTeamOfAgentsFromJSON = retrieveAgentRequestTeamOfAgentsFromJSON;
|
|
43
|
+
exports.retrieveAgentRequestMetricsFromJSON = retrieveAgentRequestMetricsFromJSON;
|
|
44
|
+
exports.retrieveAgentRequestKnowledgeBasesFromJSON = retrieveAgentRequestKnowledgeBasesFromJSON;
|
|
45
|
+
exports.retrieveAgentRequestConditionsFromJSON = retrieveAgentRequestConditionsFromJSON;
|
|
46
|
+
exports.retrieveAgentRequestToolsFromJSON = retrieveAgentRequestToolsFromJSON;
|
|
47
|
+
exports.retrieveAgentRequestEvaluatorsFromJSON = retrieveAgentRequestEvaluatorsFromJSON;
|
|
48
|
+
exports.retrieveAgentRequestGuardrailsFromJSON = retrieveAgentRequestGuardrailsFromJSON;
|
|
49
|
+
exports.retrieveAgentRequestSettingsFromJSON = retrieveAgentRequestSettingsFromJSON;
|
|
57
50
|
exports.retrieveAgentRequestResponseFormatJsonSchemaFromJSON = retrieveAgentRequestResponseFormatJsonSchemaFromJSON;
|
|
58
51
|
exports.retrieveAgentRequestResponseFormatAgentsJSONSchemaFromJSON = retrieveAgentRequestResponseFormatAgentsJSONSchemaFromJSON;
|
|
59
52
|
exports.retrieveAgentRequestResponseFormatJSONObjectFromJSON = retrieveAgentRequestResponseFormatJSONObjectFromJSON;
|
|
60
53
|
exports.retrieveAgentRequestResponseFormatTextFromJSON = retrieveAgentRequestResponseFormatTextFromJSON;
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
54
|
+
exports.retrieveAgentRequestResponseFormatFromJSON = retrieveAgentRequestResponseFormatFromJSON;
|
|
55
|
+
exports.retrieveAgentRequestStopFromJSON = retrieveAgentRequestStopFromJSON;
|
|
56
|
+
exports.retrieveAgentRequestThinkingFromJSON = retrieveAgentRequestThinkingFromJSON;
|
|
64
57
|
exports.retrieveAgentRequestToolChoiceFunctionFromJSON = retrieveAgentRequestToolChoiceFunctionFromJSON;
|
|
65
58
|
exports.retrieveAgentRequestToolChoice2FromJSON = retrieveAgentRequestToolChoice2FromJSON;
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
59
|
+
exports.retrieveAgentRequestToolChoiceFromJSON = retrieveAgentRequestToolChoiceFromJSON;
|
|
60
|
+
exports.retrieveAgentRequestIdFromJSON = retrieveAgentRequestIdFromJSON;
|
|
61
|
+
exports.retrieveAgentRequestAgentsGuardrailsFromJSON = retrieveAgentRequestAgentsGuardrailsFromJSON;
|
|
62
|
+
exports.retrieveAgentRequestFallbacksFromJSON = retrieveAgentRequestFallbacksFromJSON;
|
|
63
|
+
exports.retrieveAgentRequestCacheFromJSON = retrieveAgentRequestCacheFromJSON;
|
|
71
64
|
exports.retrieveAgentRequestLoadBalancerModelsFromJSON = retrieveAgentRequestLoadBalancerModelsFromJSON;
|
|
72
65
|
exports.retrieveAgentRequestLoadBalancer1FromJSON = retrieveAgentRequestLoadBalancer1FromJSON;
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
76
|
-
exports.
|
|
66
|
+
exports.retrieveAgentRequestLoadBalancerFromJSON = retrieveAgentRequestLoadBalancerFromJSON;
|
|
67
|
+
exports.retrieveAgentRequestTimeoutFromJSON = retrieveAgentRequestTimeoutFromJSON;
|
|
68
|
+
exports.retrieveAgentRequestParametersFromJSON = retrieveAgentRequestParametersFromJSON;
|
|
69
|
+
exports.retrieveAgentRequestRetryFromJSON = retrieveAgentRequestRetryFromJSON;
|
|
77
70
|
exports.retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaFromJSON = retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaFromJSON;
|
|
78
71
|
exports.retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaFromJSON = retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaFromJSON;
|
|
79
72
|
exports.retrieveAgentRequestResponseFormatAgentsJSONObjectFromJSON = retrieveAgentRequestResponseFormatAgentsJSONObjectFromJSON;
|
|
@@ -95,9 +88,10 @@ exports.retrieveAgentRequestFallbackModelConfigurationTimeoutFromJSON = retrieve
|
|
|
95
88
|
exports.retrieveAgentRequestFallbackModelConfigurationParametersFromJSON = retrieveAgentRequestFallbackModelConfigurationParametersFromJSON;
|
|
96
89
|
exports.retrieveAgentRequestFallbackModelConfigurationRetryFromJSON = retrieveAgentRequestFallbackModelConfigurationRetryFromJSON;
|
|
97
90
|
exports.retrieveAgentRequestFallbackModelConfiguration2FromJSON = retrieveAgentRequestFallbackModelConfiguration2FromJSON;
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
91
|
+
exports.retrieveAgentRequestFallbackModelConfigurationFromJSON = retrieveAgentRequestFallbackModelConfigurationFromJSON;
|
|
92
|
+
exports.retrieveAgentRequestModelFromJSON = retrieveAgentRequestModelFromJSON;
|
|
93
|
+
exports.retrieveAgentRequestHeadersFromJSON = retrieveAgentRequestHeadersFromJSON;
|
|
94
|
+
exports.retrieveAgentRequestA2AAgentConfigurationFromJSON = retrieveAgentRequestA2AAgentConfigurationFromJSON;
|
|
101
95
|
exports.retrieveAgentRequestResponseBodyFromJSON = retrieveAgentRequestResponseBodyFromJSON;
|
|
102
96
|
const z = __importStar(require("zod/v3"));
|
|
103
97
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
@@ -106,35 +100,28 @@ const components = __importStar(require("../components/index.js"));
|
|
|
106
100
|
/**
|
|
107
101
|
* 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.
|
|
108
102
|
*/
|
|
109
|
-
exports.
|
|
103
|
+
exports.RetrieveAgentRequestStatus = {
|
|
110
104
|
Live: "live",
|
|
111
105
|
Draft: "draft",
|
|
112
106
|
Pending: "pending",
|
|
113
107
|
Published: "published",
|
|
114
108
|
};
|
|
115
|
-
exports.
|
|
109
|
+
exports.RetrieveAgentRequestSource = {
|
|
116
110
|
Internal: "internal",
|
|
117
111
|
External: "external",
|
|
118
112
|
Experiment: "experiment",
|
|
119
113
|
};
|
|
120
114
|
/**
|
|
121
|
-
*
|
|
115
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
122
116
|
*/
|
|
123
|
-
exports.
|
|
124
|
-
Live: "live",
|
|
125
|
-
Draft: "draft",
|
|
126
|
-
Pending: "pending",
|
|
127
|
-
Published: "published",
|
|
128
|
-
};
|
|
129
|
-
exports.RetrieveAgentRequestResponseBodySource = {
|
|
117
|
+
exports.RetrieveAgentRequestType = {
|
|
130
118
|
Internal: "internal",
|
|
131
|
-
|
|
132
|
-
Experiment: "experiment",
|
|
119
|
+
A2a: "a2a",
|
|
133
120
|
};
|
|
134
121
|
/**
|
|
135
122
|
* 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.
|
|
136
123
|
*/
|
|
137
|
-
exports.
|
|
124
|
+
exports.RetrieveAgentRequestToolApprovalRequired = {
|
|
138
125
|
All: "all",
|
|
139
126
|
RespectTool: "respect_tool",
|
|
140
127
|
None: "none",
|
|
@@ -142,14 +129,14 @@ exports.RetrieveAgentRequestResponseBodyToolApprovalRequired = {
|
|
|
142
129
|
/**
|
|
143
130
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
144
131
|
*/
|
|
145
|
-
exports.
|
|
132
|
+
exports.RetrieveAgentRequestExecuteOn = {
|
|
146
133
|
Input: "input",
|
|
147
134
|
Output: "output",
|
|
148
135
|
};
|
|
149
136
|
/**
|
|
150
137
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
151
138
|
*/
|
|
152
|
-
exports.
|
|
139
|
+
exports.RetrieveAgentRequestAgentsExecuteOn = {
|
|
153
140
|
Input: "input",
|
|
154
141
|
Output: "output",
|
|
155
142
|
};
|
|
@@ -165,7 +152,7 @@ exports.RetrieveAgentRequestResponseBodyAgentsExecuteOn = {
|
|
|
165
152
|
*
|
|
166
153
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
167
154
|
*/
|
|
168
|
-
exports.
|
|
155
|
+
exports.RetrieveAgentRequestReasoningEffort = {
|
|
169
156
|
None: "none",
|
|
170
157
|
Minimal: "minimal",
|
|
171
158
|
Low: "low",
|
|
@@ -184,7 +171,7 @@ exports.RetrieveAgentRequestToolChoice1 = {
|
|
|
184
171
|
Auto: "auto",
|
|
185
172
|
Required: "required",
|
|
186
173
|
};
|
|
187
|
-
exports.
|
|
174
|
+
exports.RetrieveAgentRequestModalities = {
|
|
188
175
|
Text: "text",
|
|
189
176
|
Audio: "audio",
|
|
190
177
|
};
|
|
@@ -199,11 +186,11 @@ exports.RetrieveAgentRequestId1 = {
|
|
|
199
186
|
/**
|
|
200
187
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
201
188
|
*/
|
|
202
|
-
exports.
|
|
189
|
+
exports.RetrieveAgentRequestAgentsResponseExecuteOn = {
|
|
203
190
|
Input: "input",
|
|
204
191
|
Output: "output",
|
|
205
192
|
};
|
|
206
|
-
exports.
|
|
193
|
+
exports.RetrieveAgentRequestAgentsType = {
|
|
207
194
|
ExactMatch: "exact_match",
|
|
208
195
|
};
|
|
209
196
|
exports.RetrieveAgentRequestLoadBalancerType = {
|
|
@@ -277,154 +264,55 @@ function retrieveAgentRequestRequestToJSON(retrieveAgentRequestRequest) {
|
|
|
277
264
|
return JSON.stringify(exports.RetrieveAgentRequestRequest$outboundSchema.parse(retrieveAgentRequestRequest));
|
|
278
265
|
}
|
|
279
266
|
/** @internal */
|
|
280
|
-
exports.
|
|
281
|
-
.nativeEnum(exports.RetrieveAgentRequestResponseBodyAgentsStatus);
|
|
267
|
+
exports.RetrieveAgentRequestStatus$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestStatus);
|
|
282
268
|
/** @internal */
|
|
283
|
-
exports.
|
|
269
|
+
exports.RetrieveAgentRequestTeamOfAgents$inboundSchema = z.object({
|
|
284
270
|
key: z.string(),
|
|
285
271
|
role: z.string().optional(),
|
|
286
272
|
});
|
|
287
|
-
function
|
|
288
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
273
|
+
function retrieveAgentRequestTeamOfAgentsFromJSON(jsonString) {
|
|
274
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestTeamOfAgents' from JSON`);
|
|
289
275
|
}
|
|
290
276
|
/** @internal */
|
|
291
|
-
exports.
|
|
277
|
+
exports.RetrieveAgentRequestMetrics$inboundSchema = z.object({
|
|
292
278
|
total_cost: z.number().default(0),
|
|
293
279
|
}).transform((v) => {
|
|
294
280
|
return (0, primitives_js_1.remap)(v, {
|
|
295
281
|
"total_cost": "totalCost",
|
|
296
282
|
});
|
|
297
283
|
});
|
|
298
|
-
function
|
|
299
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
284
|
+
function retrieveAgentRequestMetricsFromJSON(jsonString) {
|
|
285
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestMetrics' from JSON`);
|
|
300
286
|
}
|
|
301
287
|
/** @internal */
|
|
302
|
-
exports.
|
|
288
|
+
exports.RetrieveAgentRequestKnowledgeBases$inboundSchema = z.object({
|
|
303
289
|
knowledge_id: z.string(),
|
|
304
290
|
}).transform((v) => {
|
|
305
291
|
return (0, primitives_js_1.remap)(v, {
|
|
306
292
|
"knowledge_id": "knowledgeId",
|
|
307
293
|
});
|
|
308
294
|
});
|
|
309
|
-
function
|
|
310
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
295
|
+
function retrieveAgentRequestKnowledgeBasesFromJSON(jsonString) {
|
|
296
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestKnowledgeBases' from JSON`);
|
|
311
297
|
}
|
|
312
298
|
/** @internal */
|
|
313
|
-
exports.
|
|
314
|
-
.nativeEnum(exports.RetrieveAgentRequestResponseBodyAgentsSource);
|
|
299
|
+
exports.RetrieveAgentRequestSource$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestSource);
|
|
315
300
|
/** @internal */
|
|
316
|
-
exports.
|
|
317
|
-
value: z.string(),
|
|
318
|
-
encrypted: z.boolean().default(false),
|
|
319
|
-
});
|
|
320
|
-
function retrieveAgentRequestResponseBodyHeadersFromJSON(jsonString) {
|
|
321
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBodyHeaders' from JSON`);
|
|
322
|
-
}
|
|
301
|
+
exports.RetrieveAgentRequestType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestType);
|
|
323
302
|
/** @internal */
|
|
324
|
-
exports.
|
|
325
|
-
|
|
326
|
-
card_url: z.string().optional(),
|
|
327
|
-
headers: z.record(z.lazy(() => exports.RetrieveAgentRequestResponseBodyHeaders$inboundSchema)).optional(),
|
|
328
|
-
cached_card: z.any().optional(),
|
|
329
|
-
}).transform((v) => {
|
|
330
|
-
return (0, primitives_js_1.remap)(v, {
|
|
331
|
-
"agent_url": "agentUrl",
|
|
332
|
-
"card_url": "cardUrl",
|
|
333
|
-
"cached_card": "cachedCard",
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
function responseBodyA2AAgentConfigurationFromJSON(jsonString) {
|
|
337
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyA2AAgentConfiguration' from JSON`);
|
|
338
|
-
}
|
|
303
|
+
exports.RetrieveAgentRequestToolApprovalRequired$inboundSchema = z
|
|
304
|
+
.nativeEnum(exports.RetrieveAgentRequestToolApprovalRequired);
|
|
339
305
|
/** @internal */
|
|
340
|
-
exports.
|
|
341
|
-
_id: z.string(),
|
|
342
|
-
key: z.string(),
|
|
343
|
-
display_name: z.string().optional(),
|
|
344
|
-
project_id: z.string(),
|
|
345
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
346
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
347
|
-
created: z.string().optional(),
|
|
348
|
-
updated: z.string().optional(),
|
|
349
|
-
status: exports.RetrieveAgentRequestResponseBodyAgentsStatus$inboundSchema,
|
|
350
|
-
version_hash: z.string().optional(),
|
|
351
|
-
path: z.string(),
|
|
352
|
-
memory_stores: z.array(z.string()).optional(),
|
|
353
|
-
team_of_agents: z.array(z.lazy(() => exports.RetrieveAgentRequestResponseBodyAgentsTeamOfAgents$inboundSchema)).optional(),
|
|
354
|
-
metrics: z.lazy(() => exports.RetrieveAgentRequestResponseBodyAgentsMetrics$inboundSchema).optional(),
|
|
355
|
-
variables: z.record(z.any()).optional(),
|
|
356
|
-
knowledge_bases: z.array(z.lazy(() => exports.RetrieveAgentRequestResponseBodyAgentsKnowledgeBases$inboundSchema)).optional(),
|
|
357
|
-
source: exports.RetrieveAgentRequestResponseBodyAgentsSource$inboundSchema.optional(),
|
|
358
|
-
type: z.literal("a2a"),
|
|
359
|
-
role: z.string(),
|
|
360
|
-
description: z.string(),
|
|
361
|
-
system_prompt: z.string().optional(),
|
|
362
|
-
instructions: z.string(),
|
|
363
|
-
a2a: z.lazy(() => exports.ResponseBodyA2AAgentConfiguration$inboundSchema),
|
|
364
|
-
}).transform((v) => {
|
|
365
|
-
return (0, primitives_js_1.remap)(v, {
|
|
366
|
-
"_id": "id",
|
|
367
|
-
"display_name": "displayName",
|
|
368
|
-
"project_id": "projectId",
|
|
369
|
-
"created_by_id": "createdById",
|
|
370
|
-
"updated_by_id": "updatedById",
|
|
371
|
-
"version_hash": "versionHash",
|
|
372
|
-
"memory_stores": "memoryStores",
|
|
373
|
-
"team_of_agents": "teamOfAgents",
|
|
374
|
-
"knowledge_bases": "knowledgeBases",
|
|
375
|
-
"system_prompt": "systemPrompt",
|
|
376
|
-
});
|
|
377
|
-
});
|
|
378
|
-
function retrieveAgentRequestResponseBody2FromJSON(jsonString) {
|
|
379
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBody2' from JSON`);
|
|
380
|
-
}
|
|
381
|
-
/** @internal */
|
|
382
|
-
exports.RetrieveAgentRequestResponseBodyStatus$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseBodyStatus);
|
|
383
|
-
/** @internal */
|
|
384
|
-
exports.RetrieveAgentRequestResponseBodyTeamOfAgents$inboundSchema = z.object({
|
|
385
|
-
key: z.string(),
|
|
386
|
-
role: z.string().optional(),
|
|
387
|
-
});
|
|
388
|
-
function retrieveAgentRequestResponseBodyTeamOfAgentsFromJSON(jsonString) {
|
|
389
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBodyTeamOfAgents' from JSON`);
|
|
390
|
-
}
|
|
391
|
-
/** @internal */
|
|
392
|
-
exports.RetrieveAgentRequestResponseBodyMetrics$inboundSchema = z.object({
|
|
393
|
-
total_cost: z.number().default(0),
|
|
394
|
-
}).transform((v) => {
|
|
395
|
-
return (0, primitives_js_1.remap)(v, {
|
|
396
|
-
"total_cost": "totalCost",
|
|
397
|
-
});
|
|
398
|
-
});
|
|
399
|
-
function retrieveAgentRequestResponseBodyMetricsFromJSON(jsonString) {
|
|
400
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBodyMetrics' from JSON`);
|
|
401
|
-
}
|
|
402
|
-
/** @internal */
|
|
403
|
-
exports.RetrieveAgentRequestResponseBodyKnowledgeBases$inboundSchema = z.object({
|
|
404
|
-
knowledge_id: z.string(),
|
|
405
|
-
}).transform((v) => {
|
|
406
|
-
return (0, primitives_js_1.remap)(v, {
|
|
407
|
-
"knowledge_id": "knowledgeId",
|
|
408
|
-
});
|
|
409
|
-
});
|
|
410
|
-
function retrieveAgentRequestResponseBodyKnowledgeBasesFromJSON(jsonString) {
|
|
411
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBodyKnowledgeBases' from JSON`);
|
|
412
|
-
}
|
|
413
|
-
/** @internal */
|
|
414
|
-
exports.RetrieveAgentRequestResponseBodySource$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseBodySource);
|
|
415
|
-
/** @internal */
|
|
416
|
-
exports.RetrieveAgentRequestResponseBodyToolApprovalRequired$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseBodyToolApprovalRequired);
|
|
417
|
-
/** @internal */
|
|
418
|
-
exports.ResponseBodyConditions$inboundSchema = z.object({
|
|
306
|
+
exports.RetrieveAgentRequestConditions$inboundSchema = z.object({
|
|
419
307
|
condition: z.string(),
|
|
420
308
|
operator: z.string(),
|
|
421
309
|
value: z.string(),
|
|
422
310
|
});
|
|
423
|
-
function
|
|
424
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
311
|
+
function retrieveAgentRequestConditionsFromJSON(jsonString) {
|
|
312
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestConditions' from JSON`);
|
|
425
313
|
}
|
|
426
314
|
/** @internal */
|
|
427
|
-
exports.
|
|
315
|
+
exports.RetrieveAgentRequestTools$inboundSchema = z.object({
|
|
428
316
|
id: z.string(),
|
|
429
317
|
key: z.string().optional(),
|
|
430
318
|
action_type: z.string(),
|
|
@@ -432,8 +320,7 @@ exports.RetrieveAgentRequestResponseBodyTools$inboundSchema = z.object({
|
|
|
432
320
|
description: z.string().optional(),
|
|
433
321
|
requires_approval: z.boolean().default(false),
|
|
434
322
|
tool_id: z.string().optional(),
|
|
435
|
-
conditions: z.array(z.lazy(() => exports.
|
|
436
|
-
.optional(),
|
|
323
|
+
conditions: z.array(z.lazy(() => exports.RetrieveAgentRequestConditions$inboundSchema)).optional(),
|
|
437
324
|
timeout: z.number().default(120),
|
|
438
325
|
}).transform((v) => {
|
|
439
326
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -443,52 +330,52 @@ exports.RetrieveAgentRequestResponseBodyTools$inboundSchema = z.object({
|
|
|
443
330
|
"tool_id": "toolId",
|
|
444
331
|
});
|
|
445
332
|
});
|
|
446
|
-
function
|
|
447
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
333
|
+
function retrieveAgentRequestToolsFromJSON(jsonString) {
|
|
334
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestTools' from JSON`);
|
|
448
335
|
}
|
|
449
336
|
/** @internal */
|
|
450
|
-
exports.
|
|
451
|
-
.nativeEnum(exports.RetrieveAgentRequestResponseBodyExecuteOn);
|
|
337
|
+
exports.RetrieveAgentRequestExecuteOn$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestExecuteOn);
|
|
452
338
|
/** @internal */
|
|
453
|
-
exports.
|
|
339
|
+
exports.RetrieveAgentRequestEvaluators$inboundSchema = z.object({
|
|
454
340
|
id: z.string(),
|
|
455
341
|
sample_rate: z.number().default(50),
|
|
456
|
-
execute_on: exports.
|
|
342
|
+
execute_on: exports.RetrieveAgentRequestExecuteOn$inboundSchema,
|
|
457
343
|
}).transform((v) => {
|
|
458
344
|
return (0, primitives_js_1.remap)(v, {
|
|
459
345
|
"sample_rate": "sampleRate",
|
|
460
346
|
"execute_on": "executeOn",
|
|
461
347
|
});
|
|
462
348
|
});
|
|
463
|
-
function
|
|
464
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
349
|
+
function retrieveAgentRequestEvaluatorsFromJSON(jsonString) {
|
|
350
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestEvaluators$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestEvaluators' from JSON`);
|
|
465
351
|
}
|
|
466
352
|
/** @internal */
|
|
467
|
-
exports.
|
|
468
|
-
.nativeEnum(exports.RetrieveAgentRequestResponseBodyAgentsExecuteOn);
|
|
353
|
+
exports.RetrieveAgentRequestAgentsExecuteOn$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestAgentsExecuteOn);
|
|
469
354
|
/** @internal */
|
|
470
|
-
exports.
|
|
355
|
+
exports.RetrieveAgentRequestGuardrails$inboundSchema = z.object({
|
|
471
356
|
id: z.string(),
|
|
472
357
|
sample_rate: z.number().default(50),
|
|
473
|
-
execute_on: exports.
|
|
358
|
+
execute_on: exports.RetrieveAgentRequestAgentsExecuteOn$inboundSchema,
|
|
474
359
|
}).transform((v) => {
|
|
475
360
|
return (0, primitives_js_1.remap)(v, {
|
|
476
361
|
"sample_rate": "sampleRate",
|
|
477
362
|
"execute_on": "executeOn",
|
|
478
363
|
});
|
|
479
364
|
});
|
|
480
|
-
function
|
|
481
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
365
|
+
function retrieveAgentRequestGuardrailsFromJSON(jsonString) {
|
|
366
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestGuardrails' from JSON`);
|
|
482
367
|
}
|
|
483
368
|
/** @internal */
|
|
484
|
-
exports.
|
|
369
|
+
exports.RetrieveAgentRequestSettings$inboundSchema = z.object({
|
|
485
370
|
max_iterations: z.number().int().default(100),
|
|
486
371
|
max_execution_time: z.number().int().default(600),
|
|
487
372
|
max_cost: z.number().default(0),
|
|
488
|
-
tool_approval_required: exports.
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
373
|
+
tool_approval_required: exports.RetrieveAgentRequestToolApprovalRequired$inboundSchema
|
|
374
|
+
.default("respect_tool"),
|
|
375
|
+
tools: z.array(z.lazy(() => exports.RetrieveAgentRequestTools$inboundSchema))
|
|
376
|
+
.optional(),
|
|
377
|
+
evaluators: z.array(z.lazy(() => exports.RetrieveAgentRequestEvaluators$inboundSchema)).optional(),
|
|
378
|
+
guardrails: z.array(z.lazy(() => exports.RetrieveAgentRequestGuardrails$inboundSchema)).optional(),
|
|
492
379
|
}).transform((v) => {
|
|
493
380
|
return (0, primitives_js_1.remap)(v, {
|
|
494
381
|
"max_iterations": "maxIterations",
|
|
@@ -497,8 +384,8 @@ exports.RetrieveAgentRequestResponseBodySettings$inboundSchema = z.object({
|
|
|
497
384
|
"tool_approval_required": "toolApprovalRequired",
|
|
498
385
|
});
|
|
499
386
|
});
|
|
500
|
-
function
|
|
501
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
387
|
+
function retrieveAgentRequestSettingsFromJSON(jsonString) {
|
|
388
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestSettings' from JSON`);
|
|
502
389
|
}
|
|
503
390
|
/** @internal */
|
|
504
391
|
exports.RetrieveAgentRequestResponseFormatJsonSchema$inboundSchema = z.object({
|
|
@@ -537,29 +424,28 @@ function retrieveAgentRequestResponseFormatTextFromJSON(jsonString) {
|
|
|
537
424
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatText' from JSON`);
|
|
538
425
|
}
|
|
539
426
|
/** @internal */
|
|
540
|
-
exports.
|
|
427
|
+
exports.RetrieveAgentRequestResponseFormat$inboundSchema = z.union([
|
|
541
428
|
z.lazy(() => exports.RetrieveAgentRequestResponseFormatText$inboundSchema),
|
|
542
429
|
z.lazy(() => exports.RetrieveAgentRequestResponseFormatJSONObject$inboundSchema),
|
|
543
430
|
z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema),
|
|
544
431
|
]);
|
|
545
|
-
function
|
|
546
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
432
|
+
function retrieveAgentRequestResponseFormatFromJSON(jsonString) {
|
|
433
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormat' from JSON`);
|
|
547
434
|
}
|
|
548
435
|
/** @internal */
|
|
549
|
-
exports.
|
|
550
|
-
.nativeEnum(exports.RetrieveAgentRequestResponseBodyReasoningEffort);
|
|
436
|
+
exports.RetrieveAgentRequestReasoningEffort$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestReasoningEffort);
|
|
551
437
|
/** @internal */
|
|
552
|
-
exports.
|
|
553
|
-
function
|
|
554
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
438
|
+
exports.RetrieveAgentRequestStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
439
|
+
function retrieveAgentRequestStopFromJSON(jsonString) {
|
|
440
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestStop' from JSON`);
|
|
555
441
|
}
|
|
556
442
|
/** @internal */
|
|
557
|
-
exports.
|
|
443
|
+
exports.RetrieveAgentRequestThinking$inboundSchema = z.union([
|
|
558
444
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
559
445
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
560
446
|
]);
|
|
561
|
-
function
|
|
562
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
447
|
+
function retrieveAgentRequestThinkingFromJSON(jsonString) {
|
|
448
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestThinking' from JSON`);
|
|
563
449
|
}
|
|
564
450
|
/** @internal */
|
|
565
451
|
exports.RetrieveAgentRequestToolChoiceType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestToolChoiceType);
|
|
@@ -581,54 +467,53 @@ function retrieveAgentRequestToolChoice2FromJSON(jsonString) {
|
|
|
581
467
|
/** @internal */
|
|
582
468
|
exports.RetrieveAgentRequestToolChoice1$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestToolChoice1);
|
|
583
469
|
/** @internal */
|
|
584
|
-
exports.
|
|
470
|
+
exports.RetrieveAgentRequestToolChoice$inboundSchema = z.union([
|
|
585
471
|
z.lazy(() => exports.RetrieveAgentRequestToolChoice2$inboundSchema),
|
|
586
472
|
exports.RetrieveAgentRequestToolChoice1$inboundSchema,
|
|
587
473
|
]);
|
|
588
|
-
function
|
|
589
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
474
|
+
function retrieveAgentRequestToolChoiceFromJSON(jsonString) {
|
|
475
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestToolChoice' from JSON`);
|
|
590
476
|
}
|
|
591
477
|
/** @internal */
|
|
592
|
-
exports.
|
|
593
|
-
.nativeEnum(exports.RetrieveAgentRequestResponseBodyModalities);
|
|
478
|
+
exports.RetrieveAgentRequestModalities$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestModalities);
|
|
594
479
|
/** @internal */
|
|
595
480
|
exports.RetrieveAgentRequestId1$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestId1);
|
|
596
481
|
/** @internal */
|
|
597
|
-
exports.
|
|
598
|
-
function
|
|
599
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
482
|
+
exports.RetrieveAgentRequestId$inboundSchema = z.union([exports.RetrieveAgentRequestId1$inboundSchema, z.string()]);
|
|
483
|
+
function retrieveAgentRequestIdFromJSON(jsonString) {
|
|
484
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestId' from JSON`);
|
|
600
485
|
}
|
|
601
486
|
/** @internal */
|
|
602
|
-
exports.
|
|
487
|
+
exports.RetrieveAgentRequestAgentsResponseExecuteOn$inboundSchema = z
|
|
488
|
+
.nativeEnum(exports.RetrieveAgentRequestAgentsResponseExecuteOn);
|
|
603
489
|
/** @internal */
|
|
604
|
-
exports.
|
|
490
|
+
exports.RetrieveAgentRequestAgentsGuardrails$inboundSchema = z.object({
|
|
605
491
|
id: z.union([exports.RetrieveAgentRequestId1$inboundSchema, z.string()]),
|
|
606
|
-
execute_on: exports.
|
|
492
|
+
execute_on: exports.RetrieveAgentRequestAgentsResponseExecuteOn$inboundSchema,
|
|
607
493
|
}).transform((v) => {
|
|
608
494
|
return (0, primitives_js_1.remap)(v, {
|
|
609
495
|
"execute_on": "executeOn",
|
|
610
496
|
});
|
|
611
497
|
});
|
|
612
|
-
function
|
|
613
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
498
|
+
function retrieveAgentRequestAgentsGuardrailsFromJSON(jsonString) {
|
|
499
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestAgentsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestAgentsGuardrails' from JSON`);
|
|
614
500
|
}
|
|
615
501
|
/** @internal */
|
|
616
|
-
exports.
|
|
502
|
+
exports.RetrieveAgentRequestFallbacks$inboundSchema = z.object({
|
|
617
503
|
model: z.string(),
|
|
618
504
|
});
|
|
619
|
-
function
|
|
620
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
505
|
+
function retrieveAgentRequestFallbacksFromJSON(jsonString) {
|
|
506
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbacks' from JSON`);
|
|
621
507
|
}
|
|
622
508
|
/** @internal */
|
|
623
|
-
exports.
|
|
624
|
-
.nativeEnum(exports.RetrieveAgentRequestResponseBodyAgentsResponseType);
|
|
509
|
+
exports.RetrieveAgentRequestAgentsType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestAgentsType);
|
|
625
510
|
/** @internal */
|
|
626
|
-
exports.
|
|
511
|
+
exports.RetrieveAgentRequestCache$inboundSchema = z.object({
|
|
627
512
|
ttl: z.number().default(1800),
|
|
628
|
-
type: exports.
|
|
513
|
+
type: exports.RetrieveAgentRequestAgentsType$inboundSchema,
|
|
629
514
|
});
|
|
630
|
-
function
|
|
631
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
515
|
+
function retrieveAgentRequestCacheFromJSON(jsonString) {
|
|
516
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestCache' from JSON`);
|
|
632
517
|
}
|
|
633
518
|
/** @internal */
|
|
634
519
|
exports.RetrieveAgentRequestLoadBalancerType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestLoadBalancerType);
|
|
@@ -649,23 +534,23 @@ function retrieveAgentRequestLoadBalancer1FromJSON(jsonString) {
|
|
|
649
534
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestLoadBalancer1' from JSON`);
|
|
650
535
|
}
|
|
651
536
|
/** @internal */
|
|
652
|
-
exports.
|
|
653
|
-
function
|
|
654
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
537
|
+
exports.RetrieveAgentRequestLoadBalancer$inboundSchema = z.lazy(() => exports.RetrieveAgentRequestLoadBalancer1$inboundSchema);
|
|
538
|
+
function retrieveAgentRequestLoadBalancerFromJSON(jsonString) {
|
|
539
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestLoadBalancer' from JSON`);
|
|
655
540
|
}
|
|
656
541
|
/** @internal */
|
|
657
|
-
exports.
|
|
542
|
+
exports.RetrieveAgentRequestTimeout$inboundSchema = z.object({
|
|
658
543
|
call_timeout: z.number(),
|
|
659
544
|
}).transform((v) => {
|
|
660
545
|
return (0, primitives_js_1.remap)(v, {
|
|
661
546
|
"call_timeout": "callTimeout",
|
|
662
547
|
});
|
|
663
548
|
});
|
|
664
|
-
function
|
|
665
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
549
|
+
function retrieveAgentRequestTimeoutFromJSON(jsonString) {
|
|
550
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestTimeout' from JSON`);
|
|
666
551
|
}
|
|
667
552
|
/** @internal */
|
|
668
|
-
exports.
|
|
553
|
+
exports.RetrieveAgentRequestParameters$inboundSchema = z.object({
|
|
669
554
|
name: z.string().optional(),
|
|
670
555
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
671
556
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
@@ -676,7 +561,7 @@ exports.RetrieveAgentRequestResponseBodyParameters$inboundSchema = z.object({
|
|
|
676
561
|
z.lazy(() => exports.RetrieveAgentRequestResponseFormatJSONObject$inboundSchema),
|
|
677
562
|
z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema),
|
|
678
563
|
]).optional(),
|
|
679
|
-
reasoning_effort: exports.
|
|
564
|
+
reasoning_effort: exports.RetrieveAgentRequestReasoningEffort$inboundSchema
|
|
680
565
|
.optional(),
|
|
681
566
|
verbosity: z.string().optional(),
|
|
682
567
|
seed: z.nullable(z.number()).optional(),
|
|
@@ -693,13 +578,15 @@ exports.RetrieveAgentRequestResponseBodyParameters$inboundSchema = z.object({
|
|
|
693
578
|
exports.RetrieveAgentRequestToolChoice1$inboundSchema,
|
|
694
579
|
]).optional(),
|
|
695
580
|
parallel_tool_calls: z.boolean().optional(),
|
|
696
|
-
modalities: z.nullable(z.array(exports.
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
581
|
+
modalities: z.nullable(z.array(exports.RetrieveAgentRequestModalities$inboundSchema))
|
|
582
|
+
.optional(),
|
|
583
|
+
guardrails: z.array(z.lazy(() => exports.RetrieveAgentRequestAgentsGuardrails$inboundSchema)).optional(),
|
|
584
|
+
fallbacks: z.array(z.lazy(() => exports.RetrieveAgentRequestFallbacks$inboundSchema))
|
|
585
|
+
.optional(),
|
|
586
|
+
cache: z.lazy(() => exports.RetrieveAgentRequestCache$inboundSchema).optional(),
|
|
587
|
+
load_balancer: z.lazy(() => exports.RetrieveAgentRequestLoadBalancer1$inboundSchema)
|
|
700
588
|
.optional(),
|
|
701
|
-
|
|
702
|
-
timeout: z.lazy(() => exports.RetrieveAgentRequestResponseBodyTimeout$inboundSchema).optional(),
|
|
589
|
+
timeout: z.lazy(() => exports.RetrieveAgentRequestTimeout$inboundSchema).optional(),
|
|
703
590
|
}).transform((v) => {
|
|
704
591
|
return (0, primitives_js_1.remap)(v, {
|
|
705
592
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -715,11 +602,11 @@ exports.RetrieveAgentRequestResponseBodyParameters$inboundSchema = z.object({
|
|
|
715
602
|
"load_balancer": "loadBalancer",
|
|
716
603
|
});
|
|
717
604
|
});
|
|
718
|
-
function
|
|
719
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
605
|
+
function retrieveAgentRequestParametersFromJSON(jsonString) {
|
|
606
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestParameters' from JSON`);
|
|
720
607
|
}
|
|
721
608
|
/** @internal */
|
|
722
|
-
exports.
|
|
609
|
+
exports.RetrieveAgentRequestRetry$inboundSchema = z.object({
|
|
723
610
|
count: z.number().default(3),
|
|
724
611
|
on_codes: z.array(z.number()).optional(),
|
|
725
612
|
}).transform((v) => {
|
|
@@ -727,8 +614,8 @@ exports.RetrieveAgentRequestResponseBodyRetry$inboundSchema = z.object({
|
|
|
727
614
|
"on_codes": "onCodes",
|
|
728
615
|
});
|
|
729
616
|
});
|
|
730
|
-
function
|
|
731
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
617
|
+
function retrieveAgentRequestRetryFromJSON(jsonString) {
|
|
618
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestRetry' from JSON`);
|
|
732
619
|
}
|
|
733
620
|
/** @internal */
|
|
734
621
|
exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema = z.object({
|
|
@@ -978,21 +865,20 @@ function retrieveAgentRequestFallbackModelConfiguration2FromJSON(jsonString) {
|
|
|
978
865
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfiguration2' from JSON`);
|
|
979
866
|
}
|
|
980
867
|
/** @internal */
|
|
981
|
-
exports.
|
|
868
|
+
exports.RetrieveAgentRequestFallbackModelConfiguration$inboundSchema = z.union([
|
|
982
869
|
z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema),
|
|
983
870
|
z.string(),
|
|
984
871
|
]);
|
|
985
|
-
function
|
|
986
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
987
|
-
.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBodyFallbackModelConfiguration' from JSON`);
|
|
872
|
+
function retrieveAgentRequestFallbackModelConfigurationFromJSON(jsonString) {
|
|
873
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfiguration' from JSON`);
|
|
988
874
|
}
|
|
989
875
|
/** @internal */
|
|
990
|
-
exports.
|
|
876
|
+
exports.RetrieveAgentRequestModel$inboundSchema = z.object({
|
|
991
877
|
id: z.string(),
|
|
992
878
|
integration_id: z.nullable(z.string()).optional(),
|
|
993
|
-
parameters: z.lazy(() => exports.
|
|
994
|
-
retry: z.lazy(() => exports.RetrieveAgentRequestResponseBodyRetry$inboundSchema)
|
|
879
|
+
parameters: z.lazy(() => exports.RetrieveAgentRequestParameters$inboundSchema)
|
|
995
880
|
.optional(),
|
|
881
|
+
retry: z.lazy(() => exports.RetrieveAgentRequestRetry$inboundSchema).optional(),
|
|
996
882
|
fallback_models: z.nullable(z.array(z.union([
|
|
997
883
|
z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema),
|
|
998
884
|
z.string(),
|
|
@@ -1003,11 +889,36 @@ exports.ResponseBodyModel$inboundSchema = z.object({
|
|
|
1003
889
|
"fallback_models": "fallbackModels",
|
|
1004
890
|
});
|
|
1005
891
|
});
|
|
1006
|
-
function
|
|
1007
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
892
|
+
function retrieveAgentRequestModelFromJSON(jsonString) {
|
|
893
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestModel' from JSON`);
|
|
894
|
+
}
|
|
895
|
+
/** @internal */
|
|
896
|
+
exports.RetrieveAgentRequestHeaders$inboundSchema = z.object({
|
|
897
|
+
value: z.string(),
|
|
898
|
+
encrypted: z.boolean().default(false),
|
|
899
|
+
});
|
|
900
|
+
function retrieveAgentRequestHeadersFromJSON(jsonString) {
|
|
901
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestHeaders' from JSON`);
|
|
902
|
+
}
|
|
903
|
+
/** @internal */
|
|
904
|
+
exports.RetrieveAgentRequestA2AAgentConfiguration$inboundSchema = z.object({
|
|
905
|
+
agent_url: z.string(),
|
|
906
|
+
card_url: z.string().optional(),
|
|
907
|
+
headers: z.record(z.lazy(() => exports.RetrieveAgentRequestHeaders$inboundSchema))
|
|
908
|
+
.optional(),
|
|
909
|
+
cached_card: z.any().optional(),
|
|
910
|
+
}).transform((v) => {
|
|
911
|
+
return (0, primitives_js_1.remap)(v, {
|
|
912
|
+
"agent_url": "agentUrl",
|
|
913
|
+
"card_url": "cardUrl",
|
|
914
|
+
"cached_card": "cachedCard",
|
|
915
|
+
});
|
|
916
|
+
});
|
|
917
|
+
function retrieveAgentRequestA2AAgentConfigurationFromJSON(jsonString) {
|
|
918
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestA2AAgentConfiguration' from JSON`);
|
|
1008
919
|
}
|
|
1009
920
|
/** @internal */
|
|
1010
|
-
exports.
|
|
921
|
+
exports.RetrieveAgentRequestResponseBody$inboundSchema = z.object({
|
|
1011
922
|
_id: z.string(),
|
|
1012
923
|
key: z.string(),
|
|
1013
924
|
display_name: z.string().optional(),
|
|
@@ -1016,24 +927,24 @@ exports.RetrieveAgentRequestResponseBody1$inboundSchema = z.object({
|
|
|
1016
927
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1017
928
|
created: z.string().optional(),
|
|
1018
929
|
updated: z.string().optional(),
|
|
1019
|
-
status: exports.
|
|
930
|
+
status: exports.RetrieveAgentRequestStatus$inboundSchema,
|
|
1020
931
|
version_hash: z.string().optional(),
|
|
1021
932
|
path: z.string(),
|
|
1022
933
|
memory_stores: z.array(z.string()).optional(),
|
|
1023
|
-
team_of_agents: z.array(z.lazy(() => exports.
|
|
1024
|
-
metrics: z.lazy(() => exports.
|
|
1025
|
-
.optional(),
|
|
934
|
+
team_of_agents: z.array(z.lazy(() => exports.RetrieveAgentRequestTeamOfAgents$inboundSchema)).optional(),
|
|
935
|
+
metrics: z.lazy(() => exports.RetrieveAgentRequestMetrics$inboundSchema).optional(),
|
|
1026
936
|
variables: z.record(z.any()).optional(),
|
|
1027
|
-
knowledge_bases: z.array(z.lazy(() => exports.
|
|
1028
|
-
source: exports.
|
|
1029
|
-
type:
|
|
937
|
+
knowledge_bases: z.array(z.lazy(() => exports.RetrieveAgentRequestKnowledgeBases$inboundSchema)).optional(),
|
|
938
|
+
source: exports.RetrieveAgentRequestSource$inboundSchema.optional(),
|
|
939
|
+
type: exports.RetrieveAgentRequestType$inboundSchema.default("internal"),
|
|
1030
940
|
role: z.string(),
|
|
1031
941
|
description: z.string(),
|
|
1032
942
|
system_prompt: z.string().optional(),
|
|
1033
943
|
instructions: z.string(),
|
|
1034
|
-
settings: z.lazy(() => exports.
|
|
944
|
+
settings: z.lazy(() => exports.RetrieveAgentRequestSettings$inboundSchema).optional(),
|
|
945
|
+
model: z.lazy(() => exports.RetrieveAgentRequestModel$inboundSchema),
|
|
946
|
+
a2a: z.lazy(() => exports.RetrieveAgentRequestA2AAgentConfiguration$inboundSchema)
|
|
1035
947
|
.optional(),
|
|
1036
|
-
model: z.lazy(() => exports.ResponseBodyModel$inboundSchema),
|
|
1037
948
|
}).transform((v) => {
|
|
1038
949
|
return (0, primitives_js_1.remap)(v, {
|
|
1039
950
|
"_id": "id",
|
|
@@ -1048,14 +959,6 @@ exports.RetrieveAgentRequestResponseBody1$inboundSchema = z.object({
|
|
|
1048
959
|
"system_prompt": "systemPrompt",
|
|
1049
960
|
});
|
|
1050
961
|
});
|
|
1051
|
-
function retrieveAgentRequestResponseBody1FromJSON(jsonString) {
|
|
1052
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBody1' from JSON`);
|
|
1053
|
-
}
|
|
1054
|
-
/** @internal */
|
|
1055
|
-
exports.RetrieveAgentRequestResponseBody$inboundSchema = z.union([
|
|
1056
|
-
z.lazy(() => exports.RetrieveAgentRequestResponseBody1$inboundSchema),
|
|
1057
|
-
z.lazy(() => exports.RetrieveAgentRequestResponseBody2$inboundSchema),
|
|
1058
|
-
]);
|
|
1059
962
|
function retrieveAgentRequestResponseBodyFromJSON(jsonString) {
|
|
1060
963
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBody' from JSON`);
|
|
1061
964
|
}
|