@orq-ai/node 4.0.0-rc.20 → 4.0.0-rc.21

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.
Files changed (161) hide show
  1. package/README.md +25 -21
  2. package/bin/mcp-server.js +4356 -3411
  3. package/bin/mcp-server.js.map +54 -50
  4. package/docs/sdks/agents/README.md +83 -3
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsDuplicate.d.ts +18 -0
  7. package/funcs/agentsDuplicate.d.ts.map +1 -0
  8. package/funcs/agentsDuplicate.js +123 -0
  9. package/funcs/agentsDuplicate.js.map +1 -0
  10. package/funcs/agentsList.d.ts +1 -1
  11. package/funcs/agentsList.js +1 -1
  12. package/jsr.json +1 -1
  13. package/lib/config.d.ts +3 -3
  14. package/lib/config.js +3 -3
  15. package/mcp-server/mcp-server.js +1 -1
  16. package/mcp-server/server.d.ts.map +1 -1
  17. package/mcp-server/server.js +3 -1
  18. package/mcp-server/server.js.map +1 -1
  19. package/mcp-server/tools/agentsDuplicate.d.ts +8 -0
  20. package/mcp-server/tools/agentsDuplicate.d.ts.map +1 -0
  21. package/mcp-server/tools/agentsDuplicate.js +64 -0
  22. package/mcp-server/tools/agentsDuplicate.js.map +1 -0
  23. package/mcp-server/tools/agentsList.js +1 -1
  24. package/mcp-server/tools/agentsList.js.map +1 -1
  25. package/models/errors/duplicateagent.d.ts +55 -0
  26. package/models/errors/duplicateagent.d.ts.map +1 -0
  27. package/models/errors/duplicateagent.js +106 -0
  28. package/models/errors/duplicateagent.js.map +1 -0
  29. package/models/errors/index.d.ts +1 -0
  30. package/models/errors/index.d.ts.map +1 -1
  31. package/models/errors/index.js +1 -0
  32. package/models/errors/index.js.map +1 -1
  33. package/models/operations/createagent.d.ts +19 -10
  34. package/models/operations/createagent.d.ts.map +1 -1
  35. package/models/operations/createagent.js +14 -11
  36. package/models/operations/createagent.js.map +1 -1
  37. package/models/operations/createbudget.js +2 -2
  38. package/models/operations/createcontact.js +2 -2
  39. package/models/operations/createdataset.js +2 -2
  40. package/models/operations/createdatasetitem.js +8 -8
  41. package/models/operations/createdatasource.js +2 -2
  42. package/models/operations/createeval.js +28 -28
  43. package/models/operations/createtool.js +10 -10
  44. package/models/operations/duplicateagent.d.ts +1267 -0
  45. package/models/operations/duplicateagent.d.ts.map +1 -0
  46. package/models/operations/duplicateagent.js +1278 -0
  47. package/models/operations/duplicateagent.js.map +1 -0
  48. package/models/operations/duplicatetool.js +10 -10
  49. package/models/operations/fileget.js +2 -2
  50. package/models/operations/filelist.js +2 -2
  51. package/models/operations/fileupload.js +2 -2
  52. package/models/operations/getagent.d.ts +12 -9
  53. package/models/operations/getagent.d.ts.map +1 -1
  54. package/models/operations/getagent.js +11 -11
  55. package/models/operations/getagent.js.map +1 -1
  56. package/models/operations/getagenttask.d.ts +321 -4
  57. package/models/operations/getagenttask.d.ts.map +1 -1
  58. package/models/operations/getagenttask.js +351 -5
  59. package/models/operations/getagenttask.js.map +1 -1
  60. package/models/operations/getalltools.js +10 -10
  61. package/models/operations/getbudget.js +2 -2
  62. package/models/operations/getevals.js +28 -28
  63. package/models/operations/index.d.ts +1 -0
  64. package/models/operations/index.d.ts.map +1 -1
  65. package/models/operations/index.js +1 -0
  66. package/models/operations/index.js.map +1 -1
  67. package/models/operations/invokeagent.d.ts +231 -2
  68. package/models/operations/invokeagent.d.ts.map +1 -1
  69. package/models/operations/invokeagent.js +261 -4
  70. package/models/operations/invokeagent.js.map +1 -1
  71. package/models/operations/listagents.d.ts +14 -11
  72. package/models/operations/listagents.d.ts.map +1 -1
  73. package/models/operations/listagents.js +14 -13
  74. package/models/operations/listagents.js.map +1 -1
  75. package/models/operations/listagenttasks.d.ts +250 -1094
  76. package/models/operations/listagenttasks.d.ts.map +1 -1
  77. package/models/operations/listagenttasks.js +276 -1117
  78. package/models/operations/listagenttasks.js.map +1 -1
  79. package/models/operations/listbudgets.js +2 -2
  80. package/models/operations/listcontacts.js +2 -2
  81. package/models/operations/listdatasetdatapoints.js +8 -8
  82. package/models/operations/listdatasets.js +2 -2
  83. package/models/operations/listdatasources.js +2 -2
  84. package/models/operations/retrievecontact.js +2 -2
  85. package/models/operations/retrievedatapoint.js +8 -8
  86. package/models/operations/retrievedataset.js +2 -2
  87. package/models/operations/retrievedatasource.js +2 -2
  88. package/models/operations/retrievetool.js +10 -10
  89. package/models/operations/runagent.d.ts +232 -3
  90. package/models/operations/runagent.d.ts.map +1 -1
  91. package/models/operations/runagent.js +267 -8
  92. package/models/operations/runagent.js.map +1 -1
  93. package/models/operations/streamrunagent.d.ts +1 -1
  94. package/models/operations/updateagent.d.ts +41 -9
  95. package/models/operations/updateagent.d.ts.map +1 -1
  96. package/models/operations/updateagent.js +34 -16
  97. package/models/operations/updateagent.js.map +1 -1
  98. package/models/operations/updatebudget.js +2 -2
  99. package/models/operations/updatecontact.js +2 -2
  100. package/models/operations/updatedatapoint.js +8 -8
  101. package/models/operations/updatedataset.js +2 -2
  102. package/models/operations/updatedatasource.js +2 -2
  103. package/models/operations/updateeval.js +28 -28
  104. package/models/operations/updatetool.js +10 -10
  105. package/package.json +1 -1
  106. package/sdk/agents.d.ts +8 -1
  107. package/sdk/agents.d.ts.map +1 -1
  108. package/sdk/agents.js +11 -1
  109. package/sdk/agents.js.map +1 -1
  110. package/src/funcs/agentsDuplicate.ts +179 -0
  111. package/src/funcs/agentsList.ts +1 -1
  112. package/src/lib/config.ts +3 -3
  113. package/src/mcp-server/mcp-server.ts +1 -1
  114. package/src/mcp-server/server.ts +3 -1
  115. package/src/mcp-server/tools/agentsDuplicate.ts +37 -0
  116. package/src/mcp-server/tools/agentsList.ts +1 -1
  117. package/src/models/errors/duplicateagent.ts +128 -0
  118. package/src/models/errors/index.ts +1 -0
  119. package/src/models/operations/createagent.ts +33 -16
  120. package/src/models/operations/createbudget.ts +2 -2
  121. package/src/models/operations/createcontact.ts +2 -2
  122. package/src/models/operations/createdataset.ts +2 -2
  123. package/src/models/operations/createdatasetitem.ts +8 -8
  124. package/src/models/operations/createdatasource.ts +2 -2
  125. package/src/models/operations/createeval.ts +28 -28
  126. package/src/models/operations/createtool.ts +10 -10
  127. package/src/models/operations/duplicateagent.ts +3280 -0
  128. package/src/models/operations/duplicatetool.ts +10 -10
  129. package/src/models/operations/fileget.ts +2 -2
  130. package/src/models/operations/filelist.ts +2 -2
  131. package/src/models/operations/fileupload.ts +2 -2
  132. package/src/models/operations/getagent.ts +29 -17
  133. package/src/models/operations/getagenttask.ts +750 -8
  134. package/src/models/operations/getalltools.ts +10 -10
  135. package/src/models/operations/getbudget.ts +2 -2
  136. package/src/models/operations/getevals.ts +28 -28
  137. package/src/models/operations/index.ts +1 -0
  138. package/src/models/operations/invokeagent.ts +632 -4
  139. package/src/models/operations/listagents.ts +32 -21
  140. package/src/models/operations/listagenttasks.ts +640 -2908
  141. package/src/models/operations/listbudgets.ts +2 -2
  142. package/src/models/operations/listcontacts.ts +2 -2
  143. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  144. package/src/models/operations/listdatasets.ts +2 -2
  145. package/src/models/operations/listdatasources.ts +2 -2
  146. package/src/models/operations/retrievecontact.ts +2 -2
  147. package/src/models/operations/retrievedatapoint.ts +8 -8
  148. package/src/models/operations/retrievedataset.ts +2 -2
  149. package/src/models/operations/retrievedatasource.ts +2 -2
  150. package/src/models/operations/retrievetool.ts +10 -10
  151. package/src/models/operations/runagent.ts +606 -5
  152. package/src/models/operations/streamrunagent.ts +1 -1
  153. package/src/models/operations/updateagent.ts +72 -18
  154. package/src/models/operations/updatebudget.ts +2 -2
  155. package/src/models/operations/updatecontact.ts +2 -2
  156. package/src/models/operations/updatedatapoint.ts +8 -8
  157. package/src/models/operations/updatedataset.ts +2 -2
  158. package/src/models/operations/updatedatasource.ts +2 -2
  159. package/src/models/operations/updateeval.ts +28 -28
  160. package/src/models/operations/updatetool.ts +10 -10
  161. package/src/sdk/agents.ts +19 -1
@@ -6,10 +6,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
6
6
  * Comma-separated list of task statuses to filter by. Available values: inactive, approval_required, in_progress, errored
7
7
  */
8
8
  export declare const Status: {
9
- readonly Inactive: "inactive";
10
- readonly ApprovalRequired: "approval_required";
11
- readonly InProgress: "in_progress";
12
- readonly Errored: "errored";
9
+ readonly Submitted: "submitted";
10
+ readonly Working: "working";
11
+ readonly InputRequired: "input-required";
12
+ readonly AuthRequired: "auth-required";
13
+ readonly Completed: "completed";
14
+ readonly Failed: "failed";
15
+ readonly Canceled: "canceled";
16
+ readonly Rejected: "rejected";
13
17
  };
14
18
  /**
15
19
  * Comma-separated list of task statuses to filter by. Available values: inactive, approval_required, in_progress, errored
@@ -37,689 +41,163 @@ export type ListAgentTasksRequest = {
37
41
  */
38
42
  status?: Status | undefined;
39
43
  };
40
- /**
41
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
42
- */
43
- export declare const ListAgentTasksVoice: {
44
- readonly Alloy: "alloy";
45
- readonly Echo: "echo";
46
- readonly Fable: "fable";
47
- readonly Onyx: "onyx";
48
- readonly Nova: "nova";
49
- readonly Shimmer: "shimmer";
50
- };
51
- /**
52
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
53
- */
54
- export type ListAgentTasksVoice = ClosedEnum<typeof ListAgentTasksVoice>;
55
- /**
56
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
57
- */
58
- export declare const ListAgentTasksFormat: {
59
- readonly Wav: "wav";
60
- readonly Mp3: "mp3";
61
- readonly Flac: "flac";
62
- readonly Opus: "opus";
63
- readonly Pcm16: "pcm16";
64
- };
65
- /**
66
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
67
- */
68
- export type ListAgentTasksFormat = ClosedEnum<typeof ListAgentTasksFormat>;
69
- /**
70
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
71
- */
72
- export type ListAgentTasksAudio = {
73
- /**
74
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
75
- */
76
- voice: ListAgentTasksVoice;
77
- /**
78
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
79
- */
80
- format: ListAgentTasksFormat;
44
+ export declare const ListAgentTasksKind: {
45
+ readonly Task: "task";
81
46
  };
82
- export declare const ListAgentTasksResponseFormatAgentsResponseType: {
83
- readonly JsonSchema: "json_schema";
47
+ export type ListAgentTasksKind = ClosedEnum<typeof ListAgentTasksKind>;
48
+ export type ListAgentTasksStatus = {
49
+ state: string;
50
+ timestamp?: string | undefined;
51
+ message?: any | undefined;
84
52
  };
85
- export type ListAgentTasksResponseFormatAgentsResponseType = ClosedEnum<typeof ListAgentTasksResponseFormatAgentsResponseType>;
86
- export type ListAgentTasksResponseFormatJsonSchema = {
87
- /**
88
- * A description of what the response format is for, used by the model to determine how to respond in the format.
89
- */
90
- description?: string | undefined;
91
- /**
92
- * 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.
93
- */
94
- name: string;
95
- /**
96
- * The schema for the response format, described as a JSON Schema object.
97
- */
98
- schema?: any | undefined;
99
- /**
100
- * 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.
101
- */
102
- strict?: boolean | undefined;
53
+ export declare const ListAgentTasksAgentsKind: {
54
+ readonly Message: "message";
103
55
  };
56
+ export type ListAgentTasksAgentsKind = ClosedEnum<typeof ListAgentTasksAgentsKind>;
104
57
  /**
105
- * @remarks
106
- *
107
- * JSON Schema response format. Used to generate structured JSON responses
58
+ * Extended A2A message role
108
59
  */
109
- export type ListAgentTasksResponseFormatAgentsJSONSchema = {
110
- type: ListAgentTasksResponseFormatAgentsResponseType;
111
- jsonSchema: ListAgentTasksResponseFormatJsonSchema;
112
- };
113
- export declare const ListAgentTasksResponseFormatAgentsType: {
114
- readonly JsonObject: "json_object";
60
+ export declare const ListAgentTasksRole: {
61
+ readonly User: "user";
62
+ readonly Agent: "agent";
63
+ readonly Tool: "tool";
64
+ readonly System: "system";
115
65
  };
116
- export type ListAgentTasksResponseFormatAgentsType = ClosedEnum<typeof ListAgentTasksResponseFormatAgentsType>;
117
66
  /**
118
- * @remarks
119
- *
120
- * 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.
67
+ * Extended A2A message role
121
68
  */
122
- export type ListAgentTasksResponseFormatJSONObject = {
123
- type: ListAgentTasksResponseFormatAgentsType;
69
+ export type ListAgentTasksRole = ClosedEnum<typeof ListAgentTasksRole>;
70
+ export declare const ListAgentTasksPartsAgentsResponse200ApplicationJSONKind: {
71
+ readonly ToolResult: "tool_result";
124
72
  };
125
- export declare const ListAgentTasksResponseFormatType: {
126
- readonly Text: "text";
73
+ export type ListAgentTasksPartsAgentsResponse200ApplicationJSONKind = ClosedEnum<typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONKind>;
74
+ export type ListAgentTasksParts5 = {
75
+ kind: ListAgentTasksPartsAgentsResponse200ApplicationJSONKind;
76
+ toolCallId: string;
77
+ result?: any | undefined;
78
+ metadata?: {
79
+ [k: string]: any;
80
+ } | undefined;
127
81
  };
128
- export type ListAgentTasksResponseFormatType = ClosedEnum<typeof ListAgentTasksResponseFormatType>;
129
- /**
130
- * @remarks
131
- *
132
- * Default response format. Used to generate text responses
133
- */
134
- export type ListAgentTasksResponseFormatText = {
135
- type: ListAgentTasksResponseFormatType;
82
+ export declare const ListAgentTasksPartsAgentsResponse200Kind: {
83
+ readonly ToolCall: "tool_call";
136
84
  };
137
- /**
138
- * An object specifying the format that the model must output
139
- */
140
- export type ListAgentTasksResponseFormat = ListAgentTasksResponseFormatAgentsJSONSchema | ListAgentTasksResponseFormatText | ListAgentTasksResponseFormatJSONObject;
141
- /**
142
- * Up to 4 sequences where the API will stop generating further tokens.
143
- */
144
- export type ListAgentTasksStop = string | Array<string>;
145
- /**
146
- * Options for streaming response. Only set this when you set stream: true.
147
- */
148
- export type ListAgentTasksStreamOptions = {
149
- /**
150
- * 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.
151
- */
152
- includeUsage?: boolean | undefined;
85
+ export type ListAgentTasksPartsAgentsResponse200Kind = ClosedEnum<typeof ListAgentTasksPartsAgentsResponse200Kind>;
86
+ export type ListAgentTasksParts4 = {
87
+ kind: ListAgentTasksPartsAgentsResponse200Kind;
88
+ toolName: string;
89
+ toolCallId: string;
90
+ arguments: {
91
+ [k: string]: any;
92
+ };
93
+ metadata?: {
94
+ [k: string]: any;
95
+ } | undefined;
153
96
  };
154
- /**
155
- * Enables or disables the thinking mode capability
156
- */
157
- export declare const ListAgentTasksType: {
158
- readonly Enabled: "enabled";
159
- readonly Disabled: "disabled";
97
+ export declare const ListAgentTasksPartsAgentsResponseKind: {
98
+ readonly File: "file";
160
99
  };
100
+ export type ListAgentTasksPartsAgentsResponseKind = ClosedEnum<typeof ListAgentTasksPartsAgentsResponseKind>;
161
101
  /**
162
- * Enables or disables the thinking mode capability
102
+ * File in URI format. Check in the model's documentation for the supported mime types for the URI format
163
103
  */
164
- export type ListAgentTasksType = ClosedEnum<typeof ListAgentTasksType>;
165
- export type ListAgentTasksThinking = {
104
+ export type ListAgentTasksFileFileInURIFormat = {
166
105
  /**
167
- * Enables or disables the thinking mode capability
106
+ * URL for the File content
168
107
  */
169
- type: ListAgentTasksType;
108
+ uri: string;
170
109
  /**
171
- * 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`.
110
+ * Optional mimeType for the file
172
111
  */
173
- budgetTokens: number;
174
- };
175
- /**
176
- * The type of the tool. Currently, only function is supported.
177
- */
178
- export declare const ListAgentTasksToolChoiceType: {
179
- readonly Function: "function";
180
- };
181
- /**
182
- * The type of the tool. Currently, only function is supported.
183
- */
184
- export type ListAgentTasksToolChoiceType = ClosedEnum<typeof ListAgentTasksToolChoiceType>;
185
- export type ListAgentTasksToolChoiceFunction = {
112
+ mimeType?: string | undefined;
186
113
  /**
187
- * The name of the function to call.
114
+ * Optional name for the file
188
115
  */
189
116
  name?: string | undefined;
190
117
  };
191
- export type ListAgentTasksToolChoice2 = {
192
- /**
193
- * The type of the tool. Currently, only function is supported.
194
- */
195
- type?: ListAgentTasksToolChoiceType | undefined;
196
- function: ListAgentTasksToolChoiceFunction;
197
- };
198
- export declare const ListAgentTasksToolChoice1: {
199
- readonly None: "none";
200
- readonly Auto: "auto";
201
- readonly Required: "required";
202
- };
203
- export type ListAgentTasksToolChoice1 = ClosedEnum<typeof ListAgentTasksToolChoice1>;
204
- /**
205
- * Controls which (if any) tool is called by the model.
206
- */
207
- export type ListAgentTasksToolChoice = ListAgentTasksToolChoice2 | ListAgentTasksToolChoice1;
208
- export declare const ListAgentTasksModalities: {
209
- readonly Text: "text";
210
- readonly Audio: "audio";
211
- };
212
- export type ListAgentTasksModalities = ClosedEnum<typeof ListAgentTasksModalities>;
213
- /**
214
- * 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.
215
- */
216
- export type ListAgentTasksParameters = {
217
- /**
218
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
219
- */
220
- audio?: ListAgentTasksAudio | null | undefined;
221
- /**
222
- * 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.
223
- */
224
- frequencyPenalty?: number | null | undefined;
225
- /**
226
- * `[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.
227
- *
228
- * @remarks
229
- *
230
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
231
- */
232
- maxTokens?: number | null | undefined;
233
- /**
234
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
235
- */
236
- maxCompletionTokens?: number | null | undefined;
237
- /**
238
- * 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.
239
- */
240
- logprobs?: boolean | null | undefined;
241
- /**
242
- * 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.
243
- */
244
- topLogprobs?: number | null | undefined;
245
- /**
246
- * 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.
247
- */
248
- n?: number | null | undefined;
249
- /**
250
- * 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.
251
- */
252
- presencePenalty?: number | null | undefined;
253
- /**
254
- * An object specifying the format that the model must output
255
- */
256
- responseFormat?: ListAgentTasksResponseFormatAgentsJSONSchema | ListAgentTasksResponseFormatText | ListAgentTasksResponseFormatJSONObject | undefined;
257
- /**
258
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
259
- */
260
- reasoningEffort?: string | undefined;
261
- /**
262
- * Adjusts response verbosity. Lower levels yield shorter answers.
263
- */
264
- verbosity?: string | undefined;
265
- /**
266
- * 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.
267
- */
268
- seed?: number | null | undefined;
269
- /**
270
- * Up to 4 sequences where the API will stop generating further tokens.
271
- */
272
- stop?: string | Array<string> | null | undefined;
273
- /**
274
- * Options for streaming response. Only set this when you set stream: true.
275
- */
276
- streamOptions?: ListAgentTasksStreamOptions | null | undefined;
277
- thinking?: ListAgentTasksThinking | undefined;
278
- /**
279
- * 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.
280
- */
281
- temperature?: number | null | undefined;
282
- /**
283
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
284
- */
285
- topP?: number | null | undefined;
286
- /**
287
- * Limits the model to consider only the top k most likely tokens at each step.
288
- */
289
- topK?: number | null | undefined;
290
- /**
291
- * Controls which (if any) tool is called by the model.
292
- */
293
- toolChoice?: ListAgentTasksToolChoice2 | ListAgentTasksToolChoice1 | undefined;
294
- /**
295
- * Whether to enable parallel function calling during tool use.
296
- */
297
- parallelToolCalls?: boolean | undefined;
298
- /**
299
- * 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"].
300
- */
301
- modalities?: Array<ListAgentTasksModalities> | null | undefined;
302
- };
303
- /**
304
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
305
- */
306
- export declare const ListAgentTasksFallbackModelConfigurationVoice: {
307
- readonly Alloy: "alloy";
308
- readonly Echo: "echo";
309
- readonly Fable: "fable";
310
- readonly Onyx: "onyx";
311
- readonly Nova: "nova";
312
- readonly Shimmer: "shimmer";
313
- };
314
- /**
315
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
316
- */
317
- export type ListAgentTasksFallbackModelConfigurationVoice = ClosedEnum<typeof ListAgentTasksFallbackModelConfigurationVoice>;
318
- /**
319
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
320
- */
321
- export declare const ListAgentTasksFallbackModelConfigurationFormat: {
322
- readonly Wav: "wav";
323
- readonly Mp3: "mp3";
324
- readonly Flac: "flac";
325
- readonly Opus: "opus";
326
- readonly Pcm16: "pcm16";
327
- };
328
- /**
329
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
330
- */
331
- export type ListAgentTasksFallbackModelConfigurationFormat = ClosedEnum<typeof ListAgentTasksFallbackModelConfigurationFormat>;
332
- /**
333
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
334
- */
335
- export type ListAgentTasksFallbackModelConfigurationAudio = {
336
- /**
337
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
338
- */
339
- voice: ListAgentTasksFallbackModelConfigurationVoice;
340
- /**
341
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
342
- */
343
- format: ListAgentTasksFallbackModelConfigurationFormat;
344
- };
345
- export declare const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType: {
346
- readonly JsonSchema: "json_schema";
347
- };
348
- export type ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType>;
349
- export type ListAgentTasksResponseFormatAgentsResponseJsonSchema = {
350
- /**
351
- * A description of what the response format is for, used by the model to determine how to respond in the format.
352
- */
353
- description?: string | undefined;
354
- /**
355
- * 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.
356
- */
357
- name: string;
358
- /**
359
- * The schema for the response format, described as a JSON Schema object.
360
- */
361
- schema?: any | undefined;
362
- /**
363
- * 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.
364
- */
365
- strict?: boolean | undefined;
366
- };
367
- /**
368
- * @remarks
369
- *
370
- * JSON Schema response format. Used to generate structured JSON responses
371
- */
372
- export type ListAgentTasksResponseFormatAgentsResponse200JSONSchema = {
373
- type: ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType;
374
- jsonSchema: ListAgentTasksResponseFormatAgentsResponseJsonSchema;
375
- };
376
- export declare const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType: {
377
- readonly JsonObject: "json_object";
378
- };
379
- export type ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType = ClosedEnum<typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType>;
380
- /**
381
- * @remarks
382
- *
383
- * 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.
384
- */
385
- export type ListAgentTasksResponseFormatAgentsJSONObject = {
386
- type: ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType;
387
- };
388
- export declare const ListAgentTasksResponseFormatAgentsResponse200Type: {
389
- readonly Text: "text";
390
- };
391
- export type ListAgentTasksResponseFormatAgentsResponse200Type = ClosedEnum<typeof ListAgentTasksResponseFormatAgentsResponse200Type>;
392
- /**
393
- * @remarks
394
- *
395
- * Default response format. Used to generate text responses
396
- */
397
- export type ListAgentTasksResponseFormatAgentsText = {
398
- type: ListAgentTasksResponseFormatAgentsResponse200Type;
399
- };
400
- /**
401
- * An object specifying the format that the model must output
402
- */
403
- export type ListAgentTasksFallbackModelConfigurationResponseFormat = ListAgentTasksResponseFormatAgentsResponse200JSONSchema | ListAgentTasksResponseFormatAgentsText | ListAgentTasksResponseFormatAgentsJSONObject;
404
- /**
405
- * Up to 4 sequences where the API will stop generating further tokens.
406
- */
407
- export type ListAgentTasksFallbackModelConfigurationStop = string | Array<string>;
408
- /**
409
- * Options for streaming response. Only set this when you set stream: true.
410
- */
411
- export type ListAgentTasksFallbackModelConfigurationStreamOptions = {
412
- /**
413
- * 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.
414
- */
415
- includeUsage?: boolean | undefined;
416
- };
417
- /**
418
- * Enables or disables the thinking mode capability
419
- */
420
- export declare const ListAgentTasksFallbackModelConfigurationType: {
421
- readonly Enabled: "enabled";
422
- readonly Disabled: "disabled";
423
- };
424
118
  /**
425
- * Enables or disables the thinking mode capability
119
+ * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
426
120
  */
427
- export type ListAgentTasksFallbackModelConfigurationType = ClosedEnum<typeof ListAgentTasksFallbackModelConfigurationType>;
428
- export type ListAgentTasksFallbackModelConfigurationThinking = {
121
+ export type ListAgentTasksFileBinaryFormat = {
429
122
  /**
430
- * Enables or disables the thinking mode capability
123
+ * base64 encoded content of the file
431
124
  */
432
- type: ListAgentTasksFallbackModelConfigurationType;
125
+ bytes: string;
433
126
  /**
434
- * 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`.
127
+ * Optional mimeType for the file
435
128
  */
436
- budgetTokens: number;
437
- };
438
- /**
439
- * The type of the tool. Currently, only function is supported.
440
- */
441
- export declare const ListAgentTasksToolChoiceAgentsType: {
442
- readonly Function: "function";
443
- };
444
- /**
445
- * The type of the tool. Currently, only function is supported.
446
- */
447
- export type ListAgentTasksToolChoiceAgentsType = ClosedEnum<typeof ListAgentTasksToolChoiceAgentsType>;
448
- export type ListAgentTasksToolChoiceAgentsFunction = {
129
+ mimeType?: string | undefined;
449
130
  /**
450
- * The name of the function to call.
131
+ * Optional name for the file
451
132
  */
452
133
  name?: string | undefined;
453
134
  };
454
- export type ListAgentTasksToolChoiceAgents2 = {
455
- /**
456
- * The type of the tool. Currently, only function is supported.
457
- */
458
- type?: ListAgentTasksToolChoiceAgentsType | undefined;
459
- function: ListAgentTasksToolChoiceAgentsFunction;
460
- };
461
- export declare const ListAgentTasksToolChoiceAgents1: {
462
- readonly None: "none";
463
- readonly Auto: "auto";
464
- readonly Required: "required";
465
- };
466
- export type ListAgentTasksToolChoiceAgents1 = ClosedEnum<typeof ListAgentTasksToolChoiceAgents1>;
467
- /**
468
- * Controls which (if any) tool is called by the model.
469
- */
470
- export type ListAgentTasksFallbackModelConfigurationToolChoice = ListAgentTasksToolChoiceAgents2 | ListAgentTasksToolChoiceAgents1;
471
- export declare const ListAgentTasksFallbackModelConfigurationModalities: {
472
- readonly Text: "text";
473
- readonly Audio: "audio";
474
- };
475
- export type ListAgentTasksFallbackModelConfigurationModalities = ClosedEnum<typeof ListAgentTasksFallbackModelConfigurationModalities>;
476
- /**
477
- * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
478
- */
479
- export type ListAgentTasksFallbackModelConfigurationParameters = {
480
- /**
481
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
482
- */
483
- audio?: ListAgentTasksFallbackModelConfigurationAudio | null | undefined;
484
- /**
485
- * 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.
486
- */
487
- frequencyPenalty?: number | null | undefined;
488
- /**
489
- * `[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.
490
- *
491
- * @remarks
492
- *
493
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
494
- */
495
- maxTokens?: number | null | undefined;
496
- /**
497
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
498
- */
499
- maxCompletionTokens?: number | null | undefined;
500
- /**
501
- * 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.
502
- */
503
- logprobs?: boolean | null | undefined;
504
- /**
505
- * 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.
506
- */
507
- topLogprobs?: number | null | undefined;
508
- /**
509
- * 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.
510
- */
511
- n?: number | null | undefined;
512
- /**
513
- * 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.
514
- */
515
- presencePenalty?: number | null | undefined;
516
- /**
517
- * An object specifying the format that the model must output
518
- */
519
- responseFormat?: ListAgentTasksResponseFormatAgentsResponse200JSONSchema | ListAgentTasksResponseFormatAgentsText | ListAgentTasksResponseFormatAgentsJSONObject | undefined;
520
- /**
521
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
522
- */
523
- reasoningEffort?: string | undefined;
524
- /**
525
- * Adjusts response verbosity. Lower levels yield shorter answers.
526
- */
527
- verbosity?: string | undefined;
528
- /**
529
- * 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.
530
- */
531
- seed?: number | null | undefined;
532
- /**
533
- * Up to 4 sequences where the API will stop generating further tokens.
534
- */
535
- stop?: string | Array<string> | null | undefined;
536
- /**
537
- * Options for streaming response. Only set this when you set stream: true.
538
- */
539
- streamOptions?: ListAgentTasksFallbackModelConfigurationStreamOptions | null | undefined;
540
- thinking?: ListAgentTasksFallbackModelConfigurationThinking | undefined;
541
- /**
542
- * 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.
543
- */
544
- temperature?: number | null | undefined;
545
- /**
546
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
547
- */
548
- topP?: number | null | undefined;
549
- /**
550
- * Limits the model to consider only the top k most likely tokens at each step.
551
- */
552
- topK?: number | null | undefined;
553
- /**
554
- * Controls which (if any) tool is called by the model.
555
- */
556
- toolChoice?: ListAgentTasksToolChoiceAgents2 | ListAgentTasksToolChoiceAgents1 | undefined;
557
- /**
558
- * Whether to enable parallel function calling during tool use.
559
- */
560
- parallelToolCalls?: boolean | undefined;
561
- /**
562
- * 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"].
563
- */
564
- modalities?: Array<ListAgentTasksFallbackModelConfigurationModalities> | null | undefined;
565
- };
566
- /**
567
- * Fallback model configuration with optional parameters.
568
- */
569
- export type ListAgentTasksFallbackModelConfiguration2 = {
570
- /**
571
- * A fallback model ID string. Must support tool calling.
572
- */
573
- id: string;
574
- /**
575
- * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
576
- */
577
- parameters?: ListAgentTasksFallbackModelConfigurationParameters | undefined;
578
- };
579
- /**
580
- * Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
581
- */
582
- export type ListAgentTasksFallbackModelConfiguration = ListAgentTasksFallbackModelConfiguration2 | string;
583
- export type ListAgentTasksModel = {
584
- /**
585
- * The database ID of the primary model
586
- */
587
- id: string;
588
- /**
589
- * Optional integration ID for custom model configurations
590
- */
591
- integrationId?: string | null | undefined;
592
- /**
593
- * 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.
594
- */
595
- parameters?: ListAgentTasksParameters | undefined;
596
- /**
597
- * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
598
- */
599
- fallbackModels?: Array<ListAgentTasksFallbackModelConfiguration2 | string> | null | undefined;
135
+ export type ListAgentTasksPartsFile = ListAgentTasksFileBinaryFormat | ListAgentTasksFileFileInURIFormat;
136
+ export type ListAgentTasksParts3 = {
137
+ kind: ListAgentTasksPartsAgentsResponseKind;
138
+ file: ListAgentTasksFileBinaryFormat | ListAgentTasksFileFileInURIFormat;
139
+ metadata?: {
140
+ [k: string]: any;
141
+ } | undefined;
600
142
  };
601
- /**
602
- * 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.
603
- */
604
- export declare const ListAgentTasksToolApprovalRequired: {
605
- readonly All: "all";
606
- readonly RespectTool: "respect_tool";
607
- readonly None: "none";
143
+ export declare const ListAgentTasksPartsAgentsKind: {
144
+ readonly Data: "data";
608
145
  };
609
- /**
610
- * 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.
611
- */
612
- export type ListAgentTasksToolApprovalRequired = ClosedEnum<typeof ListAgentTasksToolApprovalRequired>;
613
- export type ListAgentTasksConditions = {
614
- /**
615
- * The argument of the tool call to evaluate
616
- */
617
- condition: string;
618
- /**
619
- * The operator to use
620
- */
621
- operator: string;
622
- /**
623
- * The value to compare against
624
- */
625
- value: string;
626
- };
627
- export type ListAgentTasksTools = {
628
- /**
629
- * The id of the resource
630
- */
631
- id: string;
632
- /**
633
- * Optional tool key for custom tools
634
- */
635
- key?: string | undefined;
636
- actionType: string;
637
- displayName?: string | undefined;
638
- requiresApproval?: boolean | undefined;
639
- conditions?: Array<ListAgentTasksConditions> | undefined;
640
- /**
641
- * Optional MCP server reference for tools from MCP servers
642
- */
643
- mcpServer?: string | undefined;
644
- /**
645
- * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
646
- */
647
- timeout?: number | undefined;
146
+ export type ListAgentTasksPartsAgentsKind = ClosedEnum<typeof ListAgentTasksPartsAgentsKind>;
147
+ export type ListAgentTasksParts2 = {
148
+ kind: ListAgentTasksPartsAgentsKind;
149
+ data: {
150
+ [k: string]: any;
151
+ };
152
+ metadata?: {
153
+ [k: string]: any;
154
+ } | undefined;
648
155
  };
649
- export type ListAgentTasksSettings = {
650
- /**
651
- * Maximum iterations(llm calls) before the agent will stop executing.
652
- */
653
- maxIterations?: number | undefined;
654
- /**
655
- * 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.
656
- */
657
- maxExecutionTime?: number | undefined;
658
- /**
659
- * 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.
660
- */
661
- toolApprovalRequired?: ListAgentTasksToolApprovalRequired | undefined;
662
- tools?: Array<ListAgentTasksTools> | undefined;
156
+ export declare const ListAgentTasksPartsKind: {
157
+ readonly Text: "text";
663
158
  };
664
- export type AgentManifestSnapshot = {
665
- id: string;
666
- key: string;
667
- role: string;
668
- description: string;
669
- instructions: string;
670
- systemPrompt?: string | undefined;
671
- model: ListAgentTasksModel;
672
- settings?: ListAgentTasksSettings | undefined;
673
- projectId?: string | undefined;
159
+ export type ListAgentTasksPartsKind = ClosedEnum<typeof ListAgentTasksPartsKind>;
160
+ export type ListAgentTasksParts1 = {
161
+ kind: ListAgentTasksPartsKind;
162
+ text: string;
674
163
  };
675
- /**
676
- * Memory configuration for this execution
677
- */
678
- export type ListAgentTasksMemory = {
164
+ export type ListAgentTasksParts = ListAgentTasksParts4 | ListAgentTasksParts1 | ListAgentTasksParts2 | ListAgentTasksParts3 | ListAgentTasksParts5;
165
+ export type ListAgentTasksHistory = {
166
+ kind: ListAgentTasksAgentsKind;
167
+ messageId: string;
679
168
  /**
680
- * Entity identifier used for memory store isolation (user/session/conversation)
169
+ * Extended A2A message role
681
170
  */
682
- entityId: string;
683
- };
684
- export type ListAgentTasksState = {
685
- waitingForApproval?: boolean | undefined;
686
- inactive?: boolean | undefined;
687
- error?: string | undefined;
688
- iteration?: number | undefined;
689
- accumulatedExecutionTime?: number | undefined;
690
- variables?: {
171
+ role: ListAgentTasksRole;
172
+ parts: Array<ListAgentTasksParts4 | ListAgentTasksParts1 | ListAgentTasksParts2 | ListAgentTasksParts3 | ListAgentTasksParts5>;
173
+ taskId?: string | undefined;
174
+ contextId?: string | undefined;
175
+ metadata?: {
691
176
  [k: string]: any;
692
177
  } | undefined;
693
178
  };
694
- export type ListAgentTasksMetrics = {
695
- inputCost?: number | undefined;
696
- outputCost?: number | undefined;
697
- totalCost?: number | undefined;
698
- promptTokens?: number | undefined;
699
- completionTokens?: number | undefined;
700
- totalTokens?: number | undefined;
179
+ export declare const ListAgentTasksAgentsResponseKind: {
180
+ readonly Artifact: "artifact";
181
+ };
182
+ export type ListAgentTasksAgentsResponseKind = ClosedEnum<typeof ListAgentTasksAgentsResponseKind>;
183
+ export type ListAgentTasksArtifacts = {
184
+ kind: ListAgentTasksAgentsResponseKind;
185
+ artifactId: string;
186
+ name: string;
187
+ type: string;
188
+ url?: string | undefined;
189
+ data?: any | undefined;
701
190
  };
702
191
  export type Tasks = {
703
192
  id: string;
704
- agentManifestSnapshot: AgentManifestSnapshot;
705
- createdById?: string | undefined;
706
- updatedById?: string | undefined;
707
- created?: string | undefined;
708
- updated?: string | undefined;
709
- name?: string | undefined;
710
- workspaceId: string;
711
- /**
712
- * Memory configuration for this execution
713
- */
714
- memory?: ListAgentTasksMemory | undefined;
715
- /**
716
- * Execution-level metadata as key-value pairs
717
- */
193
+ contextId: string;
194
+ kind: ListAgentTasksKind;
195
+ status: ListAgentTasksStatus;
196
+ history: Array<ListAgentTasksHistory>;
197
+ artifacts?: Array<ListAgentTasksArtifacts> | undefined;
718
198
  metadata?: {
719
199
  [k: string]: any;
720
200
  } | undefined;
721
- state: ListAgentTasksState;
722
- metrics: ListAgentTasksMetrics;
723
201
  };
724
202
  /**
725
203
  * Agent tasks retrieved
@@ -747,535 +225,213 @@ export declare const ListAgentTasksRequest$outboundSchema: z.ZodType<ListAgentTa
747
225
  export declare function listAgentTasksRequestToJSON(listAgentTasksRequest: ListAgentTasksRequest): string;
748
226
  export declare function listAgentTasksRequestFromJSON(jsonString: string): SafeParseResult<ListAgentTasksRequest, SDKValidationError>;
749
227
  /** @internal */
750
- export declare const ListAgentTasksVoice$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksVoice>;
751
- /** @internal */
752
- export declare const ListAgentTasksVoice$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksVoice>;
753
- /** @internal */
754
- export declare const ListAgentTasksFormat$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFormat>;
755
- /** @internal */
756
- export declare const ListAgentTasksFormat$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFormat>;
757
- /** @internal */
758
- export declare const ListAgentTasksAudio$inboundSchema: z.ZodType<ListAgentTasksAudio, z.ZodTypeDef, unknown>;
759
- /** @internal */
760
- export type ListAgentTasksAudio$Outbound = {
761
- voice: string;
762
- format: string;
763
- };
764
- /** @internal */
765
- export declare const ListAgentTasksAudio$outboundSchema: z.ZodType<ListAgentTasksAudio$Outbound, z.ZodTypeDef, ListAgentTasksAudio>;
766
- export declare function listAgentTasksAudioToJSON(listAgentTasksAudio: ListAgentTasksAudio): string;
767
- export declare function listAgentTasksAudioFromJSON(jsonString: string): SafeParseResult<ListAgentTasksAudio, SDKValidationError>;
768
- /** @internal */
769
- export declare const ListAgentTasksResponseFormatAgentsResponseType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponseType>;
770
- /** @internal */
771
- export declare const ListAgentTasksResponseFormatAgentsResponseType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponseType>;
772
- /** @internal */
773
- export declare const ListAgentTasksResponseFormatJsonSchema$inboundSchema: z.ZodType<ListAgentTasksResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
774
- /** @internal */
775
- export type ListAgentTasksResponseFormatJsonSchema$Outbound = {
776
- description?: string | undefined;
777
- name: string;
778
- schema?: any | undefined;
779
- strict?: boolean | undefined;
780
- };
781
- /** @internal */
782
- export declare const ListAgentTasksResponseFormatJsonSchema$outboundSchema: z.ZodType<ListAgentTasksResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatJsonSchema>;
783
- export declare function listAgentTasksResponseFormatJsonSchemaToJSON(listAgentTasksResponseFormatJsonSchema: ListAgentTasksResponseFormatJsonSchema): string;
784
- export declare function listAgentTasksResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatJsonSchema, SDKValidationError>;
785
- /** @internal */
786
- export declare const ListAgentTasksResponseFormatAgentsJSONSchema$inboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsJSONSchema, z.ZodTypeDef, unknown>;
787
- /** @internal */
788
- export type ListAgentTasksResponseFormatAgentsJSONSchema$Outbound = {
789
- type: string;
790
- json_schema: ListAgentTasksResponseFormatJsonSchema$Outbound;
791
- };
792
- /** @internal */
793
- export declare const ListAgentTasksResponseFormatAgentsJSONSchema$outboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsJSONSchema$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatAgentsJSONSchema>;
794
- export declare function listAgentTasksResponseFormatAgentsJSONSchemaToJSON(listAgentTasksResponseFormatAgentsJSONSchema: ListAgentTasksResponseFormatAgentsJSONSchema): string;
795
- export declare function listAgentTasksResponseFormatAgentsJSONSchemaFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatAgentsJSONSchema, SDKValidationError>;
796
- /** @internal */
797
- export declare const ListAgentTasksResponseFormatAgentsType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsType>;
798
- /** @internal */
799
- export declare const ListAgentTasksResponseFormatAgentsType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsType>;
800
- /** @internal */
801
- export declare const ListAgentTasksResponseFormatJSONObject$inboundSchema: z.ZodType<ListAgentTasksResponseFormatJSONObject, z.ZodTypeDef, unknown>;
802
- /** @internal */
803
- export type ListAgentTasksResponseFormatJSONObject$Outbound = {
804
- type: string;
805
- };
806
- /** @internal */
807
- export declare const ListAgentTasksResponseFormatJSONObject$outboundSchema: z.ZodType<ListAgentTasksResponseFormatJSONObject$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatJSONObject>;
808
- export declare function listAgentTasksResponseFormatJSONObjectToJSON(listAgentTasksResponseFormatJSONObject: ListAgentTasksResponseFormatJSONObject): string;
809
- export declare function listAgentTasksResponseFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatJSONObject, SDKValidationError>;
810
- /** @internal */
811
- export declare const ListAgentTasksResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatType>;
228
+ export declare const ListAgentTasksKind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksKind>;
812
229
  /** @internal */
813
- export declare const ListAgentTasksResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatType>;
230
+ export declare const ListAgentTasksKind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksKind>;
814
231
  /** @internal */
815
- export declare const ListAgentTasksResponseFormatText$inboundSchema: z.ZodType<ListAgentTasksResponseFormatText, z.ZodTypeDef, unknown>;
232
+ export declare const ListAgentTasksStatus$inboundSchema: z.ZodType<ListAgentTasksStatus, z.ZodTypeDef, unknown>;
816
233
  /** @internal */
817
- export type ListAgentTasksResponseFormatText$Outbound = {
818
- type: string;
234
+ export type ListAgentTasksStatus$Outbound = {
235
+ state: string;
236
+ timestamp?: string | undefined;
237
+ message?: any | undefined;
819
238
  };
820
239
  /** @internal */
821
- export declare const ListAgentTasksResponseFormatText$outboundSchema: z.ZodType<ListAgentTasksResponseFormatText$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatText>;
822
- export declare function listAgentTasksResponseFormatTextToJSON(listAgentTasksResponseFormatText: ListAgentTasksResponseFormatText): string;
823
- export declare function listAgentTasksResponseFormatTextFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatText, SDKValidationError>;
240
+ export declare const ListAgentTasksStatus$outboundSchema: z.ZodType<ListAgentTasksStatus$Outbound, z.ZodTypeDef, ListAgentTasksStatus>;
241
+ export declare function listAgentTasksStatusToJSON(listAgentTasksStatus: ListAgentTasksStatus): string;
242
+ export declare function listAgentTasksStatusFromJSON(jsonString: string): SafeParseResult<ListAgentTasksStatus, SDKValidationError>;
824
243
  /** @internal */
825
- export declare const ListAgentTasksResponseFormat$inboundSchema: z.ZodType<ListAgentTasksResponseFormat, z.ZodTypeDef, unknown>;
244
+ export declare const ListAgentTasksAgentsKind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksAgentsKind>;
826
245
  /** @internal */
827
- export type ListAgentTasksResponseFormat$Outbound = ListAgentTasksResponseFormatAgentsJSONSchema$Outbound | ListAgentTasksResponseFormatText$Outbound | ListAgentTasksResponseFormatJSONObject$Outbound;
246
+ export declare const ListAgentTasksAgentsKind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksAgentsKind>;
828
247
  /** @internal */
829
- export declare const ListAgentTasksResponseFormat$outboundSchema: z.ZodType<ListAgentTasksResponseFormat$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormat>;
830
- export declare function listAgentTasksResponseFormatToJSON(listAgentTasksResponseFormat: ListAgentTasksResponseFormat): string;
831
- export declare function listAgentTasksResponseFormatFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormat, SDKValidationError>;
248
+ export declare const ListAgentTasksRole$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksRole>;
832
249
  /** @internal */
833
- export declare const ListAgentTasksStop$inboundSchema: z.ZodType<ListAgentTasksStop, z.ZodTypeDef, unknown>;
250
+ export declare const ListAgentTasksRole$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksRole>;
834
251
  /** @internal */
835
- export type ListAgentTasksStop$Outbound = string | Array<string>;
252
+ export declare const ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONKind>;
836
253
  /** @internal */
837
- export declare const ListAgentTasksStop$outboundSchema: z.ZodType<ListAgentTasksStop$Outbound, z.ZodTypeDef, ListAgentTasksStop>;
838
- export declare function listAgentTasksStopToJSON(listAgentTasksStop: ListAgentTasksStop): string;
839
- export declare function listAgentTasksStopFromJSON(jsonString: string): SafeParseResult<ListAgentTasksStop, SDKValidationError>;
254
+ export declare const ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONKind>;
840
255
  /** @internal */
841
- export declare const ListAgentTasksStreamOptions$inboundSchema: z.ZodType<ListAgentTasksStreamOptions, z.ZodTypeDef, unknown>;
256
+ export declare const ListAgentTasksParts5$inboundSchema: z.ZodType<ListAgentTasksParts5, z.ZodTypeDef, unknown>;
842
257
  /** @internal */
843
- export type ListAgentTasksStreamOptions$Outbound = {
844
- include_usage?: boolean | undefined;
258
+ export type ListAgentTasksParts5$Outbound = {
259
+ kind: string;
260
+ tool_call_id: string;
261
+ result?: any | undefined;
262
+ metadata?: {
263
+ [k: string]: any;
264
+ } | undefined;
845
265
  };
846
266
  /** @internal */
847
- export declare const ListAgentTasksStreamOptions$outboundSchema: z.ZodType<ListAgentTasksStreamOptions$Outbound, z.ZodTypeDef, ListAgentTasksStreamOptions>;
848
- export declare function listAgentTasksStreamOptionsToJSON(listAgentTasksStreamOptions: ListAgentTasksStreamOptions): string;
849
- export declare function listAgentTasksStreamOptionsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksStreamOptions, SDKValidationError>;
267
+ export declare const ListAgentTasksParts5$outboundSchema: z.ZodType<ListAgentTasksParts5$Outbound, z.ZodTypeDef, ListAgentTasksParts5>;
268
+ export declare function listAgentTasksParts5ToJSON(listAgentTasksParts5: ListAgentTasksParts5): string;
269
+ export declare function listAgentTasksParts5FromJSON(jsonString: string): SafeParseResult<ListAgentTasksParts5, SDKValidationError>;
850
270
  /** @internal */
851
- export declare const ListAgentTasksType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksType>;
271
+ export declare const ListAgentTasksPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponse200Kind>;
852
272
  /** @internal */
853
- export declare const ListAgentTasksType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksType>;
273
+ export declare const ListAgentTasksPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponse200Kind>;
854
274
  /** @internal */
855
- export declare const ListAgentTasksThinking$inboundSchema: z.ZodType<ListAgentTasksThinking, z.ZodTypeDef, unknown>;
275
+ export declare const ListAgentTasksParts4$inboundSchema: z.ZodType<ListAgentTasksParts4, z.ZodTypeDef, unknown>;
856
276
  /** @internal */
857
- export type ListAgentTasksThinking$Outbound = {
858
- type: string;
859
- budget_tokens: number;
277
+ export type ListAgentTasksParts4$Outbound = {
278
+ kind: string;
279
+ tool_name: string;
280
+ tool_call_id: string;
281
+ arguments: {
282
+ [k: string]: any;
283
+ };
284
+ metadata?: {
285
+ [k: string]: any;
286
+ } | undefined;
860
287
  };
861
288
  /** @internal */
862
- export declare const ListAgentTasksThinking$outboundSchema: z.ZodType<ListAgentTasksThinking$Outbound, z.ZodTypeDef, ListAgentTasksThinking>;
863
- export declare function listAgentTasksThinkingToJSON(listAgentTasksThinking: ListAgentTasksThinking): string;
864
- export declare function listAgentTasksThinkingFromJSON(jsonString: string): SafeParseResult<ListAgentTasksThinking, SDKValidationError>;
289
+ export declare const ListAgentTasksParts4$outboundSchema: z.ZodType<ListAgentTasksParts4$Outbound, z.ZodTypeDef, ListAgentTasksParts4>;
290
+ export declare function listAgentTasksParts4ToJSON(listAgentTasksParts4: ListAgentTasksParts4): string;
291
+ export declare function listAgentTasksParts4FromJSON(jsonString: string): SafeParseResult<ListAgentTasksParts4, SDKValidationError>;
865
292
  /** @internal */
866
- export declare const ListAgentTasksToolChoiceType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoiceType>;
293
+ export declare const ListAgentTasksPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponseKind>;
867
294
  /** @internal */
868
- export declare const ListAgentTasksToolChoiceType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoiceType>;
295
+ export declare const ListAgentTasksPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponseKind>;
869
296
  /** @internal */
870
- export declare const ListAgentTasksToolChoiceFunction$inboundSchema: z.ZodType<ListAgentTasksToolChoiceFunction, z.ZodTypeDef, unknown>;
297
+ export declare const ListAgentTasksFileFileInURIFormat$inboundSchema: z.ZodType<ListAgentTasksFileFileInURIFormat, z.ZodTypeDef, unknown>;
871
298
  /** @internal */
872
- export type ListAgentTasksToolChoiceFunction$Outbound = {
299
+ export type ListAgentTasksFileFileInURIFormat$Outbound = {
300
+ uri: string;
301
+ mimeType?: string | undefined;
873
302
  name?: string | undefined;
874
303
  };
875
304
  /** @internal */
876
- export declare const ListAgentTasksToolChoiceFunction$outboundSchema: z.ZodType<ListAgentTasksToolChoiceFunction$Outbound, z.ZodTypeDef, ListAgentTasksToolChoiceFunction>;
877
- export declare function listAgentTasksToolChoiceFunctionToJSON(listAgentTasksToolChoiceFunction: ListAgentTasksToolChoiceFunction): string;
878
- export declare function listAgentTasksToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<ListAgentTasksToolChoiceFunction, SDKValidationError>;
879
- /** @internal */
880
- export declare const ListAgentTasksToolChoice2$inboundSchema: z.ZodType<ListAgentTasksToolChoice2, z.ZodTypeDef, unknown>;
881
- /** @internal */
882
- export type ListAgentTasksToolChoice2$Outbound = {
883
- type?: string | undefined;
884
- function: ListAgentTasksToolChoiceFunction$Outbound;
885
- };
886
- /** @internal */
887
- export declare const ListAgentTasksToolChoice2$outboundSchema: z.ZodType<ListAgentTasksToolChoice2$Outbound, z.ZodTypeDef, ListAgentTasksToolChoice2>;
888
- export declare function listAgentTasksToolChoice2ToJSON(listAgentTasksToolChoice2: ListAgentTasksToolChoice2): string;
889
- export declare function listAgentTasksToolChoice2FromJSON(jsonString: string): SafeParseResult<ListAgentTasksToolChoice2, SDKValidationError>;
890
- /** @internal */
891
- export declare const ListAgentTasksToolChoice1$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoice1>;
892
- /** @internal */
893
- export declare const ListAgentTasksToolChoice1$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoice1>;
894
- /** @internal */
895
- export declare const ListAgentTasksToolChoice$inboundSchema: z.ZodType<ListAgentTasksToolChoice, z.ZodTypeDef, unknown>;
896
- /** @internal */
897
- export type ListAgentTasksToolChoice$Outbound = ListAgentTasksToolChoice2$Outbound | string;
898
- /** @internal */
899
- export declare const ListAgentTasksToolChoice$outboundSchema: z.ZodType<ListAgentTasksToolChoice$Outbound, z.ZodTypeDef, ListAgentTasksToolChoice>;
900
- export declare function listAgentTasksToolChoiceToJSON(listAgentTasksToolChoice: ListAgentTasksToolChoice): string;
901
- export declare function listAgentTasksToolChoiceFromJSON(jsonString: string): SafeParseResult<ListAgentTasksToolChoice, SDKValidationError>;
902
- /** @internal */
903
- export declare const ListAgentTasksModalities$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksModalities>;
904
- /** @internal */
905
- export declare const ListAgentTasksModalities$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksModalities>;
906
- /** @internal */
907
- export declare const ListAgentTasksParameters$inboundSchema: z.ZodType<ListAgentTasksParameters, z.ZodTypeDef, unknown>;
908
- /** @internal */
909
- export type ListAgentTasksParameters$Outbound = {
910
- audio?: ListAgentTasksAudio$Outbound | null | undefined;
911
- frequency_penalty?: number | null | undefined;
912
- max_tokens?: number | null | undefined;
913
- max_completion_tokens?: number | null | undefined;
914
- logprobs?: boolean | null | undefined;
915
- top_logprobs?: number | null | undefined;
916
- n?: number | null | undefined;
917
- presence_penalty?: number | null | undefined;
918
- response_format?: ListAgentTasksResponseFormatAgentsJSONSchema$Outbound | ListAgentTasksResponseFormatText$Outbound | ListAgentTasksResponseFormatJSONObject$Outbound | undefined;
919
- reasoning_effort?: string | undefined;
920
- verbosity?: string | undefined;
921
- seed?: number | null | undefined;
922
- stop?: string | Array<string> | null | undefined;
923
- stream_options?: ListAgentTasksStreamOptions$Outbound | null | undefined;
924
- thinking?: ListAgentTasksThinking$Outbound | undefined;
925
- temperature?: number | null | undefined;
926
- top_p?: number | null | undefined;
927
- top_k?: number | null | undefined;
928
- tool_choice?: ListAgentTasksToolChoice2$Outbound | string | undefined;
929
- parallel_tool_calls?: boolean | undefined;
930
- modalities?: Array<string> | null | undefined;
931
- };
932
- /** @internal */
933
- export declare const ListAgentTasksParameters$outboundSchema: z.ZodType<ListAgentTasksParameters$Outbound, z.ZodTypeDef, ListAgentTasksParameters>;
934
- export declare function listAgentTasksParametersToJSON(listAgentTasksParameters: ListAgentTasksParameters): string;
935
- export declare function listAgentTasksParametersFromJSON(jsonString: string): SafeParseResult<ListAgentTasksParameters, SDKValidationError>;
936
- /** @internal */
937
- export declare const ListAgentTasksFallbackModelConfigurationVoice$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationVoice>;
938
- /** @internal */
939
- export declare const ListAgentTasksFallbackModelConfigurationVoice$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationVoice>;
940
- /** @internal */
941
- export declare const ListAgentTasksFallbackModelConfigurationFormat$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationFormat>;
942
- /** @internal */
943
- export declare const ListAgentTasksFallbackModelConfigurationFormat$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationFormat>;
944
- /** @internal */
945
- export declare const ListAgentTasksFallbackModelConfigurationAudio$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationAudio, z.ZodTypeDef, unknown>;
946
- /** @internal */
947
- export type ListAgentTasksFallbackModelConfigurationAudio$Outbound = {
948
- voice: string;
949
- format: string;
950
- };
951
- /** @internal */
952
- export declare const ListAgentTasksFallbackModelConfigurationAudio$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationAudio$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfigurationAudio>;
953
- export declare function listAgentTasksFallbackModelConfigurationAudioToJSON(listAgentTasksFallbackModelConfigurationAudio: ListAgentTasksFallbackModelConfigurationAudio): string;
954
- export declare function listAgentTasksFallbackModelConfigurationAudioFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfigurationAudio, SDKValidationError>;
955
- /** @internal */
956
- export declare const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType>;
957
- /** @internal */
958
- export declare const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType>;
959
- /** @internal */
960
- export declare const ListAgentTasksResponseFormatAgentsResponseJsonSchema$inboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsResponseJsonSchema, z.ZodTypeDef, unknown>;
961
- /** @internal */
962
- export type ListAgentTasksResponseFormatAgentsResponseJsonSchema$Outbound = {
963
- description?: string | undefined;
964
- name: string;
965
- schema?: any | undefined;
966
- strict?: boolean | undefined;
967
- };
968
- /** @internal */
969
- export declare const ListAgentTasksResponseFormatAgentsResponseJsonSchema$outboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsResponseJsonSchema$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatAgentsResponseJsonSchema>;
970
- export declare function listAgentTasksResponseFormatAgentsResponseJsonSchemaToJSON(listAgentTasksResponseFormatAgentsResponseJsonSchema: ListAgentTasksResponseFormatAgentsResponseJsonSchema): string;
971
- export declare function listAgentTasksResponseFormatAgentsResponseJsonSchemaFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatAgentsResponseJsonSchema, SDKValidationError>;
972
- /** @internal */
973
- export declare const ListAgentTasksResponseFormatAgentsResponse200JSONSchema$inboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsResponse200JSONSchema, z.ZodTypeDef, unknown>;
974
- /** @internal */
975
- export type ListAgentTasksResponseFormatAgentsResponse200JSONSchema$Outbound = {
976
- type: string;
977
- json_schema: ListAgentTasksResponseFormatAgentsResponseJsonSchema$Outbound;
978
- };
979
- /** @internal */
980
- export declare const ListAgentTasksResponseFormatAgentsResponse200JSONSchema$outboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsResponse200JSONSchema$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatAgentsResponse200JSONSchema>;
981
- export declare function listAgentTasksResponseFormatAgentsResponse200JSONSchemaToJSON(listAgentTasksResponseFormatAgentsResponse200JSONSchema: ListAgentTasksResponseFormatAgentsResponse200JSONSchema): string;
982
- export declare function listAgentTasksResponseFormatAgentsResponse200JSONSchemaFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatAgentsResponse200JSONSchema, SDKValidationError>;
983
- /** @internal */
984
- export declare const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType>;
985
- /** @internal */
986
- export declare const ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType>;
987
- /** @internal */
988
- export declare const ListAgentTasksResponseFormatAgentsJSONObject$inboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsJSONObject, z.ZodTypeDef, unknown>;
989
- /** @internal */
990
- export type ListAgentTasksResponseFormatAgentsJSONObject$Outbound = {
991
- type: string;
992
- };
993
- /** @internal */
994
- export declare const ListAgentTasksResponseFormatAgentsJSONObject$outboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsJSONObject$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatAgentsJSONObject>;
995
- export declare function listAgentTasksResponseFormatAgentsJSONObjectToJSON(listAgentTasksResponseFormatAgentsJSONObject: ListAgentTasksResponseFormatAgentsJSONObject): string;
996
- export declare function listAgentTasksResponseFormatAgentsJSONObjectFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatAgentsJSONObject, SDKValidationError>;
997
- /** @internal */
998
- export declare const ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200Type>;
999
- /** @internal */
1000
- export declare const ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksResponseFormatAgentsResponse200Type>;
1001
- /** @internal */
1002
- export declare const ListAgentTasksResponseFormatAgentsText$inboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsText, z.ZodTypeDef, unknown>;
1003
- /** @internal */
1004
- export type ListAgentTasksResponseFormatAgentsText$Outbound = {
1005
- type: string;
1006
- };
1007
- /** @internal */
1008
- export declare const ListAgentTasksResponseFormatAgentsText$outboundSchema: z.ZodType<ListAgentTasksResponseFormatAgentsText$Outbound, z.ZodTypeDef, ListAgentTasksResponseFormatAgentsText>;
1009
- export declare function listAgentTasksResponseFormatAgentsTextToJSON(listAgentTasksResponseFormatAgentsText: ListAgentTasksResponseFormatAgentsText): string;
1010
- export declare function listAgentTasksResponseFormatAgentsTextFromJSON(jsonString: string): SafeParseResult<ListAgentTasksResponseFormatAgentsText, SDKValidationError>;
1011
- /** @internal */
1012
- export declare const ListAgentTasksFallbackModelConfigurationResponseFormat$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationResponseFormat, z.ZodTypeDef, unknown>;
1013
- /** @internal */
1014
- export type ListAgentTasksFallbackModelConfigurationResponseFormat$Outbound = ListAgentTasksResponseFormatAgentsResponse200JSONSchema$Outbound | ListAgentTasksResponseFormatAgentsText$Outbound | ListAgentTasksResponseFormatAgentsJSONObject$Outbound;
1015
- /** @internal */
1016
- export declare const ListAgentTasksFallbackModelConfigurationResponseFormat$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationResponseFormat$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfigurationResponseFormat>;
1017
- export declare function listAgentTasksFallbackModelConfigurationResponseFormatToJSON(listAgentTasksFallbackModelConfigurationResponseFormat: ListAgentTasksFallbackModelConfigurationResponseFormat): string;
1018
- export declare function listAgentTasksFallbackModelConfigurationResponseFormatFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfigurationResponseFormat, SDKValidationError>;
1019
- /** @internal */
1020
- export declare const ListAgentTasksFallbackModelConfigurationStop$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationStop, z.ZodTypeDef, unknown>;
1021
- /** @internal */
1022
- export type ListAgentTasksFallbackModelConfigurationStop$Outbound = string | Array<string>;
1023
- /** @internal */
1024
- export declare const ListAgentTasksFallbackModelConfigurationStop$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationStop$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfigurationStop>;
1025
- export declare function listAgentTasksFallbackModelConfigurationStopToJSON(listAgentTasksFallbackModelConfigurationStop: ListAgentTasksFallbackModelConfigurationStop): string;
1026
- export declare function listAgentTasksFallbackModelConfigurationStopFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfigurationStop, SDKValidationError>;
1027
- /** @internal */
1028
- export declare const ListAgentTasksFallbackModelConfigurationStreamOptions$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationStreamOptions, z.ZodTypeDef, unknown>;
1029
- /** @internal */
1030
- export type ListAgentTasksFallbackModelConfigurationStreamOptions$Outbound = {
1031
- include_usage?: boolean | undefined;
1032
- };
1033
- /** @internal */
1034
- export declare const ListAgentTasksFallbackModelConfigurationStreamOptions$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationStreamOptions$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfigurationStreamOptions>;
1035
- export declare function listAgentTasksFallbackModelConfigurationStreamOptionsToJSON(listAgentTasksFallbackModelConfigurationStreamOptions: ListAgentTasksFallbackModelConfigurationStreamOptions): string;
1036
- export declare function listAgentTasksFallbackModelConfigurationStreamOptionsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfigurationStreamOptions, SDKValidationError>;
1037
- /** @internal */
1038
- export declare const ListAgentTasksFallbackModelConfigurationType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationType>;
1039
- /** @internal */
1040
- export declare const ListAgentTasksFallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationType>;
1041
- /** @internal */
1042
- export declare const ListAgentTasksFallbackModelConfigurationThinking$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationThinking, z.ZodTypeDef, unknown>;
1043
- /** @internal */
1044
- export type ListAgentTasksFallbackModelConfigurationThinking$Outbound = {
1045
- type: string;
1046
- budget_tokens: number;
1047
- };
1048
- /** @internal */
1049
- export declare const ListAgentTasksFallbackModelConfigurationThinking$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationThinking$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfigurationThinking>;
1050
- export declare function listAgentTasksFallbackModelConfigurationThinkingToJSON(listAgentTasksFallbackModelConfigurationThinking: ListAgentTasksFallbackModelConfigurationThinking): string;
1051
- export declare function listAgentTasksFallbackModelConfigurationThinkingFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfigurationThinking, SDKValidationError>;
1052
- /** @internal */
1053
- export declare const ListAgentTasksToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoiceAgentsType>;
1054
- /** @internal */
1055
- export declare const ListAgentTasksToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoiceAgentsType>;
305
+ export declare const ListAgentTasksFileFileInURIFormat$outboundSchema: z.ZodType<ListAgentTasksFileFileInURIFormat$Outbound, z.ZodTypeDef, ListAgentTasksFileFileInURIFormat>;
306
+ export declare function listAgentTasksFileFileInURIFormatToJSON(listAgentTasksFileFileInURIFormat: ListAgentTasksFileFileInURIFormat): string;
307
+ export declare function listAgentTasksFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFileFileInURIFormat, SDKValidationError>;
1056
308
  /** @internal */
1057
- export declare const ListAgentTasksToolChoiceAgentsFunction$inboundSchema: z.ZodType<ListAgentTasksToolChoiceAgentsFunction, z.ZodTypeDef, unknown>;
309
+ export declare const ListAgentTasksFileBinaryFormat$inboundSchema: z.ZodType<ListAgentTasksFileBinaryFormat, z.ZodTypeDef, unknown>;
1058
310
  /** @internal */
1059
- export type ListAgentTasksToolChoiceAgentsFunction$Outbound = {
311
+ export type ListAgentTasksFileBinaryFormat$Outbound = {
312
+ bytes: string;
313
+ mimeType?: string | undefined;
1060
314
  name?: string | undefined;
1061
315
  };
1062
316
  /** @internal */
1063
- export declare const ListAgentTasksToolChoiceAgentsFunction$outboundSchema: z.ZodType<ListAgentTasksToolChoiceAgentsFunction$Outbound, z.ZodTypeDef, ListAgentTasksToolChoiceAgentsFunction>;
1064
- export declare function listAgentTasksToolChoiceAgentsFunctionToJSON(listAgentTasksToolChoiceAgentsFunction: ListAgentTasksToolChoiceAgentsFunction): string;
1065
- export declare function listAgentTasksToolChoiceAgentsFunctionFromJSON(jsonString: string): SafeParseResult<ListAgentTasksToolChoiceAgentsFunction, SDKValidationError>;
317
+ export declare const ListAgentTasksFileBinaryFormat$outboundSchema: z.ZodType<ListAgentTasksFileBinaryFormat$Outbound, z.ZodTypeDef, ListAgentTasksFileBinaryFormat>;
318
+ export declare function listAgentTasksFileBinaryFormatToJSON(listAgentTasksFileBinaryFormat: ListAgentTasksFileBinaryFormat): string;
319
+ export declare function listAgentTasksFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFileBinaryFormat, SDKValidationError>;
1066
320
  /** @internal */
1067
- export declare const ListAgentTasksToolChoiceAgents2$inboundSchema: z.ZodType<ListAgentTasksToolChoiceAgents2, z.ZodTypeDef, unknown>;
321
+ export declare const ListAgentTasksPartsFile$inboundSchema: z.ZodType<ListAgentTasksPartsFile, z.ZodTypeDef, unknown>;
1068
322
  /** @internal */
1069
- export type ListAgentTasksToolChoiceAgents2$Outbound = {
1070
- type?: string | undefined;
1071
- function: ListAgentTasksToolChoiceAgentsFunction$Outbound;
1072
- };
1073
- /** @internal */
1074
- export declare const ListAgentTasksToolChoiceAgents2$outboundSchema: z.ZodType<ListAgentTasksToolChoiceAgents2$Outbound, z.ZodTypeDef, ListAgentTasksToolChoiceAgents2>;
1075
- export declare function listAgentTasksToolChoiceAgents2ToJSON(listAgentTasksToolChoiceAgents2: ListAgentTasksToolChoiceAgents2): string;
1076
- export declare function listAgentTasksToolChoiceAgents2FromJSON(jsonString: string): SafeParseResult<ListAgentTasksToolChoiceAgents2, SDKValidationError>;
1077
- /** @internal */
1078
- export declare const ListAgentTasksToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoiceAgents1>;
1079
- /** @internal */
1080
- export declare const ListAgentTasksToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolChoiceAgents1>;
1081
- /** @internal */
1082
- export declare const ListAgentTasksFallbackModelConfigurationToolChoice$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationToolChoice, z.ZodTypeDef, unknown>;
1083
- /** @internal */
1084
- export type ListAgentTasksFallbackModelConfigurationToolChoice$Outbound = ListAgentTasksToolChoiceAgents2$Outbound | string;
1085
- /** @internal */
1086
- export declare const ListAgentTasksFallbackModelConfigurationToolChoice$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationToolChoice$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfigurationToolChoice>;
1087
- export declare function listAgentTasksFallbackModelConfigurationToolChoiceToJSON(listAgentTasksFallbackModelConfigurationToolChoice: ListAgentTasksFallbackModelConfigurationToolChoice): string;
1088
- export declare function listAgentTasksFallbackModelConfigurationToolChoiceFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfigurationToolChoice, SDKValidationError>;
1089
- /** @internal */
1090
- export declare const ListAgentTasksFallbackModelConfigurationModalities$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationModalities>;
1091
- /** @internal */
1092
- export declare const ListAgentTasksFallbackModelConfigurationModalities$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksFallbackModelConfigurationModalities>;
1093
- /** @internal */
1094
- export declare const ListAgentTasksFallbackModelConfigurationParameters$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationParameters, z.ZodTypeDef, unknown>;
1095
- /** @internal */
1096
- export type ListAgentTasksFallbackModelConfigurationParameters$Outbound = {
1097
- audio?: ListAgentTasksFallbackModelConfigurationAudio$Outbound | null | undefined;
1098
- frequency_penalty?: number | null | undefined;
1099
- max_tokens?: number | null | undefined;
1100
- max_completion_tokens?: number | null | undefined;
1101
- logprobs?: boolean | null | undefined;
1102
- top_logprobs?: number | null | undefined;
1103
- n?: number | null | undefined;
1104
- presence_penalty?: number | null | undefined;
1105
- response_format?: ListAgentTasksResponseFormatAgentsResponse200JSONSchema$Outbound | ListAgentTasksResponseFormatAgentsText$Outbound | ListAgentTasksResponseFormatAgentsJSONObject$Outbound | undefined;
1106
- reasoning_effort?: string | undefined;
1107
- verbosity?: string | undefined;
1108
- seed?: number | null | undefined;
1109
- stop?: string | Array<string> | null | undefined;
1110
- stream_options?: ListAgentTasksFallbackModelConfigurationStreamOptions$Outbound | null | undefined;
1111
- thinking?: ListAgentTasksFallbackModelConfigurationThinking$Outbound | undefined;
1112
- temperature?: number | null | undefined;
1113
- top_p?: number | null | undefined;
1114
- top_k?: number | null | undefined;
1115
- tool_choice?: ListAgentTasksToolChoiceAgents2$Outbound | string | undefined;
1116
- parallel_tool_calls?: boolean | undefined;
1117
- modalities?: Array<string> | null | undefined;
1118
- };
323
+ export type ListAgentTasksPartsFile$Outbound = ListAgentTasksFileBinaryFormat$Outbound | ListAgentTasksFileFileInURIFormat$Outbound;
1119
324
  /** @internal */
1120
- export declare const ListAgentTasksFallbackModelConfigurationParameters$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfigurationParameters$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfigurationParameters>;
1121
- export declare function listAgentTasksFallbackModelConfigurationParametersToJSON(listAgentTasksFallbackModelConfigurationParameters: ListAgentTasksFallbackModelConfigurationParameters): string;
1122
- export declare function listAgentTasksFallbackModelConfigurationParametersFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfigurationParameters, SDKValidationError>;
325
+ export declare const ListAgentTasksPartsFile$outboundSchema: z.ZodType<ListAgentTasksPartsFile$Outbound, z.ZodTypeDef, ListAgentTasksPartsFile>;
326
+ export declare function listAgentTasksPartsFileToJSON(listAgentTasksPartsFile: ListAgentTasksPartsFile): string;
327
+ export declare function listAgentTasksPartsFileFromJSON(jsonString: string): SafeParseResult<ListAgentTasksPartsFile, SDKValidationError>;
1123
328
  /** @internal */
1124
- export declare const ListAgentTasksFallbackModelConfiguration2$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfiguration2, z.ZodTypeDef, unknown>;
329
+ export declare const ListAgentTasksParts3$inboundSchema: z.ZodType<ListAgentTasksParts3, z.ZodTypeDef, unknown>;
1125
330
  /** @internal */
1126
- export type ListAgentTasksFallbackModelConfiguration2$Outbound = {
1127
- id: string;
1128
- parameters?: ListAgentTasksFallbackModelConfigurationParameters$Outbound | undefined;
331
+ export type ListAgentTasksParts3$Outbound = {
332
+ kind: string;
333
+ file: ListAgentTasksFileBinaryFormat$Outbound | ListAgentTasksFileFileInURIFormat$Outbound;
334
+ metadata?: {
335
+ [k: string]: any;
336
+ } | undefined;
1129
337
  };
1130
338
  /** @internal */
1131
- export declare const ListAgentTasksFallbackModelConfiguration2$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfiguration2$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfiguration2>;
1132
- export declare function listAgentTasksFallbackModelConfiguration2ToJSON(listAgentTasksFallbackModelConfiguration2: ListAgentTasksFallbackModelConfiguration2): string;
1133
- export declare function listAgentTasksFallbackModelConfiguration2FromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfiguration2, SDKValidationError>;
1134
- /** @internal */
1135
- export declare const ListAgentTasksFallbackModelConfiguration$inboundSchema: z.ZodType<ListAgentTasksFallbackModelConfiguration, z.ZodTypeDef, unknown>;
339
+ export declare const ListAgentTasksParts3$outboundSchema: z.ZodType<ListAgentTasksParts3$Outbound, z.ZodTypeDef, ListAgentTasksParts3>;
340
+ export declare function listAgentTasksParts3ToJSON(listAgentTasksParts3: ListAgentTasksParts3): string;
341
+ export declare function listAgentTasksParts3FromJSON(jsonString: string): SafeParseResult<ListAgentTasksParts3, SDKValidationError>;
1136
342
  /** @internal */
1137
- export type ListAgentTasksFallbackModelConfiguration$Outbound = ListAgentTasksFallbackModelConfiguration2$Outbound | string;
343
+ export declare const ListAgentTasksPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsKind>;
1138
344
  /** @internal */
1139
- export declare const ListAgentTasksFallbackModelConfiguration$outboundSchema: z.ZodType<ListAgentTasksFallbackModelConfiguration$Outbound, z.ZodTypeDef, ListAgentTasksFallbackModelConfiguration>;
1140
- export declare function listAgentTasksFallbackModelConfigurationToJSON(listAgentTasksFallbackModelConfiguration: ListAgentTasksFallbackModelConfiguration): string;
1141
- export declare function listAgentTasksFallbackModelConfigurationFromJSON(jsonString: string): SafeParseResult<ListAgentTasksFallbackModelConfiguration, SDKValidationError>;
345
+ export declare const ListAgentTasksPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsKind>;
1142
346
  /** @internal */
1143
- export declare const ListAgentTasksModel$inboundSchema: z.ZodType<ListAgentTasksModel, z.ZodTypeDef, unknown>;
347
+ export declare const ListAgentTasksParts2$inboundSchema: z.ZodType<ListAgentTasksParts2, z.ZodTypeDef, unknown>;
1144
348
  /** @internal */
1145
- export type ListAgentTasksModel$Outbound = {
1146
- id: string;
1147
- integration_id?: string | null | undefined;
1148
- parameters?: ListAgentTasksParameters$Outbound | undefined;
1149
- fallback_models?: Array<ListAgentTasksFallbackModelConfiguration2$Outbound | string> | null | undefined;
349
+ export type ListAgentTasksParts2$Outbound = {
350
+ kind: string;
351
+ data: {
352
+ [k: string]: any;
353
+ };
354
+ metadata?: {
355
+ [k: string]: any;
356
+ } | undefined;
1150
357
  };
1151
358
  /** @internal */
1152
- export declare const ListAgentTasksModel$outboundSchema: z.ZodType<ListAgentTasksModel$Outbound, z.ZodTypeDef, ListAgentTasksModel>;
1153
- export declare function listAgentTasksModelToJSON(listAgentTasksModel: ListAgentTasksModel): string;
1154
- export declare function listAgentTasksModelFromJSON(jsonString: string): SafeParseResult<ListAgentTasksModel, SDKValidationError>;
359
+ export declare const ListAgentTasksParts2$outboundSchema: z.ZodType<ListAgentTasksParts2$Outbound, z.ZodTypeDef, ListAgentTasksParts2>;
360
+ export declare function listAgentTasksParts2ToJSON(listAgentTasksParts2: ListAgentTasksParts2): string;
361
+ export declare function listAgentTasksParts2FromJSON(jsonString: string): SafeParseResult<ListAgentTasksParts2, SDKValidationError>;
1155
362
  /** @internal */
1156
- export declare const ListAgentTasksToolApprovalRequired$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolApprovalRequired>;
363
+ export declare const ListAgentTasksPartsKind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsKind>;
1157
364
  /** @internal */
1158
- export declare const ListAgentTasksToolApprovalRequired$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksToolApprovalRequired>;
365
+ export declare const ListAgentTasksPartsKind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksPartsKind>;
1159
366
  /** @internal */
1160
- export declare const ListAgentTasksConditions$inboundSchema: z.ZodType<ListAgentTasksConditions, z.ZodTypeDef, unknown>;
367
+ export declare const ListAgentTasksParts1$inboundSchema: z.ZodType<ListAgentTasksParts1, z.ZodTypeDef, unknown>;
1161
368
  /** @internal */
1162
- export type ListAgentTasksConditions$Outbound = {
1163
- condition: string;
1164
- operator: string;
1165
- value: string;
369
+ export type ListAgentTasksParts1$Outbound = {
370
+ kind: string;
371
+ text: string;
1166
372
  };
1167
373
  /** @internal */
1168
- export declare const ListAgentTasksConditions$outboundSchema: z.ZodType<ListAgentTasksConditions$Outbound, z.ZodTypeDef, ListAgentTasksConditions>;
1169
- export declare function listAgentTasksConditionsToJSON(listAgentTasksConditions: ListAgentTasksConditions): string;
1170
- export declare function listAgentTasksConditionsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksConditions, SDKValidationError>;
374
+ export declare const ListAgentTasksParts1$outboundSchema: z.ZodType<ListAgentTasksParts1$Outbound, z.ZodTypeDef, ListAgentTasksParts1>;
375
+ export declare function listAgentTasksParts1ToJSON(listAgentTasksParts1: ListAgentTasksParts1): string;
376
+ export declare function listAgentTasksParts1FromJSON(jsonString: string): SafeParseResult<ListAgentTasksParts1, SDKValidationError>;
1171
377
  /** @internal */
1172
- export declare const ListAgentTasksTools$inboundSchema: z.ZodType<ListAgentTasksTools, z.ZodTypeDef, unknown>;
378
+ export declare const ListAgentTasksParts$inboundSchema: z.ZodType<ListAgentTasksParts, z.ZodTypeDef, unknown>;
1173
379
  /** @internal */
1174
- export type ListAgentTasksTools$Outbound = {
1175
- id: string;
1176
- key?: string | undefined;
1177
- action_type: string;
1178
- display_name?: string | undefined;
1179
- requires_approval: boolean;
1180
- conditions?: Array<ListAgentTasksConditions$Outbound> | undefined;
1181
- mcpServer?: string | undefined;
1182
- timeout: number;
1183
- };
380
+ export type ListAgentTasksParts$Outbound = ListAgentTasksParts4$Outbound | ListAgentTasksParts1$Outbound | ListAgentTasksParts2$Outbound | ListAgentTasksParts3$Outbound | ListAgentTasksParts5$Outbound;
1184
381
  /** @internal */
1185
- export declare const ListAgentTasksTools$outboundSchema: z.ZodType<ListAgentTasksTools$Outbound, z.ZodTypeDef, ListAgentTasksTools>;
1186
- export declare function listAgentTasksToolsToJSON(listAgentTasksTools: ListAgentTasksTools): string;
1187
- export declare function listAgentTasksToolsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksTools, SDKValidationError>;
382
+ export declare const ListAgentTasksParts$outboundSchema: z.ZodType<ListAgentTasksParts$Outbound, z.ZodTypeDef, ListAgentTasksParts>;
383
+ export declare function listAgentTasksPartsToJSON(listAgentTasksParts: ListAgentTasksParts): string;
384
+ export declare function listAgentTasksPartsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksParts, SDKValidationError>;
1188
385
  /** @internal */
1189
- export declare const ListAgentTasksSettings$inboundSchema: z.ZodType<ListAgentTasksSettings, z.ZodTypeDef, unknown>;
386
+ export declare const ListAgentTasksHistory$inboundSchema: z.ZodType<ListAgentTasksHistory, z.ZodTypeDef, unknown>;
1190
387
  /** @internal */
1191
- export type ListAgentTasksSettings$Outbound = {
1192
- max_iterations: number;
1193
- max_execution_time: number;
1194
- tool_approval_required: string;
1195
- tools?: Array<ListAgentTasksTools$Outbound> | undefined;
1196
- };
1197
- /** @internal */
1198
- export declare const ListAgentTasksSettings$outboundSchema: z.ZodType<ListAgentTasksSettings$Outbound, z.ZodTypeDef, ListAgentTasksSettings>;
1199
- export declare function listAgentTasksSettingsToJSON(listAgentTasksSettings: ListAgentTasksSettings): string;
1200
- export declare function listAgentTasksSettingsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksSettings, SDKValidationError>;
1201
- /** @internal */
1202
- export declare const AgentManifestSnapshot$inboundSchema: z.ZodType<AgentManifestSnapshot, z.ZodTypeDef, unknown>;
1203
- /** @internal */
1204
- export type AgentManifestSnapshot$Outbound = {
1205
- _id: string;
1206
- key: string;
388
+ export type ListAgentTasksHistory$Outbound = {
389
+ kind: string;
390
+ messageId: string;
1207
391
  role: string;
1208
- description: string;
1209
- instructions: string;
1210
- system_prompt?: string | undefined;
1211
- model: ListAgentTasksModel$Outbound;
1212
- settings?: ListAgentTasksSettings$Outbound | undefined;
1213
- project_id?: string | undefined;
1214
- };
1215
- /** @internal */
1216
- export declare const AgentManifestSnapshot$outboundSchema: z.ZodType<AgentManifestSnapshot$Outbound, z.ZodTypeDef, AgentManifestSnapshot>;
1217
- export declare function agentManifestSnapshotToJSON(agentManifestSnapshot: AgentManifestSnapshot): string;
1218
- export declare function agentManifestSnapshotFromJSON(jsonString: string): SafeParseResult<AgentManifestSnapshot, SDKValidationError>;
1219
- /** @internal */
1220
- export declare const ListAgentTasksMemory$inboundSchema: z.ZodType<ListAgentTasksMemory, z.ZodTypeDef, unknown>;
1221
- /** @internal */
1222
- export type ListAgentTasksMemory$Outbound = {
1223
- entity_id: string;
1224
- };
1225
- /** @internal */
1226
- export declare const ListAgentTasksMemory$outboundSchema: z.ZodType<ListAgentTasksMemory$Outbound, z.ZodTypeDef, ListAgentTasksMemory>;
1227
- export declare function listAgentTasksMemoryToJSON(listAgentTasksMemory: ListAgentTasksMemory): string;
1228
- export declare function listAgentTasksMemoryFromJSON(jsonString: string): SafeParseResult<ListAgentTasksMemory, SDKValidationError>;
1229
- /** @internal */
1230
- export declare const ListAgentTasksState$inboundSchema: z.ZodType<ListAgentTasksState, z.ZodTypeDef, unknown>;
1231
- /** @internal */
1232
- export type ListAgentTasksState$Outbound = {
1233
- waiting_for_approval: boolean;
1234
- inactive: boolean;
1235
- error?: string | undefined;
1236
- iteration: number;
1237
- accumulated_execution_time: number;
1238
- variables?: {
392
+ parts: Array<ListAgentTasksParts4$Outbound | ListAgentTasksParts1$Outbound | ListAgentTasksParts2$Outbound | ListAgentTasksParts3$Outbound | ListAgentTasksParts5$Outbound>;
393
+ taskId?: string | undefined;
394
+ contextId?: string | undefined;
395
+ metadata?: {
1239
396
  [k: string]: any;
1240
397
  } | undefined;
1241
398
  };
1242
399
  /** @internal */
1243
- export declare const ListAgentTasksState$outboundSchema: z.ZodType<ListAgentTasksState$Outbound, z.ZodTypeDef, ListAgentTasksState>;
1244
- export declare function listAgentTasksStateToJSON(listAgentTasksState: ListAgentTasksState): string;
1245
- export declare function listAgentTasksStateFromJSON(jsonString: string): SafeParseResult<ListAgentTasksState, SDKValidationError>;
400
+ export declare const ListAgentTasksHistory$outboundSchema: z.ZodType<ListAgentTasksHistory$Outbound, z.ZodTypeDef, ListAgentTasksHistory>;
401
+ export declare function listAgentTasksHistoryToJSON(listAgentTasksHistory: ListAgentTasksHistory): string;
402
+ export declare function listAgentTasksHistoryFromJSON(jsonString: string): SafeParseResult<ListAgentTasksHistory, SDKValidationError>;
1246
403
  /** @internal */
1247
- export declare const ListAgentTasksMetrics$inboundSchema: z.ZodType<ListAgentTasksMetrics, z.ZodTypeDef, unknown>;
404
+ export declare const ListAgentTasksAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof ListAgentTasksAgentsResponseKind>;
1248
405
  /** @internal */
1249
- export type ListAgentTasksMetrics$Outbound = {
1250
- input_cost: number;
1251
- output_cost: number;
1252
- total_cost: number;
1253
- prompt_tokens: number;
1254
- completion_tokens: number;
1255
- total_tokens: number;
406
+ export declare const ListAgentTasksAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof ListAgentTasksAgentsResponseKind>;
407
+ /** @internal */
408
+ export declare const ListAgentTasksArtifacts$inboundSchema: z.ZodType<ListAgentTasksArtifacts, z.ZodTypeDef, unknown>;
409
+ /** @internal */
410
+ export type ListAgentTasksArtifacts$Outbound = {
411
+ kind: string;
412
+ artifactId: string;
413
+ name: string;
414
+ type: string;
415
+ url?: string | undefined;
416
+ data?: any | undefined;
1256
417
  };
1257
418
  /** @internal */
1258
- export declare const ListAgentTasksMetrics$outboundSchema: z.ZodType<ListAgentTasksMetrics$Outbound, z.ZodTypeDef, ListAgentTasksMetrics>;
1259
- export declare function listAgentTasksMetricsToJSON(listAgentTasksMetrics: ListAgentTasksMetrics): string;
1260
- export declare function listAgentTasksMetricsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksMetrics, SDKValidationError>;
419
+ export declare const ListAgentTasksArtifacts$outboundSchema: z.ZodType<ListAgentTasksArtifacts$Outbound, z.ZodTypeDef, ListAgentTasksArtifacts>;
420
+ export declare function listAgentTasksArtifactsToJSON(listAgentTasksArtifacts: ListAgentTasksArtifacts): string;
421
+ export declare function listAgentTasksArtifactsFromJSON(jsonString: string): SafeParseResult<ListAgentTasksArtifacts, SDKValidationError>;
1261
422
  /** @internal */
1262
423
  export declare const Tasks$inboundSchema: z.ZodType<Tasks, z.ZodTypeDef, unknown>;
1263
424
  /** @internal */
1264
425
  export type Tasks$Outbound = {
1265
- _id: string;
1266
- agent_manifest_snapshot: AgentManifestSnapshot$Outbound;
1267
- created_by_id?: string | undefined;
1268
- updated_by_id?: string | undefined;
1269
- created?: string | undefined;
1270
- updated?: string | undefined;
1271
- name?: string | undefined;
1272
- workspace_id: string;
1273
- memory?: ListAgentTasksMemory$Outbound | undefined;
426
+ id: string;
427
+ contextId: string;
428
+ kind: string;
429
+ status: ListAgentTasksStatus$Outbound;
430
+ history: Array<ListAgentTasksHistory$Outbound>;
431
+ artifacts?: Array<ListAgentTasksArtifacts$Outbound> | undefined;
1274
432
  metadata?: {
1275
433
  [k: string]: any;
1276
434
  } | undefined;
1277
- state: ListAgentTasksState$Outbound;
1278
- metrics: ListAgentTasksMetrics$Outbound;
1279
435
  };
1280
436
  /** @internal */
1281
437
  export declare const Tasks$outboundSchema: z.ZodType<Tasks$Outbound, z.ZodTypeDef, Tasks>;