@anthropic-ai/sdk 0.118.0 → 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 +8 -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 +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/lib/tools/BetaRunnableTool.d.mts +4 -1
- package/lib/tools/BetaRunnableTool.d.mts.map +1 -1
- package/lib/tools/BetaRunnableTool.d.ts +4 -1
- package/lib/tools/BetaRunnableTool.d.ts.map +1 -1
- package/lib/tools/BetaRunnableTool.js +7 -2
- package/lib/tools/BetaRunnableTool.js.map +1 -1
- package/lib/tools/BetaRunnableTool.mjs +7 -2
- 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 -1
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +3 -1
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +4 -4
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +4 -4
- 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/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/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 +1201 -4
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +1201 -4
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- 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/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 +1267 -7
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +1267 -7
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +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 +172 -0
- package/src/lib/tools/BetaRunnableTool.ts +9 -2
- package/src/lib/tools/BetaToolRunner.ts +6 -1
- package/src/resources/beta/beta.ts +126 -6
- package/src/resources/beta/files.ts +27 -27
- package/src/resources/beta/index.ts +63 -3
- package/src/resources/beta/messages/index.ts +60 -0
- package/src/resources/beta/messages/messages.ts +1861 -411
- package/src/resources/files.ts +163 -0
- package/src/resources/index.ts +83 -0
- package/src/resources/messages/index.ts +66 -0
- package/src/resources/messages/messages.ts +1648 -115
- 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
|
@@ -285,6 +285,794 @@ export interface BetaBashCodeExecutionToolResultErrorParam {
|
|
|
285
285
|
error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded' | 'output_file_too_large';
|
|
286
286
|
type: 'bash_code_execution_tool_result_error';
|
|
287
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* `close_tab`'s config overrides.
|
|
290
|
+
*/
|
|
291
|
+
export interface BetaBrowserCloseTabConfig {
|
|
292
|
+
/**
|
|
293
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
294
|
+
* member of the toolset.
|
|
295
|
+
*/
|
|
296
|
+
defer_loading?: boolean | null;
|
|
297
|
+
/**
|
|
298
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
299
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
300
|
+
* the served schema.
|
|
301
|
+
*/
|
|
302
|
+
enabled?: boolean | null;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* `double_click`'s config overrides.
|
|
306
|
+
*/
|
|
307
|
+
export interface BetaBrowserDoubleClickConfig {
|
|
308
|
+
/**
|
|
309
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
310
|
+
* member of the toolset.
|
|
311
|
+
*/
|
|
312
|
+
defer_loading?: boolean | null;
|
|
313
|
+
/**
|
|
314
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
315
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
316
|
+
* the served schema.
|
|
317
|
+
*/
|
|
318
|
+
enabled?: boolean | null;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* `file_upload`'s config overrides.
|
|
322
|
+
*/
|
|
323
|
+
export interface BetaBrowserFileUploadConfig {
|
|
324
|
+
/**
|
|
325
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
326
|
+
* member of the toolset.
|
|
327
|
+
*/
|
|
328
|
+
defer_loading?: boolean | null;
|
|
329
|
+
/**
|
|
330
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
331
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
332
|
+
* the served schema.
|
|
333
|
+
*/
|
|
334
|
+
enabled?: boolean | null;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* `find`'s config overrides.
|
|
338
|
+
*/
|
|
339
|
+
export interface BetaBrowserFindConfig {
|
|
340
|
+
/**
|
|
341
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
342
|
+
* member of the toolset.
|
|
343
|
+
*/
|
|
344
|
+
defer_loading?: boolean | null;
|
|
345
|
+
/**
|
|
346
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
347
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
348
|
+
* the served schema.
|
|
349
|
+
*/
|
|
350
|
+
enabled?: boolean | null;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* `form_input`'s config overrides.
|
|
354
|
+
*/
|
|
355
|
+
export interface BetaBrowserFormInputConfig {
|
|
356
|
+
/**
|
|
357
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
358
|
+
* member of the toolset.
|
|
359
|
+
*/
|
|
360
|
+
defer_loading?: boolean | null;
|
|
361
|
+
/**
|
|
362
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
363
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
364
|
+
* the served schema.
|
|
365
|
+
*/
|
|
366
|
+
enabled?: boolean | null;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* `get_page_text`'s config overrides.
|
|
370
|
+
*/
|
|
371
|
+
export interface BetaBrowserGetPageTextConfig {
|
|
372
|
+
/**
|
|
373
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
374
|
+
* member of the toolset.
|
|
375
|
+
*/
|
|
376
|
+
defer_loading?: boolean | null;
|
|
377
|
+
/**
|
|
378
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
379
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
380
|
+
* the served schema.
|
|
381
|
+
*/
|
|
382
|
+
enabled?: boolean | null;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* `hold_key`'s config overrides.
|
|
386
|
+
*/
|
|
387
|
+
export interface BetaBrowserHoldKeyConfig {
|
|
388
|
+
/**
|
|
389
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
390
|
+
* member of the toolset.
|
|
391
|
+
*/
|
|
392
|
+
defer_loading?: boolean | null;
|
|
393
|
+
/**
|
|
394
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
395
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
396
|
+
* the served schema.
|
|
397
|
+
*/
|
|
398
|
+
enabled?: boolean | null;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* `hover`'s config overrides.
|
|
402
|
+
*/
|
|
403
|
+
export interface BetaBrowserHoverConfig {
|
|
404
|
+
/**
|
|
405
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
406
|
+
* member of the toolset.
|
|
407
|
+
*/
|
|
408
|
+
defer_loading?: boolean | null;
|
|
409
|
+
/**
|
|
410
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
411
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
412
|
+
* the served schema.
|
|
413
|
+
*/
|
|
414
|
+
enabled?: boolean | null;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* `javascript_exec`'s config overrides.
|
|
418
|
+
*/
|
|
419
|
+
export interface BetaBrowserJavascriptExecConfig {
|
|
420
|
+
/**
|
|
421
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
422
|
+
* member of the toolset.
|
|
423
|
+
*/
|
|
424
|
+
defer_loading?: boolean | null;
|
|
425
|
+
/**
|
|
426
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
427
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
428
|
+
* the served schema.
|
|
429
|
+
*/
|
|
430
|
+
enabled?: boolean | null;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* `key`'s config overrides.
|
|
434
|
+
*/
|
|
435
|
+
export interface BetaBrowserKeyConfig {
|
|
436
|
+
/**
|
|
437
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
438
|
+
* member of the toolset.
|
|
439
|
+
*/
|
|
440
|
+
defer_loading?: boolean | null;
|
|
441
|
+
/**
|
|
442
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
443
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
444
|
+
* the served schema.
|
|
445
|
+
*/
|
|
446
|
+
enabled?: boolean | null;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* `left_click`'s config overrides.
|
|
450
|
+
*/
|
|
451
|
+
export interface BetaBrowserLeftClickConfig {
|
|
452
|
+
/**
|
|
453
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
454
|
+
* member of the toolset.
|
|
455
|
+
*/
|
|
456
|
+
defer_loading?: boolean | null;
|
|
457
|
+
/**
|
|
458
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
459
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
460
|
+
* the served schema.
|
|
461
|
+
*/
|
|
462
|
+
enabled?: boolean | null;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* `left_click_drag`'s config overrides.
|
|
466
|
+
*/
|
|
467
|
+
export interface BetaBrowserLeftClickDragConfig {
|
|
468
|
+
/**
|
|
469
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
470
|
+
* member of the toolset.
|
|
471
|
+
*/
|
|
472
|
+
defer_loading?: boolean | null;
|
|
473
|
+
/**
|
|
474
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
475
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
476
|
+
* the served schema.
|
|
477
|
+
*/
|
|
478
|
+
enabled?: boolean | null;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* `left_mouse_down`'s config overrides.
|
|
482
|
+
*/
|
|
483
|
+
export interface BetaBrowserLeftMouseDownConfig {
|
|
484
|
+
/**
|
|
485
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
486
|
+
* member of the toolset.
|
|
487
|
+
*/
|
|
488
|
+
defer_loading?: boolean | null;
|
|
489
|
+
/**
|
|
490
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
491
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
492
|
+
* the served schema.
|
|
493
|
+
*/
|
|
494
|
+
enabled?: boolean | null;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* `left_mouse_up`'s config overrides.
|
|
498
|
+
*/
|
|
499
|
+
export interface BetaBrowserLeftMouseUpConfig {
|
|
500
|
+
/**
|
|
501
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
502
|
+
* member of the toolset.
|
|
503
|
+
*/
|
|
504
|
+
defer_loading?: boolean | null;
|
|
505
|
+
/**
|
|
506
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
507
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
508
|
+
* the served schema.
|
|
509
|
+
*/
|
|
510
|
+
enabled?: boolean | null;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* `list_tabs`'s config overrides.
|
|
514
|
+
*/
|
|
515
|
+
export interface BetaBrowserListTabsConfig {
|
|
516
|
+
/**
|
|
517
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
518
|
+
* member of the toolset.
|
|
519
|
+
*/
|
|
520
|
+
defer_loading?: boolean | null;
|
|
521
|
+
/**
|
|
522
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
523
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
524
|
+
* the served schema.
|
|
525
|
+
*/
|
|
526
|
+
enabled?: boolean | null;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* `middle_click`'s config overrides.
|
|
530
|
+
*/
|
|
531
|
+
export interface BetaBrowserMiddleClickConfig {
|
|
532
|
+
/**
|
|
533
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
534
|
+
* member of the toolset.
|
|
535
|
+
*/
|
|
536
|
+
defer_loading?: boolean | null;
|
|
537
|
+
/**
|
|
538
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
539
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
540
|
+
* the served schema.
|
|
541
|
+
*/
|
|
542
|
+
enabled?: boolean | null;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* `mouse_move`'s config overrides.
|
|
546
|
+
*/
|
|
547
|
+
export interface BetaBrowserMouseMoveConfig {
|
|
548
|
+
/**
|
|
549
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
550
|
+
* member of the toolset.
|
|
551
|
+
*/
|
|
552
|
+
defer_loading?: boolean | null;
|
|
553
|
+
/**
|
|
554
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
555
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
556
|
+
* the served schema.
|
|
557
|
+
*/
|
|
558
|
+
enabled?: boolean | null;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* `navigate`'s config overrides.
|
|
562
|
+
*/
|
|
563
|
+
export interface BetaBrowserNavigateConfig {
|
|
564
|
+
/**
|
|
565
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
566
|
+
* member of the toolset.
|
|
567
|
+
*/
|
|
568
|
+
defer_loading?: boolean | null;
|
|
569
|
+
/**
|
|
570
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
571
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
572
|
+
* the served schema.
|
|
573
|
+
*/
|
|
574
|
+
enabled?: boolean | null;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* `new_tab`'s config overrides.
|
|
578
|
+
*/
|
|
579
|
+
export interface BetaBrowserNewTabConfig {
|
|
580
|
+
/**
|
|
581
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
582
|
+
* member of the toolset.
|
|
583
|
+
*/
|
|
584
|
+
defer_loading?: boolean | null;
|
|
585
|
+
/**
|
|
586
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
587
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
588
|
+
* the served schema.
|
|
589
|
+
*/
|
|
590
|
+
enabled?: boolean | null;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* `read_console`'s config overrides.
|
|
594
|
+
*/
|
|
595
|
+
export interface BetaBrowserReadConsoleConfig {
|
|
596
|
+
/**
|
|
597
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
598
|
+
* member of the toolset.
|
|
599
|
+
*/
|
|
600
|
+
defer_loading?: boolean | null;
|
|
601
|
+
/**
|
|
602
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
603
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
604
|
+
* the served schema.
|
|
605
|
+
*/
|
|
606
|
+
enabled?: boolean | null;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* `read_network`'s config overrides.
|
|
610
|
+
*/
|
|
611
|
+
export interface BetaBrowserReadNetworkConfig {
|
|
612
|
+
/**
|
|
613
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
614
|
+
* member of the toolset.
|
|
615
|
+
*/
|
|
616
|
+
defer_loading?: boolean | null;
|
|
617
|
+
/**
|
|
618
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
619
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
620
|
+
* the served schema.
|
|
621
|
+
*/
|
|
622
|
+
enabled?: boolean | null;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* `read_page`'s config overrides.
|
|
626
|
+
*/
|
|
627
|
+
export interface BetaBrowserReadPageConfig {
|
|
628
|
+
/**
|
|
629
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
630
|
+
* member of the toolset.
|
|
631
|
+
*/
|
|
632
|
+
defer_loading?: boolean | null;
|
|
633
|
+
/**
|
|
634
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
635
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
636
|
+
* the served schema.
|
|
637
|
+
*/
|
|
638
|
+
enabled?: boolean | null;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* `right_click`'s config overrides.
|
|
642
|
+
*/
|
|
643
|
+
export interface BetaBrowserRightClickConfig {
|
|
644
|
+
/**
|
|
645
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
646
|
+
* member of the toolset.
|
|
647
|
+
*/
|
|
648
|
+
defer_loading?: boolean | null;
|
|
649
|
+
/**
|
|
650
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
651
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
652
|
+
* the served schema.
|
|
653
|
+
*/
|
|
654
|
+
enabled?: boolean | null;
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* `screenshot`'s config overrides.
|
|
658
|
+
*/
|
|
659
|
+
export interface BetaBrowserScreenshotConfig {
|
|
660
|
+
/**
|
|
661
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
662
|
+
* member of the toolset.
|
|
663
|
+
*/
|
|
664
|
+
defer_loading?: boolean | null;
|
|
665
|
+
/**
|
|
666
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
667
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
668
|
+
* the served schema.
|
|
669
|
+
*/
|
|
670
|
+
enabled?: boolean | null;
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* `scroll`'s config overrides.
|
|
674
|
+
*/
|
|
675
|
+
export interface BetaBrowserScrollConfig {
|
|
676
|
+
/**
|
|
677
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
678
|
+
* member of the toolset.
|
|
679
|
+
*/
|
|
680
|
+
defer_loading?: boolean | null;
|
|
681
|
+
/**
|
|
682
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
683
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
684
|
+
* the served schema.
|
|
685
|
+
*/
|
|
686
|
+
enabled?: boolean | null;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* `scroll_to`'s config overrides.
|
|
690
|
+
*/
|
|
691
|
+
export interface BetaBrowserScrollToConfig {
|
|
692
|
+
/**
|
|
693
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
694
|
+
* member of the toolset.
|
|
695
|
+
*/
|
|
696
|
+
defer_loading?: boolean | null;
|
|
697
|
+
/**
|
|
698
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
699
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
700
|
+
* the served schema.
|
|
701
|
+
*/
|
|
702
|
+
enabled?: boolean | null;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* The caller's browser state after a browser toolset member call — the full
|
|
706
|
+
* inventory of open tabs, which tab is active, and any side effects (tabs opened,
|
|
707
|
+
* download state changes) the call produced.
|
|
708
|
+
*
|
|
709
|
+
* At most one per `tool_result`, only on a non-error result answering a browser
|
|
710
|
+
* toolset member `tool_use`. The server renders the model-visible text from it;
|
|
711
|
+
* the model never sees the raw fields.
|
|
712
|
+
*/
|
|
713
|
+
export interface BetaBrowserStateBlockParam {
|
|
714
|
+
/**
|
|
715
|
+
* All tabs open in the browser after this call — the full inventory, not a delta.
|
|
716
|
+
* May be empty. Whenever non-empty, exactly one entry carries `active: true`.
|
|
717
|
+
*/
|
|
718
|
+
tabs: Array<BetaBrowserStateTabEntry>;
|
|
719
|
+
type: 'browser_state';
|
|
720
|
+
/**
|
|
721
|
+
* Create a cache control breakpoint at this content block.
|
|
722
|
+
*/
|
|
723
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
724
|
+
/**
|
|
725
|
+
* Tabs opened and download state changes during this call. "Nothing to report" is
|
|
726
|
+
* expressed by omitting the field, never by an empty list.
|
|
727
|
+
*/
|
|
728
|
+
state_changes?: Array<BetaBrowserStateChange> | null;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
732
|
+
* delta of the `tabs` inventory, not an event log.
|
|
733
|
+
*
|
|
734
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
735
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
736
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
737
|
+
*/
|
|
738
|
+
export type BetaBrowserStateChange = BetaBrowserStateChangeTabOpened | BetaBrowserStateChangeDownloadStarted | BetaBrowserStateChangeDownloadCompleted | BetaBrowserStateChangeDownloadFailed;
|
|
739
|
+
/**
|
|
740
|
+
* A file download that finished during this call, reported with the same
|
|
741
|
+
* `download_id` as its `download_started` — or without a prior `download_started`,
|
|
742
|
+
* when the download finished during the call that started it (at most one state
|
|
743
|
+
* change per `download_id` per result).
|
|
744
|
+
*/
|
|
745
|
+
export interface BetaBrowserStateChangeDownloadCompleted {
|
|
746
|
+
/**
|
|
747
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
748
|
+
* changes reporting it.
|
|
749
|
+
*/
|
|
750
|
+
download_id: string;
|
|
751
|
+
type: 'download_completed';
|
|
752
|
+
/**
|
|
753
|
+
* The final post-redirect URL the download was served from.
|
|
754
|
+
*/
|
|
755
|
+
url: string;
|
|
756
|
+
/**
|
|
757
|
+
* Where the executor saved the file, on the executor's filesystem. Only included
|
|
758
|
+
* when another tool in the same environment can read the file at that path.
|
|
759
|
+
*/
|
|
760
|
+
path?: string | null;
|
|
761
|
+
/**
|
|
762
|
+
* The completed download's size.
|
|
763
|
+
*/
|
|
764
|
+
size_bytes?: number | null;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* A file download that failed — or was cancelled — during this call.
|
|
768
|
+
*/
|
|
769
|
+
export interface BetaBrowserStateChangeDownloadFailed {
|
|
770
|
+
/**
|
|
771
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
772
|
+
* changes reporting it.
|
|
773
|
+
*/
|
|
774
|
+
download_id: string;
|
|
775
|
+
type: 'download_failed';
|
|
776
|
+
/**
|
|
777
|
+
* The final post-redirect URL the download was served from.
|
|
778
|
+
*/
|
|
779
|
+
url: string;
|
|
780
|
+
/**
|
|
781
|
+
* The failure or cancellation detail, when known.
|
|
782
|
+
*/
|
|
783
|
+
error?: string | null;
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* A file download that started during this call.
|
|
787
|
+
*/
|
|
788
|
+
export interface BetaBrowserStateChangeDownloadStarted {
|
|
789
|
+
/**
|
|
790
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
791
|
+
* changes reporting it.
|
|
792
|
+
*/
|
|
793
|
+
download_id: string;
|
|
794
|
+
type: 'download_started';
|
|
795
|
+
/**
|
|
796
|
+
* The final post-redirect URL the download was served from.
|
|
797
|
+
*/
|
|
798
|
+
url: string;
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
802
|
+
* delta of the `tabs` inventory, not an event log.
|
|
803
|
+
*
|
|
804
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
805
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
806
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
807
|
+
*/
|
|
808
|
+
export interface BetaBrowserStateChangeTabOpened {
|
|
809
|
+
/**
|
|
810
|
+
* The `tab_id` of the opened tab, present in `tabs`.
|
|
811
|
+
*/
|
|
812
|
+
tab_id: string;
|
|
813
|
+
type: 'tab_opened';
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* One open browser tab reported in a `browser_state` block's `tabs` inventory.
|
|
817
|
+
*
|
|
818
|
+
* `tab_id` is the caller-assigned identifier for the tab; `title` and `url`
|
|
819
|
+
* describe the page the tab is currently showing and may be empty strings (a blank
|
|
820
|
+
* tab legitimately has both empty). `active` marks the tab that is active after
|
|
821
|
+
* this call; whenever `tabs` is non-empty, exactly one entry is marked.
|
|
822
|
+
*/
|
|
823
|
+
export interface BetaBrowserStateTabEntry {
|
|
824
|
+
/**
|
|
825
|
+
* The caller-assigned identifier for this tab, unique within the inventory.
|
|
826
|
+
*/
|
|
827
|
+
tab_id: string;
|
|
828
|
+
/**
|
|
829
|
+
* The title of the page the tab is showing. May be empty.
|
|
830
|
+
*/
|
|
831
|
+
title: string;
|
|
832
|
+
/**
|
|
833
|
+
* The URL of the page the tab is showing. May be empty.
|
|
834
|
+
*/
|
|
835
|
+
url: string;
|
|
836
|
+
/**
|
|
837
|
+
* Whether this tab is the active tab after this call. Whenever `tabs` is
|
|
838
|
+
* non-empty, exactly one entry is marked `active: true`.
|
|
839
|
+
*/
|
|
840
|
+
active?: boolean;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* `switch_tab`'s config overrides.
|
|
844
|
+
*/
|
|
845
|
+
export interface BetaBrowserSwitchTabConfig {
|
|
846
|
+
/**
|
|
847
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
848
|
+
* member of the toolset.
|
|
849
|
+
*/
|
|
850
|
+
defer_loading?: boolean | null;
|
|
851
|
+
/**
|
|
852
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
853
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
854
|
+
* the served schema.
|
|
855
|
+
*/
|
|
856
|
+
enabled?: boolean | null;
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* The browser toolset: a single `tools[]` entry (carrying no `name`) that declares
|
|
860
|
+
* the browser tool family. The model is served the family's tool with any members
|
|
861
|
+
* disabled via `configs` removed from its schema.
|
|
862
|
+
*/
|
|
863
|
+
export interface BetaBrowserToolset20260801 {
|
|
864
|
+
type: 'browser_toolset_20260801';
|
|
865
|
+
allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
|
|
866
|
+
/**
|
|
867
|
+
* Create a cache control breakpoint at this content block.
|
|
868
|
+
*/
|
|
869
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
870
|
+
/**
|
|
871
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
872
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
873
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
874
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
875
|
+
* toolset version's complete member set.
|
|
876
|
+
*/
|
|
877
|
+
configs?: BetaBrowserToolsetConfigs | null;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
881
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
882
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
883
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
884
|
+
* toolset version's complete member set.
|
|
885
|
+
*/
|
|
886
|
+
export interface BetaBrowserToolsetConfigs {
|
|
887
|
+
/**
|
|
888
|
+
* `close_tab`'s config overrides.
|
|
889
|
+
*/
|
|
890
|
+
close_tab?: BetaBrowserCloseTabConfig | null;
|
|
891
|
+
/**
|
|
892
|
+
* `double_click`'s config overrides.
|
|
893
|
+
*/
|
|
894
|
+
double_click?: BetaBrowserDoubleClickConfig | null;
|
|
895
|
+
/**
|
|
896
|
+
* `file_upload`'s config overrides.
|
|
897
|
+
*/
|
|
898
|
+
file_upload?: BetaBrowserFileUploadConfig | null;
|
|
899
|
+
/**
|
|
900
|
+
* `find`'s config overrides.
|
|
901
|
+
*/
|
|
902
|
+
find?: BetaBrowserFindConfig | null;
|
|
903
|
+
/**
|
|
904
|
+
* `form_input`'s config overrides.
|
|
905
|
+
*/
|
|
906
|
+
form_input?: BetaBrowserFormInputConfig | null;
|
|
907
|
+
/**
|
|
908
|
+
* `get_page_text`'s config overrides.
|
|
909
|
+
*/
|
|
910
|
+
get_page_text?: BetaBrowserGetPageTextConfig | null;
|
|
911
|
+
/**
|
|
912
|
+
* `hold_key`'s config overrides.
|
|
913
|
+
*/
|
|
914
|
+
hold_key?: BetaBrowserHoldKeyConfig | null;
|
|
915
|
+
/**
|
|
916
|
+
* `hover`'s config overrides.
|
|
917
|
+
*/
|
|
918
|
+
hover?: BetaBrowserHoverConfig | null;
|
|
919
|
+
/**
|
|
920
|
+
* `javascript_exec`'s config overrides.
|
|
921
|
+
*/
|
|
922
|
+
javascript_exec?: BetaBrowserJavascriptExecConfig | null;
|
|
923
|
+
/**
|
|
924
|
+
* `key`'s config overrides.
|
|
925
|
+
*/
|
|
926
|
+
key?: BetaBrowserKeyConfig | null;
|
|
927
|
+
/**
|
|
928
|
+
* `left_click`'s config overrides.
|
|
929
|
+
*/
|
|
930
|
+
left_click?: BetaBrowserLeftClickConfig | null;
|
|
931
|
+
/**
|
|
932
|
+
* `left_click_drag`'s config overrides.
|
|
933
|
+
*/
|
|
934
|
+
left_click_drag?: BetaBrowserLeftClickDragConfig | null;
|
|
935
|
+
/**
|
|
936
|
+
* `left_mouse_down`'s config overrides.
|
|
937
|
+
*/
|
|
938
|
+
left_mouse_down?: BetaBrowserLeftMouseDownConfig | null;
|
|
939
|
+
/**
|
|
940
|
+
* `left_mouse_up`'s config overrides.
|
|
941
|
+
*/
|
|
942
|
+
left_mouse_up?: BetaBrowserLeftMouseUpConfig | null;
|
|
943
|
+
/**
|
|
944
|
+
* `list_tabs`'s config overrides.
|
|
945
|
+
*/
|
|
946
|
+
list_tabs?: BetaBrowserListTabsConfig | null;
|
|
947
|
+
/**
|
|
948
|
+
* `middle_click`'s config overrides.
|
|
949
|
+
*/
|
|
950
|
+
middle_click?: BetaBrowserMiddleClickConfig | null;
|
|
951
|
+
/**
|
|
952
|
+
* `mouse_move`'s config overrides.
|
|
953
|
+
*/
|
|
954
|
+
mouse_move?: BetaBrowserMouseMoveConfig | null;
|
|
955
|
+
/**
|
|
956
|
+
* `navigate`'s config overrides.
|
|
957
|
+
*/
|
|
958
|
+
navigate?: BetaBrowserNavigateConfig | null;
|
|
959
|
+
/**
|
|
960
|
+
* `new_tab`'s config overrides.
|
|
961
|
+
*/
|
|
962
|
+
new_tab?: BetaBrowserNewTabConfig | null;
|
|
963
|
+
/**
|
|
964
|
+
* `read_console`'s config overrides.
|
|
965
|
+
*/
|
|
966
|
+
read_console?: BetaBrowserReadConsoleConfig | null;
|
|
967
|
+
/**
|
|
968
|
+
* `read_network`'s config overrides.
|
|
969
|
+
*/
|
|
970
|
+
read_network?: BetaBrowserReadNetworkConfig | null;
|
|
971
|
+
/**
|
|
972
|
+
* `read_page`'s config overrides.
|
|
973
|
+
*/
|
|
974
|
+
read_page?: BetaBrowserReadPageConfig | null;
|
|
975
|
+
/**
|
|
976
|
+
* `right_click`'s config overrides.
|
|
977
|
+
*/
|
|
978
|
+
right_click?: BetaBrowserRightClickConfig | null;
|
|
979
|
+
/**
|
|
980
|
+
* `screenshot`'s config overrides.
|
|
981
|
+
*/
|
|
982
|
+
screenshot?: BetaBrowserScreenshotConfig | null;
|
|
983
|
+
/**
|
|
984
|
+
* `scroll`'s config overrides.
|
|
985
|
+
*/
|
|
986
|
+
scroll?: BetaBrowserScrollConfig | null;
|
|
987
|
+
/**
|
|
988
|
+
* `scroll_to`'s config overrides.
|
|
989
|
+
*/
|
|
990
|
+
scroll_to?: BetaBrowserScrollToConfig | null;
|
|
991
|
+
/**
|
|
992
|
+
* `switch_tab`'s config overrides.
|
|
993
|
+
*/
|
|
994
|
+
switch_tab?: BetaBrowserSwitchTabConfig | null;
|
|
995
|
+
/**
|
|
996
|
+
* `triple_click`'s config overrides.
|
|
997
|
+
*/
|
|
998
|
+
triple_click?: BetaBrowserTripleClickConfig | null;
|
|
999
|
+
/**
|
|
1000
|
+
* `type`'s config overrides.
|
|
1001
|
+
*/
|
|
1002
|
+
type?: BetaBrowserTypeConfig | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* `wait`'s config overrides.
|
|
1005
|
+
*/
|
|
1006
|
+
wait?: BetaBrowserWaitConfig | null;
|
|
1007
|
+
/**
|
|
1008
|
+
* `zoom`'s config overrides.
|
|
1009
|
+
*/
|
|
1010
|
+
zoom?: BetaBrowserZoomConfig | null;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* `triple_click`'s config overrides.
|
|
1014
|
+
*/
|
|
1015
|
+
export interface BetaBrowserTripleClickConfig {
|
|
1016
|
+
/**
|
|
1017
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1018
|
+
* member of the toolset.
|
|
1019
|
+
*/
|
|
1020
|
+
defer_loading?: boolean | null;
|
|
1021
|
+
/**
|
|
1022
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1023
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1024
|
+
* the served schema.
|
|
1025
|
+
*/
|
|
1026
|
+
enabled?: boolean | null;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* `type`'s config overrides.
|
|
1030
|
+
*/
|
|
1031
|
+
export interface BetaBrowserTypeConfig {
|
|
1032
|
+
/**
|
|
1033
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1034
|
+
* member of the toolset.
|
|
1035
|
+
*/
|
|
1036
|
+
defer_loading?: boolean | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1039
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1040
|
+
* the served schema.
|
|
1041
|
+
*/
|
|
1042
|
+
enabled?: boolean | null;
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* `wait`'s config overrides.
|
|
1046
|
+
*/
|
|
1047
|
+
export interface BetaBrowserWaitConfig {
|
|
1048
|
+
/**
|
|
1049
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1050
|
+
* member of the toolset.
|
|
1051
|
+
*/
|
|
1052
|
+
defer_loading?: boolean | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1055
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1056
|
+
* the served schema.
|
|
1057
|
+
*/
|
|
1058
|
+
enabled?: boolean | null;
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* `zoom`'s config overrides.
|
|
1062
|
+
*/
|
|
1063
|
+
export interface BetaBrowserZoomConfig {
|
|
1064
|
+
/**
|
|
1065
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1066
|
+
* member of the toolset.
|
|
1067
|
+
*/
|
|
1068
|
+
defer_loading?: boolean | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1071
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1072
|
+
* the served schema.
|
|
1073
|
+
*/
|
|
1074
|
+
enabled?: boolean | null;
|
|
1075
|
+
}
|
|
288
1076
|
export interface BetaCacheControlEphemeral {
|
|
289
1077
|
type: 'ephemeral';
|
|
290
1078
|
/**
|
|
@@ -846,6 +1634,379 @@ export interface BetaCompactionIterationUsage {
|
|
|
846
1634
|
*/
|
|
847
1635
|
type: 'compaction';
|
|
848
1636
|
}
|
|
1637
|
+
/**
|
|
1638
|
+
* `cursor_position`'s config overrides.
|
|
1639
|
+
*/
|
|
1640
|
+
export interface BetaComputerCursorPositionConfig {
|
|
1641
|
+
/**
|
|
1642
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1643
|
+
* member of the toolset.
|
|
1644
|
+
*/
|
|
1645
|
+
defer_loading?: boolean | null;
|
|
1646
|
+
/**
|
|
1647
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1648
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1649
|
+
* the served schema.
|
|
1650
|
+
*/
|
|
1651
|
+
enabled?: boolean | null;
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* `double_click`'s config overrides.
|
|
1655
|
+
*/
|
|
1656
|
+
export interface BetaComputerDoubleClickConfig {
|
|
1657
|
+
/**
|
|
1658
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1659
|
+
* member of the toolset.
|
|
1660
|
+
*/
|
|
1661
|
+
defer_loading?: boolean | null;
|
|
1662
|
+
/**
|
|
1663
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1664
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1665
|
+
* the served schema.
|
|
1666
|
+
*/
|
|
1667
|
+
enabled?: boolean | null;
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* `hold_key`'s config overrides.
|
|
1671
|
+
*/
|
|
1672
|
+
export interface BetaComputerHoldKeyConfig {
|
|
1673
|
+
/**
|
|
1674
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1675
|
+
* member of the toolset.
|
|
1676
|
+
*/
|
|
1677
|
+
defer_loading?: boolean | null;
|
|
1678
|
+
/**
|
|
1679
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1680
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1681
|
+
* the served schema.
|
|
1682
|
+
*/
|
|
1683
|
+
enabled?: boolean | null;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* `key`'s config overrides.
|
|
1687
|
+
*/
|
|
1688
|
+
export interface BetaComputerKeyConfig {
|
|
1689
|
+
/**
|
|
1690
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1691
|
+
* member of the toolset.
|
|
1692
|
+
*/
|
|
1693
|
+
defer_loading?: boolean | null;
|
|
1694
|
+
/**
|
|
1695
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1696
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1697
|
+
* the served schema.
|
|
1698
|
+
*/
|
|
1699
|
+
enabled?: boolean | null;
|
|
1700
|
+
}
|
|
1701
|
+
/**
|
|
1702
|
+
* `left_click`'s config overrides.
|
|
1703
|
+
*/
|
|
1704
|
+
export interface BetaComputerLeftClickConfig {
|
|
1705
|
+
/**
|
|
1706
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1707
|
+
* member of the toolset.
|
|
1708
|
+
*/
|
|
1709
|
+
defer_loading?: boolean | null;
|
|
1710
|
+
/**
|
|
1711
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1712
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1713
|
+
* the served schema.
|
|
1714
|
+
*/
|
|
1715
|
+
enabled?: boolean | null;
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* `left_click_drag`'s config overrides.
|
|
1719
|
+
*/
|
|
1720
|
+
export interface BetaComputerLeftClickDragConfig {
|
|
1721
|
+
/**
|
|
1722
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1723
|
+
* member of the toolset.
|
|
1724
|
+
*/
|
|
1725
|
+
defer_loading?: boolean | null;
|
|
1726
|
+
/**
|
|
1727
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1728
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1729
|
+
* the served schema.
|
|
1730
|
+
*/
|
|
1731
|
+
enabled?: boolean | null;
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* `left_mouse_down`'s config overrides.
|
|
1735
|
+
*/
|
|
1736
|
+
export interface BetaComputerLeftMouseDownConfig {
|
|
1737
|
+
/**
|
|
1738
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1739
|
+
* member of the toolset.
|
|
1740
|
+
*/
|
|
1741
|
+
defer_loading?: boolean | null;
|
|
1742
|
+
/**
|
|
1743
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1744
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1745
|
+
* the served schema.
|
|
1746
|
+
*/
|
|
1747
|
+
enabled?: boolean | null;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* `left_mouse_up`'s config overrides.
|
|
1751
|
+
*/
|
|
1752
|
+
export interface BetaComputerLeftMouseUpConfig {
|
|
1753
|
+
/**
|
|
1754
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1755
|
+
* member of the toolset.
|
|
1756
|
+
*/
|
|
1757
|
+
defer_loading?: boolean | null;
|
|
1758
|
+
/**
|
|
1759
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1760
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1761
|
+
* the served schema.
|
|
1762
|
+
*/
|
|
1763
|
+
enabled?: boolean | null;
|
|
1764
|
+
}
|
|
1765
|
+
/**
|
|
1766
|
+
* `middle_click`'s config overrides.
|
|
1767
|
+
*/
|
|
1768
|
+
export interface BetaComputerMiddleClickConfig {
|
|
1769
|
+
/**
|
|
1770
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1771
|
+
* member of the toolset.
|
|
1772
|
+
*/
|
|
1773
|
+
defer_loading?: boolean | null;
|
|
1774
|
+
/**
|
|
1775
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1776
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1777
|
+
* the served schema.
|
|
1778
|
+
*/
|
|
1779
|
+
enabled?: boolean | null;
|
|
1780
|
+
}
|
|
1781
|
+
/**
|
|
1782
|
+
* `mouse_move`'s config overrides.
|
|
1783
|
+
*/
|
|
1784
|
+
export interface BetaComputerMouseMoveConfig {
|
|
1785
|
+
/**
|
|
1786
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1787
|
+
* member of the toolset.
|
|
1788
|
+
*/
|
|
1789
|
+
defer_loading?: boolean | null;
|
|
1790
|
+
/**
|
|
1791
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1792
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1793
|
+
* the served schema.
|
|
1794
|
+
*/
|
|
1795
|
+
enabled?: boolean | null;
|
|
1796
|
+
}
|
|
1797
|
+
/**
|
|
1798
|
+
* `right_click`'s config overrides.
|
|
1799
|
+
*/
|
|
1800
|
+
export interface BetaComputerRightClickConfig {
|
|
1801
|
+
/**
|
|
1802
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1803
|
+
* member of the toolset.
|
|
1804
|
+
*/
|
|
1805
|
+
defer_loading?: boolean | null;
|
|
1806
|
+
/**
|
|
1807
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1808
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1809
|
+
* the served schema.
|
|
1810
|
+
*/
|
|
1811
|
+
enabled?: boolean | null;
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* `screenshot`'s config overrides.
|
|
1815
|
+
*/
|
|
1816
|
+
export interface BetaComputerScreenshotConfig {
|
|
1817
|
+
/**
|
|
1818
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1819
|
+
* member of the toolset.
|
|
1820
|
+
*/
|
|
1821
|
+
defer_loading?: boolean | null;
|
|
1822
|
+
/**
|
|
1823
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1824
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1825
|
+
* the served schema.
|
|
1826
|
+
*/
|
|
1827
|
+
enabled?: boolean | null;
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* `scroll`'s config overrides.
|
|
1831
|
+
*/
|
|
1832
|
+
export interface BetaComputerScrollConfig {
|
|
1833
|
+
/**
|
|
1834
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1835
|
+
* member of the toolset.
|
|
1836
|
+
*/
|
|
1837
|
+
defer_loading?: boolean | null;
|
|
1838
|
+
/**
|
|
1839
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1840
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1841
|
+
* the served schema.
|
|
1842
|
+
*/
|
|
1843
|
+
enabled?: boolean | null;
|
|
1844
|
+
}
|
|
1845
|
+
/**
|
|
1846
|
+
* The computer toolset: a single `tools[]` entry (carrying no `name`) that
|
|
1847
|
+
* declares the computer tool family. The model is served the family's tool with
|
|
1848
|
+
* any members disabled via `configs` removed from its schema. Every member is
|
|
1849
|
+
* enabled by default, zoom included. The single-tool options `display_number` and
|
|
1850
|
+
* `enable_zoom` are not fields of a toolset entry — it carries only `type`,
|
|
1851
|
+
* `configs`, and `cache_control`; zoom is controlled via `configs.zoom.enabled`.
|
|
1852
|
+
*/
|
|
1853
|
+
export interface BetaComputerToolset20260801 {
|
|
1854
|
+
type: 'computer_toolset_20260801';
|
|
1855
|
+
allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Create a cache control breakpoint at this content block.
|
|
1858
|
+
*/
|
|
1859
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
1860
|
+
/**
|
|
1861
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1862
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1863
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1864
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1865
|
+
* toolset version's complete member set.
|
|
1866
|
+
*/
|
|
1867
|
+
configs?: BetaComputerToolsetConfigs | null;
|
|
1868
|
+
}
|
|
1869
|
+
/**
|
|
1870
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1871
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1872
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1873
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1874
|
+
* toolset version's complete member set.
|
|
1875
|
+
*/
|
|
1876
|
+
export interface BetaComputerToolsetConfigs {
|
|
1877
|
+
/**
|
|
1878
|
+
* `cursor_position`'s config overrides.
|
|
1879
|
+
*/
|
|
1880
|
+
cursor_position?: BetaComputerCursorPositionConfig | null;
|
|
1881
|
+
/**
|
|
1882
|
+
* `double_click`'s config overrides.
|
|
1883
|
+
*/
|
|
1884
|
+
double_click?: BetaComputerDoubleClickConfig | null;
|
|
1885
|
+
/**
|
|
1886
|
+
* `hold_key`'s config overrides.
|
|
1887
|
+
*/
|
|
1888
|
+
hold_key?: BetaComputerHoldKeyConfig | null;
|
|
1889
|
+
/**
|
|
1890
|
+
* `key`'s config overrides.
|
|
1891
|
+
*/
|
|
1892
|
+
key?: BetaComputerKeyConfig | null;
|
|
1893
|
+
/**
|
|
1894
|
+
* `left_click`'s config overrides.
|
|
1895
|
+
*/
|
|
1896
|
+
left_click?: BetaComputerLeftClickConfig | null;
|
|
1897
|
+
/**
|
|
1898
|
+
* `left_click_drag`'s config overrides.
|
|
1899
|
+
*/
|
|
1900
|
+
left_click_drag?: BetaComputerLeftClickDragConfig | null;
|
|
1901
|
+
/**
|
|
1902
|
+
* `left_mouse_down`'s config overrides.
|
|
1903
|
+
*/
|
|
1904
|
+
left_mouse_down?: BetaComputerLeftMouseDownConfig | null;
|
|
1905
|
+
/**
|
|
1906
|
+
* `left_mouse_up`'s config overrides.
|
|
1907
|
+
*/
|
|
1908
|
+
left_mouse_up?: BetaComputerLeftMouseUpConfig | null;
|
|
1909
|
+
/**
|
|
1910
|
+
* `middle_click`'s config overrides.
|
|
1911
|
+
*/
|
|
1912
|
+
middle_click?: BetaComputerMiddleClickConfig | null;
|
|
1913
|
+
/**
|
|
1914
|
+
* `mouse_move`'s config overrides.
|
|
1915
|
+
*/
|
|
1916
|
+
mouse_move?: BetaComputerMouseMoveConfig | null;
|
|
1917
|
+
/**
|
|
1918
|
+
* `right_click`'s config overrides.
|
|
1919
|
+
*/
|
|
1920
|
+
right_click?: BetaComputerRightClickConfig | null;
|
|
1921
|
+
/**
|
|
1922
|
+
* `screenshot`'s config overrides.
|
|
1923
|
+
*/
|
|
1924
|
+
screenshot?: BetaComputerScreenshotConfig | null;
|
|
1925
|
+
/**
|
|
1926
|
+
* `scroll`'s config overrides.
|
|
1927
|
+
*/
|
|
1928
|
+
scroll?: BetaComputerScrollConfig | null;
|
|
1929
|
+
/**
|
|
1930
|
+
* `triple_click`'s config overrides.
|
|
1931
|
+
*/
|
|
1932
|
+
triple_click?: BetaComputerTripleClickConfig | null;
|
|
1933
|
+
/**
|
|
1934
|
+
* `type`'s config overrides.
|
|
1935
|
+
*/
|
|
1936
|
+
type?: BetaComputerTypeConfig | null;
|
|
1937
|
+
/**
|
|
1938
|
+
* `wait`'s config overrides.
|
|
1939
|
+
*/
|
|
1940
|
+
wait?: BetaComputerWaitConfig | null;
|
|
1941
|
+
/**
|
|
1942
|
+
* `zoom`'s config overrides.
|
|
1943
|
+
*/
|
|
1944
|
+
zoom?: BetaComputerZoomConfig | null;
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* `triple_click`'s config overrides.
|
|
1948
|
+
*/
|
|
1949
|
+
export interface BetaComputerTripleClickConfig {
|
|
1950
|
+
/**
|
|
1951
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1952
|
+
* member of the toolset.
|
|
1953
|
+
*/
|
|
1954
|
+
defer_loading?: boolean | null;
|
|
1955
|
+
/**
|
|
1956
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1957
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1958
|
+
* the served schema.
|
|
1959
|
+
*/
|
|
1960
|
+
enabled?: boolean | null;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* `type`'s config overrides.
|
|
1964
|
+
*/
|
|
1965
|
+
export interface BetaComputerTypeConfig {
|
|
1966
|
+
/**
|
|
1967
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1968
|
+
* member of the toolset.
|
|
1969
|
+
*/
|
|
1970
|
+
defer_loading?: boolean | null;
|
|
1971
|
+
/**
|
|
1972
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1973
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1974
|
+
* the served schema.
|
|
1975
|
+
*/
|
|
1976
|
+
enabled?: boolean | null;
|
|
1977
|
+
}
|
|
1978
|
+
/**
|
|
1979
|
+
* `wait`'s config overrides.
|
|
1980
|
+
*/
|
|
1981
|
+
export interface BetaComputerWaitConfig {
|
|
1982
|
+
/**
|
|
1983
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1984
|
+
* member of the toolset.
|
|
1985
|
+
*/
|
|
1986
|
+
defer_loading?: boolean | null;
|
|
1987
|
+
/**
|
|
1988
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1989
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1990
|
+
* the served schema.
|
|
1991
|
+
*/
|
|
1992
|
+
enabled?: boolean | null;
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* `zoom`'s config overrides.
|
|
1996
|
+
*/
|
|
1997
|
+
export interface BetaComputerZoomConfig {
|
|
1998
|
+
/**
|
|
1999
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2000
|
+
* member of the toolset.
|
|
2001
|
+
*/
|
|
2002
|
+
defer_loading?: boolean | null;
|
|
2003
|
+
/**
|
|
2004
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2005
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2006
|
+
* the served schema.
|
|
2007
|
+
*/
|
|
2008
|
+
enabled?: boolean | null;
|
|
2009
|
+
}
|
|
849
2010
|
/**
|
|
850
2011
|
* Information about the container used in the request (for the code execution
|
|
851
2012
|
* tool)
|
|
@@ -1262,6 +2423,30 @@ export interface BetaImageBlockParam {
|
|
|
1262
2423
|
* Create a cache control breakpoint at this content block.
|
|
1263
2424
|
*/
|
|
1264
2425
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
2426
|
+
/**
|
|
2427
|
+
* Configures the transformations the server applies to this image before the model
|
|
2428
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
2429
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
2430
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
2431
|
+
*/
|
|
2432
|
+
transformations?: BetaImageTransformationsParam | null;
|
|
2433
|
+
}
|
|
2434
|
+
/**
|
|
2435
|
+
* Configures the transformations the server applies to this image before the model
|
|
2436
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
2437
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
2438
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
2439
|
+
*/
|
|
2440
|
+
export interface BetaImageTransformationsParam {
|
|
2441
|
+
/**
|
|
2442
|
+
* What the server does when this image exceeds the model's maximum image size.
|
|
2443
|
+
* `"downsize"` (the default) scales the image down to fit, which changes the
|
|
2444
|
+
* dimensions the model observes without telling you. `"error"` instead rejects the
|
|
2445
|
+
* request with a 400 error naming the image's dimensions and the largest
|
|
2446
|
+
* dimensions that fit, so you can scale the image deliberately — your image is
|
|
2447
|
+
* never silently scaled down.
|
|
2448
|
+
*/
|
|
2449
|
+
oversized_image?: 'downsize' | 'error';
|
|
1265
2450
|
}
|
|
1266
2451
|
export interface BetaInputJSONDelta {
|
|
1267
2452
|
partial_json: string;
|
|
@@ -2645,8 +3830,12 @@ export interface BetaToolResultBlockParam {
|
|
|
2645
3830
|
* Create a cache control breakpoint at this content block.
|
|
2646
3831
|
*/
|
|
2647
3832
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
2648
|
-
content?: string | Array<BetaTextBlockParam | BetaImageBlockParam | BetaSearchResultBlockParam | BetaRequestDocumentBlock | BetaToolReferenceBlockParam>;
|
|
3833
|
+
content?: string | Array<BetaTextBlockParam | BetaImageBlockParam | BetaSearchResultBlockParam | BetaRequestDocumentBlock | BetaToolReferenceBlockParam | BetaBrowserStateBlockParam>;
|
|
2649
3834
|
is_error?: boolean;
|
|
3835
|
+
/**
|
|
3836
|
+
* For a toolset member tool_result, the toolset family of the paired tool_use.
|
|
3837
|
+
*/
|
|
3838
|
+
toolset_name?: string | null;
|
|
2650
3839
|
}
|
|
2651
3840
|
export interface BetaToolSearchToolBm25_20251119 {
|
|
2652
3841
|
/**
|
|
@@ -2840,7 +4029,7 @@ export interface BetaToolTextEditor20250728 {
|
|
|
2840
4029
|
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
2841
4030
|
* checkpoint).
|
|
2842
4031
|
*/
|
|
2843
|
-
export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
|
|
4032
|
+
export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaBrowserToolset20260801 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaComputerToolset20260801 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
|
|
2844
4033
|
export interface BetaToolUseBlock {
|
|
2845
4034
|
id: string;
|
|
2846
4035
|
input: unknown;
|
|
@@ -2850,6 +4039,10 @@ export interface BetaToolUseBlock {
|
|
|
2850
4039
|
* Tool invocation directly from the model.
|
|
2851
4040
|
*/
|
|
2852
4041
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4042
|
+
/**
|
|
4043
|
+
* For a toolset member tool_use, the toolset family.
|
|
4044
|
+
*/
|
|
4045
|
+
toolset_name?: string | null;
|
|
2853
4046
|
}
|
|
2854
4047
|
export interface BetaToolUseBlockParam {
|
|
2855
4048
|
id: string;
|
|
@@ -2864,6 +4057,10 @@ export interface BetaToolUseBlockParam {
|
|
|
2864
4057
|
* Tool invocation directly from the model.
|
|
2865
4058
|
*/
|
|
2866
4059
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4060
|
+
/**
|
|
4061
|
+
* For a toolset member tool_use, the toolset family this member belongs to.
|
|
4062
|
+
*/
|
|
4063
|
+
toolset_name?: string | null;
|
|
2867
4064
|
}
|
|
2868
4065
|
export interface BetaToolUsesKeep {
|
|
2869
4066
|
type: 'tool_uses';
|
|
@@ -3988,7 +5185,7 @@ export interface MessageCountTokensParams {
|
|
|
3988
5185
|
* [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
3989
5186
|
* for more details.
|
|
3990
5187
|
*/
|
|
3991
|
-
tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
|
|
5188
|
+
tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaBrowserToolset20260801 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaComputerToolset20260801 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
|
|
3992
5189
|
/**
|
|
3993
5190
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
3994
5191
|
*/
|
|
@@ -4003,7 +5200,7 @@ export interface MessageCountTokensParams {
|
|
|
4003
5200
|
export { BetaToolRunner, type BetaToolRunnerParams } from "../../../lib/tools/BetaToolRunner.mjs";
|
|
4004
5201
|
export { ToolError } from "../../../lib/tools/ToolError.mjs";
|
|
4005
5202
|
export declare namespace Messages {
|
|
4006
|
-
export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackCreditNotApplied as BetaFallbackCreditNotApplied, type BetaFallbackCreditRedeemed as BetaFallbackCreditRedeemed, type BetaFallbackCreditTokenParam as BetaFallbackCreditTokenParam, type BetaFallbackCreditUsage as BetaFallbackCreditUsage, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFallbacksParam as BetaFallbacksParam, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaOutputConfig as BetaOutputConfig, type BetaOutputTokensDetails as BetaOutputTokensDetails, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent as BetaRawMessageStartEvent, type BetaRawMessageStopEvent as BetaRawMessageStopEvent, type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaRequestToolAdditionBlock as BetaRequestToolAdditionBlock, type BetaRequestToolRemovalBlock as BetaRequestToolRemovalBlock, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChangeMCPToolReference as BetaToolChangeMCPToolReference, type BetaToolChangeMCPToolsetReference as BetaToolChangeMCPToolsetReference, type BetaToolChangeToolReference as BetaToolChangeToolReference, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchTool20260318 as BetaWebFetchTool20260318, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchTool20260318 as BetaWebSearchTool20260318, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
|
|
5203
|
+
export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaBrowserCloseTabConfig as BetaBrowserCloseTabConfig, type BetaBrowserDoubleClickConfig as BetaBrowserDoubleClickConfig, type BetaBrowserFileUploadConfig as BetaBrowserFileUploadConfig, type BetaBrowserFindConfig as BetaBrowserFindConfig, type BetaBrowserFormInputConfig as BetaBrowserFormInputConfig, type BetaBrowserGetPageTextConfig as BetaBrowserGetPageTextConfig, type BetaBrowserHoldKeyConfig as BetaBrowserHoldKeyConfig, type BetaBrowserHoverConfig as BetaBrowserHoverConfig, type BetaBrowserJavascriptExecConfig as BetaBrowserJavascriptExecConfig, type BetaBrowserKeyConfig as BetaBrowserKeyConfig, type BetaBrowserLeftClickConfig as BetaBrowserLeftClickConfig, type BetaBrowserLeftClickDragConfig as BetaBrowserLeftClickDragConfig, type BetaBrowserLeftMouseDownConfig as BetaBrowserLeftMouseDownConfig, type BetaBrowserLeftMouseUpConfig as BetaBrowserLeftMouseUpConfig, type BetaBrowserListTabsConfig as BetaBrowserListTabsConfig, type BetaBrowserMiddleClickConfig as BetaBrowserMiddleClickConfig, type BetaBrowserMouseMoveConfig as BetaBrowserMouseMoveConfig, type BetaBrowserNavigateConfig as BetaBrowserNavigateConfig, type BetaBrowserNewTabConfig as BetaBrowserNewTabConfig, type BetaBrowserReadConsoleConfig as BetaBrowserReadConsoleConfig, type BetaBrowserReadNetworkConfig as BetaBrowserReadNetworkConfig, type BetaBrowserReadPageConfig as BetaBrowserReadPageConfig, type BetaBrowserRightClickConfig as BetaBrowserRightClickConfig, type BetaBrowserScreenshotConfig as BetaBrowserScreenshotConfig, type BetaBrowserScrollConfig as BetaBrowserScrollConfig, type BetaBrowserScrollToConfig as BetaBrowserScrollToConfig, type BetaBrowserStateBlockParam as BetaBrowserStateBlockParam, type BetaBrowserStateChange as BetaBrowserStateChange, type BetaBrowserStateChangeDownloadCompleted as BetaBrowserStateChangeDownloadCompleted, type BetaBrowserStateChangeDownloadFailed as BetaBrowserStateChangeDownloadFailed, type BetaBrowserStateChangeDownloadStarted as BetaBrowserStateChangeDownloadStarted, type BetaBrowserStateChangeTabOpened as BetaBrowserStateChangeTabOpened, type BetaBrowserStateTabEntry as BetaBrowserStateTabEntry, type BetaBrowserSwitchTabConfig as BetaBrowserSwitchTabConfig, type BetaBrowserToolset20260801 as BetaBrowserToolset20260801, type BetaBrowserToolsetConfigs as BetaBrowserToolsetConfigs, type BetaBrowserTripleClickConfig as BetaBrowserTripleClickConfig, type BetaBrowserTypeConfig as BetaBrowserTypeConfig, type BetaBrowserWaitConfig as BetaBrowserWaitConfig, type BetaBrowserZoomConfig as BetaBrowserZoomConfig, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaComputerCursorPositionConfig as BetaComputerCursorPositionConfig, type BetaComputerDoubleClickConfig as BetaComputerDoubleClickConfig, type BetaComputerHoldKeyConfig as BetaComputerHoldKeyConfig, type BetaComputerKeyConfig as BetaComputerKeyConfig, type BetaComputerLeftClickConfig as BetaComputerLeftClickConfig, type BetaComputerLeftClickDragConfig as BetaComputerLeftClickDragConfig, type BetaComputerLeftMouseDownConfig as BetaComputerLeftMouseDownConfig, type BetaComputerLeftMouseUpConfig as BetaComputerLeftMouseUpConfig, type BetaComputerMiddleClickConfig as BetaComputerMiddleClickConfig, type BetaComputerMouseMoveConfig as BetaComputerMouseMoveConfig, type BetaComputerRightClickConfig as BetaComputerRightClickConfig, type BetaComputerScreenshotConfig as BetaComputerScreenshotConfig, type BetaComputerScrollConfig as BetaComputerScrollConfig, type BetaComputerToolset20260801 as BetaComputerToolset20260801, type BetaComputerToolsetConfigs as BetaComputerToolsetConfigs, type BetaComputerTripleClickConfig as BetaComputerTripleClickConfig, type BetaComputerTypeConfig as BetaComputerTypeConfig, type BetaComputerWaitConfig as BetaComputerWaitConfig, type BetaComputerZoomConfig as BetaComputerZoomConfig, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackCreditNotApplied as BetaFallbackCreditNotApplied, type BetaFallbackCreditRedeemed as BetaFallbackCreditRedeemed, type BetaFallbackCreditTokenParam as BetaFallbackCreditTokenParam, type BetaFallbackCreditUsage as BetaFallbackCreditUsage, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFallbacksParam as BetaFallbacksParam, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaImageTransformationsParam as BetaImageTransformationsParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaOutputConfig as BetaOutputConfig, type BetaOutputTokensDetails as BetaOutputTokensDetails, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent as BetaRawMessageStartEvent, type BetaRawMessageStopEvent as BetaRawMessageStopEvent, type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaRequestToolAdditionBlock as BetaRequestToolAdditionBlock, type BetaRequestToolRemovalBlock as BetaRequestToolRemovalBlock, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChangeMCPToolReference as BetaToolChangeMCPToolReference, type BetaToolChangeMCPToolsetReference as BetaToolChangeMCPToolsetReference, type BetaToolChangeToolReference as BetaToolChangeToolReference, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchTool20260318 as BetaWebFetchTool20260318, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchTool20260318 as BetaWebSearchTool20260318, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
|
|
4007
5204
|
export { type BetaToolRunnerParams, BetaToolRunner };
|
|
4008
5205
|
export { ToolError };
|
|
4009
5206
|
export { Batches as Batches, type BetaDeletedMessageBatch as BetaDeletedMessageBatch, type BetaMessageBatch as BetaMessageBatch, type BetaMessageBatchCanceledResult as BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult as BetaMessageBatchErroredResult, type BetaMessageBatchExpiredResult as BetaMessageBatchExpiredResult, type BetaMessageBatchIndividualResponse as BetaMessageBatchIndividualResponse, type BetaMessageBatchRequestCounts as BetaMessageBatchRequestCounts, type BetaMessageBatchResult as BetaMessageBatchResult, type BetaMessageBatchSucceededResult as BetaMessageBatchSucceededResult, type BetaMessageBatchesPage as BetaMessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, };
|