@orq-ai/node 4.0.0-rc.5 → 4.0.0-rc.7
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/bin/mcp-server.js +7487 -543
- package/bin/mcp-server.js.map +52 -52
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +4141 -865
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +3767 -768
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/creatememorystore.d.ts +42 -42
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +61 -63
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +263 -263
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +345 -345
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +19 -19
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +22 -22
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +4 -4
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +4 -4
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +1614 -11
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +1475 -9
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getallprompts.d.ts +4 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -4
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +4 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -4
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +4 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -4
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +1614 -11
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +1481 -9
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +1614 -11
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +1479 -9
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +4 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -4
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +2176 -503
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +1534 -9
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +2128 -455
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +1630 -89
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +4129 -853
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +3837 -825
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateprompt.d.ts +8 -8
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -8
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +7853 -1626
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/creatememorystore.ts +120 -103
- package/src/models/operations/createprompt.ts +742 -621
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +60 -44
- package/src/models/operations/deployments.ts +25 -20
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +3274 -246
- package/src/models/operations/getallprompts.ts +30 -20
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +28 -20
- package/src/models/operations/getpromptversion.ts +30 -20
- package/src/models/operations/listagents.ts +3351 -270
- package/src/models/operations/listagenttasks.ts +3347 -180
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +30 -20
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +3799 -610
- package/src/models/operations/streamrunagent.ts +3945 -605
- package/src/models/operations/updateagent.ts +8331 -1757
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateprompt.ts +58 -40
- package/src/models/operations/updatetool.ts +10 -10
|
@@ -46,229 +46,3328 @@ export type ListAgentTasksRequest = {
|
|
|
46
46
|
status?: Status | undefined;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
/**
|
|
50
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
51
|
+
*/
|
|
52
|
+
export const ListAgentTasksVoice = {
|
|
53
|
+
Alloy: "alloy",
|
|
54
|
+
Echo: "echo",
|
|
55
|
+
Fable: "fable",
|
|
56
|
+
Onyx: "onyx",
|
|
57
|
+
Nova: "nova",
|
|
58
|
+
Shimmer: "shimmer",
|
|
59
|
+
} as const;
|
|
60
|
+
/**
|
|
61
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
62
|
+
*/
|
|
63
|
+
export type ListAgentTasksVoice = ClosedEnum<typeof ListAgentTasksVoice>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
67
|
+
*/
|
|
68
|
+
export const ListAgentTasksFormat = {
|
|
69
|
+
Wav: "wav",
|
|
70
|
+
Mp3: "mp3",
|
|
71
|
+
Flac: "flac",
|
|
72
|
+
Opus: "opus",
|
|
73
|
+
Pcm16: "pcm16",
|
|
74
|
+
} as const;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
77
|
+
*/
|
|
78
|
+
export type ListAgentTasksFormat = ClosedEnum<typeof ListAgentTasksFormat>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
82
|
+
*/
|
|
83
|
+
export type ListAgentTasksAudio = {
|
|
50
84
|
/**
|
|
51
|
-
* The
|
|
85
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
52
86
|
*/
|
|
53
|
-
|
|
87
|
+
voice: ListAgentTasksVoice;
|
|
54
88
|
/**
|
|
55
|
-
*
|
|
89
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
56
90
|
*/
|
|
57
|
-
|
|
91
|
+
format: ListAgentTasksFormat;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export const ListAgentTasksResponseFormatAgentsResponseType = {
|
|
95
|
+
JsonSchema: "json_schema",
|
|
96
|
+
} as const;
|
|
97
|
+
export type ListAgentTasksResponseFormatAgentsResponseType = ClosedEnum<
|
|
98
|
+
typeof ListAgentTasksResponseFormatAgentsResponseType
|
|
99
|
+
>;
|
|
100
|
+
|
|
101
|
+
export type ListAgentTasksResponseFormatJsonSchema = {
|
|
58
102
|
/**
|
|
59
|
-
*
|
|
103
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
60
104
|
*/
|
|
61
|
-
|
|
105
|
+
description?: string | undefined;
|
|
62
106
|
/**
|
|
63
|
-
*
|
|
107
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
64
108
|
*/
|
|
65
|
-
|
|
109
|
+
name: string;
|
|
110
|
+
/**
|
|
111
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
112
|
+
*/
|
|
113
|
+
schema?: any | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
116
|
+
*/
|
|
117
|
+
strict?: boolean | undefined;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export type ListAgentTasksResponseFormat3 = {
|
|
121
|
+
type: ListAgentTasksResponseFormatAgentsResponseType;
|
|
122
|
+
jsonSchema: ListAgentTasksResponseFormatJsonSchema;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export const ListAgentTasksResponseFormatAgentsType = {
|
|
126
|
+
JsonObject: "json_object",
|
|
127
|
+
} as const;
|
|
128
|
+
export type ListAgentTasksResponseFormatAgentsType = ClosedEnum<
|
|
129
|
+
typeof ListAgentTasksResponseFormatAgentsType
|
|
130
|
+
>;
|
|
131
|
+
|
|
132
|
+
export type ListAgentTasksResponseFormat2 = {
|
|
133
|
+
type: ListAgentTasksResponseFormatAgentsType;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export const ListAgentTasksResponseFormatType = {
|
|
137
|
+
Text: "text",
|
|
138
|
+
} as const;
|
|
139
|
+
export type ListAgentTasksResponseFormatType = ClosedEnum<
|
|
140
|
+
typeof ListAgentTasksResponseFormatType
|
|
141
|
+
>;
|
|
142
|
+
|
|
143
|
+
export type ListAgentTasksResponseFormat1 = {
|
|
144
|
+
type: ListAgentTasksResponseFormatType;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* An object specifying the format that the model must output
|
|
149
|
+
*/
|
|
150
|
+
export type ListAgentTasksResponseFormat =
|
|
151
|
+
| ListAgentTasksResponseFormat3
|
|
152
|
+
| ListAgentTasksResponseFormat1
|
|
153
|
+
| ListAgentTasksResponseFormat2;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
157
|
+
*/
|
|
158
|
+
export type ListAgentTasksStop = string | Array<string>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
162
|
+
*/
|
|
163
|
+
export type ListAgentTasksStreamOptions = {
|
|
66
164
|
/**
|
|
67
|
-
*
|
|
165
|
+
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
68
166
|
*/
|
|
69
|
-
|
|
167
|
+
includeUsage?: boolean | undefined;
|
|
70
168
|
};
|
|
71
169
|
|
|
72
170
|
/**
|
|
73
|
-
*
|
|
171
|
+
* Enables or disables the thinking mode capability
|
|
74
172
|
*/
|
|
75
|
-
export const
|
|
76
|
-
|
|
77
|
-
|
|
173
|
+
export const ListAgentTasksType = {
|
|
174
|
+
Enabled: "enabled",
|
|
175
|
+
Disabled: "disabled",
|
|
176
|
+
} as const;
|
|
177
|
+
/**
|
|
178
|
+
* Enables or disables the thinking mode capability
|
|
179
|
+
*/
|
|
180
|
+
export type ListAgentTasksType = ClosedEnum<typeof ListAgentTasksType>;
|
|
181
|
+
|
|
182
|
+
export type ListAgentTasksThinking = {
|
|
183
|
+
/**
|
|
184
|
+
* Enables or disables the thinking mode capability
|
|
185
|
+
*/
|
|
186
|
+
type: ListAgentTasksType;
|
|
187
|
+
/**
|
|
188
|
+
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
189
|
+
*/
|
|
190
|
+
budgetTokens: number;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The type of the tool. Currently, only function is supported.
|
|
195
|
+
*/
|
|
196
|
+
export const ListAgentTasksToolChoiceType = {
|
|
197
|
+
Function: "function",
|
|
198
|
+
} as const;
|
|
199
|
+
/**
|
|
200
|
+
* The type of the tool. Currently, only function is supported.
|
|
201
|
+
*/
|
|
202
|
+
export type ListAgentTasksToolChoiceType = ClosedEnum<
|
|
203
|
+
typeof ListAgentTasksToolChoiceType
|
|
204
|
+
>;
|
|
205
|
+
|
|
206
|
+
export type ListAgentTasksToolChoiceFunction = {
|
|
207
|
+
/**
|
|
208
|
+
* The name of the function to call.
|
|
209
|
+
*/
|
|
210
|
+
name?: string | undefined;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export type ListAgentTasksToolChoice2 = {
|
|
214
|
+
/**
|
|
215
|
+
* The type of the tool. Currently, only function is supported.
|
|
216
|
+
*/
|
|
217
|
+
type?: ListAgentTasksToolChoiceType | undefined;
|
|
218
|
+
function: ListAgentTasksToolChoiceFunction;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
export const ListAgentTasksToolChoice1 = {
|
|
78
222
|
None: "none",
|
|
223
|
+
Auto: "auto",
|
|
224
|
+
Required: "required",
|
|
79
225
|
} as const;
|
|
226
|
+
export type ListAgentTasksToolChoice1 = ClosedEnum<
|
|
227
|
+
typeof ListAgentTasksToolChoice1
|
|
228
|
+
>;
|
|
229
|
+
|
|
80
230
|
/**
|
|
81
|
-
*
|
|
231
|
+
* Controls which (if any) tool is called by the model.
|
|
82
232
|
*/
|
|
83
|
-
export type
|
|
84
|
-
|
|
233
|
+
export type ListAgentTasksToolChoice =
|
|
234
|
+
| ListAgentTasksToolChoice2
|
|
235
|
+
| ListAgentTasksToolChoice1;
|
|
236
|
+
|
|
237
|
+
export const ListAgentTasksModalities = {
|
|
238
|
+
Text: "text",
|
|
239
|
+
Audio: "audio",
|
|
240
|
+
} as const;
|
|
241
|
+
export type ListAgentTasksModalities = ClosedEnum<
|
|
242
|
+
typeof ListAgentTasksModalities
|
|
85
243
|
>;
|
|
86
244
|
|
|
87
|
-
|
|
245
|
+
/**
|
|
246
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
247
|
+
*/
|
|
248
|
+
export type ListAgentTasksWebSearchOptions = {
|
|
88
249
|
/**
|
|
89
|
-
*
|
|
250
|
+
* Whether to enable web search for this request.
|
|
90
251
|
*/
|
|
91
|
-
|
|
252
|
+
enabled?: boolean | undefined;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Model parameters to customize behavior (snake_case). Common: temperature (0-1, controls randomness), max_tokens (response length). Advanced: top_p, frequency_penalty, presence_penalty, response_format (JSON mode), reasoning_effort, seed (determinism). Model-specific support varies.
|
|
257
|
+
*/
|
|
258
|
+
export type ListAgentTasksParameters = {
|
|
92
259
|
/**
|
|
93
|
-
*
|
|
260
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
94
261
|
*/
|
|
95
|
-
|
|
262
|
+
audio?: ListAgentTasksAudio | null | undefined;
|
|
96
263
|
/**
|
|
97
|
-
*
|
|
264
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
98
265
|
*/
|
|
99
|
-
|
|
266
|
+
frequencyPenalty?: number | null | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
269
|
+
*
|
|
270
|
+
* @remarks
|
|
271
|
+
*
|
|
272
|
+
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
273
|
+
*/
|
|
274
|
+
maxTokens?: number | null | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
277
|
+
*/
|
|
278
|
+
maxCompletionTokens?: number | null | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
281
|
+
*/
|
|
282
|
+
logprobs?: boolean | null | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
285
|
+
*/
|
|
286
|
+
topLogprobs?: number | null | undefined;
|
|
287
|
+
/**
|
|
288
|
+
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
289
|
+
*/
|
|
290
|
+
n?: number | null | undefined;
|
|
291
|
+
/**
|
|
292
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
293
|
+
*/
|
|
294
|
+
presencePenalty?: number | null | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* An object specifying the format that the model must output
|
|
297
|
+
*/
|
|
298
|
+
responseFormat?:
|
|
299
|
+
| ListAgentTasksResponseFormat3
|
|
300
|
+
| ListAgentTasksResponseFormat1
|
|
301
|
+
| ListAgentTasksResponseFormat2
|
|
302
|
+
| undefined;
|
|
303
|
+
/**
|
|
304
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
305
|
+
*/
|
|
306
|
+
reasoningEffort?: string | undefined;
|
|
307
|
+
/**
|
|
308
|
+
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
309
|
+
*/
|
|
310
|
+
verbosity?: string | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
313
|
+
*/
|
|
314
|
+
seed?: number | null | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
317
|
+
*/
|
|
318
|
+
stop?: string | Array<string> | null | undefined;
|
|
319
|
+
/**
|
|
320
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
321
|
+
*/
|
|
322
|
+
streamOptions?: ListAgentTasksStreamOptions | null | undefined;
|
|
323
|
+
thinking?: ListAgentTasksThinking | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
326
|
+
*/
|
|
327
|
+
temperature?: number | null | undefined;
|
|
328
|
+
/**
|
|
329
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
330
|
+
*/
|
|
331
|
+
topP?: number | null | undefined;
|
|
332
|
+
/**
|
|
333
|
+
* Limits the model to consider only the top k most likely tokens at each step.
|
|
334
|
+
*/
|
|
335
|
+
topK?: number | null | undefined;
|
|
336
|
+
/**
|
|
337
|
+
* Controls which (if any) tool is called by the model.
|
|
338
|
+
*/
|
|
339
|
+
toolChoice?:
|
|
340
|
+
| ListAgentTasksToolChoice2
|
|
341
|
+
| ListAgentTasksToolChoice1
|
|
342
|
+
| undefined;
|
|
343
|
+
/**
|
|
344
|
+
* Whether to enable parallel function calling during tool use.
|
|
345
|
+
*/
|
|
346
|
+
parallelToolCalls?: boolean | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
349
|
+
*/
|
|
350
|
+
modalities?: Array<ListAgentTasksModalities> | null | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
353
|
+
*/
|
|
354
|
+
webSearchOptions?: ListAgentTasksWebSearchOptions | undefined;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
359
|
+
*/
|
|
360
|
+
export const ListAgentTasksFallbackModelsVoice = {
|
|
361
|
+
Alloy: "alloy",
|
|
362
|
+
Echo: "echo",
|
|
363
|
+
Fable: "fable",
|
|
364
|
+
Onyx: "onyx",
|
|
365
|
+
Nova: "nova",
|
|
366
|
+
Shimmer: "shimmer",
|
|
367
|
+
} as const;
|
|
368
|
+
/**
|
|
369
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
370
|
+
*/
|
|
371
|
+
export type ListAgentTasksFallbackModelsVoice = ClosedEnum<
|
|
372
|
+
typeof ListAgentTasksFallbackModelsVoice
|
|
373
|
+
>;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
377
|
+
*/
|
|
378
|
+
export const ListAgentTasksFallbackModelsFormat = {
|
|
379
|
+
Wav: "wav",
|
|
380
|
+
Mp3: "mp3",
|
|
381
|
+
Flac: "flac",
|
|
382
|
+
Opus: "opus",
|
|
383
|
+
Pcm16: "pcm16",
|
|
384
|
+
} as const;
|
|
385
|
+
/**
|
|
386
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
387
|
+
*/
|
|
388
|
+
export type ListAgentTasksFallbackModelsFormat = ClosedEnum<
|
|
389
|
+
typeof ListAgentTasksFallbackModelsFormat
|
|
390
|
+
>;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
394
|
+
*/
|
|
395
|
+
export type ListAgentTasksFallbackModelsAudio = {
|
|
396
|
+
/**
|
|
397
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
398
|
+
*/
|
|
399
|
+
voice: ListAgentTasksFallbackModelsVoice;
|
|
400
|
+
/**
|
|
401
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
402
|
+
*/
|
|
403
|
+
format: ListAgentTasksFallbackModelsFormat;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
export const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType =
|
|
407
|
+
{
|
|
408
|
+
JsonSchema: "json_schema",
|
|
409
|
+
} as const;
|
|
410
|
+
export type ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType =
|
|
411
|
+
ClosedEnum<
|
|
412
|
+
typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType
|
|
413
|
+
>;
|
|
414
|
+
|
|
415
|
+
export type ListAgentTasksResponseFormatAgentsJsonSchema = {
|
|
416
|
+
/**
|
|
417
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
418
|
+
*/
|
|
419
|
+
description?: string | undefined;
|
|
420
|
+
/**
|
|
421
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
422
|
+
*/
|
|
423
|
+
name: string;
|
|
424
|
+
/**
|
|
425
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
426
|
+
*/
|
|
427
|
+
schema?: any | undefined;
|
|
428
|
+
/**
|
|
429
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
430
|
+
*/
|
|
431
|
+
strict?: boolean | undefined;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
export type ListAgentTasksResponseFormatAgents3 = {
|
|
435
|
+
type:
|
|
436
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType;
|
|
437
|
+
jsonSchema: ListAgentTasksResponseFormatAgentsJsonSchema;
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
export const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType =
|
|
441
|
+
{
|
|
442
|
+
JsonObject: "json_object",
|
|
443
|
+
} as const;
|
|
444
|
+
export type ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType =
|
|
445
|
+
ClosedEnum<
|
|
446
|
+
typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType
|
|
447
|
+
>;
|
|
448
|
+
|
|
449
|
+
export type ListAgentTasksResponseFormatAgents2 = {
|
|
450
|
+
type: ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export const ListAgentTasksResponseFormatAgentsResponse200Type = {
|
|
454
|
+
Text: "text",
|
|
455
|
+
} as const;
|
|
456
|
+
export type ListAgentTasksResponseFormatAgentsResponse200Type = ClosedEnum<
|
|
457
|
+
typeof ListAgentTasksResponseFormatAgentsResponse200Type
|
|
458
|
+
>;
|
|
459
|
+
|
|
460
|
+
export type ListAgentTasksResponseFormatAgents1 = {
|
|
461
|
+
type: ListAgentTasksResponseFormatAgentsResponse200Type;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* An object specifying the format that the model must output
|
|
466
|
+
*/
|
|
467
|
+
export type ListAgentTasksFallbackModelsResponseFormat =
|
|
468
|
+
| ListAgentTasksResponseFormatAgents3
|
|
469
|
+
| ListAgentTasksResponseFormatAgents1
|
|
470
|
+
| ListAgentTasksResponseFormatAgents2;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
474
|
+
*/
|
|
475
|
+
export type ListAgentTasksFallbackModelsStop = string | Array<string>;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
479
|
+
*/
|
|
480
|
+
export type ListAgentTasksFallbackModelsStreamOptions = {
|
|
481
|
+
/**
|
|
482
|
+
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
483
|
+
*/
|
|
484
|
+
includeUsage?: boolean | undefined;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Enables or disables the thinking mode capability
|
|
489
|
+
*/
|
|
490
|
+
export const ListAgentTasksFallbackModelsType = {
|
|
491
|
+
Enabled: "enabled",
|
|
492
|
+
Disabled: "disabled",
|
|
493
|
+
} as const;
|
|
494
|
+
/**
|
|
495
|
+
* Enables or disables the thinking mode capability
|
|
496
|
+
*/
|
|
497
|
+
export type ListAgentTasksFallbackModelsType = ClosedEnum<
|
|
498
|
+
typeof ListAgentTasksFallbackModelsType
|
|
499
|
+
>;
|
|
500
|
+
|
|
501
|
+
export type ListAgentTasksFallbackModelsThinking = {
|
|
502
|
+
/**
|
|
503
|
+
* Enables or disables the thinking mode capability
|
|
504
|
+
*/
|
|
505
|
+
type: ListAgentTasksFallbackModelsType;
|
|
506
|
+
/**
|
|
507
|
+
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
508
|
+
*/
|
|
509
|
+
budgetTokens: number;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* The type of the tool. Currently, only function is supported.
|
|
514
|
+
*/
|
|
515
|
+
export const ListAgentTasksToolChoiceAgentsType = {
|
|
516
|
+
Function: "function",
|
|
517
|
+
} as const;
|
|
518
|
+
/**
|
|
519
|
+
* The type of the tool. Currently, only function is supported.
|
|
520
|
+
*/
|
|
521
|
+
export type ListAgentTasksToolChoiceAgentsType = ClosedEnum<
|
|
522
|
+
typeof ListAgentTasksToolChoiceAgentsType
|
|
523
|
+
>;
|
|
524
|
+
|
|
525
|
+
export type ListAgentTasksToolChoiceAgentsFunction = {
|
|
526
|
+
/**
|
|
527
|
+
* The name of the function to call.
|
|
528
|
+
*/
|
|
529
|
+
name?: string | undefined;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
export type ListAgentTasksToolChoiceAgents2 = {
|
|
533
|
+
/**
|
|
534
|
+
* The type of the tool. Currently, only function is supported.
|
|
535
|
+
*/
|
|
536
|
+
type?: ListAgentTasksToolChoiceAgentsType | undefined;
|
|
537
|
+
function: ListAgentTasksToolChoiceAgentsFunction;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
export const ListAgentTasksToolChoiceAgents1 = {
|
|
541
|
+
None: "none",
|
|
542
|
+
Auto: "auto",
|
|
543
|
+
Required: "required",
|
|
544
|
+
} as const;
|
|
545
|
+
export type ListAgentTasksToolChoiceAgents1 = ClosedEnum<
|
|
546
|
+
typeof ListAgentTasksToolChoiceAgents1
|
|
547
|
+
>;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Controls which (if any) tool is called by the model.
|
|
551
|
+
*/
|
|
552
|
+
export type ListAgentTasksFallbackModelsToolChoice =
|
|
553
|
+
| ListAgentTasksToolChoiceAgents2
|
|
554
|
+
| ListAgentTasksToolChoiceAgents1;
|
|
555
|
+
|
|
556
|
+
export const ListAgentTasksFallbackModelsModalities = {
|
|
557
|
+
Text: "text",
|
|
558
|
+
Audio: "audio",
|
|
559
|
+
} as const;
|
|
560
|
+
export type ListAgentTasksFallbackModelsModalities = ClosedEnum<
|
|
561
|
+
typeof ListAgentTasksFallbackModelsModalities
|
|
562
|
+
>;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
566
|
+
*/
|
|
567
|
+
export type ListAgentTasksFallbackModelsWebSearchOptions = {
|
|
568
|
+
/**
|
|
569
|
+
* Whether to enable web search for this request.
|
|
570
|
+
*/
|
|
571
|
+
enabled?: boolean | undefined;
|
|
100
572
|
};
|
|
101
573
|
|
|
102
|
-
export type
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
|
|
574
|
+
export type ListAgentTasksFallbackModelsParameters = {
|
|
575
|
+
/**
|
|
576
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
577
|
+
*/
|
|
578
|
+
audio?: ListAgentTasksFallbackModelsAudio | null | undefined;
|
|
579
|
+
/**
|
|
580
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
581
|
+
*/
|
|
582
|
+
frequencyPenalty?: number | null | undefined;
|
|
583
|
+
/**
|
|
584
|
+
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
585
|
+
*
|
|
586
|
+
* @remarks
|
|
587
|
+
*
|
|
588
|
+
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
589
|
+
*/
|
|
590
|
+
maxTokens?: number | null | undefined;
|
|
591
|
+
/**
|
|
592
|
+
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
593
|
+
*/
|
|
594
|
+
maxCompletionTokens?: number | null | undefined;
|
|
595
|
+
/**
|
|
596
|
+
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
597
|
+
*/
|
|
598
|
+
logprobs?: boolean | null | undefined;
|
|
599
|
+
/**
|
|
600
|
+
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
601
|
+
*/
|
|
602
|
+
topLogprobs?: number | null | undefined;
|
|
603
|
+
/**
|
|
604
|
+
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
605
|
+
*/
|
|
606
|
+
n?: number | null | undefined;
|
|
607
|
+
/**
|
|
608
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
609
|
+
*/
|
|
610
|
+
presencePenalty?: number | null | undefined;
|
|
611
|
+
/**
|
|
612
|
+
* An object specifying the format that the model must output
|
|
613
|
+
*/
|
|
614
|
+
responseFormat?:
|
|
615
|
+
| ListAgentTasksResponseFormatAgents3
|
|
616
|
+
| ListAgentTasksResponseFormatAgents1
|
|
617
|
+
| ListAgentTasksResponseFormatAgents2
|
|
618
|
+
| undefined;
|
|
619
|
+
/**
|
|
620
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
621
|
+
*/
|
|
622
|
+
reasoningEffort?: string | undefined;
|
|
623
|
+
/**
|
|
624
|
+
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
625
|
+
*/
|
|
626
|
+
verbosity?: string | undefined;
|
|
627
|
+
/**
|
|
628
|
+
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
629
|
+
*/
|
|
630
|
+
seed?: number | null | undefined;
|
|
631
|
+
/**
|
|
632
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
633
|
+
*/
|
|
634
|
+
stop?: string | Array<string> | null | undefined;
|
|
635
|
+
/**
|
|
636
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
637
|
+
*/
|
|
638
|
+
streamOptions?: ListAgentTasksFallbackModelsStreamOptions | null | undefined;
|
|
639
|
+
thinking?: ListAgentTasksFallbackModelsThinking | undefined;
|
|
640
|
+
/**
|
|
641
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
642
|
+
*/
|
|
643
|
+
temperature?: number | null | undefined;
|
|
644
|
+
/**
|
|
645
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
646
|
+
*/
|
|
647
|
+
topP?: number | null | undefined;
|
|
648
|
+
/**
|
|
649
|
+
* Limits the model to consider only the top k most likely tokens at each step.
|
|
650
|
+
*/
|
|
651
|
+
topK?: number | null | undefined;
|
|
652
|
+
/**
|
|
653
|
+
* Controls which (if any) tool is called by the model.
|
|
654
|
+
*/
|
|
655
|
+
toolChoice?:
|
|
656
|
+
| ListAgentTasksToolChoiceAgents2
|
|
657
|
+
| ListAgentTasksToolChoiceAgents1
|
|
658
|
+
| undefined;
|
|
659
|
+
/**
|
|
660
|
+
* Whether to enable parallel function calling during tool use.
|
|
661
|
+
*/
|
|
662
|
+
parallelToolCalls?: boolean | undefined;
|
|
663
|
+
/**
|
|
664
|
+
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
665
|
+
*/
|
|
666
|
+
modalities?: Array<ListAgentTasksFallbackModelsModalities> | null | undefined;
|
|
667
|
+
/**
|
|
668
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
669
|
+
*/
|
|
670
|
+
webSearchOptions?: ListAgentTasksFallbackModelsWebSearchOptions | undefined;
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
export type ListAgentTasksFallbackModels2 = {
|
|
674
|
+
/**
|
|
675
|
+
* Fallback model ID
|
|
676
|
+
*/
|
|
677
|
+
id: string;
|
|
678
|
+
integrationId?: string | null | undefined;
|
|
679
|
+
parameters?: ListAgentTasksFallbackModelsParameters | undefined;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
export type ListAgentTasksFallbackModels =
|
|
683
|
+
| ListAgentTasksFallbackModels2
|
|
684
|
+
| string;
|
|
685
|
+
|
|
686
|
+
export type ListAgentTasksModel = {
|
|
687
|
+
/**
|
|
688
|
+
* The database ID of the primary model
|
|
689
|
+
*/
|
|
690
|
+
id: string;
|
|
691
|
+
/**
|
|
692
|
+
* Optional integration ID for custom model configurations
|
|
693
|
+
*/
|
|
694
|
+
integrationId?: string | null | undefined;
|
|
695
|
+
/**
|
|
696
|
+
* Model parameters to customize behavior (snake_case). Common: temperature (0-1, controls randomness), max_tokens (response length). Advanced: top_p, frequency_penalty, presence_penalty, response_format (JSON mode), reasoning_effort, seed (determinism). Model-specific support varies.
|
|
697
|
+
*/
|
|
698
|
+
parameters?: ListAgentTasksParameters | undefined;
|
|
699
|
+
/**
|
|
700
|
+
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
701
|
+
*/
|
|
702
|
+
fallbackModels?:
|
|
703
|
+
| Array<ListAgentTasksFallbackModels2 | string>
|
|
704
|
+
| null
|
|
705
|
+
| undefined;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* 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.
|
|
710
|
+
*/
|
|
711
|
+
export const ListAgentTasksToolApprovalRequired = {
|
|
712
|
+
All: "all",
|
|
713
|
+
RespectTool: "respect_tool",
|
|
714
|
+
None: "none",
|
|
715
|
+
} as const;
|
|
716
|
+
/**
|
|
717
|
+
* 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.
|
|
718
|
+
*/
|
|
719
|
+
export type ListAgentTasksToolApprovalRequired = ClosedEnum<
|
|
720
|
+
typeof ListAgentTasksToolApprovalRequired
|
|
721
|
+
>;
|
|
722
|
+
|
|
723
|
+
export type ListAgentTasksConditions = {
|
|
724
|
+
/**
|
|
725
|
+
* The argument of the tool call to evaluate
|
|
726
|
+
*/
|
|
727
|
+
condition: string;
|
|
728
|
+
/**
|
|
729
|
+
* The operator to use
|
|
730
|
+
*/
|
|
731
|
+
operator: string;
|
|
732
|
+
/**
|
|
733
|
+
* The value to compare against
|
|
734
|
+
*/
|
|
735
|
+
value: string;
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
export type ListAgentTasksTools = {
|
|
739
|
+
/**
|
|
740
|
+
* The id of the resource
|
|
741
|
+
*/
|
|
742
|
+
id: string;
|
|
743
|
+
/**
|
|
744
|
+
* Optional tool key for custom tools
|
|
745
|
+
*/
|
|
746
|
+
key?: string | undefined;
|
|
747
|
+
actionType: string;
|
|
748
|
+
displayName?: string | undefined;
|
|
749
|
+
requiresApproval?: boolean | undefined;
|
|
750
|
+
conditions?: Array<ListAgentTasksConditions> | undefined;
|
|
751
|
+
/**
|
|
752
|
+
* Optional MCP server reference for tools from MCP servers
|
|
753
|
+
*/
|
|
754
|
+
mcpServer?: string | undefined;
|
|
755
|
+
/**
|
|
756
|
+
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
757
|
+
*/
|
|
758
|
+
timeout?: number | undefined;
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
export type ListAgentTasksSettings = {
|
|
762
|
+
/**
|
|
763
|
+
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
764
|
+
*/
|
|
765
|
+
maxIterations?: number | undefined;
|
|
766
|
+
/**
|
|
767
|
+
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
768
|
+
*/
|
|
769
|
+
maxExecutionTime?: number | undefined;
|
|
770
|
+
/**
|
|
771
|
+
* 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.
|
|
772
|
+
*/
|
|
773
|
+
toolApprovalRequired?: ListAgentTasksToolApprovalRequired | undefined;
|
|
774
|
+
tools?: Array<ListAgentTasksTools> | undefined;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
export type AgentManifestSnapshot = {
|
|
778
|
+
id: string;
|
|
779
|
+
key: string;
|
|
780
|
+
role: string;
|
|
781
|
+
description: string;
|
|
782
|
+
instructions: string;
|
|
783
|
+
systemPrompt?: string | undefined;
|
|
784
|
+
model: ListAgentTasksModel;
|
|
785
|
+
settings?: ListAgentTasksSettings | undefined;
|
|
786
|
+
projectId?: string | undefined;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Memory configuration for this execution
|
|
791
|
+
*/
|
|
792
|
+
export type ListAgentTasksMemory = {
|
|
793
|
+
/**
|
|
794
|
+
* Entity identifier used for memory store isolation (user/session/conversation)
|
|
795
|
+
*/
|
|
796
|
+
entityId: string;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
export type ListAgentTasksState = {
|
|
800
|
+
waitingForApproval?: boolean | undefined;
|
|
801
|
+
inactive?: boolean | undefined;
|
|
802
|
+
error?: string | undefined;
|
|
803
|
+
iteration?: number | undefined;
|
|
804
|
+
accumulatedExecutionTime?: number | undefined;
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
export type ListAgentTasksMetrics = {
|
|
808
|
+
inputCost?: number | undefined;
|
|
809
|
+
outputCost?: number | undefined;
|
|
810
|
+
totalCost?: number | undefined;
|
|
811
|
+
promptTokens?: number | undefined;
|
|
812
|
+
completionTokens?: number | undefined;
|
|
813
|
+
totalTokens?: number | undefined;
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
export type Tasks = {
|
|
817
|
+
id: string;
|
|
818
|
+
agentManifestSnapshot: AgentManifestSnapshot;
|
|
819
|
+
createdById?: string | undefined;
|
|
820
|
+
updatedById?: string | undefined;
|
|
821
|
+
created?: string | undefined;
|
|
822
|
+
updated?: string | undefined;
|
|
823
|
+
name?: string | undefined;
|
|
824
|
+
workspaceId: string;
|
|
825
|
+
/**
|
|
826
|
+
* Memory configuration for this execution
|
|
827
|
+
*/
|
|
828
|
+
memory?: ListAgentTasksMemory | undefined;
|
|
829
|
+
/**
|
|
830
|
+
* Execution-level metadata as key-value pairs
|
|
831
|
+
*/
|
|
832
|
+
metadata?: { [k: string]: any } | undefined;
|
|
833
|
+
state: ListAgentTasksState;
|
|
834
|
+
metrics: ListAgentTasksMetrics;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Agent tasks retrieved
|
|
839
|
+
*/
|
|
840
|
+
export type ListAgentTasksResponseBody = {
|
|
841
|
+
tasks: Array<Tasks>;
|
|
842
|
+
overallTotal: number;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
/** @internal */
|
|
846
|
+
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
847
|
+
.nativeEnum(Status);
|
|
848
|
+
|
|
849
|
+
/** @internal */
|
|
850
|
+
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
851
|
+
Status$inboundSchema;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* @internal
|
|
855
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
856
|
+
*/
|
|
857
|
+
export namespace Status$ {
|
|
858
|
+
/** @deprecated use `Status$inboundSchema` instead. */
|
|
859
|
+
export const inboundSchema = Status$inboundSchema;
|
|
860
|
+
/** @deprecated use `Status$outboundSchema` instead. */
|
|
861
|
+
export const outboundSchema = Status$outboundSchema;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/** @internal */
|
|
865
|
+
export const ListAgentTasksRequest$inboundSchema: z.ZodType<
|
|
866
|
+
ListAgentTasksRequest,
|
|
867
|
+
z.ZodTypeDef,
|
|
868
|
+
unknown
|
|
869
|
+
> = z.object({
|
|
870
|
+
agent_key: z.string(),
|
|
871
|
+
limit: z.number().default(10),
|
|
872
|
+
starting_after: z.string().optional(),
|
|
873
|
+
ending_before: z.string().optional(),
|
|
874
|
+
status: Status$inboundSchema.optional(),
|
|
875
|
+
}).transform((v) => {
|
|
876
|
+
return remap$(v, {
|
|
877
|
+
"agent_key": "agentKey",
|
|
878
|
+
"starting_after": "startingAfter",
|
|
879
|
+
"ending_before": "endingBefore",
|
|
880
|
+
});
|
|
881
|
+
});
|
|
882
|
+
|
|
883
|
+
/** @internal */
|
|
884
|
+
export type ListAgentTasksRequest$Outbound = {
|
|
885
|
+
agent_key: string;
|
|
886
|
+
limit: number;
|
|
887
|
+
starting_after?: string | undefined;
|
|
888
|
+
ending_before?: string | undefined;
|
|
889
|
+
status?: string | undefined;
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
/** @internal */
|
|
893
|
+
export const ListAgentTasksRequest$outboundSchema: z.ZodType<
|
|
894
|
+
ListAgentTasksRequest$Outbound,
|
|
895
|
+
z.ZodTypeDef,
|
|
896
|
+
ListAgentTasksRequest
|
|
897
|
+
> = z.object({
|
|
898
|
+
agentKey: z.string(),
|
|
899
|
+
limit: z.number().default(10),
|
|
900
|
+
startingAfter: z.string().optional(),
|
|
901
|
+
endingBefore: z.string().optional(),
|
|
902
|
+
status: Status$outboundSchema.optional(),
|
|
903
|
+
}).transform((v) => {
|
|
904
|
+
return remap$(v, {
|
|
905
|
+
agentKey: "agent_key",
|
|
906
|
+
startingAfter: "starting_after",
|
|
907
|
+
endingBefore: "ending_before",
|
|
908
|
+
});
|
|
909
|
+
});
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* @internal
|
|
913
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
914
|
+
*/
|
|
915
|
+
export namespace ListAgentTasksRequest$ {
|
|
916
|
+
/** @deprecated use `ListAgentTasksRequest$inboundSchema` instead. */
|
|
917
|
+
export const inboundSchema = ListAgentTasksRequest$inboundSchema;
|
|
918
|
+
/** @deprecated use `ListAgentTasksRequest$outboundSchema` instead. */
|
|
919
|
+
export const outboundSchema = ListAgentTasksRequest$outboundSchema;
|
|
920
|
+
/** @deprecated use `ListAgentTasksRequest$Outbound` instead. */
|
|
921
|
+
export type Outbound = ListAgentTasksRequest$Outbound;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
export function listAgentTasksRequestToJSON(
|
|
925
|
+
listAgentTasksRequest: ListAgentTasksRequest,
|
|
926
|
+
): string {
|
|
927
|
+
return JSON.stringify(
|
|
928
|
+
ListAgentTasksRequest$outboundSchema.parse(listAgentTasksRequest),
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export function listAgentTasksRequestFromJSON(
|
|
933
|
+
jsonString: string,
|
|
934
|
+
): SafeParseResult<ListAgentTasksRequest, SDKValidationError> {
|
|
935
|
+
return safeParse(
|
|
936
|
+
jsonString,
|
|
937
|
+
(x) => ListAgentTasksRequest$inboundSchema.parse(JSON.parse(x)),
|
|
938
|
+
`Failed to parse 'ListAgentTasksRequest' from JSON`,
|
|
939
|
+
);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/** @internal */
|
|
943
|
+
export const ListAgentTasksVoice$inboundSchema: z.ZodNativeEnum<
|
|
944
|
+
typeof ListAgentTasksVoice
|
|
945
|
+
> = z.nativeEnum(ListAgentTasksVoice);
|
|
946
|
+
|
|
947
|
+
/** @internal */
|
|
948
|
+
export const ListAgentTasksVoice$outboundSchema: z.ZodNativeEnum<
|
|
949
|
+
typeof ListAgentTasksVoice
|
|
950
|
+
> = ListAgentTasksVoice$inboundSchema;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* @internal
|
|
954
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
955
|
+
*/
|
|
956
|
+
export namespace ListAgentTasksVoice$ {
|
|
957
|
+
/** @deprecated use `ListAgentTasksVoice$inboundSchema` instead. */
|
|
958
|
+
export const inboundSchema = ListAgentTasksVoice$inboundSchema;
|
|
959
|
+
/** @deprecated use `ListAgentTasksVoice$outboundSchema` instead. */
|
|
960
|
+
export const outboundSchema = ListAgentTasksVoice$outboundSchema;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/** @internal */
|
|
964
|
+
export const ListAgentTasksFormat$inboundSchema: z.ZodNativeEnum<
|
|
965
|
+
typeof ListAgentTasksFormat
|
|
966
|
+
> = z.nativeEnum(ListAgentTasksFormat);
|
|
967
|
+
|
|
968
|
+
/** @internal */
|
|
969
|
+
export const ListAgentTasksFormat$outboundSchema: z.ZodNativeEnum<
|
|
970
|
+
typeof ListAgentTasksFormat
|
|
971
|
+
> = ListAgentTasksFormat$inboundSchema;
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* @internal
|
|
975
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
976
|
+
*/
|
|
977
|
+
export namespace ListAgentTasksFormat$ {
|
|
978
|
+
/** @deprecated use `ListAgentTasksFormat$inboundSchema` instead. */
|
|
979
|
+
export const inboundSchema = ListAgentTasksFormat$inboundSchema;
|
|
980
|
+
/** @deprecated use `ListAgentTasksFormat$outboundSchema` instead. */
|
|
981
|
+
export const outboundSchema = ListAgentTasksFormat$outboundSchema;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/** @internal */
|
|
985
|
+
export const ListAgentTasksAudio$inboundSchema: z.ZodType<
|
|
986
|
+
ListAgentTasksAudio,
|
|
987
|
+
z.ZodTypeDef,
|
|
988
|
+
unknown
|
|
989
|
+
> = z.object({
|
|
990
|
+
voice: ListAgentTasksVoice$inboundSchema,
|
|
991
|
+
format: ListAgentTasksFormat$inboundSchema,
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
/** @internal */
|
|
995
|
+
export type ListAgentTasksAudio$Outbound = {
|
|
996
|
+
voice: string;
|
|
997
|
+
format: string;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
/** @internal */
|
|
1001
|
+
export const ListAgentTasksAudio$outboundSchema: z.ZodType<
|
|
1002
|
+
ListAgentTasksAudio$Outbound,
|
|
1003
|
+
z.ZodTypeDef,
|
|
1004
|
+
ListAgentTasksAudio
|
|
1005
|
+
> = z.object({
|
|
1006
|
+
voice: ListAgentTasksVoice$outboundSchema,
|
|
1007
|
+
format: ListAgentTasksFormat$outboundSchema,
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* @internal
|
|
1012
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1013
|
+
*/
|
|
1014
|
+
export namespace ListAgentTasksAudio$ {
|
|
1015
|
+
/** @deprecated use `ListAgentTasksAudio$inboundSchema` instead. */
|
|
1016
|
+
export const inboundSchema = ListAgentTasksAudio$inboundSchema;
|
|
1017
|
+
/** @deprecated use `ListAgentTasksAudio$outboundSchema` instead. */
|
|
1018
|
+
export const outboundSchema = ListAgentTasksAudio$outboundSchema;
|
|
1019
|
+
/** @deprecated use `ListAgentTasksAudio$Outbound` instead. */
|
|
1020
|
+
export type Outbound = ListAgentTasksAudio$Outbound;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export function listAgentTasksAudioToJSON(
|
|
1024
|
+
listAgentTasksAudio: ListAgentTasksAudio,
|
|
1025
|
+
): string {
|
|
1026
|
+
return JSON.stringify(
|
|
1027
|
+
ListAgentTasksAudio$outboundSchema.parse(listAgentTasksAudio),
|
|
1028
|
+
);
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
export function listAgentTasksAudioFromJSON(
|
|
1032
|
+
jsonString: string,
|
|
1033
|
+
): SafeParseResult<ListAgentTasksAudio, SDKValidationError> {
|
|
1034
|
+
return safeParse(
|
|
1035
|
+
jsonString,
|
|
1036
|
+
(x) => ListAgentTasksAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1037
|
+
`Failed to parse 'ListAgentTasksAudio' from JSON`,
|
|
1038
|
+
);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/** @internal */
|
|
1042
|
+
export const ListAgentTasksResponseFormatAgentsResponseType$inboundSchema:
|
|
1043
|
+
z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponseType> = z
|
|
1044
|
+
.nativeEnum(ListAgentTasksResponseFormatAgentsResponseType);
|
|
1045
|
+
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
export const ListAgentTasksResponseFormatAgentsResponseType$outboundSchema:
|
|
1048
|
+
z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponseType> =
|
|
1049
|
+
ListAgentTasksResponseFormatAgentsResponseType$inboundSchema;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @internal
|
|
1053
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1054
|
+
*/
|
|
1055
|
+
export namespace ListAgentTasksResponseFormatAgentsResponseType$ {
|
|
1056
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponseType$inboundSchema` instead. */
|
|
1057
|
+
export const inboundSchema =
|
|
1058
|
+
ListAgentTasksResponseFormatAgentsResponseType$inboundSchema;
|
|
1059
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponseType$outboundSchema` instead. */
|
|
1060
|
+
export const outboundSchema =
|
|
1061
|
+
ListAgentTasksResponseFormatAgentsResponseType$outboundSchema;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/** @internal */
|
|
1065
|
+
export const ListAgentTasksResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
1066
|
+
ListAgentTasksResponseFormatJsonSchema,
|
|
1067
|
+
z.ZodTypeDef,
|
|
1068
|
+
unknown
|
|
1069
|
+
> = z.object({
|
|
1070
|
+
description: z.string().optional(),
|
|
1071
|
+
name: z.string(),
|
|
1072
|
+
schema: z.any().optional(),
|
|
1073
|
+
strict: z.boolean().optional(),
|
|
1074
|
+
});
|
|
1075
|
+
|
|
1076
|
+
/** @internal */
|
|
1077
|
+
export type ListAgentTasksResponseFormatJsonSchema$Outbound = {
|
|
1078
|
+
description?: string | undefined;
|
|
1079
|
+
name: string;
|
|
1080
|
+
schema?: any | undefined;
|
|
1081
|
+
strict?: boolean | undefined;
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
/** @internal */
|
|
1085
|
+
export const ListAgentTasksResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
1086
|
+
ListAgentTasksResponseFormatJsonSchema$Outbound,
|
|
1087
|
+
z.ZodTypeDef,
|
|
1088
|
+
ListAgentTasksResponseFormatJsonSchema
|
|
1089
|
+
> = z.object({
|
|
1090
|
+
description: z.string().optional(),
|
|
1091
|
+
name: z.string(),
|
|
1092
|
+
schema: z.any().optional(),
|
|
1093
|
+
strict: z.boolean().optional(),
|
|
1094
|
+
});
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* @internal
|
|
1098
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1099
|
+
*/
|
|
1100
|
+
export namespace ListAgentTasksResponseFormatJsonSchema$ {
|
|
1101
|
+
/** @deprecated use `ListAgentTasksResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1102
|
+
export const inboundSchema =
|
|
1103
|
+
ListAgentTasksResponseFormatJsonSchema$inboundSchema;
|
|
1104
|
+
/** @deprecated use `ListAgentTasksResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1105
|
+
export const outboundSchema =
|
|
1106
|
+
ListAgentTasksResponseFormatJsonSchema$outboundSchema;
|
|
1107
|
+
/** @deprecated use `ListAgentTasksResponseFormatJsonSchema$Outbound` instead. */
|
|
1108
|
+
export type Outbound = ListAgentTasksResponseFormatJsonSchema$Outbound;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export function listAgentTasksResponseFormatJsonSchemaToJSON(
|
|
1112
|
+
listAgentTasksResponseFormatJsonSchema:
|
|
1113
|
+
ListAgentTasksResponseFormatJsonSchema,
|
|
1114
|
+
): string {
|
|
1115
|
+
return JSON.stringify(
|
|
1116
|
+
ListAgentTasksResponseFormatJsonSchema$outboundSchema.parse(
|
|
1117
|
+
listAgentTasksResponseFormatJsonSchema,
|
|
1118
|
+
),
|
|
1119
|
+
);
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export function listAgentTasksResponseFormatJsonSchemaFromJSON(
|
|
1123
|
+
jsonString: string,
|
|
1124
|
+
): SafeParseResult<ListAgentTasksResponseFormatJsonSchema, SDKValidationError> {
|
|
1125
|
+
return safeParse(
|
|
1126
|
+
jsonString,
|
|
1127
|
+
(x) =>
|
|
1128
|
+
ListAgentTasksResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1129
|
+
`Failed to parse 'ListAgentTasksResponseFormatJsonSchema' from JSON`,
|
|
1130
|
+
);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/** @internal */
|
|
1134
|
+
export const ListAgentTasksResponseFormat3$inboundSchema: z.ZodType<
|
|
1135
|
+
ListAgentTasksResponseFormat3,
|
|
1136
|
+
z.ZodTypeDef,
|
|
1137
|
+
unknown
|
|
1138
|
+
> = z.object({
|
|
1139
|
+
type: ListAgentTasksResponseFormatAgentsResponseType$inboundSchema,
|
|
1140
|
+
json_schema: z.lazy(() =>
|
|
1141
|
+
ListAgentTasksResponseFormatJsonSchema$inboundSchema
|
|
1142
|
+
),
|
|
1143
|
+
}).transform((v) => {
|
|
1144
|
+
return remap$(v, {
|
|
1145
|
+
"json_schema": "jsonSchema",
|
|
1146
|
+
});
|
|
1147
|
+
});
|
|
1148
|
+
|
|
1149
|
+
/** @internal */
|
|
1150
|
+
export type ListAgentTasksResponseFormat3$Outbound = {
|
|
1151
|
+
type: string;
|
|
1152
|
+
json_schema: ListAgentTasksResponseFormatJsonSchema$Outbound;
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
/** @internal */
|
|
1156
|
+
export const ListAgentTasksResponseFormat3$outboundSchema: z.ZodType<
|
|
1157
|
+
ListAgentTasksResponseFormat3$Outbound,
|
|
1158
|
+
z.ZodTypeDef,
|
|
1159
|
+
ListAgentTasksResponseFormat3
|
|
1160
|
+
> = z.object({
|
|
1161
|
+
type: ListAgentTasksResponseFormatAgentsResponseType$outboundSchema,
|
|
1162
|
+
jsonSchema: z.lazy(() =>
|
|
1163
|
+
ListAgentTasksResponseFormatJsonSchema$outboundSchema
|
|
1164
|
+
),
|
|
1165
|
+
}).transform((v) => {
|
|
1166
|
+
return remap$(v, {
|
|
1167
|
+
jsonSchema: "json_schema",
|
|
1168
|
+
});
|
|
1169
|
+
});
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* @internal
|
|
1173
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1174
|
+
*/
|
|
1175
|
+
export namespace ListAgentTasksResponseFormat3$ {
|
|
1176
|
+
/** @deprecated use `ListAgentTasksResponseFormat3$inboundSchema` instead. */
|
|
1177
|
+
export const inboundSchema = ListAgentTasksResponseFormat3$inboundSchema;
|
|
1178
|
+
/** @deprecated use `ListAgentTasksResponseFormat3$outboundSchema` instead. */
|
|
1179
|
+
export const outboundSchema = ListAgentTasksResponseFormat3$outboundSchema;
|
|
1180
|
+
/** @deprecated use `ListAgentTasksResponseFormat3$Outbound` instead. */
|
|
1181
|
+
export type Outbound = ListAgentTasksResponseFormat3$Outbound;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export function listAgentTasksResponseFormat3ToJSON(
|
|
1185
|
+
listAgentTasksResponseFormat3: ListAgentTasksResponseFormat3,
|
|
1186
|
+
): string {
|
|
1187
|
+
return JSON.stringify(
|
|
1188
|
+
ListAgentTasksResponseFormat3$outboundSchema.parse(
|
|
1189
|
+
listAgentTasksResponseFormat3,
|
|
1190
|
+
),
|
|
1191
|
+
);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
export function listAgentTasksResponseFormat3FromJSON(
|
|
1195
|
+
jsonString: string,
|
|
1196
|
+
): SafeParseResult<ListAgentTasksResponseFormat3, SDKValidationError> {
|
|
1197
|
+
return safeParse(
|
|
1198
|
+
jsonString,
|
|
1199
|
+
(x) => ListAgentTasksResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
1200
|
+
`Failed to parse 'ListAgentTasksResponseFormat3' from JSON`,
|
|
1201
|
+
);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/** @internal */
|
|
1205
|
+
export const ListAgentTasksResponseFormatAgentsType$inboundSchema:
|
|
1206
|
+
z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsType> = z.nativeEnum(
|
|
1207
|
+
ListAgentTasksResponseFormatAgentsType,
|
|
1208
|
+
);
|
|
1209
|
+
|
|
1210
|
+
/** @internal */
|
|
1211
|
+
export const ListAgentTasksResponseFormatAgentsType$outboundSchema:
|
|
1212
|
+
z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsType> =
|
|
1213
|
+
ListAgentTasksResponseFormatAgentsType$inboundSchema;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* @internal
|
|
1217
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1218
|
+
*/
|
|
1219
|
+
export namespace ListAgentTasksResponseFormatAgentsType$ {
|
|
1220
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsType$inboundSchema` instead. */
|
|
1221
|
+
export const inboundSchema =
|
|
1222
|
+
ListAgentTasksResponseFormatAgentsType$inboundSchema;
|
|
1223
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsType$outboundSchema` instead. */
|
|
1224
|
+
export const outboundSchema =
|
|
1225
|
+
ListAgentTasksResponseFormatAgentsType$outboundSchema;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/** @internal */
|
|
1229
|
+
export const ListAgentTasksResponseFormat2$inboundSchema: z.ZodType<
|
|
1230
|
+
ListAgentTasksResponseFormat2,
|
|
1231
|
+
z.ZodTypeDef,
|
|
1232
|
+
unknown
|
|
1233
|
+
> = z.object({
|
|
1234
|
+
type: ListAgentTasksResponseFormatAgentsType$inboundSchema,
|
|
1235
|
+
});
|
|
1236
|
+
|
|
1237
|
+
/** @internal */
|
|
1238
|
+
export type ListAgentTasksResponseFormat2$Outbound = {
|
|
1239
|
+
type: string;
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
/** @internal */
|
|
1243
|
+
export const ListAgentTasksResponseFormat2$outboundSchema: z.ZodType<
|
|
1244
|
+
ListAgentTasksResponseFormat2$Outbound,
|
|
1245
|
+
z.ZodTypeDef,
|
|
1246
|
+
ListAgentTasksResponseFormat2
|
|
1247
|
+
> = z.object({
|
|
1248
|
+
type: ListAgentTasksResponseFormatAgentsType$outboundSchema,
|
|
1249
|
+
});
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* @internal
|
|
1253
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1254
|
+
*/
|
|
1255
|
+
export namespace ListAgentTasksResponseFormat2$ {
|
|
1256
|
+
/** @deprecated use `ListAgentTasksResponseFormat2$inboundSchema` instead. */
|
|
1257
|
+
export const inboundSchema = ListAgentTasksResponseFormat2$inboundSchema;
|
|
1258
|
+
/** @deprecated use `ListAgentTasksResponseFormat2$outboundSchema` instead. */
|
|
1259
|
+
export const outboundSchema = ListAgentTasksResponseFormat2$outboundSchema;
|
|
1260
|
+
/** @deprecated use `ListAgentTasksResponseFormat2$Outbound` instead. */
|
|
1261
|
+
export type Outbound = ListAgentTasksResponseFormat2$Outbound;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
export function listAgentTasksResponseFormat2ToJSON(
|
|
1265
|
+
listAgentTasksResponseFormat2: ListAgentTasksResponseFormat2,
|
|
1266
|
+
): string {
|
|
1267
|
+
return JSON.stringify(
|
|
1268
|
+
ListAgentTasksResponseFormat2$outboundSchema.parse(
|
|
1269
|
+
listAgentTasksResponseFormat2,
|
|
1270
|
+
),
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
export function listAgentTasksResponseFormat2FromJSON(
|
|
1275
|
+
jsonString: string,
|
|
1276
|
+
): SafeParseResult<ListAgentTasksResponseFormat2, SDKValidationError> {
|
|
1277
|
+
return safeParse(
|
|
1278
|
+
jsonString,
|
|
1279
|
+
(x) => ListAgentTasksResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1280
|
+
`Failed to parse 'ListAgentTasksResponseFormat2' from JSON`,
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/** @internal */
|
|
1285
|
+
export const ListAgentTasksResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1286
|
+
typeof ListAgentTasksResponseFormatType
|
|
1287
|
+
> = z.nativeEnum(ListAgentTasksResponseFormatType);
|
|
1288
|
+
|
|
1289
|
+
/** @internal */
|
|
1290
|
+
export const ListAgentTasksResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1291
|
+
typeof ListAgentTasksResponseFormatType
|
|
1292
|
+
> = ListAgentTasksResponseFormatType$inboundSchema;
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* @internal
|
|
1296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1297
|
+
*/
|
|
1298
|
+
export namespace ListAgentTasksResponseFormatType$ {
|
|
1299
|
+
/** @deprecated use `ListAgentTasksResponseFormatType$inboundSchema` instead. */
|
|
1300
|
+
export const inboundSchema = ListAgentTasksResponseFormatType$inboundSchema;
|
|
1301
|
+
/** @deprecated use `ListAgentTasksResponseFormatType$outboundSchema` instead. */
|
|
1302
|
+
export const outboundSchema = ListAgentTasksResponseFormatType$outboundSchema;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
/** @internal */
|
|
1306
|
+
export const ListAgentTasksResponseFormat1$inboundSchema: z.ZodType<
|
|
1307
|
+
ListAgentTasksResponseFormat1,
|
|
1308
|
+
z.ZodTypeDef,
|
|
1309
|
+
unknown
|
|
1310
|
+
> = z.object({
|
|
1311
|
+
type: ListAgentTasksResponseFormatType$inboundSchema,
|
|
1312
|
+
});
|
|
1313
|
+
|
|
1314
|
+
/** @internal */
|
|
1315
|
+
export type ListAgentTasksResponseFormat1$Outbound = {
|
|
1316
|
+
type: string;
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
/** @internal */
|
|
1320
|
+
export const ListAgentTasksResponseFormat1$outboundSchema: z.ZodType<
|
|
1321
|
+
ListAgentTasksResponseFormat1$Outbound,
|
|
1322
|
+
z.ZodTypeDef,
|
|
1323
|
+
ListAgentTasksResponseFormat1
|
|
1324
|
+
> = z.object({
|
|
1325
|
+
type: ListAgentTasksResponseFormatType$outboundSchema,
|
|
1326
|
+
});
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* @internal
|
|
1330
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1331
|
+
*/
|
|
1332
|
+
export namespace ListAgentTasksResponseFormat1$ {
|
|
1333
|
+
/** @deprecated use `ListAgentTasksResponseFormat1$inboundSchema` instead. */
|
|
1334
|
+
export const inboundSchema = ListAgentTasksResponseFormat1$inboundSchema;
|
|
1335
|
+
/** @deprecated use `ListAgentTasksResponseFormat1$outboundSchema` instead. */
|
|
1336
|
+
export const outboundSchema = ListAgentTasksResponseFormat1$outboundSchema;
|
|
1337
|
+
/** @deprecated use `ListAgentTasksResponseFormat1$Outbound` instead. */
|
|
1338
|
+
export type Outbound = ListAgentTasksResponseFormat1$Outbound;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
export function listAgentTasksResponseFormat1ToJSON(
|
|
1342
|
+
listAgentTasksResponseFormat1: ListAgentTasksResponseFormat1,
|
|
1343
|
+
): string {
|
|
1344
|
+
return JSON.stringify(
|
|
1345
|
+
ListAgentTasksResponseFormat1$outboundSchema.parse(
|
|
1346
|
+
listAgentTasksResponseFormat1,
|
|
1347
|
+
),
|
|
1348
|
+
);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
export function listAgentTasksResponseFormat1FromJSON(
|
|
1352
|
+
jsonString: string,
|
|
1353
|
+
): SafeParseResult<ListAgentTasksResponseFormat1, SDKValidationError> {
|
|
1354
|
+
return safeParse(
|
|
1355
|
+
jsonString,
|
|
1356
|
+
(x) => ListAgentTasksResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1357
|
+
`Failed to parse 'ListAgentTasksResponseFormat1' from JSON`,
|
|
1358
|
+
);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/** @internal */
|
|
1362
|
+
export const ListAgentTasksResponseFormat$inboundSchema: z.ZodType<
|
|
1363
|
+
ListAgentTasksResponseFormat,
|
|
1364
|
+
z.ZodTypeDef,
|
|
1365
|
+
unknown
|
|
1366
|
+
> = z.union([
|
|
1367
|
+
z.lazy(() => ListAgentTasksResponseFormat3$inboundSchema),
|
|
1368
|
+
z.lazy(() => ListAgentTasksResponseFormat1$inboundSchema),
|
|
1369
|
+
z.lazy(() => ListAgentTasksResponseFormat2$inboundSchema),
|
|
1370
|
+
]);
|
|
1371
|
+
|
|
1372
|
+
/** @internal */
|
|
1373
|
+
export type ListAgentTasksResponseFormat$Outbound =
|
|
1374
|
+
| ListAgentTasksResponseFormat3$Outbound
|
|
1375
|
+
| ListAgentTasksResponseFormat1$Outbound
|
|
1376
|
+
| ListAgentTasksResponseFormat2$Outbound;
|
|
1377
|
+
|
|
1378
|
+
/** @internal */
|
|
1379
|
+
export const ListAgentTasksResponseFormat$outboundSchema: z.ZodType<
|
|
1380
|
+
ListAgentTasksResponseFormat$Outbound,
|
|
1381
|
+
z.ZodTypeDef,
|
|
1382
|
+
ListAgentTasksResponseFormat
|
|
1383
|
+
> = z.union([
|
|
1384
|
+
z.lazy(() => ListAgentTasksResponseFormat3$outboundSchema),
|
|
1385
|
+
z.lazy(() => ListAgentTasksResponseFormat1$outboundSchema),
|
|
1386
|
+
z.lazy(() => ListAgentTasksResponseFormat2$outboundSchema),
|
|
1387
|
+
]);
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* @internal
|
|
1391
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1392
|
+
*/
|
|
1393
|
+
export namespace ListAgentTasksResponseFormat$ {
|
|
1394
|
+
/** @deprecated use `ListAgentTasksResponseFormat$inboundSchema` instead. */
|
|
1395
|
+
export const inboundSchema = ListAgentTasksResponseFormat$inboundSchema;
|
|
1396
|
+
/** @deprecated use `ListAgentTasksResponseFormat$outboundSchema` instead. */
|
|
1397
|
+
export const outboundSchema = ListAgentTasksResponseFormat$outboundSchema;
|
|
1398
|
+
/** @deprecated use `ListAgentTasksResponseFormat$Outbound` instead. */
|
|
1399
|
+
export type Outbound = ListAgentTasksResponseFormat$Outbound;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
export function listAgentTasksResponseFormatToJSON(
|
|
1403
|
+
listAgentTasksResponseFormat: ListAgentTasksResponseFormat,
|
|
1404
|
+
): string {
|
|
1405
|
+
return JSON.stringify(
|
|
1406
|
+
ListAgentTasksResponseFormat$outboundSchema.parse(
|
|
1407
|
+
listAgentTasksResponseFormat,
|
|
1408
|
+
),
|
|
1409
|
+
);
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
export function listAgentTasksResponseFormatFromJSON(
|
|
1413
|
+
jsonString: string,
|
|
1414
|
+
): SafeParseResult<ListAgentTasksResponseFormat, SDKValidationError> {
|
|
1415
|
+
return safeParse(
|
|
1416
|
+
jsonString,
|
|
1417
|
+
(x) => ListAgentTasksResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1418
|
+
`Failed to parse 'ListAgentTasksResponseFormat' from JSON`,
|
|
1419
|
+
);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/** @internal */
|
|
1423
|
+
export const ListAgentTasksStop$inboundSchema: z.ZodType<
|
|
1424
|
+
ListAgentTasksStop,
|
|
1425
|
+
z.ZodTypeDef,
|
|
1426
|
+
unknown
|
|
1427
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
1428
|
+
|
|
1429
|
+
/** @internal */
|
|
1430
|
+
export type ListAgentTasksStop$Outbound = string | Array<string>;
|
|
1431
|
+
|
|
1432
|
+
/** @internal */
|
|
1433
|
+
export const ListAgentTasksStop$outboundSchema: z.ZodType<
|
|
1434
|
+
ListAgentTasksStop$Outbound,
|
|
1435
|
+
z.ZodTypeDef,
|
|
1436
|
+
ListAgentTasksStop
|
|
1437
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
1438
|
+
|
|
1439
|
+
/**
|
|
1440
|
+
* @internal
|
|
1441
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1442
|
+
*/
|
|
1443
|
+
export namespace ListAgentTasksStop$ {
|
|
1444
|
+
/** @deprecated use `ListAgentTasksStop$inboundSchema` instead. */
|
|
1445
|
+
export const inboundSchema = ListAgentTasksStop$inboundSchema;
|
|
1446
|
+
/** @deprecated use `ListAgentTasksStop$outboundSchema` instead. */
|
|
1447
|
+
export const outboundSchema = ListAgentTasksStop$outboundSchema;
|
|
1448
|
+
/** @deprecated use `ListAgentTasksStop$Outbound` instead. */
|
|
1449
|
+
export type Outbound = ListAgentTasksStop$Outbound;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
export function listAgentTasksStopToJSON(
|
|
1453
|
+
listAgentTasksStop: ListAgentTasksStop,
|
|
1454
|
+
): string {
|
|
1455
|
+
return JSON.stringify(
|
|
1456
|
+
ListAgentTasksStop$outboundSchema.parse(listAgentTasksStop),
|
|
1457
|
+
);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
export function listAgentTasksStopFromJSON(
|
|
1461
|
+
jsonString: string,
|
|
1462
|
+
): SafeParseResult<ListAgentTasksStop, SDKValidationError> {
|
|
1463
|
+
return safeParse(
|
|
1464
|
+
jsonString,
|
|
1465
|
+
(x) => ListAgentTasksStop$inboundSchema.parse(JSON.parse(x)),
|
|
1466
|
+
`Failed to parse 'ListAgentTasksStop' from JSON`,
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/** @internal */
|
|
1471
|
+
export const ListAgentTasksStreamOptions$inboundSchema: z.ZodType<
|
|
1472
|
+
ListAgentTasksStreamOptions,
|
|
1473
|
+
z.ZodTypeDef,
|
|
1474
|
+
unknown
|
|
1475
|
+
> = z.object({
|
|
1476
|
+
include_usage: z.boolean().optional(),
|
|
1477
|
+
}).transform((v) => {
|
|
1478
|
+
return remap$(v, {
|
|
1479
|
+
"include_usage": "includeUsage",
|
|
1480
|
+
});
|
|
1481
|
+
});
|
|
1482
|
+
|
|
1483
|
+
/** @internal */
|
|
1484
|
+
export type ListAgentTasksStreamOptions$Outbound = {
|
|
1485
|
+
include_usage?: boolean | undefined;
|
|
1486
|
+
};
|
|
1487
|
+
|
|
1488
|
+
/** @internal */
|
|
1489
|
+
export const ListAgentTasksStreamOptions$outboundSchema: z.ZodType<
|
|
1490
|
+
ListAgentTasksStreamOptions$Outbound,
|
|
1491
|
+
z.ZodTypeDef,
|
|
1492
|
+
ListAgentTasksStreamOptions
|
|
1493
|
+
> = z.object({
|
|
1494
|
+
includeUsage: z.boolean().optional(),
|
|
1495
|
+
}).transform((v) => {
|
|
1496
|
+
return remap$(v, {
|
|
1497
|
+
includeUsage: "include_usage",
|
|
1498
|
+
});
|
|
1499
|
+
});
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* @internal
|
|
1503
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1504
|
+
*/
|
|
1505
|
+
export namespace ListAgentTasksStreamOptions$ {
|
|
1506
|
+
/** @deprecated use `ListAgentTasksStreamOptions$inboundSchema` instead. */
|
|
1507
|
+
export const inboundSchema = ListAgentTasksStreamOptions$inboundSchema;
|
|
1508
|
+
/** @deprecated use `ListAgentTasksStreamOptions$outboundSchema` instead. */
|
|
1509
|
+
export const outboundSchema = ListAgentTasksStreamOptions$outboundSchema;
|
|
1510
|
+
/** @deprecated use `ListAgentTasksStreamOptions$Outbound` instead. */
|
|
1511
|
+
export type Outbound = ListAgentTasksStreamOptions$Outbound;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
export function listAgentTasksStreamOptionsToJSON(
|
|
1515
|
+
listAgentTasksStreamOptions: ListAgentTasksStreamOptions,
|
|
1516
|
+
): string {
|
|
1517
|
+
return JSON.stringify(
|
|
1518
|
+
ListAgentTasksStreamOptions$outboundSchema.parse(
|
|
1519
|
+
listAgentTasksStreamOptions,
|
|
1520
|
+
),
|
|
1521
|
+
);
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
export function listAgentTasksStreamOptionsFromJSON(
|
|
1525
|
+
jsonString: string,
|
|
1526
|
+
): SafeParseResult<ListAgentTasksStreamOptions, SDKValidationError> {
|
|
1527
|
+
return safeParse(
|
|
1528
|
+
jsonString,
|
|
1529
|
+
(x) => ListAgentTasksStreamOptions$inboundSchema.parse(JSON.parse(x)),
|
|
1530
|
+
`Failed to parse 'ListAgentTasksStreamOptions' from JSON`,
|
|
1531
|
+
);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
/** @internal */
|
|
1535
|
+
export const ListAgentTasksType$inboundSchema: z.ZodNativeEnum<
|
|
1536
|
+
typeof ListAgentTasksType
|
|
1537
|
+
> = z.nativeEnum(ListAgentTasksType);
|
|
1538
|
+
|
|
1539
|
+
/** @internal */
|
|
1540
|
+
export const ListAgentTasksType$outboundSchema: z.ZodNativeEnum<
|
|
1541
|
+
typeof ListAgentTasksType
|
|
1542
|
+
> = ListAgentTasksType$inboundSchema;
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* @internal
|
|
1546
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1547
|
+
*/
|
|
1548
|
+
export namespace ListAgentTasksType$ {
|
|
1549
|
+
/** @deprecated use `ListAgentTasksType$inboundSchema` instead. */
|
|
1550
|
+
export const inboundSchema = ListAgentTasksType$inboundSchema;
|
|
1551
|
+
/** @deprecated use `ListAgentTasksType$outboundSchema` instead. */
|
|
1552
|
+
export const outboundSchema = ListAgentTasksType$outboundSchema;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
/** @internal */
|
|
1556
|
+
export const ListAgentTasksThinking$inboundSchema: z.ZodType<
|
|
1557
|
+
ListAgentTasksThinking,
|
|
1558
|
+
z.ZodTypeDef,
|
|
1559
|
+
unknown
|
|
1560
|
+
> = z.object({
|
|
1561
|
+
type: ListAgentTasksType$inboundSchema,
|
|
1562
|
+
budget_tokens: z.number(),
|
|
1563
|
+
}).transform((v) => {
|
|
1564
|
+
return remap$(v, {
|
|
1565
|
+
"budget_tokens": "budgetTokens",
|
|
1566
|
+
});
|
|
1567
|
+
});
|
|
1568
|
+
|
|
1569
|
+
/** @internal */
|
|
1570
|
+
export type ListAgentTasksThinking$Outbound = {
|
|
1571
|
+
type: string;
|
|
1572
|
+
budget_tokens: number;
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
/** @internal */
|
|
1576
|
+
export const ListAgentTasksThinking$outboundSchema: z.ZodType<
|
|
1577
|
+
ListAgentTasksThinking$Outbound,
|
|
1578
|
+
z.ZodTypeDef,
|
|
1579
|
+
ListAgentTasksThinking
|
|
1580
|
+
> = z.object({
|
|
1581
|
+
type: ListAgentTasksType$outboundSchema,
|
|
1582
|
+
budgetTokens: z.number(),
|
|
1583
|
+
}).transform((v) => {
|
|
1584
|
+
return remap$(v, {
|
|
1585
|
+
budgetTokens: "budget_tokens",
|
|
1586
|
+
});
|
|
1587
|
+
});
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* @internal
|
|
1591
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1592
|
+
*/
|
|
1593
|
+
export namespace ListAgentTasksThinking$ {
|
|
1594
|
+
/** @deprecated use `ListAgentTasksThinking$inboundSchema` instead. */
|
|
1595
|
+
export const inboundSchema = ListAgentTasksThinking$inboundSchema;
|
|
1596
|
+
/** @deprecated use `ListAgentTasksThinking$outboundSchema` instead. */
|
|
1597
|
+
export const outboundSchema = ListAgentTasksThinking$outboundSchema;
|
|
1598
|
+
/** @deprecated use `ListAgentTasksThinking$Outbound` instead. */
|
|
1599
|
+
export type Outbound = ListAgentTasksThinking$Outbound;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
export function listAgentTasksThinkingToJSON(
|
|
1603
|
+
listAgentTasksThinking: ListAgentTasksThinking,
|
|
1604
|
+
): string {
|
|
1605
|
+
return JSON.stringify(
|
|
1606
|
+
ListAgentTasksThinking$outboundSchema.parse(listAgentTasksThinking),
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
export function listAgentTasksThinkingFromJSON(
|
|
1611
|
+
jsonString: string,
|
|
1612
|
+
): SafeParseResult<ListAgentTasksThinking, SDKValidationError> {
|
|
1613
|
+
return safeParse(
|
|
1614
|
+
jsonString,
|
|
1615
|
+
(x) => ListAgentTasksThinking$inboundSchema.parse(JSON.parse(x)),
|
|
1616
|
+
`Failed to parse 'ListAgentTasksThinking' from JSON`,
|
|
1617
|
+
);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
/** @internal */
|
|
1621
|
+
export const ListAgentTasksToolChoiceType$inboundSchema: z.ZodNativeEnum<
|
|
1622
|
+
typeof ListAgentTasksToolChoiceType
|
|
1623
|
+
> = z.nativeEnum(ListAgentTasksToolChoiceType);
|
|
1624
|
+
|
|
1625
|
+
/** @internal */
|
|
1626
|
+
export const ListAgentTasksToolChoiceType$outboundSchema: z.ZodNativeEnum<
|
|
1627
|
+
typeof ListAgentTasksToolChoiceType
|
|
1628
|
+
> = ListAgentTasksToolChoiceType$inboundSchema;
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* @internal
|
|
1632
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1633
|
+
*/
|
|
1634
|
+
export namespace ListAgentTasksToolChoiceType$ {
|
|
1635
|
+
/** @deprecated use `ListAgentTasksToolChoiceType$inboundSchema` instead. */
|
|
1636
|
+
export const inboundSchema = ListAgentTasksToolChoiceType$inboundSchema;
|
|
1637
|
+
/** @deprecated use `ListAgentTasksToolChoiceType$outboundSchema` instead. */
|
|
1638
|
+
export const outboundSchema = ListAgentTasksToolChoiceType$outboundSchema;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/** @internal */
|
|
1642
|
+
export const ListAgentTasksToolChoiceFunction$inboundSchema: z.ZodType<
|
|
1643
|
+
ListAgentTasksToolChoiceFunction,
|
|
1644
|
+
z.ZodTypeDef,
|
|
1645
|
+
unknown
|
|
1646
|
+
> = z.object({
|
|
1647
|
+
name: z.string().optional(),
|
|
1648
|
+
});
|
|
1649
|
+
|
|
1650
|
+
/** @internal */
|
|
1651
|
+
export type ListAgentTasksToolChoiceFunction$Outbound = {
|
|
1652
|
+
name?: string | undefined;
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
/** @internal */
|
|
1656
|
+
export const ListAgentTasksToolChoiceFunction$outboundSchema: z.ZodType<
|
|
1657
|
+
ListAgentTasksToolChoiceFunction$Outbound,
|
|
1658
|
+
z.ZodTypeDef,
|
|
1659
|
+
ListAgentTasksToolChoiceFunction
|
|
1660
|
+
> = z.object({
|
|
1661
|
+
name: z.string().optional(),
|
|
1662
|
+
});
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* @internal
|
|
1666
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1667
|
+
*/
|
|
1668
|
+
export namespace ListAgentTasksToolChoiceFunction$ {
|
|
1669
|
+
/** @deprecated use `ListAgentTasksToolChoiceFunction$inboundSchema` instead. */
|
|
1670
|
+
export const inboundSchema = ListAgentTasksToolChoiceFunction$inboundSchema;
|
|
1671
|
+
/** @deprecated use `ListAgentTasksToolChoiceFunction$outboundSchema` instead. */
|
|
1672
|
+
export const outboundSchema = ListAgentTasksToolChoiceFunction$outboundSchema;
|
|
1673
|
+
/** @deprecated use `ListAgentTasksToolChoiceFunction$Outbound` instead. */
|
|
1674
|
+
export type Outbound = ListAgentTasksToolChoiceFunction$Outbound;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
export function listAgentTasksToolChoiceFunctionToJSON(
|
|
1678
|
+
listAgentTasksToolChoiceFunction: ListAgentTasksToolChoiceFunction,
|
|
1679
|
+
): string {
|
|
1680
|
+
return JSON.stringify(
|
|
1681
|
+
ListAgentTasksToolChoiceFunction$outboundSchema.parse(
|
|
1682
|
+
listAgentTasksToolChoiceFunction,
|
|
1683
|
+
),
|
|
1684
|
+
);
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
export function listAgentTasksToolChoiceFunctionFromJSON(
|
|
1688
|
+
jsonString: string,
|
|
1689
|
+
): SafeParseResult<ListAgentTasksToolChoiceFunction, SDKValidationError> {
|
|
1690
|
+
return safeParse(
|
|
1691
|
+
jsonString,
|
|
1692
|
+
(x) => ListAgentTasksToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1693
|
+
`Failed to parse 'ListAgentTasksToolChoiceFunction' from JSON`,
|
|
1694
|
+
);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
/** @internal */
|
|
1698
|
+
export const ListAgentTasksToolChoice2$inboundSchema: z.ZodType<
|
|
1699
|
+
ListAgentTasksToolChoice2,
|
|
1700
|
+
z.ZodTypeDef,
|
|
1701
|
+
unknown
|
|
1702
|
+
> = z.object({
|
|
1703
|
+
type: ListAgentTasksToolChoiceType$inboundSchema.optional(),
|
|
1704
|
+
function: z.lazy(() => ListAgentTasksToolChoiceFunction$inboundSchema),
|
|
1705
|
+
});
|
|
1706
|
+
|
|
1707
|
+
/** @internal */
|
|
1708
|
+
export type ListAgentTasksToolChoice2$Outbound = {
|
|
1709
|
+
type?: string | undefined;
|
|
1710
|
+
function: ListAgentTasksToolChoiceFunction$Outbound;
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
/** @internal */
|
|
1714
|
+
export const ListAgentTasksToolChoice2$outboundSchema: z.ZodType<
|
|
1715
|
+
ListAgentTasksToolChoice2$Outbound,
|
|
1716
|
+
z.ZodTypeDef,
|
|
1717
|
+
ListAgentTasksToolChoice2
|
|
1718
|
+
> = z.object({
|
|
1719
|
+
type: ListAgentTasksToolChoiceType$outboundSchema.optional(),
|
|
1720
|
+
function: z.lazy(() => ListAgentTasksToolChoiceFunction$outboundSchema),
|
|
1721
|
+
});
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* @internal
|
|
1725
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1726
|
+
*/
|
|
1727
|
+
export namespace ListAgentTasksToolChoice2$ {
|
|
1728
|
+
/** @deprecated use `ListAgentTasksToolChoice2$inboundSchema` instead. */
|
|
1729
|
+
export const inboundSchema = ListAgentTasksToolChoice2$inboundSchema;
|
|
1730
|
+
/** @deprecated use `ListAgentTasksToolChoice2$outboundSchema` instead. */
|
|
1731
|
+
export const outboundSchema = ListAgentTasksToolChoice2$outboundSchema;
|
|
1732
|
+
/** @deprecated use `ListAgentTasksToolChoice2$Outbound` instead. */
|
|
1733
|
+
export type Outbound = ListAgentTasksToolChoice2$Outbound;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
export function listAgentTasksToolChoice2ToJSON(
|
|
1737
|
+
listAgentTasksToolChoice2: ListAgentTasksToolChoice2,
|
|
1738
|
+
): string {
|
|
1739
|
+
return JSON.stringify(
|
|
1740
|
+
ListAgentTasksToolChoice2$outboundSchema.parse(listAgentTasksToolChoice2),
|
|
1741
|
+
);
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
export function listAgentTasksToolChoice2FromJSON(
|
|
1745
|
+
jsonString: string,
|
|
1746
|
+
): SafeParseResult<ListAgentTasksToolChoice2, SDKValidationError> {
|
|
1747
|
+
return safeParse(
|
|
1748
|
+
jsonString,
|
|
1749
|
+
(x) => ListAgentTasksToolChoice2$inboundSchema.parse(JSON.parse(x)),
|
|
1750
|
+
`Failed to parse 'ListAgentTasksToolChoice2' from JSON`,
|
|
1751
|
+
);
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
/** @internal */
|
|
1755
|
+
export const ListAgentTasksToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
1756
|
+
typeof ListAgentTasksToolChoice1
|
|
1757
|
+
> = z.nativeEnum(ListAgentTasksToolChoice1);
|
|
1758
|
+
|
|
1759
|
+
/** @internal */
|
|
1760
|
+
export const ListAgentTasksToolChoice1$outboundSchema: z.ZodNativeEnum<
|
|
1761
|
+
typeof ListAgentTasksToolChoice1
|
|
1762
|
+
> = ListAgentTasksToolChoice1$inboundSchema;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* @internal
|
|
1766
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1767
|
+
*/
|
|
1768
|
+
export namespace ListAgentTasksToolChoice1$ {
|
|
1769
|
+
/** @deprecated use `ListAgentTasksToolChoice1$inboundSchema` instead. */
|
|
1770
|
+
export const inboundSchema = ListAgentTasksToolChoice1$inboundSchema;
|
|
1771
|
+
/** @deprecated use `ListAgentTasksToolChoice1$outboundSchema` instead. */
|
|
1772
|
+
export const outboundSchema = ListAgentTasksToolChoice1$outboundSchema;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/** @internal */
|
|
1776
|
+
export const ListAgentTasksToolChoice$inboundSchema: z.ZodType<
|
|
1777
|
+
ListAgentTasksToolChoice,
|
|
1778
|
+
z.ZodTypeDef,
|
|
1779
|
+
unknown
|
|
1780
|
+
> = z.union([
|
|
1781
|
+
z.lazy(() => ListAgentTasksToolChoice2$inboundSchema),
|
|
1782
|
+
ListAgentTasksToolChoice1$inboundSchema,
|
|
1783
|
+
]);
|
|
1784
|
+
|
|
1785
|
+
/** @internal */
|
|
1786
|
+
export type ListAgentTasksToolChoice$Outbound =
|
|
1787
|
+
| ListAgentTasksToolChoice2$Outbound
|
|
1788
|
+
| string;
|
|
1789
|
+
|
|
1790
|
+
/** @internal */
|
|
1791
|
+
export const ListAgentTasksToolChoice$outboundSchema: z.ZodType<
|
|
1792
|
+
ListAgentTasksToolChoice$Outbound,
|
|
1793
|
+
z.ZodTypeDef,
|
|
1794
|
+
ListAgentTasksToolChoice
|
|
1795
|
+
> = z.union([
|
|
1796
|
+
z.lazy(() => ListAgentTasksToolChoice2$outboundSchema),
|
|
1797
|
+
ListAgentTasksToolChoice1$outboundSchema,
|
|
1798
|
+
]);
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* @internal
|
|
1802
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1803
|
+
*/
|
|
1804
|
+
export namespace ListAgentTasksToolChoice$ {
|
|
1805
|
+
/** @deprecated use `ListAgentTasksToolChoice$inboundSchema` instead. */
|
|
1806
|
+
export const inboundSchema = ListAgentTasksToolChoice$inboundSchema;
|
|
1807
|
+
/** @deprecated use `ListAgentTasksToolChoice$outboundSchema` instead. */
|
|
1808
|
+
export const outboundSchema = ListAgentTasksToolChoice$outboundSchema;
|
|
1809
|
+
/** @deprecated use `ListAgentTasksToolChoice$Outbound` instead. */
|
|
1810
|
+
export type Outbound = ListAgentTasksToolChoice$Outbound;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
export function listAgentTasksToolChoiceToJSON(
|
|
1814
|
+
listAgentTasksToolChoice: ListAgentTasksToolChoice,
|
|
1815
|
+
): string {
|
|
1816
|
+
return JSON.stringify(
|
|
1817
|
+
ListAgentTasksToolChoice$outboundSchema.parse(listAgentTasksToolChoice),
|
|
1818
|
+
);
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
export function listAgentTasksToolChoiceFromJSON(
|
|
1822
|
+
jsonString: string,
|
|
1823
|
+
): SafeParseResult<ListAgentTasksToolChoice, SDKValidationError> {
|
|
1824
|
+
return safeParse(
|
|
1825
|
+
jsonString,
|
|
1826
|
+
(x) => ListAgentTasksToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
1827
|
+
`Failed to parse 'ListAgentTasksToolChoice' from JSON`,
|
|
1828
|
+
);
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/** @internal */
|
|
1832
|
+
export const ListAgentTasksModalities$inboundSchema: z.ZodNativeEnum<
|
|
1833
|
+
typeof ListAgentTasksModalities
|
|
1834
|
+
> = z.nativeEnum(ListAgentTasksModalities);
|
|
1835
|
+
|
|
1836
|
+
/** @internal */
|
|
1837
|
+
export const ListAgentTasksModalities$outboundSchema: z.ZodNativeEnum<
|
|
1838
|
+
typeof ListAgentTasksModalities
|
|
1839
|
+
> = ListAgentTasksModalities$inboundSchema;
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* @internal
|
|
1843
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1844
|
+
*/
|
|
1845
|
+
export namespace ListAgentTasksModalities$ {
|
|
1846
|
+
/** @deprecated use `ListAgentTasksModalities$inboundSchema` instead. */
|
|
1847
|
+
export const inboundSchema = ListAgentTasksModalities$inboundSchema;
|
|
1848
|
+
/** @deprecated use `ListAgentTasksModalities$outboundSchema` instead. */
|
|
1849
|
+
export const outboundSchema = ListAgentTasksModalities$outboundSchema;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/** @internal */
|
|
1853
|
+
export const ListAgentTasksWebSearchOptions$inboundSchema: z.ZodType<
|
|
1854
|
+
ListAgentTasksWebSearchOptions,
|
|
1855
|
+
z.ZodTypeDef,
|
|
1856
|
+
unknown
|
|
1857
|
+
> = z.object({
|
|
1858
|
+
enabled: z.boolean().optional(),
|
|
1859
|
+
});
|
|
1860
|
+
|
|
1861
|
+
/** @internal */
|
|
1862
|
+
export type ListAgentTasksWebSearchOptions$Outbound = {
|
|
1863
|
+
enabled?: boolean | undefined;
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
/** @internal */
|
|
1867
|
+
export const ListAgentTasksWebSearchOptions$outboundSchema: z.ZodType<
|
|
1868
|
+
ListAgentTasksWebSearchOptions$Outbound,
|
|
1869
|
+
z.ZodTypeDef,
|
|
1870
|
+
ListAgentTasksWebSearchOptions
|
|
1871
|
+
> = z.object({
|
|
1872
|
+
enabled: z.boolean().optional(),
|
|
1873
|
+
});
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* @internal
|
|
1877
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1878
|
+
*/
|
|
1879
|
+
export namespace ListAgentTasksWebSearchOptions$ {
|
|
1880
|
+
/** @deprecated use `ListAgentTasksWebSearchOptions$inboundSchema` instead. */
|
|
1881
|
+
export const inboundSchema = ListAgentTasksWebSearchOptions$inboundSchema;
|
|
1882
|
+
/** @deprecated use `ListAgentTasksWebSearchOptions$outboundSchema` instead. */
|
|
1883
|
+
export const outboundSchema = ListAgentTasksWebSearchOptions$outboundSchema;
|
|
1884
|
+
/** @deprecated use `ListAgentTasksWebSearchOptions$Outbound` instead. */
|
|
1885
|
+
export type Outbound = ListAgentTasksWebSearchOptions$Outbound;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export function listAgentTasksWebSearchOptionsToJSON(
|
|
1889
|
+
listAgentTasksWebSearchOptions: ListAgentTasksWebSearchOptions,
|
|
1890
|
+
): string {
|
|
1891
|
+
return JSON.stringify(
|
|
1892
|
+
ListAgentTasksWebSearchOptions$outboundSchema.parse(
|
|
1893
|
+
listAgentTasksWebSearchOptions,
|
|
1894
|
+
),
|
|
1895
|
+
);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
export function listAgentTasksWebSearchOptionsFromJSON(
|
|
1899
|
+
jsonString: string,
|
|
1900
|
+
): SafeParseResult<ListAgentTasksWebSearchOptions, SDKValidationError> {
|
|
1901
|
+
return safeParse(
|
|
1902
|
+
jsonString,
|
|
1903
|
+
(x) => ListAgentTasksWebSearchOptions$inboundSchema.parse(JSON.parse(x)),
|
|
1904
|
+
`Failed to parse 'ListAgentTasksWebSearchOptions' from JSON`,
|
|
1905
|
+
);
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
/** @internal */
|
|
1909
|
+
export const ListAgentTasksParameters$inboundSchema: z.ZodType<
|
|
1910
|
+
ListAgentTasksParameters,
|
|
1911
|
+
z.ZodTypeDef,
|
|
1912
|
+
unknown
|
|
1913
|
+
> = z.object({
|
|
1914
|
+
audio: z.nullable(z.lazy(() => ListAgentTasksAudio$inboundSchema)).optional(),
|
|
1915
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
1916
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
1917
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
1918
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
1919
|
+
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
1920
|
+
n: z.nullable(z.number().int()).optional(),
|
|
1921
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
1922
|
+
response_format: z.union([
|
|
1923
|
+
z.lazy(() => ListAgentTasksResponseFormat3$inboundSchema),
|
|
1924
|
+
z.lazy(() => ListAgentTasksResponseFormat1$inboundSchema),
|
|
1925
|
+
z.lazy(() => ListAgentTasksResponseFormat2$inboundSchema),
|
|
1926
|
+
]).optional(),
|
|
1927
|
+
reasoning_effort: z.string().optional(),
|
|
1928
|
+
verbosity: z.string().optional(),
|
|
1929
|
+
seed: z.nullable(z.number()).optional(),
|
|
1930
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1931
|
+
stream_options: z.nullable(
|
|
1932
|
+
z.lazy(() => ListAgentTasksStreamOptions$inboundSchema),
|
|
1933
|
+
).optional(),
|
|
1934
|
+
thinking: z.lazy(() => ListAgentTasksThinking$inboundSchema).optional(),
|
|
1935
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1936
|
+
top_p: z.nullable(z.number()).optional(),
|
|
1937
|
+
top_k: z.nullable(z.number()).optional(),
|
|
1938
|
+
tool_choice: z.union([
|
|
1939
|
+
z.lazy(() => ListAgentTasksToolChoice2$inboundSchema),
|
|
1940
|
+
ListAgentTasksToolChoice1$inboundSchema,
|
|
1941
|
+
]).optional(),
|
|
1942
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
1943
|
+
modalities: z.nullable(z.array(ListAgentTasksModalities$inboundSchema))
|
|
1944
|
+
.optional(),
|
|
1945
|
+
web_search_options: z.lazy(() => ListAgentTasksWebSearchOptions$inboundSchema)
|
|
1946
|
+
.optional(),
|
|
1947
|
+
}).transform((v) => {
|
|
1948
|
+
return remap$(v, {
|
|
1949
|
+
"frequency_penalty": "frequencyPenalty",
|
|
1950
|
+
"max_tokens": "maxTokens",
|
|
1951
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
1952
|
+
"top_logprobs": "topLogprobs",
|
|
1953
|
+
"presence_penalty": "presencePenalty",
|
|
1954
|
+
"response_format": "responseFormat",
|
|
1955
|
+
"reasoning_effort": "reasoningEffort",
|
|
1956
|
+
"stream_options": "streamOptions",
|
|
1957
|
+
"top_p": "topP",
|
|
1958
|
+
"top_k": "topK",
|
|
1959
|
+
"tool_choice": "toolChoice",
|
|
1960
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
1961
|
+
"web_search_options": "webSearchOptions",
|
|
1962
|
+
});
|
|
1963
|
+
});
|
|
1964
|
+
|
|
1965
|
+
/** @internal */
|
|
1966
|
+
export type ListAgentTasksParameters$Outbound = {
|
|
1967
|
+
audio?: ListAgentTasksAudio$Outbound | null | undefined;
|
|
1968
|
+
frequency_penalty?: number | null | undefined;
|
|
1969
|
+
max_tokens?: number | null | undefined;
|
|
1970
|
+
max_completion_tokens?: number | null | undefined;
|
|
1971
|
+
logprobs?: boolean | null | undefined;
|
|
1972
|
+
top_logprobs?: number | null | undefined;
|
|
1973
|
+
n?: number | null | undefined;
|
|
1974
|
+
presence_penalty?: number | null | undefined;
|
|
1975
|
+
response_format?:
|
|
1976
|
+
| ListAgentTasksResponseFormat3$Outbound
|
|
1977
|
+
| ListAgentTasksResponseFormat1$Outbound
|
|
1978
|
+
| ListAgentTasksResponseFormat2$Outbound
|
|
1979
|
+
| undefined;
|
|
1980
|
+
reasoning_effort?: string | undefined;
|
|
1981
|
+
verbosity?: string | undefined;
|
|
1982
|
+
seed?: number | null | undefined;
|
|
1983
|
+
stop?: string | Array<string> | null | undefined;
|
|
1984
|
+
stream_options?: ListAgentTasksStreamOptions$Outbound | null | undefined;
|
|
1985
|
+
thinking?: ListAgentTasksThinking$Outbound | undefined;
|
|
1986
|
+
temperature?: number | null | undefined;
|
|
1987
|
+
top_p?: number | null | undefined;
|
|
1988
|
+
top_k?: number | null | undefined;
|
|
1989
|
+
tool_choice?: ListAgentTasksToolChoice2$Outbound | string | undefined;
|
|
1990
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1991
|
+
modalities?: Array<string> | null | undefined;
|
|
1992
|
+
web_search_options?: ListAgentTasksWebSearchOptions$Outbound | undefined;
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
/** @internal */
|
|
1996
|
+
export const ListAgentTasksParameters$outboundSchema: z.ZodType<
|
|
1997
|
+
ListAgentTasksParameters$Outbound,
|
|
1998
|
+
z.ZodTypeDef,
|
|
1999
|
+
ListAgentTasksParameters
|
|
2000
|
+
> = z.object({
|
|
2001
|
+
audio: z.nullable(z.lazy(() => ListAgentTasksAudio$outboundSchema))
|
|
2002
|
+
.optional(),
|
|
2003
|
+
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
2004
|
+
maxTokens: z.nullable(z.number().int()).optional(),
|
|
2005
|
+
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
2006
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
2007
|
+
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
2008
|
+
n: z.nullable(z.number().int()).optional(),
|
|
2009
|
+
presencePenalty: z.nullable(z.number()).optional(),
|
|
2010
|
+
responseFormat: z.union([
|
|
2011
|
+
z.lazy(() => ListAgentTasksResponseFormat3$outboundSchema),
|
|
2012
|
+
z.lazy(() => ListAgentTasksResponseFormat1$outboundSchema),
|
|
2013
|
+
z.lazy(() => ListAgentTasksResponseFormat2$outboundSchema),
|
|
2014
|
+
]).optional(),
|
|
2015
|
+
reasoningEffort: z.string().optional(),
|
|
2016
|
+
verbosity: z.string().optional(),
|
|
2017
|
+
seed: z.nullable(z.number()).optional(),
|
|
2018
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2019
|
+
streamOptions: z.nullable(
|
|
2020
|
+
z.lazy(() => ListAgentTasksStreamOptions$outboundSchema),
|
|
2021
|
+
).optional(),
|
|
2022
|
+
thinking: z.lazy(() => ListAgentTasksThinking$outboundSchema).optional(),
|
|
2023
|
+
temperature: z.nullable(z.number()).optional(),
|
|
2024
|
+
topP: z.nullable(z.number()).optional(),
|
|
2025
|
+
topK: z.nullable(z.number()).optional(),
|
|
2026
|
+
toolChoice: z.union([
|
|
2027
|
+
z.lazy(() => ListAgentTasksToolChoice2$outboundSchema),
|
|
2028
|
+
ListAgentTasksToolChoice1$outboundSchema,
|
|
2029
|
+
]).optional(),
|
|
2030
|
+
parallelToolCalls: z.boolean().optional(),
|
|
2031
|
+
modalities: z.nullable(z.array(ListAgentTasksModalities$outboundSchema))
|
|
2032
|
+
.optional(),
|
|
2033
|
+
webSearchOptions: z.lazy(() => ListAgentTasksWebSearchOptions$outboundSchema)
|
|
2034
|
+
.optional(),
|
|
2035
|
+
}).transform((v) => {
|
|
2036
|
+
return remap$(v, {
|
|
2037
|
+
frequencyPenalty: "frequency_penalty",
|
|
2038
|
+
maxTokens: "max_tokens",
|
|
2039
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
2040
|
+
topLogprobs: "top_logprobs",
|
|
2041
|
+
presencePenalty: "presence_penalty",
|
|
2042
|
+
responseFormat: "response_format",
|
|
2043
|
+
reasoningEffort: "reasoning_effort",
|
|
2044
|
+
streamOptions: "stream_options",
|
|
2045
|
+
topP: "top_p",
|
|
2046
|
+
topK: "top_k",
|
|
2047
|
+
toolChoice: "tool_choice",
|
|
2048
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
2049
|
+
webSearchOptions: "web_search_options",
|
|
2050
|
+
});
|
|
2051
|
+
});
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* @internal
|
|
2055
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2056
|
+
*/
|
|
2057
|
+
export namespace ListAgentTasksParameters$ {
|
|
2058
|
+
/** @deprecated use `ListAgentTasksParameters$inboundSchema` instead. */
|
|
2059
|
+
export const inboundSchema = ListAgentTasksParameters$inboundSchema;
|
|
2060
|
+
/** @deprecated use `ListAgentTasksParameters$outboundSchema` instead. */
|
|
2061
|
+
export const outboundSchema = ListAgentTasksParameters$outboundSchema;
|
|
2062
|
+
/** @deprecated use `ListAgentTasksParameters$Outbound` instead. */
|
|
2063
|
+
export type Outbound = ListAgentTasksParameters$Outbound;
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
export function listAgentTasksParametersToJSON(
|
|
2067
|
+
listAgentTasksParameters: ListAgentTasksParameters,
|
|
2068
|
+
): string {
|
|
2069
|
+
return JSON.stringify(
|
|
2070
|
+
ListAgentTasksParameters$outboundSchema.parse(listAgentTasksParameters),
|
|
2071
|
+
);
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
export function listAgentTasksParametersFromJSON(
|
|
2075
|
+
jsonString: string,
|
|
2076
|
+
): SafeParseResult<ListAgentTasksParameters, SDKValidationError> {
|
|
2077
|
+
return safeParse(
|
|
2078
|
+
jsonString,
|
|
2079
|
+
(x) => ListAgentTasksParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2080
|
+
`Failed to parse 'ListAgentTasksParameters' from JSON`,
|
|
2081
|
+
);
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
/** @internal */
|
|
2085
|
+
export const ListAgentTasksFallbackModelsVoice$inboundSchema: z.ZodNativeEnum<
|
|
2086
|
+
typeof ListAgentTasksFallbackModelsVoice
|
|
2087
|
+
> = z.nativeEnum(ListAgentTasksFallbackModelsVoice);
|
|
2088
|
+
|
|
2089
|
+
/** @internal */
|
|
2090
|
+
export const ListAgentTasksFallbackModelsVoice$outboundSchema: z.ZodNativeEnum<
|
|
2091
|
+
typeof ListAgentTasksFallbackModelsVoice
|
|
2092
|
+
> = ListAgentTasksFallbackModelsVoice$inboundSchema;
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* @internal
|
|
2096
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2097
|
+
*/
|
|
2098
|
+
export namespace ListAgentTasksFallbackModelsVoice$ {
|
|
2099
|
+
/** @deprecated use `ListAgentTasksFallbackModelsVoice$inboundSchema` instead. */
|
|
2100
|
+
export const inboundSchema = ListAgentTasksFallbackModelsVoice$inboundSchema;
|
|
2101
|
+
/** @deprecated use `ListAgentTasksFallbackModelsVoice$outboundSchema` instead. */
|
|
2102
|
+
export const outboundSchema =
|
|
2103
|
+
ListAgentTasksFallbackModelsVoice$outboundSchema;
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
/** @internal */
|
|
2107
|
+
export const ListAgentTasksFallbackModelsFormat$inboundSchema: z.ZodNativeEnum<
|
|
2108
|
+
typeof ListAgentTasksFallbackModelsFormat
|
|
2109
|
+
> = z.nativeEnum(ListAgentTasksFallbackModelsFormat);
|
|
2110
|
+
|
|
2111
|
+
/** @internal */
|
|
2112
|
+
export const ListAgentTasksFallbackModelsFormat$outboundSchema: z.ZodNativeEnum<
|
|
2113
|
+
typeof ListAgentTasksFallbackModelsFormat
|
|
2114
|
+
> = ListAgentTasksFallbackModelsFormat$inboundSchema;
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* @internal
|
|
2118
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2119
|
+
*/
|
|
2120
|
+
export namespace ListAgentTasksFallbackModelsFormat$ {
|
|
2121
|
+
/** @deprecated use `ListAgentTasksFallbackModelsFormat$inboundSchema` instead. */
|
|
2122
|
+
export const inboundSchema = ListAgentTasksFallbackModelsFormat$inboundSchema;
|
|
2123
|
+
/** @deprecated use `ListAgentTasksFallbackModelsFormat$outboundSchema` instead. */
|
|
2124
|
+
export const outboundSchema =
|
|
2125
|
+
ListAgentTasksFallbackModelsFormat$outboundSchema;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
/** @internal */
|
|
2129
|
+
export const ListAgentTasksFallbackModelsAudio$inboundSchema: z.ZodType<
|
|
2130
|
+
ListAgentTasksFallbackModelsAudio,
|
|
2131
|
+
z.ZodTypeDef,
|
|
2132
|
+
unknown
|
|
2133
|
+
> = z.object({
|
|
2134
|
+
voice: ListAgentTasksFallbackModelsVoice$inboundSchema,
|
|
2135
|
+
format: ListAgentTasksFallbackModelsFormat$inboundSchema,
|
|
2136
|
+
});
|
|
2137
|
+
|
|
2138
|
+
/** @internal */
|
|
2139
|
+
export type ListAgentTasksFallbackModelsAudio$Outbound = {
|
|
2140
|
+
voice: string;
|
|
2141
|
+
format: string;
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
/** @internal */
|
|
2145
|
+
export const ListAgentTasksFallbackModelsAudio$outboundSchema: z.ZodType<
|
|
2146
|
+
ListAgentTasksFallbackModelsAudio$Outbound,
|
|
2147
|
+
z.ZodTypeDef,
|
|
2148
|
+
ListAgentTasksFallbackModelsAudio
|
|
2149
|
+
> = z.object({
|
|
2150
|
+
voice: ListAgentTasksFallbackModelsVoice$outboundSchema,
|
|
2151
|
+
format: ListAgentTasksFallbackModelsFormat$outboundSchema,
|
|
2152
|
+
});
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* @internal
|
|
2156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2157
|
+
*/
|
|
2158
|
+
export namespace ListAgentTasksFallbackModelsAudio$ {
|
|
2159
|
+
/** @deprecated use `ListAgentTasksFallbackModelsAudio$inboundSchema` instead. */
|
|
2160
|
+
export const inboundSchema = ListAgentTasksFallbackModelsAudio$inboundSchema;
|
|
2161
|
+
/** @deprecated use `ListAgentTasksFallbackModelsAudio$outboundSchema` instead. */
|
|
2162
|
+
export const outboundSchema =
|
|
2163
|
+
ListAgentTasksFallbackModelsAudio$outboundSchema;
|
|
2164
|
+
/** @deprecated use `ListAgentTasksFallbackModelsAudio$Outbound` instead. */
|
|
2165
|
+
export type Outbound = ListAgentTasksFallbackModelsAudio$Outbound;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
export function listAgentTasksFallbackModelsAudioToJSON(
|
|
2169
|
+
listAgentTasksFallbackModelsAudio: ListAgentTasksFallbackModelsAudio,
|
|
2170
|
+
): string {
|
|
2171
|
+
return JSON.stringify(
|
|
2172
|
+
ListAgentTasksFallbackModelsAudio$outboundSchema.parse(
|
|
2173
|
+
listAgentTasksFallbackModelsAudio,
|
|
2174
|
+
),
|
|
2175
|
+
);
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
export function listAgentTasksFallbackModelsAudioFromJSON(
|
|
2179
|
+
jsonString: string,
|
|
2180
|
+
): SafeParseResult<ListAgentTasksFallbackModelsAudio, SDKValidationError> {
|
|
2181
|
+
return safeParse(
|
|
2182
|
+
jsonString,
|
|
2183
|
+
(x) => ListAgentTasksFallbackModelsAudio$inboundSchema.parse(JSON.parse(x)),
|
|
2184
|
+
`Failed to parse 'ListAgentTasksFallbackModelsAudio' from JSON`,
|
|
2185
|
+
);
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/** @internal */
|
|
2189
|
+
export const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
2190
|
+
z.ZodNativeEnum<
|
|
2191
|
+
typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType
|
|
2192
|
+
> = z.nativeEnum(
|
|
2193
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType,
|
|
2194
|
+
);
|
|
2195
|
+
|
|
2196
|
+
/** @internal */
|
|
2197
|
+
export const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
2198
|
+
z.ZodNativeEnum<
|
|
2199
|
+
typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType
|
|
2200
|
+
> =
|
|
2201
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* @internal
|
|
2205
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2206
|
+
*/
|
|
2207
|
+
export namespace ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ {
|
|
2208
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
|
|
2209
|
+
export const inboundSchema =
|
|
2210
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
2211
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
|
|
2212
|
+
export const outboundSchema =
|
|
2213
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
/** @internal */
|
|
2217
|
+
export const ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema:
|
|
2218
|
+
z.ZodType<
|
|
2219
|
+
ListAgentTasksResponseFormatAgentsJsonSchema,
|
|
2220
|
+
z.ZodTypeDef,
|
|
2221
|
+
unknown
|
|
2222
|
+
> = z.object({
|
|
2223
|
+
description: z.string().optional(),
|
|
2224
|
+
name: z.string(),
|
|
2225
|
+
schema: z.any().optional(),
|
|
2226
|
+
strict: z.boolean().optional(),
|
|
2227
|
+
});
|
|
2228
|
+
|
|
2229
|
+
/** @internal */
|
|
2230
|
+
export type ListAgentTasksResponseFormatAgentsJsonSchema$Outbound = {
|
|
2231
|
+
description?: string | undefined;
|
|
2232
|
+
name: string;
|
|
2233
|
+
schema?: any | undefined;
|
|
2234
|
+
strict?: boolean | undefined;
|
|
2235
|
+
};
|
|
2236
|
+
|
|
2237
|
+
/** @internal */
|
|
2238
|
+
export const ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema:
|
|
2239
|
+
z.ZodType<
|
|
2240
|
+
ListAgentTasksResponseFormatAgentsJsonSchema$Outbound,
|
|
2241
|
+
z.ZodTypeDef,
|
|
2242
|
+
ListAgentTasksResponseFormatAgentsJsonSchema
|
|
2243
|
+
> = z.object({
|
|
2244
|
+
description: z.string().optional(),
|
|
2245
|
+
name: z.string(),
|
|
2246
|
+
schema: z.any().optional(),
|
|
2247
|
+
strict: z.boolean().optional(),
|
|
2248
|
+
});
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* @internal
|
|
2252
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2253
|
+
*/
|
|
2254
|
+
export namespace ListAgentTasksResponseFormatAgentsJsonSchema$ {
|
|
2255
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema` instead. */
|
|
2256
|
+
export const inboundSchema =
|
|
2257
|
+
ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema;
|
|
2258
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema` instead. */
|
|
2259
|
+
export const outboundSchema =
|
|
2260
|
+
ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema;
|
|
2261
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsJsonSchema$Outbound` instead. */
|
|
2262
|
+
export type Outbound = ListAgentTasksResponseFormatAgentsJsonSchema$Outbound;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
export function listAgentTasksResponseFormatAgentsJsonSchemaToJSON(
|
|
2266
|
+
listAgentTasksResponseFormatAgentsJsonSchema:
|
|
2267
|
+
ListAgentTasksResponseFormatAgentsJsonSchema,
|
|
2268
|
+
): string {
|
|
2269
|
+
return JSON.stringify(
|
|
2270
|
+
ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema.parse(
|
|
2271
|
+
listAgentTasksResponseFormatAgentsJsonSchema,
|
|
2272
|
+
),
|
|
2273
|
+
);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
export function listAgentTasksResponseFormatAgentsJsonSchemaFromJSON(
|
|
2277
|
+
jsonString: string,
|
|
2278
|
+
): SafeParseResult<
|
|
2279
|
+
ListAgentTasksResponseFormatAgentsJsonSchema,
|
|
2280
|
+
SDKValidationError
|
|
2281
|
+
> {
|
|
2282
|
+
return safeParse(
|
|
2283
|
+
jsonString,
|
|
2284
|
+
(x) =>
|
|
2285
|
+
ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema.parse(
|
|
2286
|
+
JSON.parse(x),
|
|
2287
|
+
),
|
|
2288
|
+
`Failed to parse 'ListAgentTasksResponseFormatAgentsJsonSchema' from JSON`,
|
|
2289
|
+
);
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
/** @internal */
|
|
2293
|
+
export const ListAgentTasksResponseFormatAgents3$inboundSchema: z.ZodType<
|
|
2294
|
+
ListAgentTasksResponseFormatAgents3,
|
|
2295
|
+
z.ZodTypeDef,
|
|
2296
|
+
unknown
|
|
2297
|
+
> = z.object({
|
|
2298
|
+
type:
|
|
2299
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
2300
|
+
json_schema: z.lazy(() =>
|
|
2301
|
+
ListAgentTasksResponseFormatAgentsJsonSchema$inboundSchema
|
|
2302
|
+
),
|
|
2303
|
+
}).transform((v) => {
|
|
2304
|
+
return remap$(v, {
|
|
2305
|
+
"json_schema": "jsonSchema",
|
|
2306
|
+
});
|
|
2307
|
+
});
|
|
2308
|
+
|
|
2309
|
+
/** @internal */
|
|
2310
|
+
export type ListAgentTasksResponseFormatAgents3$Outbound = {
|
|
2311
|
+
type: string;
|
|
2312
|
+
json_schema: ListAgentTasksResponseFormatAgentsJsonSchema$Outbound;
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
/** @internal */
|
|
2316
|
+
export const ListAgentTasksResponseFormatAgents3$outboundSchema: z.ZodType<
|
|
2317
|
+
ListAgentTasksResponseFormatAgents3$Outbound,
|
|
2318
|
+
z.ZodTypeDef,
|
|
2319
|
+
ListAgentTasksResponseFormatAgents3
|
|
2320
|
+
> = z.object({
|
|
2321
|
+
type:
|
|
2322
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
2323
|
+
jsonSchema: z.lazy(() =>
|
|
2324
|
+
ListAgentTasksResponseFormatAgentsJsonSchema$outboundSchema
|
|
2325
|
+
),
|
|
2326
|
+
}).transform((v) => {
|
|
2327
|
+
return remap$(v, {
|
|
2328
|
+
jsonSchema: "json_schema",
|
|
2329
|
+
});
|
|
2330
|
+
});
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* @internal
|
|
2334
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2335
|
+
*/
|
|
2336
|
+
export namespace ListAgentTasksResponseFormatAgents3$ {
|
|
2337
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents3$inboundSchema` instead. */
|
|
2338
|
+
export const inboundSchema =
|
|
2339
|
+
ListAgentTasksResponseFormatAgents3$inboundSchema;
|
|
2340
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents3$outboundSchema` instead. */
|
|
2341
|
+
export const outboundSchema =
|
|
2342
|
+
ListAgentTasksResponseFormatAgents3$outboundSchema;
|
|
2343
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents3$Outbound` instead. */
|
|
2344
|
+
export type Outbound = ListAgentTasksResponseFormatAgents3$Outbound;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
export function listAgentTasksResponseFormatAgents3ToJSON(
|
|
2348
|
+
listAgentTasksResponseFormatAgents3: ListAgentTasksResponseFormatAgents3,
|
|
2349
|
+
): string {
|
|
2350
|
+
return JSON.stringify(
|
|
2351
|
+
ListAgentTasksResponseFormatAgents3$outboundSchema.parse(
|
|
2352
|
+
listAgentTasksResponseFormatAgents3,
|
|
2353
|
+
),
|
|
2354
|
+
);
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
export function listAgentTasksResponseFormatAgents3FromJSON(
|
|
2358
|
+
jsonString: string,
|
|
2359
|
+
): SafeParseResult<ListAgentTasksResponseFormatAgents3, SDKValidationError> {
|
|
2360
|
+
return safeParse(
|
|
2361
|
+
jsonString,
|
|
2362
|
+
(x) =>
|
|
2363
|
+
ListAgentTasksResponseFormatAgents3$inboundSchema.parse(JSON.parse(x)),
|
|
2364
|
+
`Failed to parse 'ListAgentTasksResponseFormatAgents3' from JSON`,
|
|
2365
|
+
);
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
/** @internal */
|
|
2369
|
+
export const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema:
|
|
2370
|
+
z.ZodNativeEnum<
|
|
2371
|
+
typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType
|
|
2372
|
+
> = z.nativeEnum(
|
|
2373
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType,
|
|
2374
|
+
);
|
|
2375
|
+
|
|
2376
|
+
/** @internal */
|
|
2377
|
+
export const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema:
|
|
2378
|
+
z.ZodNativeEnum<
|
|
2379
|
+
typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType
|
|
2380
|
+
> =
|
|
2381
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* @internal
|
|
2385
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2386
|
+
*/
|
|
2387
|
+
export namespace ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$ {
|
|
2388
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
2389
|
+
export const inboundSchema =
|
|
2390
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
|
|
2391
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
2392
|
+
export const outboundSchema =
|
|
2393
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
/** @internal */
|
|
2397
|
+
export const ListAgentTasksResponseFormatAgents2$inboundSchema: z.ZodType<
|
|
2398
|
+
ListAgentTasksResponseFormatAgents2,
|
|
2399
|
+
z.ZodTypeDef,
|
|
2400
|
+
unknown
|
|
2401
|
+
> = z.object({
|
|
2402
|
+
type:
|
|
2403
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
|
|
2404
|
+
});
|
|
2405
|
+
|
|
2406
|
+
/** @internal */
|
|
2407
|
+
export type ListAgentTasksResponseFormatAgents2$Outbound = {
|
|
2408
|
+
type: string;
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
/** @internal */
|
|
2412
|
+
export const ListAgentTasksResponseFormatAgents2$outboundSchema: z.ZodType<
|
|
2413
|
+
ListAgentTasksResponseFormatAgents2$Outbound,
|
|
2414
|
+
z.ZodTypeDef,
|
|
2415
|
+
ListAgentTasksResponseFormatAgents2
|
|
2416
|
+
> = z.object({
|
|
2417
|
+
type:
|
|
2418
|
+
ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
|
|
2419
|
+
});
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
* @internal
|
|
2423
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2424
|
+
*/
|
|
2425
|
+
export namespace ListAgentTasksResponseFormatAgents2$ {
|
|
2426
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents2$inboundSchema` instead. */
|
|
2427
|
+
export const inboundSchema =
|
|
2428
|
+
ListAgentTasksResponseFormatAgents2$inboundSchema;
|
|
2429
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents2$outboundSchema` instead. */
|
|
2430
|
+
export const outboundSchema =
|
|
2431
|
+
ListAgentTasksResponseFormatAgents2$outboundSchema;
|
|
2432
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents2$Outbound` instead. */
|
|
2433
|
+
export type Outbound = ListAgentTasksResponseFormatAgents2$Outbound;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
export function listAgentTasksResponseFormatAgents2ToJSON(
|
|
2437
|
+
listAgentTasksResponseFormatAgents2: ListAgentTasksResponseFormatAgents2,
|
|
2438
|
+
): string {
|
|
2439
|
+
return JSON.stringify(
|
|
2440
|
+
ListAgentTasksResponseFormatAgents2$outboundSchema.parse(
|
|
2441
|
+
listAgentTasksResponseFormatAgents2,
|
|
2442
|
+
),
|
|
2443
|
+
);
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
export function listAgentTasksResponseFormatAgents2FromJSON(
|
|
2447
|
+
jsonString: string,
|
|
2448
|
+
): SafeParseResult<ListAgentTasksResponseFormatAgents2, SDKValidationError> {
|
|
2449
|
+
return safeParse(
|
|
2450
|
+
jsonString,
|
|
2451
|
+
(x) =>
|
|
2452
|
+
ListAgentTasksResponseFormatAgents2$inboundSchema.parse(JSON.parse(x)),
|
|
2453
|
+
`Failed to parse 'ListAgentTasksResponseFormatAgents2' from JSON`,
|
|
2454
|
+
);
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
/** @internal */
|
|
2458
|
+
export const ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema:
|
|
2459
|
+
z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200Type> = z
|
|
2460
|
+
.nativeEnum(ListAgentTasksResponseFormatAgentsResponse200Type);
|
|
2461
|
+
|
|
2462
|
+
/** @internal */
|
|
2463
|
+
export const ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema:
|
|
2464
|
+
z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200Type> =
|
|
2465
|
+
ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema;
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* @internal
|
|
2469
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2470
|
+
*/
|
|
2471
|
+
export namespace ListAgentTasksResponseFormatAgentsResponse200Type$ {
|
|
2472
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema` instead. */
|
|
2473
|
+
export const inboundSchema =
|
|
2474
|
+
ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema;
|
|
2475
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema` instead. */
|
|
2476
|
+
export const outboundSchema =
|
|
2477
|
+
ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/** @internal */
|
|
2481
|
+
export const ListAgentTasksResponseFormatAgents1$inboundSchema: z.ZodType<
|
|
2482
|
+
ListAgentTasksResponseFormatAgents1,
|
|
2483
|
+
z.ZodTypeDef,
|
|
2484
|
+
unknown
|
|
2485
|
+
> = z.object({
|
|
2486
|
+
type: ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema,
|
|
2487
|
+
});
|
|
2488
|
+
|
|
2489
|
+
/** @internal */
|
|
2490
|
+
export type ListAgentTasksResponseFormatAgents1$Outbound = {
|
|
2491
|
+
type: string;
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
/** @internal */
|
|
2495
|
+
export const ListAgentTasksResponseFormatAgents1$outboundSchema: z.ZodType<
|
|
2496
|
+
ListAgentTasksResponseFormatAgents1$Outbound,
|
|
2497
|
+
z.ZodTypeDef,
|
|
2498
|
+
ListAgentTasksResponseFormatAgents1
|
|
2499
|
+
> = z.object({
|
|
2500
|
+
type: ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema,
|
|
2501
|
+
});
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* @internal
|
|
2505
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2506
|
+
*/
|
|
2507
|
+
export namespace ListAgentTasksResponseFormatAgents1$ {
|
|
2508
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents1$inboundSchema` instead. */
|
|
2509
|
+
export const inboundSchema =
|
|
2510
|
+
ListAgentTasksResponseFormatAgents1$inboundSchema;
|
|
2511
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents1$outboundSchema` instead. */
|
|
2512
|
+
export const outboundSchema =
|
|
2513
|
+
ListAgentTasksResponseFormatAgents1$outboundSchema;
|
|
2514
|
+
/** @deprecated use `ListAgentTasksResponseFormatAgents1$Outbound` instead. */
|
|
2515
|
+
export type Outbound = ListAgentTasksResponseFormatAgents1$Outbound;
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
export function listAgentTasksResponseFormatAgents1ToJSON(
|
|
2519
|
+
listAgentTasksResponseFormatAgents1: ListAgentTasksResponseFormatAgents1,
|
|
2520
|
+
): string {
|
|
2521
|
+
return JSON.stringify(
|
|
2522
|
+
ListAgentTasksResponseFormatAgents1$outboundSchema.parse(
|
|
2523
|
+
listAgentTasksResponseFormatAgents1,
|
|
2524
|
+
),
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
export function listAgentTasksResponseFormatAgents1FromJSON(
|
|
2529
|
+
jsonString: string,
|
|
2530
|
+
): SafeParseResult<ListAgentTasksResponseFormatAgents1, SDKValidationError> {
|
|
2531
|
+
return safeParse(
|
|
2532
|
+
jsonString,
|
|
2533
|
+
(x) =>
|
|
2534
|
+
ListAgentTasksResponseFormatAgents1$inboundSchema.parse(JSON.parse(x)),
|
|
2535
|
+
`Failed to parse 'ListAgentTasksResponseFormatAgents1' from JSON`,
|
|
2536
|
+
);
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
/** @internal */
|
|
2540
|
+
export const ListAgentTasksFallbackModelsResponseFormat$inboundSchema:
|
|
2541
|
+
z.ZodType<ListAgentTasksFallbackModelsResponseFormat, z.ZodTypeDef, unknown> =
|
|
2542
|
+
z.union([
|
|
2543
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents3$inboundSchema),
|
|
2544
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents1$inboundSchema),
|
|
2545
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents2$inboundSchema),
|
|
2546
|
+
]);
|
|
2547
|
+
|
|
2548
|
+
/** @internal */
|
|
2549
|
+
export type ListAgentTasksFallbackModelsResponseFormat$Outbound =
|
|
2550
|
+
| ListAgentTasksResponseFormatAgents3$Outbound
|
|
2551
|
+
| ListAgentTasksResponseFormatAgents1$Outbound
|
|
2552
|
+
| ListAgentTasksResponseFormatAgents2$Outbound;
|
|
2553
|
+
|
|
2554
|
+
/** @internal */
|
|
2555
|
+
export const ListAgentTasksFallbackModelsResponseFormat$outboundSchema:
|
|
2556
|
+
z.ZodType<
|
|
2557
|
+
ListAgentTasksFallbackModelsResponseFormat$Outbound,
|
|
2558
|
+
z.ZodTypeDef,
|
|
2559
|
+
ListAgentTasksFallbackModelsResponseFormat
|
|
2560
|
+
> = z.union([
|
|
2561
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents3$outboundSchema),
|
|
2562
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents1$outboundSchema),
|
|
2563
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents2$outboundSchema),
|
|
2564
|
+
]);
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
* @internal
|
|
2568
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2569
|
+
*/
|
|
2570
|
+
export namespace ListAgentTasksFallbackModelsResponseFormat$ {
|
|
2571
|
+
/** @deprecated use `ListAgentTasksFallbackModelsResponseFormat$inboundSchema` instead. */
|
|
2572
|
+
export const inboundSchema =
|
|
2573
|
+
ListAgentTasksFallbackModelsResponseFormat$inboundSchema;
|
|
2574
|
+
/** @deprecated use `ListAgentTasksFallbackModelsResponseFormat$outboundSchema` instead. */
|
|
2575
|
+
export const outboundSchema =
|
|
2576
|
+
ListAgentTasksFallbackModelsResponseFormat$outboundSchema;
|
|
2577
|
+
/** @deprecated use `ListAgentTasksFallbackModelsResponseFormat$Outbound` instead. */
|
|
2578
|
+
export type Outbound = ListAgentTasksFallbackModelsResponseFormat$Outbound;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
export function listAgentTasksFallbackModelsResponseFormatToJSON(
|
|
2582
|
+
listAgentTasksFallbackModelsResponseFormat:
|
|
2583
|
+
ListAgentTasksFallbackModelsResponseFormat,
|
|
2584
|
+
): string {
|
|
2585
|
+
return JSON.stringify(
|
|
2586
|
+
ListAgentTasksFallbackModelsResponseFormat$outboundSchema.parse(
|
|
2587
|
+
listAgentTasksFallbackModelsResponseFormat,
|
|
2588
|
+
),
|
|
2589
|
+
);
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
export function listAgentTasksFallbackModelsResponseFormatFromJSON(
|
|
2593
|
+
jsonString: string,
|
|
2594
|
+
): SafeParseResult<
|
|
2595
|
+
ListAgentTasksFallbackModelsResponseFormat,
|
|
2596
|
+
SDKValidationError
|
|
2597
|
+
> {
|
|
2598
|
+
return safeParse(
|
|
2599
|
+
jsonString,
|
|
2600
|
+
(x) =>
|
|
2601
|
+
ListAgentTasksFallbackModelsResponseFormat$inboundSchema.parse(
|
|
2602
|
+
JSON.parse(x),
|
|
2603
|
+
),
|
|
2604
|
+
`Failed to parse 'ListAgentTasksFallbackModelsResponseFormat' from JSON`,
|
|
2605
|
+
);
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
/** @internal */
|
|
2609
|
+
export const ListAgentTasksFallbackModelsStop$inboundSchema: z.ZodType<
|
|
2610
|
+
ListAgentTasksFallbackModelsStop,
|
|
2611
|
+
z.ZodTypeDef,
|
|
2612
|
+
unknown
|
|
2613
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2614
|
+
|
|
2615
|
+
/** @internal */
|
|
2616
|
+
export type ListAgentTasksFallbackModelsStop$Outbound = string | Array<string>;
|
|
2617
|
+
|
|
2618
|
+
/** @internal */
|
|
2619
|
+
export const ListAgentTasksFallbackModelsStop$outboundSchema: z.ZodType<
|
|
2620
|
+
ListAgentTasksFallbackModelsStop$Outbound,
|
|
2621
|
+
z.ZodTypeDef,
|
|
2622
|
+
ListAgentTasksFallbackModelsStop
|
|
2623
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2624
|
+
|
|
2625
|
+
/**
|
|
2626
|
+
* @internal
|
|
2627
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2628
|
+
*/
|
|
2629
|
+
export namespace ListAgentTasksFallbackModelsStop$ {
|
|
2630
|
+
/** @deprecated use `ListAgentTasksFallbackModelsStop$inboundSchema` instead. */
|
|
2631
|
+
export const inboundSchema = ListAgentTasksFallbackModelsStop$inboundSchema;
|
|
2632
|
+
/** @deprecated use `ListAgentTasksFallbackModelsStop$outboundSchema` instead. */
|
|
2633
|
+
export const outboundSchema = ListAgentTasksFallbackModelsStop$outboundSchema;
|
|
2634
|
+
/** @deprecated use `ListAgentTasksFallbackModelsStop$Outbound` instead. */
|
|
2635
|
+
export type Outbound = ListAgentTasksFallbackModelsStop$Outbound;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
export function listAgentTasksFallbackModelsStopToJSON(
|
|
2639
|
+
listAgentTasksFallbackModelsStop: ListAgentTasksFallbackModelsStop,
|
|
2640
|
+
): string {
|
|
2641
|
+
return JSON.stringify(
|
|
2642
|
+
ListAgentTasksFallbackModelsStop$outboundSchema.parse(
|
|
2643
|
+
listAgentTasksFallbackModelsStop,
|
|
2644
|
+
),
|
|
2645
|
+
);
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
export function listAgentTasksFallbackModelsStopFromJSON(
|
|
2649
|
+
jsonString: string,
|
|
2650
|
+
): SafeParseResult<ListAgentTasksFallbackModelsStop, SDKValidationError> {
|
|
2651
|
+
return safeParse(
|
|
2652
|
+
jsonString,
|
|
2653
|
+
(x) => ListAgentTasksFallbackModelsStop$inboundSchema.parse(JSON.parse(x)),
|
|
2654
|
+
`Failed to parse 'ListAgentTasksFallbackModelsStop' from JSON`,
|
|
2655
|
+
);
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
/** @internal */
|
|
2659
|
+
export const ListAgentTasksFallbackModelsStreamOptions$inboundSchema: z.ZodType<
|
|
2660
|
+
ListAgentTasksFallbackModelsStreamOptions,
|
|
2661
|
+
z.ZodTypeDef,
|
|
2662
|
+
unknown
|
|
2663
|
+
> = z.object({
|
|
2664
|
+
include_usage: z.boolean().optional(),
|
|
2665
|
+
}).transform((v) => {
|
|
2666
|
+
return remap$(v, {
|
|
2667
|
+
"include_usage": "includeUsage",
|
|
2668
|
+
});
|
|
2669
|
+
});
|
|
2670
|
+
|
|
2671
|
+
/** @internal */
|
|
2672
|
+
export type ListAgentTasksFallbackModelsStreamOptions$Outbound = {
|
|
2673
|
+
include_usage?: boolean | undefined;
|
|
2674
|
+
};
|
|
2675
|
+
|
|
2676
|
+
/** @internal */
|
|
2677
|
+
export const ListAgentTasksFallbackModelsStreamOptions$outboundSchema:
|
|
2678
|
+
z.ZodType<
|
|
2679
|
+
ListAgentTasksFallbackModelsStreamOptions$Outbound,
|
|
2680
|
+
z.ZodTypeDef,
|
|
2681
|
+
ListAgentTasksFallbackModelsStreamOptions
|
|
2682
|
+
> = z.object({
|
|
2683
|
+
includeUsage: z.boolean().optional(),
|
|
2684
|
+
}).transform((v) => {
|
|
2685
|
+
return remap$(v, {
|
|
2686
|
+
includeUsage: "include_usage",
|
|
2687
|
+
});
|
|
2688
|
+
});
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* @internal
|
|
2692
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2693
|
+
*/
|
|
2694
|
+
export namespace ListAgentTasksFallbackModelsStreamOptions$ {
|
|
2695
|
+
/** @deprecated use `ListAgentTasksFallbackModelsStreamOptions$inboundSchema` instead. */
|
|
2696
|
+
export const inboundSchema =
|
|
2697
|
+
ListAgentTasksFallbackModelsStreamOptions$inboundSchema;
|
|
2698
|
+
/** @deprecated use `ListAgentTasksFallbackModelsStreamOptions$outboundSchema` instead. */
|
|
2699
|
+
export const outboundSchema =
|
|
2700
|
+
ListAgentTasksFallbackModelsStreamOptions$outboundSchema;
|
|
2701
|
+
/** @deprecated use `ListAgentTasksFallbackModelsStreamOptions$Outbound` instead. */
|
|
2702
|
+
export type Outbound = ListAgentTasksFallbackModelsStreamOptions$Outbound;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
export function listAgentTasksFallbackModelsStreamOptionsToJSON(
|
|
2706
|
+
listAgentTasksFallbackModelsStreamOptions:
|
|
2707
|
+
ListAgentTasksFallbackModelsStreamOptions,
|
|
2708
|
+
): string {
|
|
2709
|
+
return JSON.stringify(
|
|
2710
|
+
ListAgentTasksFallbackModelsStreamOptions$outboundSchema.parse(
|
|
2711
|
+
listAgentTasksFallbackModelsStreamOptions,
|
|
2712
|
+
),
|
|
2713
|
+
);
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
export function listAgentTasksFallbackModelsStreamOptionsFromJSON(
|
|
2717
|
+
jsonString: string,
|
|
2718
|
+
): SafeParseResult<
|
|
2719
|
+
ListAgentTasksFallbackModelsStreamOptions,
|
|
2720
|
+
SDKValidationError
|
|
2721
|
+
> {
|
|
2722
|
+
return safeParse(
|
|
2723
|
+
jsonString,
|
|
2724
|
+
(x) =>
|
|
2725
|
+
ListAgentTasksFallbackModelsStreamOptions$inboundSchema.parse(
|
|
2726
|
+
JSON.parse(x),
|
|
2727
|
+
),
|
|
2728
|
+
`Failed to parse 'ListAgentTasksFallbackModelsStreamOptions' from JSON`,
|
|
2729
|
+
);
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
/** @internal */
|
|
2733
|
+
export const ListAgentTasksFallbackModelsType$inboundSchema: z.ZodNativeEnum<
|
|
2734
|
+
typeof ListAgentTasksFallbackModelsType
|
|
2735
|
+
> = z.nativeEnum(ListAgentTasksFallbackModelsType);
|
|
2736
|
+
|
|
2737
|
+
/** @internal */
|
|
2738
|
+
export const ListAgentTasksFallbackModelsType$outboundSchema: z.ZodNativeEnum<
|
|
2739
|
+
typeof ListAgentTasksFallbackModelsType
|
|
2740
|
+
> = ListAgentTasksFallbackModelsType$inboundSchema;
|
|
2741
|
+
|
|
2742
|
+
/**
|
|
2743
|
+
* @internal
|
|
2744
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2745
|
+
*/
|
|
2746
|
+
export namespace ListAgentTasksFallbackModelsType$ {
|
|
2747
|
+
/** @deprecated use `ListAgentTasksFallbackModelsType$inboundSchema` instead. */
|
|
2748
|
+
export const inboundSchema = ListAgentTasksFallbackModelsType$inboundSchema;
|
|
2749
|
+
/** @deprecated use `ListAgentTasksFallbackModelsType$outboundSchema` instead. */
|
|
2750
|
+
export const outboundSchema = ListAgentTasksFallbackModelsType$outboundSchema;
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
/** @internal */
|
|
2754
|
+
export const ListAgentTasksFallbackModelsThinking$inboundSchema: z.ZodType<
|
|
2755
|
+
ListAgentTasksFallbackModelsThinking,
|
|
2756
|
+
z.ZodTypeDef,
|
|
2757
|
+
unknown
|
|
2758
|
+
> = z.object({
|
|
2759
|
+
type: ListAgentTasksFallbackModelsType$inboundSchema,
|
|
2760
|
+
budget_tokens: z.number(),
|
|
2761
|
+
}).transform((v) => {
|
|
2762
|
+
return remap$(v, {
|
|
2763
|
+
"budget_tokens": "budgetTokens",
|
|
2764
|
+
});
|
|
2765
|
+
});
|
|
2766
|
+
|
|
2767
|
+
/** @internal */
|
|
2768
|
+
export type ListAgentTasksFallbackModelsThinking$Outbound = {
|
|
2769
|
+
type: string;
|
|
2770
|
+
budget_tokens: number;
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
/** @internal */
|
|
2774
|
+
export const ListAgentTasksFallbackModelsThinking$outboundSchema: z.ZodType<
|
|
2775
|
+
ListAgentTasksFallbackModelsThinking$Outbound,
|
|
2776
|
+
z.ZodTypeDef,
|
|
2777
|
+
ListAgentTasksFallbackModelsThinking
|
|
2778
|
+
> = z.object({
|
|
2779
|
+
type: ListAgentTasksFallbackModelsType$outboundSchema,
|
|
2780
|
+
budgetTokens: z.number(),
|
|
2781
|
+
}).transform((v) => {
|
|
2782
|
+
return remap$(v, {
|
|
2783
|
+
budgetTokens: "budget_tokens",
|
|
2784
|
+
});
|
|
2785
|
+
});
|
|
2786
|
+
|
|
2787
|
+
/**
|
|
2788
|
+
* @internal
|
|
2789
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2790
|
+
*/
|
|
2791
|
+
export namespace ListAgentTasksFallbackModelsThinking$ {
|
|
2792
|
+
/** @deprecated use `ListAgentTasksFallbackModelsThinking$inboundSchema` instead. */
|
|
2793
|
+
export const inboundSchema =
|
|
2794
|
+
ListAgentTasksFallbackModelsThinking$inboundSchema;
|
|
2795
|
+
/** @deprecated use `ListAgentTasksFallbackModelsThinking$outboundSchema` instead. */
|
|
2796
|
+
export const outboundSchema =
|
|
2797
|
+
ListAgentTasksFallbackModelsThinking$outboundSchema;
|
|
2798
|
+
/** @deprecated use `ListAgentTasksFallbackModelsThinking$Outbound` instead. */
|
|
2799
|
+
export type Outbound = ListAgentTasksFallbackModelsThinking$Outbound;
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
export function listAgentTasksFallbackModelsThinkingToJSON(
|
|
2803
|
+
listAgentTasksFallbackModelsThinking: ListAgentTasksFallbackModelsThinking,
|
|
2804
|
+
): string {
|
|
2805
|
+
return JSON.stringify(
|
|
2806
|
+
ListAgentTasksFallbackModelsThinking$outboundSchema.parse(
|
|
2807
|
+
listAgentTasksFallbackModelsThinking,
|
|
2808
|
+
),
|
|
2809
|
+
);
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
export function listAgentTasksFallbackModelsThinkingFromJSON(
|
|
2813
|
+
jsonString: string,
|
|
2814
|
+
): SafeParseResult<ListAgentTasksFallbackModelsThinking, SDKValidationError> {
|
|
2815
|
+
return safeParse(
|
|
2816
|
+
jsonString,
|
|
2817
|
+
(x) =>
|
|
2818
|
+
ListAgentTasksFallbackModelsThinking$inboundSchema.parse(JSON.parse(x)),
|
|
2819
|
+
`Failed to parse 'ListAgentTasksFallbackModelsThinking' from JSON`,
|
|
2820
|
+
);
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
/** @internal */
|
|
2824
|
+
export const ListAgentTasksToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
2825
|
+
typeof ListAgentTasksToolChoiceAgentsType
|
|
2826
|
+
> = z.nativeEnum(ListAgentTasksToolChoiceAgentsType);
|
|
2827
|
+
|
|
2828
|
+
/** @internal */
|
|
2829
|
+
export const ListAgentTasksToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
2830
|
+
typeof ListAgentTasksToolChoiceAgentsType
|
|
2831
|
+
> = ListAgentTasksToolChoiceAgentsType$inboundSchema;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* @internal
|
|
2835
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2836
|
+
*/
|
|
2837
|
+
export namespace ListAgentTasksToolChoiceAgentsType$ {
|
|
2838
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgentsType$inboundSchema` instead. */
|
|
2839
|
+
export const inboundSchema = ListAgentTasksToolChoiceAgentsType$inboundSchema;
|
|
2840
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgentsType$outboundSchema` instead. */
|
|
2841
|
+
export const outboundSchema =
|
|
2842
|
+
ListAgentTasksToolChoiceAgentsType$outboundSchema;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
/** @internal */
|
|
2846
|
+
export const ListAgentTasksToolChoiceAgentsFunction$inboundSchema: z.ZodType<
|
|
2847
|
+
ListAgentTasksToolChoiceAgentsFunction,
|
|
2848
|
+
z.ZodTypeDef,
|
|
2849
|
+
unknown
|
|
2850
|
+
> = z.object({
|
|
2851
|
+
name: z.string().optional(),
|
|
2852
|
+
});
|
|
2853
|
+
|
|
2854
|
+
/** @internal */
|
|
2855
|
+
export type ListAgentTasksToolChoiceAgentsFunction$Outbound = {
|
|
2856
|
+
name?: string | undefined;
|
|
2857
|
+
};
|
|
2858
|
+
|
|
2859
|
+
/** @internal */
|
|
2860
|
+
export const ListAgentTasksToolChoiceAgentsFunction$outboundSchema: z.ZodType<
|
|
2861
|
+
ListAgentTasksToolChoiceAgentsFunction$Outbound,
|
|
2862
|
+
z.ZodTypeDef,
|
|
2863
|
+
ListAgentTasksToolChoiceAgentsFunction
|
|
2864
|
+
> = z.object({
|
|
2865
|
+
name: z.string().optional(),
|
|
2866
|
+
});
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* @internal
|
|
2870
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2871
|
+
*/
|
|
2872
|
+
export namespace ListAgentTasksToolChoiceAgentsFunction$ {
|
|
2873
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgentsFunction$inboundSchema` instead. */
|
|
2874
|
+
export const inboundSchema =
|
|
2875
|
+
ListAgentTasksToolChoiceAgentsFunction$inboundSchema;
|
|
2876
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgentsFunction$outboundSchema` instead. */
|
|
2877
|
+
export const outboundSchema =
|
|
2878
|
+
ListAgentTasksToolChoiceAgentsFunction$outboundSchema;
|
|
2879
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgentsFunction$Outbound` instead. */
|
|
2880
|
+
export type Outbound = ListAgentTasksToolChoiceAgentsFunction$Outbound;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
export function listAgentTasksToolChoiceAgentsFunctionToJSON(
|
|
2884
|
+
listAgentTasksToolChoiceAgentsFunction:
|
|
2885
|
+
ListAgentTasksToolChoiceAgentsFunction,
|
|
2886
|
+
): string {
|
|
2887
|
+
return JSON.stringify(
|
|
2888
|
+
ListAgentTasksToolChoiceAgentsFunction$outboundSchema.parse(
|
|
2889
|
+
listAgentTasksToolChoiceAgentsFunction,
|
|
2890
|
+
),
|
|
2891
|
+
);
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
export function listAgentTasksToolChoiceAgentsFunctionFromJSON(
|
|
2895
|
+
jsonString: string,
|
|
2896
|
+
): SafeParseResult<ListAgentTasksToolChoiceAgentsFunction, SDKValidationError> {
|
|
2897
|
+
return safeParse(
|
|
2898
|
+
jsonString,
|
|
2899
|
+
(x) =>
|
|
2900
|
+
ListAgentTasksToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2901
|
+
`Failed to parse 'ListAgentTasksToolChoiceAgentsFunction' from JSON`,
|
|
2902
|
+
);
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
/** @internal */
|
|
2906
|
+
export const ListAgentTasksToolChoiceAgents2$inboundSchema: z.ZodType<
|
|
2907
|
+
ListAgentTasksToolChoiceAgents2,
|
|
2908
|
+
z.ZodTypeDef,
|
|
2909
|
+
unknown
|
|
2910
|
+
> = z.object({
|
|
2911
|
+
type: ListAgentTasksToolChoiceAgentsType$inboundSchema.optional(),
|
|
2912
|
+
function: z.lazy(() => ListAgentTasksToolChoiceAgentsFunction$inboundSchema),
|
|
2913
|
+
});
|
|
2914
|
+
|
|
2915
|
+
/** @internal */
|
|
2916
|
+
export type ListAgentTasksToolChoiceAgents2$Outbound = {
|
|
2917
|
+
type?: string | undefined;
|
|
2918
|
+
function: ListAgentTasksToolChoiceAgentsFunction$Outbound;
|
|
2919
|
+
};
|
|
2920
|
+
|
|
2921
|
+
/** @internal */
|
|
2922
|
+
export const ListAgentTasksToolChoiceAgents2$outboundSchema: z.ZodType<
|
|
2923
|
+
ListAgentTasksToolChoiceAgents2$Outbound,
|
|
2924
|
+
z.ZodTypeDef,
|
|
2925
|
+
ListAgentTasksToolChoiceAgents2
|
|
2926
|
+
> = z.object({
|
|
2927
|
+
type: ListAgentTasksToolChoiceAgentsType$outboundSchema.optional(),
|
|
2928
|
+
function: z.lazy(() => ListAgentTasksToolChoiceAgentsFunction$outboundSchema),
|
|
2929
|
+
});
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* @internal
|
|
2933
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2934
|
+
*/
|
|
2935
|
+
export namespace ListAgentTasksToolChoiceAgents2$ {
|
|
2936
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgents2$inboundSchema` instead. */
|
|
2937
|
+
export const inboundSchema = ListAgentTasksToolChoiceAgents2$inboundSchema;
|
|
2938
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgents2$outboundSchema` instead. */
|
|
2939
|
+
export const outboundSchema = ListAgentTasksToolChoiceAgents2$outboundSchema;
|
|
2940
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgents2$Outbound` instead. */
|
|
2941
|
+
export type Outbound = ListAgentTasksToolChoiceAgents2$Outbound;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
export function listAgentTasksToolChoiceAgents2ToJSON(
|
|
2945
|
+
listAgentTasksToolChoiceAgents2: ListAgentTasksToolChoiceAgents2,
|
|
2946
|
+
): string {
|
|
2947
|
+
return JSON.stringify(
|
|
2948
|
+
ListAgentTasksToolChoiceAgents2$outboundSchema.parse(
|
|
2949
|
+
listAgentTasksToolChoiceAgents2,
|
|
2950
|
+
),
|
|
2951
|
+
);
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
export function listAgentTasksToolChoiceAgents2FromJSON(
|
|
2955
|
+
jsonString: string,
|
|
2956
|
+
): SafeParseResult<ListAgentTasksToolChoiceAgents2, SDKValidationError> {
|
|
2957
|
+
return safeParse(
|
|
2958
|
+
jsonString,
|
|
2959
|
+
(x) => ListAgentTasksToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)),
|
|
2960
|
+
`Failed to parse 'ListAgentTasksToolChoiceAgents2' from JSON`,
|
|
2961
|
+
);
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
/** @internal */
|
|
2965
|
+
export const ListAgentTasksToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
|
|
2966
|
+
typeof ListAgentTasksToolChoiceAgents1
|
|
2967
|
+
> = z.nativeEnum(ListAgentTasksToolChoiceAgents1);
|
|
2968
|
+
|
|
2969
|
+
/** @internal */
|
|
2970
|
+
export const ListAgentTasksToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
|
|
2971
|
+
typeof ListAgentTasksToolChoiceAgents1
|
|
2972
|
+
> = ListAgentTasksToolChoiceAgents1$inboundSchema;
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* @internal
|
|
2976
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2977
|
+
*/
|
|
2978
|
+
export namespace ListAgentTasksToolChoiceAgents1$ {
|
|
2979
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgents1$inboundSchema` instead. */
|
|
2980
|
+
export const inboundSchema = ListAgentTasksToolChoiceAgents1$inboundSchema;
|
|
2981
|
+
/** @deprecated use `ListAgentTasksToolChoiceAgents1$outboundSchema` instead. */
|
|
2982
|
+
export const outboundSchema = ListAgentTasksToolChoiceAgents1$outboundSchema;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
/** @internal */
|
|
2986
|
+
export const ListAgentTasksFallbackModelsToolChoice$inboundSchema: z.ZodType<
|
|
2987
|
+
ListAgentTasksFallbackModelsToolChoice,
|
|
2988
|
+
z.ZodTypeDef,
|
|
2989
|
+
unknown
|
|
2990
|
+
> = z.union([
|
|
2991
|
+
z.lazy(() => ListAgentTasksToolChoiceAgents2$inboundSchema),
|
|
2992
|
+
ListAgentTasksToolChoiceAgents1$inboundSchema,
|
|
2993
|
+
]);
|
|
2994
|
+
|
|
2995
|
+
/** @internal */
|
|
2996
|
+
export type ListAgentTasksFallbackModelsToolChoice$Outbound =
|
|
2997
|
+
| ListAgentTasksToolChoiceAgents2$Outbound
|
|
2998
|
+
| string;
|
|
2999
|
+
|
|
3000
|
+
/** @internal */
|
|
3001
|
+
export const ListAgentTasksFallbackModelsToolChoice$outboundSchema: z.ZodType<
|
|
3002
|
+
ListAgentTasksFallbackModelsToolChoice$Outbound,
|
|
3003
|
+
z.ZodTypeDef,
|
|
3004
|
+
ListAgentTasksFallbackModelsToolChoice
|
|
3005
|
+
> = z.union([
|
|
3006
|
+
z.lazy(() => ListAgentTasksToolChoiceAgents2$outboundSchema),
|
|
3007
|
+
ListAgentTasksToolChoiceAgents1$outboundSchema,
|
|
3008
|
+
]);
|
|
3009
|
+
|
|
3010
|
+
/**
|
|
3011
|
+
* @internal
|
|
3012
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3013
|
+
*/
|
|
3014
|
+
export namespace ListAgentTasksFallbackModelsToolChoice$ {
|
|
3015
|
+
/** @deprecated use `ListAgentTasksFallbackModelsToolChoice$inboundSchema` instead. */
|
|
3016
|
+
export const inboundSchema =
|
|
3017
|
+
ListAgentTasksFallbackModelsToolChoice$inboundSchema;
|
|
3018
|
+
/** @deprecated use `ListAgentTasksFallbackModelsToolChoice$outboundSchema` instead. */
|
|
3019
|
+
export const outboundSchema =
|
|
3020
|
+
ListAgentTasksFallbackModelsToolChoice$outboundSchema;
|
|
3021
|
+
/** @deprecated use `ListAgentTasksFallbackModelsToolChoice$Outbound` instead. */
|
|
3022
|
+
export type Outbound = ListAgentTasksFallbackModelsToolChoice$Outbound;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
export function listAgentTasksFallbackModelsToolChoiceToJSON(
|
|
3026
|
+
listAgentTasksFallbackModelsToolChoice:
|
|
3027
|
+
ListAgentTasksFallbackModelsToolChoice,
|
|
3028
|
+
): string {
|
|
3029
|
+
return JSON.stringify(
|
|
3030
|
+
ListAgentTasksFallbackModelsToolChoice$outboundSchema.parse(
|
|
3031
|
+
listAgentTasksFallbackModelsToolChoice,
|
|
3032
|
+
),
|
|
3033
|
+
);
|
|
3034
|
+
}
|
|
124
3035
|
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
* 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
|
-
*/
|
|
137
|
-
toolApprovalRequired?: ListAgentTasksToolApprovalRequired | undefined;
|
|
138
|
-
tools?: Array<ListAgentTasksTools> | undefined;
|
|
139
|
-
};
|
|
3036
|
+
export function listAgentTasksFallbackModelsToolChoiceFromJSON(
|
|
3037
|
+
jsonString: string,
|
|
3038
|
+
): SafeParseResult<ListAgentTasksFallbackModelsToolChoice, SDKValidationError> {
|
|
3039
|
+
return safeParse(
|
|
3040
|
+
jsonString,
|
|
3041
|
+
(x) =>
|
|
3042
|
+
ListAgentTasksFallbackModelsToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
3043
|
+
`Failed to parse 'ListAgentTasksFallbackModelsToolChoice' from JSON`,
|
|
3044
|
+
);
|
|
3045
|
+
}
|
|
140
3046
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
};
|
|
3047
|
+
/** @internal */
|
|
3048
|
+
export const ListAgentTasksFallbackModelsModalities$inboundSchema:
|
|
3049
|
+
z.ZodNativeEnum<typeof ListAgentTasksFallbackModelsModalities> = z.nativeEnum(
|
|
3050
|
+
ListAgentTasksFallbackModelsModalities,
|
|
3051
|
+
);
|
|
3052
|
+
|
|
3053
|
+
/** @internal */
|
|
3054
|
+
export const ListAgentTasksFallbackModelsModalities$outboundSchema:
|
|
3055
|
+
z.ZodNativeEnum<typeof ListAgentTasksFallbackModelsModalities> =
|
|
3056
|
+
ListAgentTasksFallbackModelsModalities$inboundSchema;
|
|
152
3057
|
|
|
153
3058
|
/**
|
|
154
|
-
*
|
|
3059
|
+
* @internal
|
|
3060
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
3061
|
*/
|
|
156
|
-
export
|
|
157
|
-
/**
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
3062
|
+
export namespace ListAgentTasksFallbackModelsModalities$ {
|
|
3063
|
+
/** @deprecated use `ListAgentTasksFallbackModelsModalities$inboundSchema` instead. */
|
|
3064
|
+
export const inboundSchema =
|
|
3065
|
+
ListAgentTasksFallbackModelsModalities$inboundSchema;
|
|
3066
|
+
/** @deprecated use `ListAgentTasksFallbackModelsModalities$outboundSchema` instead. */
|
|
3067
|
+
export const outboundSchema =
|
|
3068
|
+
ListAgentTasksFallbackModelsModalities$outboundSchema;
|
|
3069
|
+
}
|
|
162
3070
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
3071
|
+
/** @internal */
|
|
3072
|
+
export const ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema:
|
|
3073
|
+
z.ZodType<
|
|
3074
|
+
ListAgentTasksFallbackModelsWebSearchOptions,
|
|
3075
|
+
z.ZodTypeDef,
|
|
3076
|
+
unknown
|
|
3077
|
+
> = z.object({
|
|
3078
|
+
enabled: z.boolean().optional(),
|
|
3079
|
+
});
|
|
170
3080
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
totalCost?: number | undefined;
|
|
175
|
-
promptTokens?: number | undefined;
|
|
176
|
-
completionTokens?: number | undefined;
|
|
177
|
-
totalTokens?: number | undefined;
|
|
3081
|
+
/** @internal */
|
|
3082
|
+
export type ListAgentTasksFallbackModelsWebSearchOptions$Outbound = {
|
|
3083
|
+
enabled?: boolean | undefined;
|
|
178
3084
|
};
|
|
179
3085
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Memory configuration for this execution
|
|
191
|
-
*/
|
|
192
|
-
memory?: ListAgentTasksMemory | undefined;
|
|
193
|
-
/**
|
|
194
|
-
* Execution-level metadata as key-value pairs
|
|
195
|
-
*/
|
|
196
|
-
metadata?: { [k: string]: any } | undefined;
|
|
197
|
-
state: ListAgentTasksState;
|
|
198
|
-
metrics: ListAgentTasksMetrics;
|
|
199
|
-
};
|
|
3086
|
+
/** @internal */
|
|
3087
|
+
export const ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema:
|
|
3088
|
+
z.ZodType<
|
|
3089
|
+
ListAgentTasksFallbackModelsWebSearchOptions$Outbound,
|
|
3090
|
+
z.ZodTypeDef,
|
|
3091
|
+
ListAgentTasksFallbackModelsWebSearchOptions
|
|
3092
|
+
> = z.object({
|
|
3093
|
+
enabled: z.boolean().optional(),
|
|
3094
|
+
});
|
|
200
3095
|
|
|
201
3096
|
/**
|
|
202
|
-
*
|
|
3097
|
+
* @internal
|
|
3098
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
203
3099
|
*/
|
|
204
|
-
export
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
3100
|
+
export namespace ListAgentTasksFallbackModelsWebSearchOptions$ {
|
|
3101
|
+
/** @deprecated use `ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema` instead. */
|
|
3102
|
+
export const inboundSchema =
|
|
3103
|
+
ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema;
|
|
3104
|
+
/** @deprecated use `ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema` instead. */
|
|
3105
|
+
export const outboundSchema =
|
|
3106
|
+
ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema;
|
|
3107
|
+
/** @deprecated use `ListAgentTasksFallbackModelsWebSearchOptions$Outbound` instead. */
|
|
3108
|
+
export type Outbound = ListAgentTasksFallbackModelsWebSearchOptions$Outbound;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
export function listAgentTasksFallbackModelsWebSearchOptionsToJSON(
|
|
3112
|
+
listAgentTasksFallbackModelsWebSearchOptions:
|
|
3113
|
+
ListAgentTasksFallbackModelsWebSearchOptions,
|
|
3114
|
+
): string {
|
|
3115
|
+
return JSON.stringify(
|
|
3116
|
+
ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema.parse(
|
|
3117
|
+
listAgentTasksFallbackModelsWebSearchOptions,
|
|
3118
|
+
),
|
|
3119
|
+
);
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
export function listAgentTasksFallbackModelsWebSearchOptionsFromJSON(
|
|
3123
|
+
jsonString: string,
|
|
3124
|
+
): SafeParseResult<
|
|
3125
|
+
ListAgentTasksFallbackModelsWebSearchOptions,
|
|
3126
|
+
SDKValidationError
|
|
3127
|
+
> {
|
|
3128
|
+
return safeParse(
|
|
3129
|
+
jsonString,
|
|
3130
|
+
(x) =>
|
|
3131
|
+
ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema.parse(
|
|
3132
|
+
JSON.parse(x),
|
|
3133
|
+
),
|
|
3134
|
+
`Failed to parse 'ListAgentTasksFallbackModelsWebSearchOptions' from JSON`,
|
|
3135
|
+
);
|
|
3136
|
+
}
|
|
208
3137
|
|
|
209
3138
|
/** @internal */
|
|
210
|
-
export const
|
|
211
|
-
|
|
3139
|
+
export const ListAgentTasksFallbackModelsParameters$inboundSchema: z.ZodType<
|
|
3140
|
+
ListAgentTasksFallbackModelsParameters,
|
|
3141
|
+
z.ZodTypeDef,
|
|
3142
|
+
unknown
|
|
3143
|
+
> = z.object({
|
|
3144
|
+
audio: z.nullable(
|
|
3145
|
+
z.lazy(() => ListAgentTasksFallbackModelsAudio$inboundSchema),
|
|
3146
|
+
).optional(),
|
|
3147
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
3148
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
3149
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
3150
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
3151
|
+
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
3152
|
+
n: z.nullable(z.number().int()).optional(),
|
|
3153
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
3154
|
+
response_format: z.union([
|
|
3155
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents3$inboundSchema),
|
|
3156
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents1$inboundSchema),
|
|
3157
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents2$inboundSchema),
|
|
3158
|
+
]).optional(),
|
|
3159
|
+
reasoning_effort: z.string().optional(),
|
|
3160
|
+
verbosity: z.string().optional(),
|
|
3161
|
+
seed: z.nullable(z.number()).optional(),
|
|
3162
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3163
|
+
stream_options: z.nullable(
|
|
3164
|
+
z.lazy(() => ListAgentTasksFallbackModelsStreamOptions$inboundSchema),
|
|
3165
|
+
).optional(),
|
|
3166
|
+
thinking: z.lazy(() => ListAgentTasksFallbackModelsThinking$inboundSchema)
|
|
3167
|
+
.optional(),
|
|
3168
|
+
temperature: z.nullable(z.number()).optional(),
|
|
3169
|
+
top_p: z.nullable(z.number()).optional(),
|
|
3170
|
+
top_k: z.nullable(z.number()).optional(),
|
|
3171
|
+
tool_choice: z.union([
|
|
3172
|
+
z.lazy(() => ListAgentTasksToolChoiceAgents2$inboundSchema),
|
|
3173
|
+
ListAgentTasksToolChoiceAgents1$inboundSchema,
|
|
3174
|
+
]).optional(),
|
|
3175
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
3176
|
+
modalities: z.nullable(
|
|
3177
|
+
z.array(ListAgentTasksFallbackModelsModalities$inboundSchema),
|
|
3178
|
+
).optional(),
|
|
3179
|
+
web_search_options: z.lazy(() =>
|
|
3180
|
+
ListAgentTasksFallbackModelsWebSearchOptions$inboundSchema
|
|
3181
|
+
).optional(),
|
|
3182
|
+
}).transform((v) => {
|
|
3183
|
+
return remap$(v, {
|
|
3184
|
+
"frequency_penalty": "frequencyPenalty",
|
|
3185
|
+
"max_tokens": "maxTokens",
|
|
3186
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
3187
|
+
"top_logprobs": "topLogprobs",
|
|
3188
|
+
"presence_penalty": "presencePenalty",
|
|
3189
|
+
"response_format": "responseFormat",
|
|
3190
|
+
"reasoning_effort": "reasoningEffort",
|
|
3191
|
+
"stream_options": "streamOptions",
|
|
3192
|
+
"top_p": "topP",
|
|
3193
|
+
"top_k": "topK",
|
|
3194
|
+
"tool_choice": "toolChoice",
|
|
3195
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
3196
|
+
"web_search_options": "webSearchOptions",
|
|
3197
|
+
});
|
|
3198
|
+
});
|
|
212
3199
|
|
|
213
3200
|
/** @internal */
|
|
214
|
-
export
|
|
215
|
-
|
|
3201
|
+
export type ListAgentTasksFallbackModelsParameters$Outbound = {
|
|
3202
|
+
audio?: ListAgentTasksFallbackModelsAudio$Outbound | null | undefined;
|
|
3203
|
+
frequency_penalty?: number | null | undefined;
|
|
3204
|
+
max_tokens?: number | null | undefined;
|
|
3205
|
+
max_completion_tokens?: number | null | undefined;
|
|
3206
|
+
logprobs?: boolean | null | undefined;
|
|
3207
|
+
top_logprobs?: number | null | undefined;
|
|
3208
|
+
n?: number | null | undefined;
|
|
3209
|
+
presence_penalty?: number | null | undefined;
|
|
3210
|
+
response_format?:
|
|
3211
|
+
| ListAgentTasksResponseFormatAgents3$Outbound
|
|
3212
|
+
| ListAgentTasksResponseFormatAgents1$Outbound
|
|
3213
|
+
| ListAgentTasksResponseFormatAgents2$Outbound
|
|
3214
|
+
| undefined;
|
|
3215
|
+
reasoning_effort?: string | undefined;
|
|
3216
|
+
verbosity?: string | undefined;
|
|
3217
|
+
seed?: number | null | undefined;
|
|
3218
|
+
stop?: string | Array<string> | null | undefined;
|
|
3219
|
+
stream_options?:
|
|
3220
|
+
| ListAgentTasksFallbackModelsStreamOptions$Outbound
|
|
3221
|
+
| null
|
|
3222
|
+
| undefined;
|
|
3223
|
+
thinking?: ListAgentTasksFallbackModelsThinking$Outbound | undefined;
|
|
3224
|
+
temperature?: number | null | undefined;
|
|
3225
|
+
top_p?: number | null | undefined;
|
|
3226
|
+
top_k?: number | null | undefined;
|
|
3227
|
+
tool_choice?: ListAgentTasksToolChoiceAgents2$Outbound | string | undefined;
|
|
3228
|
+
parallel_tool_calls?: boolean | undefined;
|
|
3229
|
+
modalities?: Array<string> | null | undefined;
|
|
3230
|
+
web_search_options?:
|
|
3231
|
+
| ListAgentTasksFallbackModelsWebSearchOptions$Outbound
|
|
3232
|
+
| undefined;
|
|
3233
|
+
};
|
|
3234
|
+
|
|
3235
|
+
/** @internal */
|
|
3236
|
+
export const ListAgentTasksFallbackModelsParameters$outboundSchema: z.ZodType<
|
|
3237
|
+
ListAgentTasksFallbackModelsParameters$Outbound,
|
|
3238
|
+
z.ZodTypeDef,
|
|
3239
|
+
ListAgentTasksFallbackModelsParameters
|
|
3240
|
+
> = z.object({
|
|
3241
|
+
audio: z.nullable(
|
|
3242
|
+
z.lazy(() => ListAgentTasksFallbackModelsAudio$outboundSchema),
|
|
3243
|
+
).optional(),
|
|
3244
|
+
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3245
|
+
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3246
|
+
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
3247
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
3248
|
+
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
3249
|
+
n: z.nullable(z.number().int()).optional(),
|
|
3250
|
+
presencePenalty: z.nullable(z.number()).optional(),
|
|
3251
|
+
responseFormat: z.union([
|
|
3252
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents3$outboundSchema),
|
|
3253
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents1$outboundSchema),
|
|
3254
|
+
z.lazy(() => ListAgentTasksResponseFormatAgents2$outboundSchema),
|
|
3255
|
+
]).optional(),
|
|
3256
|
+
reasoningEffort: z.string().optional(),
|
|
3257
|
+
verbosity: z.string().optional(),
|
|
3258
|
+
seed: z.nullable(z.number()).optional(),
|
|
3259
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3260
|
+
streamOptions: z.nullable(
|
|
3261
|
+
z.lazy(() => ListAgentTasksFallbackModelsStreamOptions$outboundSchema),
|
|
3262
|
+
).optional(),
|
|
3263
|
+
thinking: z.lazy(() => ListAgentTasksFallbackModelsThinking$outboundSchema)
|
|
3264
|
+
.optional(),
|
|
3265
|
+
temperature: z.nullable(z.number()).optional(),
|
|
3266
|
+
topP: z.nullable(z.number()).optional(),
|
|
3267
|
+
topK: z.nullable(z.number()).optional(),
|
|
3268
|
+
toolChoice: z.union([
|
|
3269
|
+
z.lazy(() => ListAgentTasksToolChoiceAgents2$outboundSchema),
|
|
3270
|
+
ListAgentTasksToolChoiceAgents1$outboundSchema,
|
|
3271
|
+
]).optional(),
|
|
3272
|
+
parallelToolCalls: z.boolean().optional(),
|
|
3273
|
+
modalities: z.nullable(
|
|
3274
|
+
z.array(ListAgentTasksFallbackModelsModalities$outboundSchema),
|
|
3275
|
+
).optional(),
|
|
3276
|
+
webSearchOptions: z.lazy(() =>
|
|
3277
|
+
ListAgentTasksFallbackModelsWebSearchOptions$outboundSchema
|
|
3278
|
+
).optional(),
|
|
3279
|
+
}).transform((v) => {
|
|
3280
|
+
return remap$(v, {
|
|
3281
|
+
frequencyPenalty: "frequency_penalty",
|
|
3282
|
+
maxTokens: "max_tokens",
|
|
3283
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
3284
|
+
topLogprobs: "top_logprobs",
|
|
3285
|
+
presencePenalty: "presence_penalty",
|
|
3286
|
+
responseFormat: "response_format",
|
|
3287
|
+
reasoningEffort: "reasoning_effort",
|
|
3288
|
+
streamOptions: "stream_options",
|
|
3289
|
+
topP: "top_p",
|
|
3290
|
+
topK: "top_k",
|
|
3291
|
+
toolChoice: "tool_choice",
|
|
3292
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
3293
|
+
webSearchOptions: "web_search_options",
|
|
3294
|
+
});
|
|
3295
|
+
});
|
|
216
3296
|
|
|
217
3297
|
/**
|
|
218
3298
|
* @internal
|
|
219
3299
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
220
3300
|
*/
|
|
221
|
-
export namespace
|
|
222
|
-
/** @deprecated use `
|
|
223
|
-
export const inboundSchema =
|
|
224
|
-
|
|
225
|
-
|
|
3301
|
+
export namespace ListAgentTasksFallbackModelsParameters$ {
|
|
3302
|
+
/** @deprecated use `ListAgentTasksFallbackModelsParameters$inboundSchema` instead. */
|
|
3303
|
+
export const inboundSchema =
|
|
3304
|
+
ListAgentTasksFallbackModelsParameters$inboundSchema;
|
|
3305
|
+
/** @deprecated use `ListAgentTasksFallbackModelsParameters$outboundSchema` instead. */
|
|
3306
|
+
export const outboundSchema =
|
|
3307
|
+
ListAgentTasksFallbackModelsParameters$outboundSchema;
|
|
3308
|
+
/** @deprecated use `ListAgentTasksFallbackModelsParameters$Outbound` instead. */
|
|
3309
|
+
export type Outbound = ListAgentTasksFallbackModelsParameters$Outbound;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
export function listAgentTasksFallbackModelsParametersToJSON(
|
|
3313
|
+
listAgentTasksFallbackModelsParameters:
|
|
3314
|
+
ListAgentTasksFallbackModelsParameters,
|
|
3315
|
+
): string {
|
|
3316
|
+
return JSON.stringify(
|
|
3317
|
+
ListAgentTasksFallbackModelsParameters$outboundSchema.parse(
|
|
3318
|
+
listAgentTasksFallbackModelsParameters,
|
|
3319
|
+
),
|
|
3320
|
+
);
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
export function listAgentTasksFallbackModelsParametersFromJSON(
|
|
3324
|
+
jsonString: string,
|
|
3325
|
+
): SafeParseResult<ListAgentTasksFallbackModelsParameters, SDKValidationError> {
|
|
3326
|
+
return safeParse(
|
|
3327
|
+
jsonString,
|
|
3328
|
+
(x) =>
|
|
3329
|
+
ListAgentTasksFallbackModelsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
3330
|
+
`Failed to parse 'ListAgentTasksFallbackModelsParameters' from JSON`,
|
|
3331
|
+
);
|
|
226
3332
|
}
|
|
227
3333
|
|
|
228
3334
|
/** @internal */
|
|
229
|
-
export const
|
|
230
|
-
|
|
3335
|
+
export const ListAgentTasksFallbackModels2$inboundSchema: z.ZodType<
|
|
3336
|
+
ListAgentTasksFallbackModels2,
|
|
231
3337
|
z.ZodTypeDef,
|
|
232
3338
|
unknown
|
|
233
3339
|
> = z.object({
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
status: Status$inboundSchema.optional(),
|
|
3340
|
+
id: z.string(),
|
|
3341
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
3342
|
+
parameters: z.lazy(() => ListAgentTasksFallbackModelsParameters$inboundSchema)
|
|
3343
|
+
.optional(),
|
|
239
3344
|
}).transform((v) => {
|
|
240
3345
|
return remap$(v, {
|
|
241
|
-
"
|
|
242
|
-
"starting_after": "startingAfter",
|
|
243
|
-
"ending_before": "endingBefore",
|
|
3346
|
+
"integration_id": "integrationId",
|
|
244
3347
|
});
|
|
245
3348
|
});
|
|
246
3349
|
|
|
247
3350
|
/** @internal */
|
|
248
|
-
export type
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
ending_before?: string | undefined;
|
|
253
|
-
status?: string | undefined;
|
|
3351
|
+
export type ListAgentTasksFallbackModels2$Outbound = {
|
|
3352
|
+
id: string;
|
|
3353
|
+
integration_id?: string | null | undefined;
|
|
3354
|
+
parameters?: ListAgentTasksFallbackModelsParameters$Outbound | undefined;
|
|
254
3355
|
};
|
|
255
3356
|
|
|
256
3357
|
/** @internal */
|
|
257
|
-
export const
|
|
258
|
-
|
|
3358
|
+
export const ListAgentTasksFallbackModels2$outboundSchema: z.ZodType<
|
|
3359
|
+
ListAgentTasksFallbackModels2$Outbound,
|
|
259
3360
|
z.ZodTypeDef,
|
|
260
|
-
|
|
3361
|
+
ListAgentTasksFallbackModels2
|
|
261
3362
|
> = z.object({
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
3363
|
+
id: z.string(),
|
|
3364
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
3365
|
+
parameters: z.lazy(() =>
|
|
3366
|
+
ListAgentTasksFallbackModelsParameters$outboundSchema
|
|
3367
|
+
).optional(),
|
|
267
3368
|
}).transform((v) => {
|
|
268
3369
|
return remap$(v, {
|
|
269
|
-
|
|
270
|
-
startingAfter: "starting_after",
|
|
271
|
-
endingBefore: "ending_before",
|
|
3370
|
+
integrationId: "integration_id",
|
|
272
3371
|
});
|
|
273
3372
|
});
|
|
274
3373
|
|
|
@@ -276,30 +3375,90 @@ export const ListAgentTasksRequest$outboundSchema: z.ZodType<
|
|
|
276
3375
|
* @internal
|
|
277
3376
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
278
3377
|
*/
|
|
279
|
-
export namespace
|
|
280
|
-
/** @deprecated use `
|
|
281
|
-
export const inboundSchema =
|
|
282
|
-
/** @deprecated use `
|
|
283
|
-
export const outboundSchema =
|
|
284
|
-
/** @deprecated use `
|
|
285
|
-
export type Outbound =
|
|
3378
|
+
export namespace ListAgentTasksFallbackModels2$ {
|
|
3379
|
+
/** @deprecated use `ListAgentTasksFallbackModels2$inboundSchema` instead. */
|
|
3380
|
+
export const inboundSchema = ListAgentTasksFallbackModels2$inboundSchema;
|
|
3381
|
+
/** @deprecated use `ListAgentTasksFallbackModels2$outboundSchema` instead. */
|
|
3382
|
+
export const outboundSchema = ListAgentTasksFallbackModels2$outboundSchema;
|
|
3383
|
+
/** @deprecated use `ListAgentTasksFallbackModels2$Outbound` instead. */
|
|
3384
|
+
export type Outbound = ListAgentTasksFallbackModels2$Outbound;
|
|
286
3385
|
}
|
|
287
3386
|
|
|
288
|
-
export function
|
|
289
|
-
|
|
3387
|
+
export function listAgentTasksFallbackModels2ToJSON(
|
|
3388
|
+
listAgentTasksFallbackModels2: ListAgentTasksFallbackModels2,
|
|
290
3389
|
): string {
|
|
291
3390
|
return JSON.stringify(
|
|
292
|
-
|
|
3391
|
+
ListAgentTasksFallbackModels2$outboundSchema.parse(
|
|
3392
|
+
listAgentTasksFallbackModels2,
|
|
3393
|
+
),
|
|
293
3394
|
);
|
|
294
3395
|
}
|
|
295
3396
|
|
|
296
|
-
export function
|
|
3397
|
+
export function listAgentTasksFallbackModels2FromJSON(
|
|
297
3398
|
jsonString: string,
|
|
298
|
-
): SafeParseResult<
|
|
3399
|
+
): SafeParseResult<ListAgentTasksFallbackModels2, SDKValidationError> {
|
|
299
3400
|
return safeParse(
|
|
300
3401
|
jsonString,
|
|
301
|
-
(x) =>
|
|
302
|
-
`Failed to parse '
|
|
3402
|
+
(x) => ListAgentTasksFallbackModels2$inboundSchema.parse(JSON.parse(x)),
|
|
3403
|
+
`Failed to parse 'ListAgentTasksFallbackModels2' from JSON`,
|
|
3404
|
+
);
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
/** @internal */
|
|
3408
|
+
export const ListAgentTasksFallbackModels$inboundSchema: z.ZodType<
|
|
3409
|
+
ListAgentTasksFallbackModels,
|
|
3410
|
+
z.ZodTypeDef,
|
|
3411
|
+
unknown
|
|
3412
|
+
> = z.union([
|
|
3413
|
+
z.lazy(() => ListAgentTasksFallbackModels2$inboundSchema),
|
|
3414
|
+
z.string(),
|
|
3415
|
+
]);
|
|
3416
|
+
|
|
3417
|
+
/** @internal */
|
|
3418
|
+
export type ListAgentTasksFallbackModels$Outbound =
|
|
3419
|
+
| ListAgentTasksFallbackModels2$Outbound
|
|
3420
|
+
| string;
|
|
3421
|
+
|
|
3422
|
+
/** @internal */
|
|
3423
|
+
export const ListAgentTasksFallbackModels$outboundSchema: z.ZodType<
|
|
3424
|
+
ListAgentTasksFallbackModels$Outbound,
|
|
3425
|
+
z.ZodTypeDef,
|
|
3426
|
+
ListAgentTasksFallbackModels
|
|
3427
|
+
> = z.union([
|
|
3428
|
+
z.lazy(() => ListAgentTasksFallbackModels2$outboundSchema),
|
|
3429
|
+
z.string(),
|
|
3430
|
+
]);
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* @internal
|
|
3434
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3435
|
+
*/
|
|
3436
|
+
export namespace ListAgentTasksFallbackModels$ {
|
|
3437
|
+
/** @deprecated use `ListAgentTasksFallbackModels$inboundSchema` instead. */
|
|
3438
|
+
export const inboundSchema = ListAgentTasksFallbackModels$inboundSchema;
|
|
3439
|
+
/** @deprecated use `ListAgentTasksFallbackModels$outboundSchema` instead. */
|
|
3440
|
+
export const outboundSchema = ListAgentTasksFallbackModels$outboundSchema;
|
|
3441
|
+
/** @deprecated use `ListAgentTasksFallbackModels$Outbound` instead. */
|
|
3442
|
+
export type Outbound = ListAgentTasksFallbackModels$Outbound;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
export function listAgentTasksFallbackModelsToJSON(
|
|
3446
|
+
listAgentTasksFallbackModels: ListAgentTasksFallbackModels,
|
|
3447
|
+
): string {
|
|
3448
|
+
return JSON.stringify(
|
|
3449
|
+
ListAgentTasksFallbackModels$outboundSchema.parse(
|
|
3450
|
+
listAgentTasksFallbackModels,
|
|
3451
|
+
),
|
|
3452
|
+
);
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
export function listAgentTasksFallbackModelsFromJSON(
|
|
3456
|
+
jsonString: string,
|
|
3457
|
+
): SafeParseResult<ListAgentTasksFallbackModels, SDKValidationError> {
|
|
3458
|
+
return safeParse(
|
|
3459
|
+
jsonString,
|
|
3460
|
+
(x) => ListAgentTasksFallbackModels$inboundSchema.parse(JSON.parse(x)),
|
|
3461
|
+
`Failed to parse 'ListAgentTasksFallbackModels' from JSON`,
|
|
303
3462
|
);
|
|
304
3463
|
}
|
|
305
3464
|
|
|
@@ -311,14 +3470,17 @@ export const ListAgentTasksModel$inboundSchema: z.ZodType<
|
|
|
311
3470
|
> = z.object({
|
|
312
3471
|
id: z.string(),
|
|
313
3472
|
integration_id: z.nullable(z.string()).optional(),
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
3473
|
+
parameters: z.lazy(() => ListAgentTasksParameters$inboundSchema).optional(),
|
|
3474
|
+
fallback_models: z.nullable(
|
|
3475
|
+
z.array(z.union([
|
|
3476
|
+
z.lazy(() => ListAgentTasksFallbackModels2$inboundSchema),
|
|
3477
|
+
z.string(),
|
|
3478
|
+
])),
|
|
3479
|
+
).optional(),
|
|
317
3480
|
}).transform((v) => {
|
|
318
3481
|
return remap$(v, {
|
|
319
3482
|
"integration_id": "integrationId",
|
|
320
3483
|
"fallback_models": "fallbackModels",
|
|
321
|
-
"max_tokens": "maxTokens",
|
|
322
3484
|
});
|
|
323
3485
|
});
|
|
324
3486
|
|
|
@@ -326,9 +3488,11 @@ export const ListAgentTasksModel$inboundSchema: z.ZodType<
|
|
|
326
3488
|
export type ListAgentTasksModel$Outbound = {
|
|
327
3489
|
id: string;
|
|
328
3490
|
integration_id?: string | null | undefined;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
3491
|
+
parameters?: ListAgentTasksParameters$Outbound | undefined;
|
|
3492
|
+
fallback_models?:
|
|
3493
|
+
| Array<ListAgentTasksFallbackModels2$Outbound | string>
|
|
3494
|
+
| null
|
|
3495
|
+
| undefined;
|
|
332
3496
|
};
|
|
333
3497
|
|
|
334
3498
|
/** @internal */
|
|
@@ -339,14 +3503,17 @@ export const ListAgentTasksModel$outboundSchema: z.ZodType<
|
|
|
339
3503
|
> = z.object({
|
|
340
3504
|
id: z.string(),
|
|
341
3505
|
integrationId: z.nullable(z.string()).optional(),
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
3506
|
+
parameters: z.lazy(() => ListAgentTasksParameters$outboundSchema).optional(),
|
|
3507
|
+
fallbackModels: z.nullable(
|
|
3508
|
+
z.array(z.union([
|
|
3509
|
+
z.lazy(() => ListAgentTasksFallbackModels2$outboundSchema),
|
|
3510
|
+
z.string(),
|
|
3511
|
+
])),
|
|
3512
|
+
).optional(),
|
|
345
3513
|
}).transform((v) => {
|
|
346
3514
|
return remap$(v, {
|
|
347
3515
|
integrationId: "integration_id",
|
|
348
3516
|
fallbackModels: "fallback_models",
|
|
349
|
-
maxTokens: "max_tokens",
|
|
350
3517
|
});
|
|
351
3518
|
});
|
|
352
3519
|
|