@anthropic-ai/sdk 0.117.1 → 0.119.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +1 -0
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +1 -0
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +7 -2
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +8 -3
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +1 -0
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +1 -0
- package/core/error.d.ts.map +1 -1
- package/core/error.js +1 -0
- package/core/error.js.map +1 -1
- package/core/error.mjs +1 -0
- package/core/error.mjs.map +1 -1
- package/core/middleware.js +1 -1
- package/core/middleware.js.map +1 -1
- package/core/middleware.mjs +2 -2
- package/core/middleware.mjs.map +1 -1
- package/helpers/beta/zod.d.mts.map +1 -1
- package/helpers/beta/zod.d.ts.map +1 -1
- package/helpers/beta/zod.js +1 -2
- package/helpers/beta/zod.js.map +1 -1
- package/helpers/beta/zod.mjs +1 -2
- package/helpers/beta/zod.mjs.map +1 -1
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +1 -2
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +1 -2
- package/helpers/zod.mjs.map +1 -1
- package/internal/parse.d.mts +2 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +6 -6
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -5
- package/internal/parse.mjs.map +1 -1
- package/lib/BetaMessageStream.d.mts +2 -0
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts +2 -0
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +8 -2
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +8 -2
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/MessageStream.d.mts +2 -0
- package/lib/MessageStream.d.mts.map +1 -1
- package/lib/MessageStream.d.ts +2 -0
- package/lib/MessageStream.d.ts.map +1 -1
- package/lib/MessageStream.js +8 -2
- package/lib/MessageStream.js.map +1 -1
- package/lib/MessageStream.mjs +8 -2
- package/lib/MessageStream.mjs.map +1 -1
- package/lib/environments/worker.d.mts +10 -6
- package/lib/environments/worker.d.mts.map +1 -1
- package/lib/environments/worker.d.ts +10 -6
- package/lib/environments/worker.d.ts.map +1 -1
- package/lib/environments/worker.js +22 -15
- package/lib/environments/worker.js.map +1 -1
- package/lib/environments/worker.mjs +22 -15
- package/lib/environments/worker.mjs.map +1 -1
- package/lib/tools/BetaRunnableTool.d.mts +21 -40
- package/lib/tools/BetaRunnableTool.d.mts.map +1 -1
- package/lib/tools/BetaRunnableTool.d.ts +21 -40
- package/lib/tools/BetaRunnableTool.d.ts.map +1 -1
- package/lib/tools/BetaRunnableTool.js +7 -16
- package/lib/tools/BetaRunnableTool.js.map +1 -1
- package/lib/tools/BetaRunnableTool.mjs +7 -16
- package/lib/tools/BetaRunnableTool.mjs.map +1 -1
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +3 -13
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +3 -13
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/lib/tools/SessionToolRunner.d.mts +6 -0
- package/lib/tools/SessionToolRunner.d.mts.map +1 -1
- package/lib/tools/SessionToolRunner.d.ts +6 -0
- package/lib/tools/SessionToolRunner.d.ts.map +1 -1
- package/lib/tools/SessionToolRunner.js +37 -8
- package/lib/tools/SessionToolRunner.js.map +1 -1
- package/lib/tools/SessionToolRunner.mjs +38 -9
- package/lib/tools/SessionToolRunner.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +3 -3
- package/resources/beta/agents/agents.d.ts +3 -3
- package/resources/beta/agents/agents.js +1 -1
- package/resources/beta/agents/agents.mjs +1 -1
- package/resources/beta/beta.d.mts +5 -5
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +5 -5
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/dreams.d.mts +2 -2
- package/resources/beta/dreams.d.ts +2 -2
- package/resources/beta/environments/environments.d.mts +4 -3
- package/resources/beta/environments/environments.d.mts.map +1 -1
- package/resources/beta/environments/environments.d.ts +4 -3
- package/resources/beta/environments/environments.d.ts.map +1 -1
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/files.d.mts +22 -22
- package/resources/beta/files.d.mts.map +1 -1
- package/resources/beta/files.d.ts +22 -22
- package/resources/beta/files.d.ts.map +1 -1
- package/resources/beta/files.js +4 -4
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +4 -4
- package/resources/beta/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +2 -2
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +2 -2
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/index.d.mts +1 -1
- package/resources/beta/memory-stores/index.d.mts.map +1 -1
- package/resources/beta/memory-stores/index.d.ts +1 -1
- package/resources/beta/memory-stores/index.d.ts.map +1 -1
- package/resources/beta/memory-stores/index.js.map +1 -1
- package/resources/beta/memory-stores/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-stores.d.mts +2 -2
- package/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.d.ts +2 -2
- package/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +17 -2
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +17 -2
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/messages/batches.d.mts +1 -1
- package/resources/beta/messages/batches.d.ts +1 -1
- package/resources/beta/messages/batches.js +1 -1
- package/resources/beta/messages/batches.mjs +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +1204 -25
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +1204 -25
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +1 -1
- package/resources/beta/sessions/sessions.d.ts +1 -1
- package/resources/beta/user-profiles.d.mts +35 -9
- package/resources/beta/user-profiles.d.mts.map +1 -1
- package/resources/beta/user-profiles.d.ts +35 -9
- package/resources/beta/user-profiles.d.ts.map +1 -1
- package/resources/beta/user-profiles.js +5 -5
- package/resources/beta/user-profiles.mjs +5 -5
- package/resources/files.d.mts +105 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +105 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +52 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +48 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages/batches.d.mts +1 -1
- package/resources/messages/batches.d.ts +1 -1
- package/resources/messages/batches.js +1 -1
- package/resources/messages/batches.mjs +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +1270 -28
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +1270 -28
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/skills/index.d.mts +3 -0
- package/resources/skills/index.d.mts.map +1 -0
- package/resources/skills/index.d.ts +3 -0
- package/resources/skills/index.d.ts.map +1 -0
- package/resources/skills/index.js +9 -0
- package/resources/skills/index.js.map +1 -0
- package/resources/skills/index.mjs +4 -0
- package/resources/skills/index.mjs.map +1 -0
- package/resources/skills/skills.d.mts +129 -0
- package/resources/skills/skills.d.mts.map +1 -0
- package/resources/skills/skills.d.ts +129 -0
- package/resources/skills/skills.d.ts.map +1 -0
- package/resources/skills/skills.js +44 -0
- package/resources/skills/skills.js.map +1 -0
- package/resources/skills/skills.mjs +39 -0
- package/resources/skills/skills.mjs.map +1 -0
- package/resources/skills/versions.d.mts +104 -0
- package/resources/skills/versions.d.mts.map +1 -0
- package/resources/skills/versions.d.ts +104 -0
- package/resources/skills/versions.d.ts.map +1 -0
- package/resources/skills/versions.js +41 -0
- package/resources/skills/versions.js.map +1 -0
- package/resources/skills/versions.mjs +37 -0
- package/resources/skills/versions.mjs.map +1 -0
- package/resources/skills.d.mts +2 -0
- package/resources/skills.d.mts.map +1 -0
- package/resources/skills.d.ts +2 -0
- package/resources/skills.d.ts.map +1 -0
- package/resources/skills.js +6 -0
- package/resources/skills.js.map +1 -0
- package/resources/skills.mjs +3 -0
- package/resources/skills.mjs.map +1 -0
- package/src/client.ts +173 -3
- package/src/core/api-promise.ts +14 -4
- package/src/core/error.ts +2 -0
- package/src/core/middleware.ts +2 -2
- package/src/helpers/beta/zod.ts +1 -3
- package/src/helpers/zod.ts +1 -3
- package/src/internal/parse.ts +6 -6
- package/src/lib/BetaMessageStream.ts +8 -0
- package/src/lib/MessageStream.ts +8 -0
- package/src/lib/environments/worker.ts +28 -14
- package/src/lib/tools/BetaRunnableTool.ts +26 -43
- package/src/lib/tools/BetaToolRunner.ts +6 -13
- package/src/lib/tools/SessionToolRunner.ts +39 -6
- package/src/resources/beta/agents/agents.ts +3 -3
- package/src/resources/beta/beta.ts +127 -8
- package/src/resources/beta/dreams.ts +2 -2
- package/src/resources/beta/environments/environments.ts +4 -3
- package/src/resources/beta/files.ts +27 -27
- package/src/resources/beta/index.ts +63 -4
- package/src/resources/beta/memory-stores/index.ts +1 -0
- package/src/resources/beta/memory-stores/memory-stores.ts +2 -0
- package/src/resources/beta/memory-stores/memory-versions.ts +21 -1
- package/src/resources/beta/messages/batches.ts +1 -1
- package/src/resources/beta/messages/index.ts +60 -1
- package/src/resources/beta/messages/messages.ts +1862 -435
- package/src/resources/beta/sessions/sessions.ts +1 -1
- package/src/resources/beta/user-profiles.ts +44 -15
- package/src/resources/files.ts +163 -0
- package/src/resources/index.ts +83 -1
- package/src/resources/messages/batches.ts +1 -1
- package/src/resources/messages/index.ts +66 -1
- package/src/resources/messages/messages.ts +1830 -320
- package/src/resources/skills/index.ts +21 -0
- package/src/resources/skills/skills.ts +194 -0
- package/src/resources/skills/versions.ts +160 -0
- package/src/resources/skills.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -24,7 +24,7 @@ export declare class Messages extends APIResource {
|
|
|
24
24
|
* const message = await client.messages.create({
|
|
25
25
|
* max_tokens: 1024,
|
|
26
26
|
* messages: [{ content: 'Hello, world', role: 'user' }],
|
|
27
|
-
* model: 'claude-opus-
|
|
27
|
+
* model: 'claude-opus-5',
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
@@ -86,7 +86,7 @@ export declare class Messages extends APIResource {
|
|
|
86
86
|
* const messageTokensCount =
|
|
87
87
|
* await client.messages.countTokens({
|
|
88
88
|
* messages: [{ content: 'Hello, world', role: 'user' }],
|
|
89
|
-
* model: 'claude-opus-
|
|
89
|
+
* model: 'claude-opus-5',
|
|
90
90
|
* });
|
|
91
91
|
* ```
|
|
92
92
|
*/
|
|
@@ -147,6 +147,794 @@ export interface BashCodeExecutionToolResultErrorParam {
|
|
|
147
147
|
error_code: BashCodeExecutionToolResultErrorCode;
|
|
148
148
|
type: 'bash_code_execution_tool_result_error';
|
|
149
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* `close_tab`'s config overrides.
|
|
152
|
+
*/
|
|
153
|
+
export interface BrowserCloseTabConfig {
|
|
154
|
+
/**
|
|
155
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
156
|
+
* member of the toolset.
|
|
157
|
+
*/
|
|
158
|
+
defer_loading?: boolean | null;
|
|
159
|
+
/**
|
|
160
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
161
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
162
|
+
* the served schema.
|
|
163
|
+
*/
|
|
164
|
+
enabled?: boolean | null;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* `double_click`'s config overrides.
|
|
168
|
+
*/
|
|
169
|
+
export interface BrowserDoubleClickConfig {
|
|
170
|
+
/**
|
|
171
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
172
|
+
* member of the toolset.
|
|
173
|
+
*/
|
|
174
|
+
defer_loading?: boolean | null;
|
|
175
|
+
/**
|
|
176
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
177
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
178
|
+
* the served schema.
|
|
179
|
+
*/
|
|
180
|
+
enabled?: boolean | null;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* `file_upload`'s config overrides.
|
|
184
|
+
*/
|
|
185
|
+
export interface BrowserFileUploadConfig {
|
|
186
|
+
/**
|
|
187
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
188
|
+
* member of the toolset.
|
|
189
|
+
*/
|
|
190
|
+
defer_loading?: boolean | null;
|
|
191
|
+
/**
|
|
192
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
193
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
194
|
+
* the served schema.
|
|
195
|
+
*/
|
|
196
|
+
enabled?: boolean | null;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* `find`'s config overrides.
|
|
200
|
+
*/
|
|
201
|
+
export interface BrowserFindConfig {
|
|
202
|
+
/**
|
|
203
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
204
|
+
* member of the toolset.
|
|
205
|
+
*/
|
|
206
|
+
defer_loading?: boolean | null;
|
|
207
|
+
/**
|
|
208
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
209
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
210
|
+
* the served schema.
|
|
211
|
+
*/
|
|
212
|
+
enabled?: boolean | null;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* `form_input`'s config overrides.
|
|
216
|
+
*/
|
|
217
|
+
export interface BrowserFormInputConfig {
|
|
218
|
+
/**
|
|
219
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
220
|
+
* member of the toolset.
|
|
221
|
+
*/
|
|
222
|
+
defer_loading?: boolean | null;
|
|
223
|
+
/**
|
|
224
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
225
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
226
|
+
* the served schema.
|
|
227
|
+
*/
|
|
228
|
+
enabled?: boolean | null;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* `get_page_text`'s config overrides.
|
|
232
|
+
*/
|
|
233
|
+
export interface BrowserGetPageTextConfig {
|
|
234
|
+
/**
|
|
235
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
236
|
+
* member of the toolset.
|
|
237
|
+
*/
|
|
238
|
+
defer_loading?: boolean | null;
|
|
239
|
+
/**
|
|
240
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
241
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
242
|
+
* the served schema.
|
|
243
|
+
*/
|
|
244
|
+
enabled?: boolean | null;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* `hold_key`'s config overrides.
|
|
248
|
+
*/
|
|
249
|
+
export interface BrowserHoldKeyConfig {
|
|
250
|
+
/**
|
|
251
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
252
|
+
* member of the toolset.
|
|
253
|
+
*/
|
|
254
|
+
defer_loading?: boolean | null;
|
|
255
|
+
/**
|
|
256
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
257
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
258
|
+
* the served schema.
|
|
259
|
+
*/
|
|
260
|
+
enabled?: boolean | null;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* `hover`'s config overrides.
|
|
264
|
+
*/
|
|
265
|
+
export interface BrowserHoverConfig {
|
|
266
|
+
/**
|
|
267
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
268
|
+
* member of the toolset.
|
|
269
|
+
*/
|
|
270
|
+
defer_loading?: boolean | null;
|
|
271
|
+
/**
|
|
272
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
273
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
274
|
+
* the served schema.
|
|
275
|
+
*/
|
|
276
|
+
enabled?: boolean | null;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* `javascript_exec`'s config overrides.
|
|
280
|
+
*/
|
|
281
|
+
export interface BrowserJavascriptExecConfig {
|
|
282
|
+
/**
|
|
283
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
284
|
+
* member of the toolset.
|
|
285
|
+
*/
|
|
286
|
+
defer_loading?: boolean | null;
|
|
287
|
+
/**
|
|
288
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
289
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
290
|
+
* the served schema.
|
|
291
|
+
*/
|
|
292
|
+
enabled?: boolean | null;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* `key`'s config overrides.
|
|
296
|
+
*/
|
|
297
|
+
export interface BrowserKeyConfig {
|
|
298
|
+
/**
|
|
299
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
300
|
+
* member of the toolset.
|
|
301
|
+
*/
|
|
302
|
+
defer_loading?: boolean | null;
|
|
303
|
+
/**
|
|
304
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
305
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
306
|
+
* the served schema.
|
|
307
|
+
*/
|
|
308
|
+
enabled?: boolean | null;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* `left_click`'s config overrides.
|
|
312
|
+
*/
|
|
313
|
+
export interface BrowserLeftClickConfig {
|
|
314
|
+
/**
|
|
315
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
316
|
+
* member of the toolset.
|
|
317
|
+
*/
|
|
318
|
+
defer_loading?: boolean | null;
|
|
319
|
+
/**
|
|
320
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
321
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
322
|
+
* the served schema.
|
|
323
|
+
*/
|
|
324
|
+
enabled?: boolean | null;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* `left_click_drag`'s config overrides.
|
|
328
|
+
*/
|
|
329
|
+
export interface BrowserLeftClickDragConfig {
|
|
330
|
+
/**
|
|
331
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
332
|
+
* member of the toolset.
|
|
333
|
+
*/
|
|
334
|
+
defer_loading?: boolean | null;
|
|
335
|
+
/**
|
|
336
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
337
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
338
|
+
* the served schema.
|
|
339
|
+
*/
|
|
340
|
+
enabled?: boolean | null;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* `left_mouse_down`'s config overrides.
|
|
344
|
+
*/
|
|
345
|
+
export interface BrowserLeftMouseDownConfig {
|
|
346
|
+
/**
|
|
347
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
348
|
+
* member of the toolset.
|
|
349
|
+
*/
|
|
350
|
+
defer_loading?: boolean | null;
|
|
351
|
+
/**
|
|
352
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
353
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
354
|
+
* the served schema.
|
|
355
|
+
*/
|
|
356
|
+
enabled?: boolean | null;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* `left_mouse_up`'s config overrides.
|
|
360
|
+
*/
|
|
361
|
+
export interface BrowserLeftMouseUpConfig {
|
|
362
|
+
/**
|
|
363
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
364
|
+
* member of the toolset.
|
|
365
|
+
*/
|
|
366
|
+
defer_loading?: boolean | null;
|
|
367
|
+
/**
|
|
368
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
369
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
370
|
+
* the served schema.
|
|
371
|
+
*/
|
|
372
|
+
enabled?: boolean | null;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* `list_tabs`'s config overrides.
|
|
376
|
+
*/
|
|
377
|
+
export interface BrowserListTabsConfig {
|
|
378
|
+
/**
|
|
379
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
380
|
+
* member of the toolset.
|
|
381
|
+
*/
|
|
382
|
+
defer_loading?: boolean | null;
|
|
383
|
+
/**
|
|
384
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
385
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
386
|
+
* the served schema.
|
|
387
|
+
*/
|
|
388
|
+
enabled?: boolean | null;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* `middle_click`'s config overrides.
|
|
392
|
+
*/
|
|
393
|
+
export interface BrowserMiddleClickConfig {
|
|
394
|
+
/**
|
|
395
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
396
|
+
* member of the toolset.
|
|
397
|
+
*/
|
|
398
|
+
defer_loading?: boolean | null;
|
|
399
|
+
/**
|
|
400
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
401
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
402
|
+
* the served schema.
|
|
403
|
+
*/
|
|
404
|
+
enabled?: boolean | null;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* `mouse_move`'s config overrides.
|
|
408
|
+
*/
|
|
409
|
+
export interface BrowserMouseMoveConfig {
|
|
410
|
+
/**
|
|
411
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
412
|
+
* member of the toolset.
|
|
413
|
+
*/
|
|
414
|
+
defer_loading?: boolean | null;
|
|
415
|
+
/**
|
|
416
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
417
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
418
|
+
* the served schema.
|
|
419
|
+
*/
|
|
420
|
+
enabled?: boolean | null;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* `navigate`'s config overrides.
|
|
424
|
+
*/
|
|
425
|
+
export interface BrowserNavigateConfig {
|
|
426
|
+
/**
|
|
427
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
428
|
+
* member of the toolset.
|
|
429
|
+
*/
|
|
430
|
+
defer_loading?: boolean | null;
|
|
431
|
+
/**
|
|
432
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
433
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
434
|
+
* the served schema.
|
|
435
|
+
*/
|
|
436
|
+
enabled?: boolean | null;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* `new_tab`'s config overrides.
|
|
440
|
+
*/
|
|
441
|
+
export interface BrowserNewTabConfig {
|
|
442
|
+
/**
|
|
443
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
444
|
+
* member of the toolset.
|
|
445
|
+
*/
|
|
446
|
+
defer_loading?: boolean | null;
|
|
447
|
+
/**
|
|
448
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
449
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
450
|
+
* the served schema.
|
|
451
|
+
*/
|
|
452
|
+
enabled?: boolean | null;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* `read_console`'s config overrides.
|
|
456
|
+
*/
|
|
457
|
+
export interface BrowserReadConsoleConfig {
|
|
458
|
+
/**
|
|
459
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
460
|
+
* member of the toolset.
|
|
461
|
+
*/
|
|
462
|
+
defer_loading?: boolean | null;
|
|
463
|
+
/**
|
|
464
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
465
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
466
|
+
* the served schema.
|
|
467
|
+
*/
|
|
468
|
+
enabled?: boolean | null;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* `read_network`'s config overrides.
|
|
472
|
+
*/
|
|
473
|
+
export interface BrowserReadNetworkConfig {
|
|
474
|
+
/**
|
|
475
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
476
|
+
* member of the toolset.
|
|
477
|
+
*/
|
|
478
|
+
defer_loading?: boolean | null;
|
|
479
|
+
/**
|
|
480
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
481
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
482
|
+
* the served schema.
|
|
483
|
+
*/
|
|
484
|
+
enabled?: boolean | null;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* `read_page`'s config overrides.
|
|
488
|
+
*/
|
|
489
|
+
export interface BrowserReadPageConfig {
|
|
490
|
+
/**
|
|
491
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
492
|
+
* member of the toolset.
|
|
493
|
+
*/
|
|
494
|
+
defer_loading?: boolean | null;
|
|
495
|
+
/**
|
|
496
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
497
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
498
|
+
* the served schema.
|
|
499
|
+
*/
|
|
500
|
+
enabled?: boolean | null;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* `right_click`'s config overrides.
|
|
504
|
+
*/
|
|
505
|
+
export interface BrowserRightClickConfig {
|
|
506
|
+
/**
|
|
507
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
508
|
+
* member of the toolset.
|
|
509
|
+
*/
|
|
510
|
+
defer_loading?: boolean | null;
|
|
511
|
+
/**
|
|
512
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
513
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
514
|
+
* the served schema.
|
|
515
|
+
*/
|
|
516
|
+
enabled?: boolean | null;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* `screenshot`'s config overrides.
|
|
520
|
+
*/
|
|
521
|
+
export interface BrowserScreenshotConfig {
|
|
522
|
+
/**
|
|
523
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
524
|
+
* member of the toolset.
|
|
525
|
+
*/
|
|
526
|
+
defer_loading?: boolean | null;
|
|
527
|
+
/**
|
|
528
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
529
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
530
|
+
* the served schema.
|
|
531
|
+
*/
|
|
532
|
+
enabled?: boolean | null;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* `scroll`'s config overrides.
|
|
536
|
+
*/
|
|
537
|
+
export interface BrowserScrollConfig {
|
|
538
|
+
/**
|
|
539
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
540
|
+
* member of the toolset.
|
|
541
|
+
*/
|
|
542
|
+
defer_loading?: boolean | null;
|
|
543
|
+
/**
|
|
544
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
545
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
546
|
+
* the served schema.
|
|
547
|
+
*/
|
|
548
|
+
enabled?: boolean | null;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* `scroll_to`'s config overrides.
|
|
552
|
+
*/
|
|
553
|
+
export interface BrowserScrollToConfig {
|
|
554
|
+
/**
|
|
555
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
556
|
+
* member of the toolset.
|
|
557
|
+
*/
|
|
558
|
+
defer_loading?: boolean | null;
|
|
559
|
+
/**
|
|
560
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
561
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
562
|
+
* the served schema.
|
|
563
|
+
*/
|
|
564
|
+
enabled?: boolean | null;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* The caller's browser state after a browser toolset member call — the full
|
|
568
|
+
* inventory of open tabs, which tab is active, and any side effects (tabs opened,
|
|
569
|
+
* download state changes) the call produced.
|
|
570
|
+
*
|
|
571
|
+
* At most one per `tool_result`, only on a non-error result answering a browser
|
|
572
|
+
* toolset member `tool_use`. The server renders the model-visible text from it;
|
|
573
|
+
* the model never sees the raw fields.
|
|
574
|
+
*/
|
|
575
|
+
export interface BrowserStateBlockParam {
|
|
576
|
+
/**
|
|
577
|
+
* All tabs open in the browser after this call — the full inventory, not a delta.
|
|
578
|
+
* May be empty. Whenever non-empty, exactly one entry carries `active: true`.
|
|
579
|
+
*/
|
|
580
|
+
tabs: Array<BrowserStateTabEntry>;
|
|
581
|
+
type: 'browser_state';
|
|
582
|
+
/**
|
|
583
|
+
* Create a cache control breakpoint at this content block.
|
|
584
|
+
*/
|
|
585
|
+
cache_control?: CacheControlEphemeral | null;
|
|
586
|
+
/**
|
|
587
|
+
* Tabs opened and download state changes during this call. "Nothing to report" is
|
|
588
|
+
* expressed by omitting the field, never by an empty list.
|
|
589
|
+
*/
|
|
590
|
+
state_changes?: Array<BrowserStateChange> | null;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
594
|
+
* delta of the `tabs` inventory, not an event log.
|
|
595
|
+
*
|
|
596
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
597
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
598
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
599
|
+
*/
|
|
600
|
+
export type BrowserStateChange = BrowserStateChangeTabOpened | BrowserStateChangeDownloadStarted | BrowserStateChangeDownloadCompleted | BrowserStateChangeDownloadFailed;
|
|
601
|
+
/**
|
|
602
|
+
* A file download that finished during this call, reported with the same
|
|
603
|
+
* `download_id` as its `download_started` — or without a prior `download_started`,
|
|
604
|
+
* when the download finished during the call that started it (at most one state
|
|
605
|
+
* change per `download_id` per result).
|
|
606
|
+
*/
|
|
607
|
+
export interface BrowserStateChangeDownloadCompleted {
|
|
608
|
+
/**
|
|
609
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
610
|
+
* changes reporting it.
|
|
611
|
+
*/
|
|
612
|
+
download_id: string;
|
|
613
|
+
type: 'download_completed';
|
|
614
|
+
/**
|
|
615
|
+
* The final post-redirect URL the download was served from.
|
|
616
|
+
*/
|
|
617
|
+
url: string;
|
|
618
|
+
/**
|
|
619
|
+
* Where the executor saved the file, on the executor's filesystem. Only included
|
|
620
|
+
* when another tool in the same environment can read the file at that path.
|
|
621
|
+
*/
|
|
622
|
+
path?: string | null;
|
|
623
|
+
/**
|
|
624
|
+
* The completed download's size.
|
|
625
|
+
*/
|
|
626
|
+
size_bytes?: number | null;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* A file download that failed — or was cancelled — during this call.
|
|
630
|
+
*/
|
|
631
|
+
export interface BrowserStateChangeDownloadFailed {
|
|
632
|
+
/**
|
|
633
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
634
|
+
* changes reporting it.
|
|
635
|
+
*/
|
|
636
|
+
download_id: string;
|
|
637
|
+
type: 'download_failed';
|
|
638
|
+
/**
|
|
639
|
+
* The final post-redirect URL the download was served from.
|
|
640
|
+
*/
|
|
641
|
+
url: string;
|
|
642
|
+
/**
|
|
643
|
+
* The failure or cancellation detail, when known.
|
|
644
|
+
*/
|
|
645
|
+
error?: string | null;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* A file download that started during this call.
|
|
649
|
+
*/
|
|
650
|
+
export interface BrowserStateChangeDownloadStarted {
|
|
651
|
+
/**
|
|
652
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
653
|
+
* changes reporting it.
|
|
654
|
+
*/
|
|
655
|
+
download_id: string;
|
|
656
|
+
type: 'download_started';
|
|
657
|
+
/**
|
|
658
|
+
* The final post-redirect URL the download was served from.
|
|
659
|
+
*/
|
|
660
|
+
url: string;
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
664
|
+
* delta of the `tabs` inventory, not an event log.
|
|
665
|
+
*
|
|
666
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
667
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
668
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
669
|
+
*/
|
|
670
|
+
export interface BrowserStateChangeTabOpened {
|
|
671
|
+
/**
|
|
672
|
+
* The `tab_id` of the opened tab, present in `tabs`.
|
|
673
|
+
*/
|
|
674
|
+
tab_id: string;
|
|
675
|
+
type: 'tab_opened';
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* One open browser tab reported in a `browser_state` block's `tabs` inventory.
|
|
679
|
+
*
|
|
680
|
+
* `tab_id` is the caller-assigned identifier for the tab; `title` and `url`
|
|
681
|
+
* describe the page the tab is currently showing and may be empty strings (a blank
|
|
682
|
+
* tab legitimately has both empty). `active` marks the tab that is active after
|
|
683
|
+
* this call; whenever `tabs` is non-empty, exactly one entry is marked.
|
|
684
|
+
*/
|
|
685
|
+
export interface BrowserStateTabEntry {
|
|
686
|
+
/**
|
|
687
|
+
* The caller-assigned identifier for this tab, unique within the inventory.
|
|
688
|
+
*/
|
|
689
|
+
tab_id: string;
|
|
690
|
+
/**
|
|
691
|
+
* The title of the page the tab is showing. May be empty.
|
|
692
|
+
*/
|
|
693
|
+
title: string;
|
|
694
|
+
/**
|
|
695
|
+
* The URL of the page the tab is showing. May be empty.
|
|
696
|
+
*/
|
|
697
|
+
url: string;
|
|
698
|
+
/**
|
|
699
|
+
* Whether this tab is the active tab after this call. Whenever `tabs` is
|
|
700
|
+
* non-empty, exactly one entry is marked `active: true`.
|
|
701
|
+
*/
|
|
702
|
+
active?: boolean;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* `switch_tab`'s config overrides.
|
|
706
|
+
*/
|
|
707
|
+
export interface BrowserSwitchTabConfig {
|
|
708
|
+
/**
|
|
709
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
710
|
+
* member of the toolset.
|
|
711
|
+
*/
|
|
712
|
+
defer_loading?: boolean | null;
|
|
713
|
+
/**
|
|
714
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
715
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
716
|
+
* the served schema.
|
|
717
|
+
*/
|
|
718
|
+
enabled?: boolean | null;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* The browser toolset: a single `tools[]` entry (carrying no `name`) that declares
|
|
722
|
+
* the browser tool family. The model is served the family's tool with any members
|
|
723
|
+
* disabled via `configs` removed from its schema.
|
|
724
|
+
*/
|
|
725
|
+
export interface BrowserToolset20260801 {
|
|
726
|
+
type: 'browser_toolset_20260801';
|
|
727
|
+
allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
|
|
728
|
+
/**
|
|
729
|
+
* Create a cache control breakpoint at this content block.
|
|
730
|
+
*/
|
|
731
|
+
cache_control?: CacheControlEphemeral | null;
|
|
732
|
+
/**
|
|
733
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
734
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
735
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
736
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
737
|
+
* toolset version's complete member set.
|
|
738
|
+
*/
|
|
739
|
+
configs?: BrowserToolsetConfigs | null;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
743
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
744
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
745
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
746
|
+
* toolset version's complete member set.
|
|
747
|
+
*/
|
|
748
|
+
export interface BrowserToolsetConfigs {
|
|
749
|
+
/**
|
|
750
|
+
* `close_tab`'s config overrides.
|
|
751
|
+
*/
|
|
752
|
+
close_tab?: BrowserCloseTabConfig | null;
|
|
753
|
+
/**
|
|
754
|
+
* `double_click`'s config overrides.
|
|
755
|
+
*/
|
|
756
|
+
double_click?: BrowserDoubleClickConfig | null;
|
|
757
|
+
/**
|
|
758
|
+
* `file_upload`'s config overrides.
|
|
759
|
+
*/
|
|
760
|
+
file_upload?: BrowserFileUploadConfig | null;
|
|
761
|
+
/**
|
|
762
|
+
* `find`'s config overrides.
|
|
763
|
+
*/
|
|
764
|
+
find?: BrowserFindConfig | null;
|
|
765
|
+
/**
|
|
766
|
+
* `form_input`'s config overrides.
|
|
767
|
+
*/
|
|
768
|
+
form_input?: BrowserFormInputConfig | null;
|
|
769
|
+
/**
|
|
770
|
+
* `get_page_text`'s config overrides.
|
|
771
|
+
*/
|
|
772
|
+
get_page_text?: BrowserGetPageTextConfig | null;
|
|
773
|
+
/**
|
|
774
|
+
* `hold_key`'s config overrides.
|
|
775
|
+
*/
|
|
776
|
+
hold_key?: BrowserHoldKeyConfig | null;
|
|
777
|
+
/**
|
|
778
|
+
* `hover`'s config overrides.
|
|
779
|
+
*/
|
|
780
|
+
hover?: BrowserHoverConfig | null;
|
|
781
|
+
/**
|
|
782
|
+
* `javascript_exec`'s config overrides.
|
|
783
|
+
*/
|
|
784
|
+
javascript_exec?: BrowserJavascriptExecConfig | null;
|
|
785
|
+
/**
|
|
786
|
+
* `key`'s config overrides.
|
|
787
|
+
*/
|
|
788
|
+
key?: BrowserKeyConfig | null;
|
|
789
|
+
/**
|
|
790
|
+
* `left_click`'s config overrides.
|
|
791
|
+
*/
|
|
792
|
+
left_click?: BrowserLeftClickConfig | null;
|
|
793
|
+
/**
|
|
794
|
+
* `left_click_drag`'s config overrides.
|
|
795
|
+
*/
|
|
796
|
+
left_click_drag?: BrowserLeftClickDragConfig | null;
|
|
797
|
+
/**
|
|
798
|
+
* `left_mouse_down`'s config overrides.
|
|
799
|
+
*/
|
|
800
|
+
left_mouse_down?: BrowserLeftMouseDownConfig | null;
|
|
801
|
+
/**
|
|
802
|
+
* `left_mouse_up`'s config overrides.
|
|
803
|
+
*/
|
|
804
|
+
left_mouse_up?: BrowserLeftMouseUpConfig | null;
|
|
805
|
+
/**
|
|
806
|
+
* `list_tabs`'s config overrides.
|
|
807
|
+
*/
|
|
808
|
+
list_tabs?: BrowserListTabsConfig | null;
|
|
809
|
+
/**
|
|
810
|
+
* `middle_click`'s config overrides.
|
|
811
|
+
*/
|
|
812
|
+
middle_click?: BrowserMiddleClickConfig | null;
|
|
813
|
+
/**
|
|
814
|
+
* `mouse_move`'s config overrides.
|
|
815
|
+
*/
|
|
816
|
+
mouse_move?: BrowserMouseMoveConfig | null;
|
|
817
|
+
/**
|
|
818
|
+
* `navigate`'s config overrides.
|
|
819
|
+
*/
|
|
820
|
+
navigate?: BrowserNavigateConfig | null;
|
|
821
|
+
/**
|
|
822
|
+
* `new_tab`'s config overrides.
|
|
823
|
+
*/
|
|
824
|
+
new_tab?: BrowserNewTabConfig | null;
|
|
825
|
+
/**
|
|
826
|
+
* `read_console`'s config overrides.
|
|
827
|
+
*/
|
|
828
|
+
read_console?: BrowserReadConsoleConfig | null;
|
|
829
|
+
/**
|
|
830
|
+
* `read_network`'s config overrides.
|
|
831
|
+
*/
|
|
832
|
+
read_network?: BrowserReadNetworkConfig | null;
|
|
833
|
+
/**
|
|
834
|
+
* `read_page`'s config overrides.
|
|
835
|
+
*/
|
|
836
|
+
read_page?: BrowserReadPageConfig | null;
|
|
837
|
+
/**
|
|
838
|
+
* `right_click`'s config overrides.
|
|
839
|
+
*/
|
|
840
|
+
right_click?: BrowserRightClickConfig | null;
|
|
841
|
+
/**
|
|
842
|
+
* `screenshot`'s config overrides.
|
|
843
|
+
*/
|
|
844
|
+
screenshot?: BrowserScreenshotConfig | null;
|
|
845
|
+
/**
|
|
846
|
+
* `scroll`'s config overrides.
|
|
847
|
+
*/
|
|
848
|
+
scroll?: BrowserScrollConfig | null;
|
|
849
|
+
/**
|
|
850
|
+
* `scroll_to`'s config overrides.
|
|
851
|
+
*/
|
|
852
|
+
scroll_to?: BrowserScrollToConfig | null;
|
|
853
|
+
/**
|
|
854
|
+
* `switch_tab`'s config overrides.
|
|
855
|
+
*/
|
|
856
|
+
switch_tab?: BrowserSwitchTabConfig | null;
|
|
857
|
+
/**
|
|
858
|
+
* `triple_click`'s config overrides.
|
|
859
|
+
*/
|
|
860
|
+
triple_click?: BrowserTripleClickConfig | null;
|
|
861
|
+
/**
|
|
862
|
+
* `type`'s config overrides.
|
|
863
|
+
*/
|
|
864
|
+
type?: BrowserTypeConfig | null;
|
|
865
|
+
/**
|
|
866
|
+
* `wait`'s config overrides.
|
|
867
|
+
*/
|
|
868
|
+
wait?: BrowserWaitConfig | null;
|
|
869
|
+
/**
|
|
870
|
+
* `zoom`'s config overrides.
|
|
871
|
+
*/
|
|
872
|
+
zoom?: BrowserZoomConfig | null;
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* `triple_click`'s config overrides.
|
|
876
|
+
*/
|
|
877
|
+
export interface BrowserTripleClickConfig {
|
|
878
|
+
/**
|
|
879
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
880
|
+
* member of the toolset.
|
|
881
|
+
*/
|
|
882
|
+
defer_loading?: boolean | null;
|
|
883
|
+
/**
|
|
884
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
885
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
886
|
+
* the served schema.
|
|
887
|
+
*/
|
|
888
|
+
enabled?: boolean | null;
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* `type`'s config overrides.
|
|
892
|
+
*/
|
|
893
|
+
export interface BrowserTypeConfig {
|
|
894
|
+
/**
|
|
895
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
896
|
+
* member of the toolset.
|
|
897
|
+
*/
|
|
898
|
+
defer_loading?: boolean | null;
|
|
899
|
+
/**
|
|
900
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
901
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
902
|
+
* the served schema.
|
|
903
|
+
*/
|
|
904
|
+
enabled?: boolean | null;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* `wait`'s config overrides.
|
|
908
|
+
*/
|
|
909
|
+
export interface BrowserWaitConfig {
|
|
910
|
+
/**
|
|
911
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
912
|
+
* member of the toolset.
|
|
913
|
+
*/
|
|
914
|
+
defer_loading?: boolean | null;
|
|
915
|
+
/**
|
|
916
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
917
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
918
|
+
* the served schema.
|
|
919
|
+
*/
|
|
920
|
+
enabled?: boolean | null;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* `zoom`'s config overrides.
|
|
924
|
+
*/
|
|
925
|
+
export interface BrowserZoomConfig {
|
|
926
|
+
/**
|
|
927
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
928
|
+
* member of the toolset.
|
|
929
|
+
*/
|
|
930
|
+
defer_loading?: boolean | null;
|
|
931
|
+
/**
|
|
932
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
933
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
934
|
+
* the served schema.
|
|
935
|
+
*/
|
|
936
|
+
enabled?: boolean | null;
|
|
937
|
+
}
|
|
150
938
|
export interface CacheControlEphemeral {
|
|
151
939
|
type: 'ephemeral';
|
|
152
940
|
/**
|
|
@@ -512,6 +1300,379 @@ export interface CodeExecutionToolResultErrorParam {
|
|
|
512
1300
|
error_code: CodeExecutionToolResultErrorCode;
|
|
513
1301
|
type: 'code_execution_tool_result_error';
|
|
514
1302
|
}
|
|
1303
|
+
/**
|
|
1304
|
+
* `cursor_position`'s config overrides.
|
|
1305
|
+
*/
|
|
1306
|
+
export interface ComputerCursorPositionConfig {
|
|
1307
|
+
/**
|
|
1308
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1309
|
+
* member of the toolset.
|
|
1310
|
+
*/
|
|
1311
|
+
defer_loading?: boolean | null;
|
|
1312
|
+
/**
|
|
1313
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1314
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1315
|
+
* the served schema.
|
|
1316
|
+
*/
|
|
1317
|
+
enabled?: boolean | null;
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* `double_click`'s config overrides.
|
|
1321
|
+
*/
|
|
1322
|
+
export interface ComputerDoubleClickConfig {
|
|
1323
|
+
/**
|
|
1324
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1325
|
+
* member of the toolset.
|
|
1326
|
+
*/
|
|
1327
|
+
defer_loading?: boolean | null;
|
|
1328
|
+
/**
|
|
1329
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1330
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1331
|
+
* the served schema.
|
|
1332
|
+
*/
|
|
1333
|
+
enabled?: boolean | null;
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* `hold_key`'s config overrides.
|
|
1337
|
+
*/
|
|
1338
|
+
export interface ComputerHoldKeyConfig {
|
|
1339
|
+
/**
|
|
1340
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1341
|
+
* member of the toolset.
|
|
1342
|
+
*/
|
|
1343
|
+
defer_loading?: boolean | null;
|
|
1344
|
+
/**
|
|
1345
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1346
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1347
|
+
* the served schema.
|
|
1348
|
+
*/
|
|
1349
|
+
enabled?: boolean | null;
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* `key`'s config overrides.
|
|
1353
|
+
*/
|
|
1354
|
+
export interface ComputerKeyConfig {
|
|
1355
|
+
/**
|
|
1356
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1357
|
+
* member of the toolset.
|
|
1358
|
+
*/
|
|
1359
|
+
defer_loading?: boolean | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1362
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1363
|
+
* the served schema.
|
|
1364
|
+
*/
|
|
1365
|
+
enabled?: boolean | null;
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* `left_click`'s config overrides.
|
|
1369
|
+
*/
|
|
1370
|
+
export interface ComputerLeftClickConfig {
|
|
1371
|
+
/**
|
|
1372
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1373
|
+
* member of the toolset.
|
|
1374
|
+
*/
|
|
1375
|
+
defer_loading?: boolean | null;
|
|
1376
|
+
/**
|
|
1377
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1378
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1379
|
+
* the served schema.
|
|
1380
|
+
*/
|
|
1381
|
+
enabled?: boolean | null;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* `left_click_drag`'s config overrides.
|
|
1385
|
+
*/
|
|
1386
|
+
export interface ComputerLeftClickDragConfig {
|
|
1387
|
+
/**
|
|
1388
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1389
|
+
* member of the toolset.
|
|
1390
|
+
*/
|
|
1391
|
+
defer_loading?: boolean | null;
|
|
1392
|
+
/**
|
|
1393
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1394
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1395
|
+
* the served schema.
|
|
1396
|
+
*/
|
|
1397
|
+
enabled?: boolean | null;
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* `left_mouse_down`'s config overrides.
|
|
1401
|
+
*/
|
|
1402
|
+
export interface ComputerLeftMouseDownConfig {
|
|
1403
|
+
/**
|
|
1404
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1405
|
+
* member of the toolset.
|
|
1406
|
+
*/
|
|
1407
|
+
defer_loading?: boolean | null;
|
|
1408
|
+
/**
|
|
1409
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1410
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1411
|
+
* the served schema.
|
|
1412
|
+
*/
|
|
1413
|
+
enabled?: boolean | null;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* `left_mouse_up`'s config overrides.
|
|
1417
|
+
*/
|
|
1418
|
+
export interface ComputerLeftMouseUpConfig {
|
|
1419
|
+
/**
|
|
1420
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1421
|
+
* member of the toolset.
|
|
1422
|
+
*/
|
|
1423
|
+
defer_loading?: boolean | null;
|
|
1424
|
+
/**
|
|
1425
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1426
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1427
|
+
* the served schema.
|
|
1428
|
+
*/
|
|
1429
|
+
enabled?: boolean | null;
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* `middle_click`'s config overrides.
|
|
1433
|
+
*/
|
|
1434
|
+
export interface ComputerMiddleClickConfig {
|
|
1435
|
+
/**
|
|
1436
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1437
|
+
* member of the toolset.
|
|
1438
|
+
*/
|
|
1439
|
+
defer_loading?: boolean | null;
|
|
1440
|
+
/**
|
|
1441
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1442
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1443
|
+
* the served schema.
|
|
1444
|
+
*/
|
|
1445
|
+
enabled?: boolean | null;
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* `mouse_move`'s config overrides.
|
|
1449
|
+
*/
|
|
1450
|
+
export interface ComputerMouseMoveConfig {
|
|
1451
|
+
/**
|
|
1452
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1453
|
+
* member of the toolset.
|
|
1454
|
+
*/
|
|
1455
|
+
defer_loading?: boolean | null;
|
|
1456
|
+
/**
|
|
1457
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1458
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1459
|
+
* the served schema.
|
|
1460
|
+
*/
|
|
1461
|
+
enabled?: boolean | null;
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* `right_click`'s config overrides.
|
|
1465
|
+
*/
|
|
1466
|
+
export interface ComputerRightClickConfig {
|
|
1467
|
+
/**
|
|
1468
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1469
|
+
* member of the toolset.
|
|
1470
|
+
*/
|
|
1471
|
+
defer_loading?: boolean | null;
|
|
1472
|
+
/**
|
|
1473
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1474
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1475
|
+
* the served schema.
|
|
1476
|
+
*/
|
|
1477
|
+
enabled?: boolean | null;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* `screenshot`'s config overrides.
|
|
1481
|
+
*/
|
|
1482
|
+
export interface ComputerScreenshotConfig {
|
|
1483
|
+
/**
|
|
1484
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1485
|
+
* member of the toolset.
|
|
1486
|
+
*/
|
|
1487
|
+
defer_loading?: boolean | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1490
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1491
|
+
* the served schema.
|
|
1492
|
+
*/
|
|
1493
|
+
enabled?: boolean | null;
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* `scroll`'s config overrides.
|
|
1497
|
+
*/
|
|
1498
|
+
export interface ComputerScrollConfig {
|
|
1499
|
+
/**
|
|
1500
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1501
|
+
* member of the toolset.
|
|
1502
|
+
*/
|
|
1503
|
+
defer_loading?: boolean | null;
|
|
1504
|
+
/**
|
|
1505
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1506
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1507
|
+
* the served schema.
|
|
1508
|
+
*/
|
|
1509
|
+
enabled?: boolean | null;
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* The computer toolset: a single `tools[]` entry (carrying no `name`) that
|
|
1513
|
+
* declares the computer tool family. The model is served the family's tool with
|
|
1514
|
+
* any members disabled via `configs` removed from its schema. Every member is
|
|
1515
|
+
* enabled by default, zoom included. The single-tool options `display_number` and
|
|
1516
|
+
* `enable_zoom` are not fields of a toolset entry — it carries only `type`,
|
|
1517
|
+
* `configs`, and `cache_control`; zoom is controlled via `configs.zoom.enabled`.
|
|
1518
|
+
*/
|
|
1519
|
+
export interface ComputerToolset20260801 {
|
|
1520
|
+
type: 'computer_toolset_20260801';
|
|
1521
|
+
allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Create a cache control breakpoint at this content block.
|
|
1524
|
+
*/
|
|
1525
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1526
|
+
/**
|
|
1527
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1528
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1529
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1530
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1531
|
+
* toolset version's complete member set.
|
|
1532
|
+
*/
|
|
1533
|
+
configs?: ComputerToolsetConfigs | null;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1537
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1538
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1539
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1540
|
+
* toolset version's complete member set.
|
|
1541
|
+
*/
|
|
1542
|
+
export interface ComputerToolsetConfigs {
|
|
1543
|
+
/**
|
|
1544
|
+
* `cursor_position`'s config overrides.
|
|
1545
|
+
*/
|
|
1546
|
+
cursor_position?: ComputerCursorPositionConfig | null;
|
|
1547
|
+
/**
|
|
1548
|
+
* `double_click`'s config overrides.
|
|
1549
|
+
*/
|
|
1550
|
+
double_click?: ComputerDoubleClickConfig | null;
|
|
1551
|
+
/**
|
|
1552
|
+
* `hold_key`'s config overrides.
|
|
1553
|
+
*/
|
|
1554
|
+
hold_key?: ComputerHoldKeyConfig | null;
|
|
1555
|
+
/**
|
|
1556
|
+
* `key`'s config overrides.
|
|
1557
|
+
*/
|
|
1558
|
+
key?: ComputerKeyConfig | null;
|
|
1559
|
+
/**
|
|
1560
|
+
* `left_click`'s config overrides.
|
|
1561
|
+
*/
|
|
1562
|
+
left_click?: ComputerLeftClickConfig | null;
|
|
1563
|
+
/**
|
|
1564
|
+
* `left_click_drag`'s config overrides.
|
|
1565
|
+
*/
|
|
1566
|
+
left_click_drag?: ComputerLeftClickDragConfig | null;
|
|
1567
|
+
/**
|
|
1568
|
+
* `left_mouse_down`'s config overrides.
|
|
1569
|
+
*/
|
|
1570
|
+
left_mouse_down?: ComputerLeftMouseDownConfig | null;
|
|
1571
|
+
/**
|
|
1572
|
+
* `left_mouse_up`'s config overrides.
|
|
1573
|
+
*/
|
|
1574
|
+
left_mouse_up?: ComputerLeftMouseUpConfig | null;
|
|
1575
|
+
/**
|
|
1576
|
+
* `middle_click`'s config overrides.
|
|
1577
|
+
*/
|
|
1578
|
+
middle_click?: ComputerMiddleClickConfig | null;
|
|
1579
|
+
/**
|
|
1580
|
+
* `mouse_move`'s config overrides.
|
|
1581
|
+
*/
|
|
1582
|
+
mouse_move?: ComputerMouseMoveConfig | null;
|
|
1583
|
+
/**
|
|
1584
|
+
* `right_click`'s config overrides.
|
|
1585
|
+
*/
|
|
1586
|
+
right_click?: ComputerRightClickConfig | null;
|
|
1587
|
+
/**
|
|
1588
|
+
* `screenshot`'s config overrides.
|
|
1589
|
+
*/
|
|
1590
|
+
screenshot?: ComputerScreenshotConfig | null;
|
|
1591
|
+
/**
|
|
1592
|
+
* `scroll`'s config overrides.
|
|
1593
|
+
*/
|
|
1594
|
+
scroll?: ComputerScrollConfig | null;
|
|
1595
|
+
/**
|
|
1596
|
+
* `triple_click`'s config overrides.
|
|
1597
|
+
*/
|
|
1598
|
+
triple_click?: ComputerTripleClickConfig | null;
|
|
1599
|
+
/**
|
|
1600
|
+
* `type`'s config overrides.
|
|
1601
|
+
*/
|
|
1602
|
+
type?: ComputerTypeConfig | null;
|
|
1603
|
+
/**
|
|
1604
|
+
* `wait`'s config overrides.
|
|
1605
|
+
*/
|
|
1606
|
+
wait?: ComputerWaitConfig | null;
|
|
1607
|
+
/**
|
|
1608
|
+
* `zoom`'s config overrides.
|
|
1609
|
+
*/
|
|
1610
|
+
zoom?: ComputerZoomConfig | null;
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* `triple_click`'s config overrides.
|
|
1614
|
+
*/
|
|
1615
|
+
export interface ComputerTripleClickConfig {
|
|
1616
|
+
/**
|
|
1617
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1618
|
+
* member of the toolset.
|
|
1619
|
+
*/
|
|
1620
|
+
defer_loading?: boolean | null;
|
|
1621
|
+
/**
|
|
1622
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1623
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1624
|
+
* the served schema.
|
|
1625
|
+
*/
|
|
1626
|
+
enabled?: boolean | null;
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* `type`'s config overrides.
|
|
1630
|
+
*/
|
|
1631
|
+
export interface ComputerTypeConfig {
|
|
1632
|
+
/**
|
|
1633
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1634
|
+
* member of the toolset.
|
|
1635
|
+
*/
|
|
1636
|
+
defer_loading?: boolean | null;
|
|
1637
|
+
/**
|
|
1638
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1639
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1640
|
+
* the served schema.
|
|
1641
|
+
*/
|
|
1642
|
+
enabled?: boolean | null;
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* `wait`'s config overrides.
|
|
1646
|
+
*/
|
|
1647
|
+
export interface ComputerWaitConfig {
|
|
1648
|
+
/**
|
|
1649
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1650
|
+
* member of the toolset.
|
|
1651
|
+
*/
|
|
1652
|
+
defer_loading?: boolean | null;
|
|
1653
|
+
/**
|
|
1654
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1655
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1656
|
+
* the served schema.
|
|
1657
|
+
*/
|
|
1658
|
+
enabled?: boolean | null;
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* `zoom`'s config overrides.
|
|
1662
|
+
*/
|
|
1663
|
+
export interface ComputerZoomConfig {
|
|
1664
|
+
/**
|
|
1665
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1666
|
+
* member of the toolset.
|
|
1667
|
+
*/
|
|
1668
|
+
defer_loading?: boolean | null;
|
|
1669
|
+
/**
|
|
1670
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1671
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1672
|
+
* the served schema.
|
|
1673
|
+
*/
|
|
1674
|
+
enabled?: boolean | null;
|
|
1675
|
+
}
|
|
515
1676
|
/**
|
|
516
1677
|
* Information about the container used in the request (for the code execution
|
|
517
1678
|
* tool)
|
|
@@ -525,6 +1686,40 @@ export interface Container {
|
|
|
525
1686
|
* The time at which the container will expire.
|
|
526
1687
|
*/
|
|
527
1688
|
expires_at: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* Skills loaded in the container
|
|
1691
|
+
*/
|
|
1692
|
+
skills: Array<ContainerSkill> | null;
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* Container parameters with skills to be loaded.
|
|
1696
|
+
*/
|
|
1697
|
+
export interface ContainerParams {
|
|
1698
|
+
/**
|
|
1699
|
+
* Container id
|
|
1700
|
+
*/
|
|
1701
|
+
id?: string | null;
|
|
1702
|
+
/**
|
|
1703
|
+
* List of skills to load in the container
|
|
1704
|
+
*/
|
|
1705
|
+
skills?: Array<SkillParams> | null;
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* A skill that was loaded in a container (response model).
|
|
1709
|
+
*/
|
|
1710
|
+
export interface ContainerSkill {
|
|
1711
|
+
/**
|
|
1712
|
+
* Skill ID
|
|
1713
|
+
*/
|
|
1714
|
+
skill_id: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
1717
|
+
*/
|
|
1718
|
+
type: 'anthropic' | 'custom';
|
|
1719
|
+
/**
|
|
1720
|
+
* Skill version or 'latest' for most recent version
|
|
1721
|
+
*/
|
|
1722
|
+
version: string;
|
|
528
1723
|
}
|
|
529
1724
|
/**
|
|
530
1725
|
* Response model for a file uploaded to the container.
|
|
@@ -552,7 +1747,7 @@ export type ContentBlock = TextBlock | ThinkingBlock | RedactedThinkingBlock | T
|
|
|
552
1747
|
/**
|
|
553
1748
|
* Regular text content.
|
|
554
1749
|
*/
|
|
555
|
-
export type ContentBlockParam = TextBlockParam | ImageBlockParam | DocumentBlockParam | SearchResultBlockParam | ThinkingBlockParam | RedactedThinkingBlockParam | ToolUseBlockParam | ToolResultBlockParam | ServerToolUseBlockParam | WebSearchToolResultBlockParam | WebFetchToolResultBlockParam | CodeExecutionToolResultBlockParam | BashCodeExecutionToolResultBlockParam | TextEditorCodeExecutionToolResultBlockParam | ToolSearchToolResultBlockParam | ContainerUploadBlockParam
|
|
1750
|
+
export type ContentBlockParam = TextBlockParam | ImageBlockParam | DocumentBlockParam | SearchResultBlockParam | ThinkingBlockParam | RedactedThinkingBlockParam | ToolUseBlockParam | ToolResultBlockParam | ServerToolUseBlockParam | WebSearchToolResultBlockParam | WebFetchToolResultBlockParam | CodeExecutionToolResultBlockParam | BashCodeExecutionToolResultBlockParam | TextEditorCodeExecutionToolResultBlockParam | ToolSearchToolResultBlockParam | ContainerUploadBlockParam;
|
|
556
1751
|
export interface ContentBlockSource {
|
|
557
1752
|
content: string | Array<ContentBlockSourceContent>;
|
|
558
1753
|
type: 'content';
|
|
@@ -577,7 +1772,7 @@ export interface DocumentBlock {
|
|
|
577
1772
|
type: 'document';
|
|
578
1773
|
}
|
|
579
1774
|
export interface DocumentBlockParam {
|
|
580
|
-
source: Base64PDFSource | PlainTextSource | ContentBlockSource | URLPDFSource;
|
|
1775
|
+
source: Base64PDFSource | PlainTextSource | ContentBlockSource | URLPDFSource | FileDocumentSource;
|
|
581
1776
|
type: 'document';
|
|
582
1777
|
/**
|
|
583
1778
|
* Create a cache control breakpoint at this content block.
|
|
@@ -607,13 +1802,45 @@ export interface EncryptedCodeExecutionResultBlockParam {
|
|
|
607
1802
|
stderr: string;
|
|
608
1803
|
type: 'encrypted_code_execution_result';
|
|
609
1804
|
}
|
|
1805
|
+
export interface FileDocumentSource {
|
|
1806
|
+
file_id: string;
|
|
1807
|
+
type: 'file';
|
|
1808
|
+
}
|
|
1809
|
+
export interface FileImageSource {
|
|
1810
|
+
file_id: string;
|
|
1811
|
+
type: 'file';
|
|
1812
|
+
}
|
|
610
1813
|
export interface ImageBlockParam {
|
|
611
|
-
source: Base64ImageSource | URLImageSource;
|
|
1814
|
+
source: Base64ImageSource | URLImageSource | FileImageSource;
|
|
612
1815
|
type: 'image';
|
|
613
1816
|
/**
|
|
614
1817
|
* Create a cache control breakpoint at this content block.
|
|
615
1818
|
*/
|
|
616
1819
|
cache_control?: CacheControlEphemeral | null;
|
|
1820
|
+
/**
|
|
1821
|
+
* Configures the transformations the server applies to this image before the model
|
|
1822
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
1823
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
1824
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
1825
|
+
*/
|
|
1826
|
+
transformations?: ImageTransformationsParam | null;
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Configures the transformations the server applies to this image before the model
|
|
1830
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
1831
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
1832
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
1833
|
+
*/
|
|
1834
|
+
export interface ImageTransformationsParam {
|
|
1835
|
+
/**
|
|
1836
|
+
* What the server does when this image exceeds the model's maximum image size.
|
|
1837
|
+
* `"downsize"` (the default) scales the image down to fit, which changes the
|
|
1838
|
+
* dimensions the model observes without telling you. `"error"` instead rejects the
|
|
1839
|
+
* request with a 400 error naming the image's dimensions and the largest
|
|
1840
|
+
* dimensions that fit, so you can scale the image deliberately — your image is
|
|
1841
|
+
* never silently scaled down.
|
|
1842
|
+
*/
|
|
1843
|
+
oversized_image?: 'downsize' | 'error';
|
|
617
1844
|
}
|
|
618
1845
|
export interface InputJSONDelta {
|
|
619
1846
|
partial_json: string;
|
|
@@ -773,7 +2000,11 @@ export interface Message {
|
|
|
773
2000
|
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
774
2001
|
* checkpoint).
|
|
775
2002
|
*/
|
|
776
|
-
export type MessageCountTokensTool = Tool | ToolBash20250124 | CodeExecutionTool20250522 | CodeExecutionTool20250825 | CodeExecutionTool20260120 | CodeExecutionTool20260521 | MemoryTool20250818 | ToolTextEditor20250124 | ToolTextEditor20250429 | ToolTextEditor20250728 | WebSearchTool20250305 | WebFetchTool20250910 | WebSearchTool20260209 | WebFetchTool20260209 | WebFetchTool20260309 | WebSearchTool20260318 | WebFetchTool20260318 | ToolSearchToolBm25_20251119 | ToolSearchToolRegex20251119;
|
|
2003
|
+
export type MessageCountTokensTool = Tool | ToolBash20250124 | CodeExecutionTool20250522 | CodeExecutionTool20250825 | CodeExecutionTool20260120 | CodeExecutionTool20260521 | BrowserToolset20260801 | MemoryTool20250818 | ComputerToolset20260801 | ToolTextEditor20250124 | ToolTextEditor20250429 | ToolTextEditor20250728 | WebSearchTool20250305 | WebFetchTool20250910 | WebSearchTool20260209 | WebFetchTool20260209 | WebFetchTool20260309 | WebSearchTool20260318 | WebFetchTool20260318 | ToolSearchToolBm25_20251119 | ToolSearchToolRegex20251119;
|
|
2004
|
+
/**
|
|
2005
|
+
* Container identifier for reuse across requests.
|
|
2006
|
+
*/
|
|
2007
|
+
export type MessageCreateParamsContainer = ContainerParams | string;
|
|
777
2008
|
export interface MessageDeltaUsage {
|
|
778
2009
|
/**
|
|
779
2010
|
* The cumulative number of input tokens used to create the cache entry.
|
|
@@ -826,24 +2057,6 @@ export interface Metadata {
|
|
|
826
2057
|
*/
|
|
827
2058
|
user_id?: string | null;
|
|
828
2059
|
}
|
|
829
|
-
/**
|
|
830
|
-
* System instructions that appear mid-conversation.
|
|
831
|
-
*
|
|
832
|
-
* Use this block to provide or update system-level instructions at a specific
|
|
833
|
-
* point in the conversation, rather than only via the top-level `system`
|
|
834
|
-
* parameter.
|
|
835
|
-
*/
|
|
836
|
-
export interface MidConversationSystemBlockParam {
|
|
837
|
-
/**
|
|
838
|
-
* System instruction text blocks.
|
|
839
|
-
*/
|
|
840
|
-
content: Array<TextBlockParam>;
|
|
841
|
-
type: 'mid_conv_system';
|
|
842
|
-
/**
|
|
843
|
-
* Create a cache control breakpoint at this content block.
|
|
844
|
-
*/
|
|
845
|
-
cache_control?: CacheControlEphemeral | null;
|
|
846
|
-
}
|
|
847
2060
|
/**
|
|
848
2061
|
* The model that will complete your prompt.
|
|
849
2062
|
*
|
|
@@ -1064,6 +2277,23 @@ export interface SignatureDelta {
|
|
|
1064
2277
|
signature: string;
|
|
1065
2278
|
type: 'signature_delta';
|
|
1066
2279
|
}
|
|
2280
|
+
/**
|
|
2281
|
+
* Specification for a skill to be loaded in a container (request model).
|
|
2282
|
+
*/
|
|
2283
|
+
export interface SkillParams {
|
|
2284
|
+
/**
|
|
2285
|
+
* Skill ID
|
|
2286
|
+
*/
|
|
2287
|
+
skill_id: string;
|
|
2288
|
+
/**
|
|
2289
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
2290
|
+
*/
|
|
2291
|
+
type: 'anthropic' | 'custom';
|
|
2292
|
+
/**
|
|
2293
|
+
* Skill version or 'latest' for most recent version
|
|
2294
|
+
*/
|
|
2295
|
+
version?: string;
|
|
2296
|
+
}
|
|
1067
2297
|
export type StopReason = 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use' | 'pause_turn' | 'refusal' | 'model_context_window_exceeded';
|
|
1068
2298
|
export interface TextBlock {
|
|
1069
2299
|
/**
|
|
@@ -1414,8 +2644,12 @@ export interface ToolResultBlockParam {
|
|
|
1414
2644
|
* Create a cache control breakpoint at this content block.
|
|
1415
2645
|
*/
|
|
1416
2646
|
cache_control?: CacheControlEphemeral | null;
|
|
1417
|
-
content?: string | Array<TextBlockParam | ImageBlockParam | SearchResultBlockParam | DocumentBlockParam | ToolReferenceBlockParam>;
|
|
2647
|
+
content?: string | Array<TextBlockParam | ImageBlockParam | SearchResultBlockParam | DocumentBlockParam | ToolReferenceBlockParam | BrowserStateBlockParam>;
|
|
1418
2648
|
is_error?: boolean;
|
|
2649
|
+
/**
|
|
2650
|
+
* For a toolset member tool_result, the toolset family of the paired tool_use.
|
|
2651
|
+
*/
|
|
2652
|
+
toolset_name?: string | null;
|
|
1419
2653
|
}
|
|
1420
2654
|
export interface ToolSearchToolBm25_20251119 {
|
|
1421
2655
|
/**
|
|
@@ -1583,7 +2817,7 @@ export interface ToolTextEditor20250728 {
|
|
|
1583
2817
|
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
1584
2818
|
* checkpoint).
|
|
1585
2819
|
*/
|
|
1586
|
-
export type ToolUnion = Tool | ToolBash20250124 | CodeExecutionTool20250522 | CodeExecutionTool20250825 | CodeExecutionTool20260120 | CodeExecutionTool20260521 | MemoryTool20250818 | ToolTextEditor20250124 | ToolTextEditor20250429 | ToolTextEditor20250728 | WebSearchTool20250305 | WebFetchTool20250910 | WebSearchTool20260209 | WebFetchTool20260209 | WebFetchTool20260309 | WebSearchTool20260318 | WebFetchTool20260318 | ToolSearchToolBm25_20251119 | ToolSearchToolRegex20251119;
|
|
2820
|
+
export type ToolUnion = Tool | ToolBash20250124 | CodeExecutionTool20250522 | CodeExecutionTool20250825 | CodeExecutionTool20260120 | CodeExecutionTool20260521 | BrowserToolset20260801 | MemoryTool20250818 | ComputerToolset20260801 | ToolTextEditor20250124 | ToolTextEditor20250429 | ToolTextEditor20250728 | WebSearchTool20250305 | WebFetchTool20250910 | WebSearchTool20260209 | WebFetchTool20260209 | WebFetchTool20260309 | WebSearchTool20260318 | WebFetchTool20260318 | ToolSearchToolBm25_20251119 | ToolSearchToolRegex20251119;
|
|
1587
2821
|
export interface ToolUseBlock {
|
|
1588
2822
|
id: string;
|
|
1589
2823
|
/**
|
|
@@ -1593,6 +2827,10 @@ export interface ToolUseBlock {
|
|
|
1593
2827
|
input: unknown;
|
|
1594
2828
|
name: string;
|
|
1595
2829
|
type: 'tool_use';
|
|
2830
|
+
/**
|
|
2831
|
+
* For a toolset member tool_use, the toolset family.
|
|
2832
|
+
*/
|
|
2833
|
+
toolset_name?: string | null;
|
|
1596
2834
|
}
|
|
1597
2835
|
export interface ToolUseBlockParam {
|
|
1598
2836
|
id: string;
|
|
@@ -1607,6 +2845,10 @@ export interface ToolUseBlockParam {
|
|
|
1607
2845
|
* Tool invocation directly from the model.
|
|
1608
2846
|
*/
|
|
1609
2847
|
caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
2848
|
+
/**
|
|
2849
|
+
* For a toolset member tool_use, the toolset family this member belongs to.
|
|
2850
|
+
*/
|
|
2851
|
+
toolset_name?: string | null;
|
|
1610
2852
|
}
|
|
1611
2853
|
export interface URLImageSource {
|
|
1612
2854
|
type: 'url';
|
|
@@ -2243,7 +3485,7 @@ export interface MessageCreateParamsBase {
|
|
|
2243
3485
|
/**
|
|
2244
3486
|
* Body param: Container identifier for reuse across requests.
|
|
2245
3487
|
*/
|
|
2246
|
-
container?:
|
|
3488
|
+
container?: MessageCreateParamsContainer | null;
|
|
2247
3489
|
/**
|
|
2248
3490
|
* Body param: Specifies the geographic region for inference processing. If not
|
|
2249
3491
|
* specified, the workspace's `default_inference_geo` is used.
|
|
@@ -2641,7 +3883,7 @@ export interface MessageCountTokensParams {
|
|
|
2641
3883
|
user_profile_id?: string;
|
|
2642
3884
|
}
|
|
2643
3885
|
export declare namespace Messages {
|
|
2644
|
-
export { type Base64ImageSource as Base64ImageSource, type Base64PDFSource as Base64PDFSource, type BashCodeExecutionOutputBlock as BashCodeExecutionOutputBlock, type BashCodeExecutionOutputBlockParam as BashCodeExecutionOutputBlockParam, type BashCodeExecutionResultBlock as BashCodeExecutionResultBlock, type BashCodeExecutionResultBlockParam as BashCodeExecutionResultBlockParam, type BashCodeExecutionToolResultBlock as BashCodeExecutionToolResultBlock, type BashCodeExecutionToolResultBlockParam as BashCodeExecutionToolResultBlockParam, type BashCodeExecutionToolResultError as BashCodeExecutionToolResultError, type BashCodeExecutionToolResultErrorCode as BashCodeExecutionToolResultErrorCode, type BashCodeExecutionToolResultErrorParam as BashCodeExecutionToolResultErrorParam, type CacheControlEphemeral as CacheControlEphemeral, type CacheCreation as CacheCreation, type CitationCharLocation as CitationCharLocation, type CitationCharLocationParam as CitationCharLocationParam, type CitationContentBlockLocation as CitationContentBlockLocation, type CitationContentBlockLocationParam as CitationContentBlockLocationParam, type CitationPageLocation as CitationPageLocation, type CitationPageLocationParam as CitationPageLocationParam, type CitationSearchResultLocationParam as CitationSearchResultLocationParam, type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam, type CitationsConfig as CitationsConfig, type CitationsConfigParam as CitationsConfigParam, type CitationsDelta as CitationsDelta, type CitationsSearchResultLocation as CitationsSearchResultLocation, type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation, type CodeExecutionOutputBlock as CodeExecutionOutputBlock, type CodeExecutionOutputBlockParam as CodeExecutionOutputBlockParam, type CodeExecutionResultBlock as CodeExecutionResultBlock, type CodeExecutionResultBlockParam as CodeExecutionResultBlockParam, type CodeExecutionTool20250522 as CodeExecutionTool20250522, type CodeExecutionTool20250825 as CodeExecutionTool20250825, type CodeExecutionTool20260120 as CodeExecutionTool20260120, type CodeExecutionTool20260521 as CodeExecutionTool20260521, type CodeExecutionToolResultBlock as CodeExecutionToolResultBlock, type CodeExecutionToolResultBlockContent as CodeExecutionToolResultBlockContent, type CodeExecutionToolResultBlockParam as CodeExecutionToolResultBlockParam, type CodeExecutionToolResultBlockParamContent as CodeExecutionToolResultBlockParamContent, type CodeExecutionToolResultError as CodeExecutionToolResultError, type CodeExecutionToolResultErrorCode as CodeExecutionToolResultErrorCode, type CodeExecutionToolResultErrorParam as CodeExecutionToolResultErrorParam, type Container as Container, type ContainerUploadBlock as ContainerUploadBlock, type ContainerUploadBlockParam as ContainerUploadBlockParam, type ContentBlock as ContentBlock, type ContentBlockParam as ContentBlockParam, type ContentBlockStartEvent as ContentBlockStartEvent, type ContentBlockStopEvent as ContentBlockStopEvent, type ContentBlockSource as ContentBlockSource, type ContentBlockSourceContent as ContentBlockSourceContent, type DirectCaller as DirectCaller, type DocumentBlock as DocumentBlock, type DocumentBlockParam as DocumentBlockParam, type EncryptedCodeExecutionResultBlock as EncryptedCodeExecutionResultBlock, type EncryptedCodeExecutionResultBlockParam as EncryptedCodeExecutionResultBlockParam, type ImageBlockParam as ImageBlockParam, type InputJSONDelta as InputJSONDelta, type JSONOutputFormat as JSONOutputFormat, type MemoryTool20250818 as MemoryTool20250818, type Message as Message, type MessageCountTokensTool as MessageCountTokensTool, type MessageDeltaEvent as MessageDeltaEvent, type MessageDeltaUsage as MessageDeltaUsage, type MessageParam as MessageParam, type MessageTokensCount as MessageTokensCount, type Metadata as Metadata, type MidConversationSystemBlockParam as MidConversationSystemBlockParam, type Model as Model, type OutputConfig as OutputConfig, type OutputTokensDetails as OutputTokensDetails, type PlainTextSource as PlainTextSource, type RawContentBlockDelta as RawContentBlockDelta, type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent, type RawContentBlockStartEvent as RawContentBlockStartEvent, type RawContentBlockStopEvent as RawContentBlockStopEvent, type RawMessageDeltaEvent as RawMessageDeltaEvent, type RawMessageStartEvent as RawMessageStartEvent, type RawMessageStopEvent as RawMessageStopEvent, type RawMessageStreamEvent as RawMessageStreamEvent, type RedactedThinkingBlock as RedactedThinkingBlock, type RedactedThinkingBlockParam as RedactedThinkingBlockParam, type RefusalStopDetails as RefusalStopDetails, type SearchResultBlockParam as SearchResultBlockParam, type ServerToolCaller as ServerToolCaller, type ServerToolCaller20260120 as ServerToolCaller20260120, type ServerToolUsage as ServerToolUsage, type ServerToolUseBlock as ServerToolUseBlock, type ServerToolUseBlockParam as ServerToolUseBlockParam, type SignatureDelta as SignatureDelta, type StopReason as StopReason, type TextBlock as TextBlock, type TextBlockParam as TextBlockParam, type TextCitation as TextCitation, type TextCitationParam as TextCitationParam, type TextDelta as TextDelta, type TextEditorCodeExecutionCreateResultBlock as TextEditorCodeExecutionCreateResultBlock, type TextEditorCodeExecutionCreateResultBlockParam as TextEditorCodeExecutionCreateResultBlockParam, type TextEditorCodeExecutionStrReplaceResultBlock as TextEditorCodeExecutionStrReplaceResultBlock, type TextEditorCodeExecutionStrReplaceResultBlockParam as TextEditorCodeExecutionStrReplaceResultBlockParam, type TextEditorCodeExecutionToolResultBlock as TextEditorCodeExecutionToolResultBlock, type TextEditorCodeExecutionToolResultBlockParam as TextEditorCodeExecutionToolResultBlockParam, type TextEditorCodeExecutionToolResultError as TextEditorCodeExecutionToolResultError, type TextEditorCodeExecutionToolResultErrorCode as TextEditorCodeExecutionToolResultErrorCode, type TextEditorCodeExecutionToolResultErrorParam as TextEditorCodeExecutionToolResultErrorParam, type TextEditorCodeExecutionViewResultBlock as TextEditorCodeExecutionViewResultBlock, type TextEditorCodeExecutionViewResultBlockParam as TextEditorCodeExecutionViewResultBlockParam, type ThinkingBlock as ThinkingBlock, type ThinkingBlockParam as ThinkingBlockParam, type ThinkingConfigAdaptive as ThinkingConfigAdaptive, type ThinkingConfigDisabled as ThinkingConfigDisabled, type ThinkingConfigEnabled as ThinkingConfigEnabled, type ThinkingConfigParam as ThinkingConfigParam, type ThinkingDelta as ThinkingDelta, type Tool as Tool, type ToolBash20250124 as ToolBash20250124, type ToolChoice as ToolChoice, type ToolChoiceAny as ToolChoiceAny, type ToolChoiceAuto as ToolChoiceAuto, type ToolChoiceNone as ToolChoiceNone, type ToolChoiceTool as ToolChoiceTool, type ToolReferenceBlock as ToolReferenceBlock, type ToolReferenceBlockParam as ToolReferenceBlockParam, type ToolResultBlockParam as ToolResultBlockParam, type ToolSearchToolBm25_20251119 as ToolSearchToolBm25_20251119, type ToolSearchToolRegex20251119 as ToolSearchToolRegex20251119, type ToolSearchToolResultBlock as ToolSearchToolResultBlock, type ToolSearchToolResultBlockParam as ToolSearchToolResultBlockParam, type ToolSearchToolResultError as ToolSearchToolResultError, type ToolSearchToolResultErrorCode as ToolSearchToolResultErrorCode, type ToolSearchToolResultErrorParam as ToolSearchToolResultErrorParam, type ToolSearchToolSearchResultBlock as ToolSearchToolSearchResultBlock, type ToolSearchToolSearchResultBlockParam as ToolSearchToolSearchResultBlockParam, type ToolTextEditor20250124 as ToolTextEditor20250124, type ToolTextEditor20250429 as ToolTextEditor20250429, type ToolTextEditor20250728 as ToolTextEditor20250728, type ToolUnion as ToolUnion, type ToolUseBlock as ToolUseBlock, type ToolUseBlockParam as ToolUseBlockParam, type URLImageSource as URLImageSource, type URLPDFSource as URLPDFSource, type Usage as Usage, type UserLocation as UserLocation, type WebFetchBlock as WebFetchBlock, type WebFetchBlockParam as WebFetchBlockParam, type WebFetchTool20250910 as WebFetchTool20250910, type WebFetchTool20260209 as WebFetchTool20260209, type WebFetchTool20260309 as WebFetchTool20260309, type WebFetchTool20260318 as WebFetchTool20260318, type WebFetchToolResultBlock as WebFetchToolResultBlock, type WebFetchToolResultBlockParam as WebFetchToolResultBlockParam, type WebFetchToolResultErrorBlock as WebFetchToolResultErrorBlock, type WebFetchToolResultErrorBlockParam as WebFetchToolResultErrorBlockParam, type WebFetchToolResultErrorCode as WebFetchToolResultErrorCode, type WebSearchResultBlock as WebSearchResultBlock, type WebSearchResultBlockParam as WebSearchResultBlockParam, type WebSearchTool20250305 as WebSearchTool20250305, type WebSearchTool20260209 as WebSearchTool20260209, type WebSearchTool20260318 as WebSearchTool20260318, type WebSearchToolRequestError as WebSearchToolRequestError, type WebSearchToolResultBlock as WebSearchToolResultBlock, type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent, type WebSearchToolResultBlockParam as WebSearchToolResultBlockParam, type WebSearchToolResultBlockParamContent as WebSearchToolResultBlockParamContent, type WebSearchToolResultError as WebSearchToolResultError, type MessageStreamEvent as MessageStreamEvent, type MessageStartEvent as MessageStartEvent, type MessageStopEvent as MessageStopEvent, type ContentBlockDeltaEvent as ContentBlockDeltaEvent, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageStreamParams as MessageStreamParams, type MessageCountTokensParams as MessageCountTokensParams, };
|
|
3886
|
+
export { type Base64ImageSource as Base64ImageSource, type Base64PDFSource as Base64PDFSource, type BashCodeExecutionOutputBlock as BashCodeExecutionOutputBlock, type BashCodeExecutionOutputBlockParam as BashCodeExecutionOutputBlockParam, type BashCodeExecutionResultBlock as BashCodeExecutionResultBlock, type BashCodeExecutionResultBlockParam as BashCodeExecutionResultBlockParam, type BashCodeExecutionToolResultBlock as BashCodeExecutionToolResultBlock, type BashCodeExecutionToolResultBlockParam as BashCodeExecutionToolResultBlockParam, type BashCodeExecutionToolResultError as BashCodeExecutionToolResultError, type BashCodeExecutionToolResultErrorCode as BashCodeExecutionToolResultErrorCode, type BashCodeExecutionToolResultErrorParam as BashCodeExecutionToolResultErrorParam, type BrowserCloseTabConfig as BrowserCloseTabConfig, type BrowserDoubleClickConfig as BrowserDoubleClickConfig, type BrowserFileUploadConfig as BrowserFileUploadConfig, type BrowserFindConfig as BrowserFindConfig, type BrowserFormInputConfig as BrowserFormInputConfig, type BrowserGetPageTextConfig as BrowserGetPageTextConfig, type BrowserHoldKeyConfig as BrowserHoldKeyConfig, type BrowserHoverConfig as BrowserHoverConfig, type BrowserJavascriptExecConfig as BrowserJavascriptExecConfig, type BrowserKeyConfig as BrowserKeyConfig, type BrowserLeftClickConfig as BrowserLeftClickConfig, type BrowserLeftClickDragConfig as BrowserLeftClickDragConfig, type BrowserLeftMouseDownConfig as BrowserLeftMouseDownConfig, type BrowserLeftMouseUpConfig as BrowserLeftMouseUpConfig, type BrowserListTabsConfig as BrowserListTabsConfig, type BrowserMiddleClickConfig as BrowserMiddleClickConfig, type BrowserMouseMoveConfig as BrowserMouseMoveConfig, type BrowserNavigateConfig as BrowserNavigateConfig, type BrowserNewTabConfig as BrowserNewTabConfig, type BrowserReadConsoleConfig as BrowserReadConsoleConfig, type BrowserReadNetworkConfig as BrowserReadNetworkConfig, type BrowserReadPageConfig as BrowserReadPageConfig, type BrowserRightClickConfig as BrowserRightClickConfig, type BrowserScreenshotConfig as BrowserScreenshotConfig, type BrowserScrollConfig as BrowserScrollConfig, type BrowserScrollToConfig as BrowserScrollToConfig, type BrowserStateBlockParam as BrowserStateBlockParam, type BrowserStateChange as BrowserStateChange, type BrowserStateChangeDownloadCompleted as BrowserStateChangeDownloadCompleted, type BrowserStateChangeDownloadFailed as BrowserStateChangeDownloadFailed, type BrowserStateChangeDownloadStarted as BrowserStateChangeDownloadStarted, type BrowserStateChangeTabOpened as BrowserStateChangeTabOpened, type BrowserStateTabEntry as BrowserStateTabEntry, type BrowserSwitchTabConfig as BrowserSwitchTabConfig, type BrowserToolset20260801 as BrowserToolset20260801, type BrowserToolsetConfigs as BrowserToolsetConfigs, type BrowserTripleClickConfig as BrowserTripleClickConfig, type BrowserTypeConfig as BrowserTypeConfig, type BrowserWaitConfig as BrowserWaitConfig, type BrowserZoomConfig as BrowserZoomConfig, type CacheControlEphemeral as CacheControlEphemeral, type CacheCreation as CacheCreation, type CitationCharLocation as CitationCharLocation, type CitationCharLocationParam as CitationCharLocationParam, type CitationContentBlockLocation as CitationContentBlockLocation, type CitationContentBlockLocationParam as CitationContentBlockLocationParam, type CitationPageLocation as CitationPageLocation, type CitationPageLocationParam as CitationPageLocationParam, type CitationSearchResultLocationParam as CitationSearchResultLocationParam, type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam, type CitationsConfig as CitationsConfig, type CitationsConfigParam as CitationsConfigParam, type CitationsDelta as CitationsDelta, type CitationsSearchResultLocation as CitationsSearchResultLocation, type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation, type CodeExecutionOutputBlock as CodeExecutionOutputBlock, type CodeExecutionOutputBlockParam as CodeExecutionOutputBlockParam, type CodeExecutionResultBlock as CodeExecutionResultBlock, type CodeExecutionResultBlockParam as CodeExecutionResultBlockParam, type CodeExecutionTool20250522 as CodeExecutionTool20250522, type CodeExecutionTool20250825 as CodeExecutionTool20250825, type CodeExecutionTool20260120 as CodeExecutionTool20260120, type CodeExecutionTool20260521 as CodeExecutionTool20260521, type CodeExecutionToolResultBlock as CodeExecutionToolResultBlock, type CodeExecutionToolResultBlockContent as CodeExecutionToolResultBlockContent, type CodeExecutionToolResultBlockParam as CodeExecutionToolResultBlockParam, type CodeExecutionToolResultBlockParamContent as CodeExecutionToolResultBlockParamContent, type CodeExecutionToolResultError as CodeExecutionToolResultError, type CodeExecutionToolResultErrorCode as CodeExecutionToolResultErrorCode, type CodeExecutionToolResultErrorParam as CodeExecutionToolResultErrorParam, type ComputerCursorPositionConfig as ComputerCursorPositionConfig, type ComputerDoubleClickConfig as ComputerDoubleClickConfig, type ComputerHoldKeyConfig as ComputerHoldKeyConfig, type ComputerKeyConfig as ComputerKeyConfig, type ComputerLeftClickConfig as ComputerLeftClickConfig, type ComputerLeftClickDragConfig as ComputerLeftClickDragConfig, type ComputerLeftMouseDownConfig as ComputerLeftMouseDownConfig, type ComputerLeftMouseUpConfig as ComputerLeftMouseUpConfig, type ComputerMiddleClickConfig as ComputerMiddleClickConfig, type ComputerMouseMoveConfig as ComputerMouseMoveConfig, type ComputerRightClickConfig as ComputerRightClickConfig, type ComputerScreenshotConfig as ComputerScreenshotConfig, type ComputerScrollConfig as ComputerScrollConfig, type ComputerToolset20260801 as ComputerToolset20260801, type ComputerToolsetConfigs as ComputerToolsetConfigs, type ComputerTripleClickConfig as ComputerTripleClickConfig, type ComputerTypeConfig as ComputerTypeConfig, type ComputerWaitConfig as ComputerWaitConfig, type ComputerZoomConfig as ComputerZoomConfig, type Container as Container, type ContainerParams as ContainerParams, type ContainerSkill as ContainerSkill, type ContainerUploadBlock as ContainerUploadBlock, type ContainerUploadBlockParam as ContainerUploadBlockParam, type ContentBlock as ContentBlock, type ContentBlockParam as ContentBlockParam, type ContentBlockStartEvent as ContentBlockStartEvent, type ContentBlockStopEvent as ContentBlockStopEvent, type ContentBlockSource as ContentBlockSource, type ContentBlockSourceContent as ContentBlockSourceContent, type DirectCaller as DirectCaller, type DocumentBlock as DocumentBlock, type DocumentBlockParam as DocumentBlockParam, type EncryptedCodeExecutionResultBlock as EncryptedCodeExecutionResultBlock, type EncryptedCodeExecutionResultBlockParam as EncryptedCodeExecutionResultBlockParam, type FileDocumentSource as FileDocumentSource, type FileImageSource as FileImageSource, type ImageBlockParam as ImageBlockParam, type ImageTransformationsParam as ImageTransformationsParam, type InputJSONDelta as InputJSONDelta, type JSONOutputFormat as JSONOutputFormat, type MemoryTool20250818 as MemoryTool20250818, type Message as Message, type MessageCountTokensTool as MessageCountTokensTool, type MessageCreateParamsContainer as MessageCreateParamsContainer, type MessageDeltaEvent as MessageDeltaEvent, type MessageDeltaUsage as MessageDeltaUsage, type MessageParam as MessageParam, type MessageTokensCount as MessageTokensCount, type Metadata as Metadata, type Model as Model, type OutputConfig as OutputConfig, type OutputTokensDetails as OutputTokensDetails, type PlainTextSource as PlainTextSource, type RawContentBlockDelta as RawContentBlockDelta, type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent, type RawContentBlockStartEvent as RawContentBlockStartEvent, type RawContentBlockStopEvent as RawContentBlockStopEvent, type RawMessageDeltaEvent as RawMessageDeltaEvent, type RawMessageStartEvent as RawMessageStartEvent, type RawMessageStopEvent as RawMessageStopEvent, type RawMessageStreamEvent as RawMessageStreamEvent, type RedactedThinkingBlock as RedactedThinkingBlock, type RedactedThinkingBlockParam as RedactedThinkingBlockParam, type RefusalStopDetails as RefusalStopDetails, type SearchResultBlockParam as SearchResultBlockParam, type ServerToolCaller as ServerToolCaller, type ServerToolCaller20260120 as ServerToolCaller20260120, type ServerToolUsage as ServerToolUsage, type ServerToolUseBlock as ServerToolUseBlock, type ServerToolUseBlockParam as ServerToolUseBlockParam, type SignatureDelta as SignatureDelta, type SkillParams as SkillParams, type StopReason as StopReason, type TextBlock as TextBlock, type TextBlockParam as TextBlockParam, type TextCitation as TextCitation, type TextCitationParam as TextCitationParam, type TextDelta as TextDelta, type TextEditorCodeExecutionCreateResultBlock as TextEditorCodeExecutionCreateResultBlock, type TextEditorCodeExecutionCreateResultBlockParam as TextEditorCodeExecutionCreateResultBlockParam, type TextEditorCodeExecutionStrReplaceResultBlock as TextEditorCodeExecutionStrReplaceResultBlock, type TextEditorCodeExecutionStrReplaceResultBlockParam as TextEditorCodeExecutionStrReplaceResultBlockParam, type TextEditorCodeExecutionToolResultBlock as TextEditorCodeExecutionToolResultBlock, type TextEditorCodeExecutionToolResultBlockParam as TextEditorCodeExecutionToolResultBlockParam, type TextEditorCodeExecutionToolResultError as TextEditorCodeExecutionToolResultError, type TextEditorCodeExecutionToolResultErrorCode as TextEditorCodeExecutionToolResultErrorCode, type TextEditorCodeExecutionToolResultErrorParam as TextEditorCodeExecutionToolResultErrorParam, type TextEditorCodeExecutionViewResultBlock as TextEditorCodeExecutionViewResultBlock, type TextEditorCodeExecutionViewResultBlockParam as TextEditorCodeExecutionViewResultBlockParam, type ThinkingBlock as ThinkingBlock, type ThinkingBlockParam as ThinkingBlockParam, type ThinkingConfigAdaptive as ThinkingConfigAdaptive, type ThinkingConfigDisabled as ThinkingConfigDisabled, type ThinkingConfigEnabled as ThinkingConfigEnabled, type ThinkingConfigParam as ThinkingConfigParam, type ThinkingDelta as ThinkingDelta, type Tool as Tool, type ToolBash20250124 as ToolBash20250124, type ToolChoice as ToolChoice, type ToolChoiceAny as ToolChoiceAny, type ToolChoiceAuto as ToolChoiceAuto, type ToolChoiceNone as ToolChoiceNone, type ToolChoiceTool as ToolChoiceTool, type ToolReferenceBlock as ToolReferenceBlock, type ToolReferenceBlockParam as ToolReferenceBlockParam, type ToolResultBlockParam as ToolResultBlockParam, type ToolSearchToolBm25_20251119 as ToolSearchToolBm25_20251119, type ToolSearchToolRegex20251119 as ToolSearchToolRegex20251119, type ToolSearchToolResultBlock as ToolSearchToolResultBlock, type ToolSearchToolResultBlockParam as ToolSearchToolResultBlockParam, type ToolSearchToolResultError as ToolSearchToolResultError, type ToolSearchToolResultErrorCode as ToolSearchToolResultErrorCode, type ToolSearchToolResultErrorParam as ToolSearchToolResultErrorParam, type ToolSearchToolSearchResultBlock as ToolSearchToolSearchResultBlock, type ToolSearchToolSearchResultBlockParam as ToolSearchToolSearchResultBlockParam, type ToolTextEditor20250124 as ToolTextEditor20250124, type ToolTextEditor20250429 as ToolTextEditor20250429, type ToolTextEditor20250728 as ToolTextEditor20250728, type ToolUnion as ToolUnion, type ToolUseBlock as ToolUseBlock, type ToolUseBlockParam as ToolUseBlockParam, type URLImageSource as URLImageSource, type URLPDFSource as URLPDFSource, type Usage as Usage, type UserLocation as UserLocation, type WebFetchBlock as WebFetchBlock, type WebFetchBlockParam as WebFetchBlockParam, type WebFetchTool20250910 as WebFetchTool20250910, type WebFetchTool20260209 as WebFetchTool20260209, type WebFetchTool20260309 as WebFetchTool20260309, type WebFetchTool20260318 as WebFetchTool20260318, type WebFetchToolResultBlock as WebFetchToolResultBlock, type WebFetchToolResultBlockParam as WebFetchToolResultBlockParam, type WebFetchToolResultErrorBlock as WebFetchToolResultErrorBlock, type WebFetchToolResultErrorBlockParam as WebFetchToolResultErrorBlockParam, type WebFetchToolResultErrorCode as WebFetchToolResultErrorCode, type WebSearchResultBlock as WebSearchResultBlock, type WebSearchResultBlockParam as WebSearchResultBlockParam, type WebSearchTool20250305 as WebSearchTool20250305, type WebSearchTool20260209 as WebSearchTool20260209, type WebSearchTool20260318 as WebSearchTool20260318, type WebSearchToolRequestError as WebSearchToolRequestError, type WebSearchToolResultBlock as WebSearchToolResultBlock, type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent, type WebSearchToolResultBlockParam as WebSearchToolResultBlockParam, type WebSearchToolResultBlockParamContent as WebSearchToolResultBlockParamContent, type WebSearchToolResultError as WebSearchToolResultError, type MessageStreamEvent as MessageStreamEvent, type MessageStartEvent as MessageStartEvent, type MessageStopEvent as MessageStopEvent, type ContentBlockDeltaEvent as ContentBlockDeltaEvent, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageStreamParams as MessageStreamParams, type MessageCountTokensParams as MessageCountTokensParams, };
|
|
2645
3887
|
export { Batches as Batches, type DeletedMessageBatch as DeletedMessageBatch, type MessageBatch as MessageBatch, type MessageBatchCanceledResult as MessageBatchCanceledResult, type MessageBatchErroredResult as MessageBatchErroredResult, type MessageBatchExpiredResult as MessageBatchExpiredResult, type MessageBatchIndividualResponse as MessageBatchIndividualResponse, type MessageBatchRequestCounts as MessageBatchRequestCounts, type MessageBatchResult as MessageBatchResult, type MessageBatchSucceededResult as MessageBatchSucceededResult, type MessageBatchesPage as MessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, };
|
|
2646
3888
|
}
|
|
2647
3889
|
//# sourceMappingURL=messages.d.mts.map
|