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