@code-yeongyu/senpi 2026.8.25 → 2026.8.26
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 +17 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +29 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts +5 -9
- package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.js +5 -11
- package/dist/core/extensions/builtin/compaction/per-turn-cap.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts +2 -3
- package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.js +53 -14
- package/dist/core/extensions/builtin/compaction/todo-bridge.js.map +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +28 -5
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +558 -0
- package/node_modules/@anthropic-ai/sdk/README.md +16 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +14 -2
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +14 -2
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/bin/migration-config.json +481 -0
- package/node_modules/@anthropic-ai/sdk/client.d.mts +165 -11
- package/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.d.ts +165 -11
- package/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.js +415 -38
- package/node_modules/@anthropic-ai/sdk/client.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.mjs +414 -37
- package/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.js +7 -2
- package/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +8 -3
- package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.js +3 -0
- package/node_modules/@anthropic-ai/sdk/core/api.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/core/api.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts +131 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts +131 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.js +317 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.mjs +277 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.mts +12 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.d.ts +12 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.js +18 -1
- package/node_modules/@anthropic-ai/sdk/core/error.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.mjs +16 -0
- package/node_modules/@anthropic-ai/sdk/core/error.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts +154 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts +154 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.js +174 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.mjs +168 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +20 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +20 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.js +26 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.mjs +24 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +9 -0
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +9 -0
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js +34 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +34 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js +31 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts +11 -5
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts +11 -5
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.js +1 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs +1 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.d.mts +4 -2
- package/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.d.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.js +5 -1
- package/node_modules/@anthropic-ai/sdk/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.mjs +3 -2
- package/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.js +0 -5
- package/node_modules/@anthropic-ai/sdk/internal/constants.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.mjs +0 -5
- package/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts +136 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts +136 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.js +531 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs +523 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.js +45 -4
- package/node_modules/@anthropic-ai/sdk/internal/headers.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.mjs +43 -3
- package/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js +34 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs +30 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +2 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +2 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.js +16 -10
- package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +15 -9
- package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs +9 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.js +14 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js +277 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs +274 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts +57 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts +57 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.js +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js +230 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs +217 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +52 -2
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +52 -2
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.js +12 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.js +50 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs +45 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts +60 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts +60 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.js +27 -6
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.mjs +25 -5
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.d.mts +12 -6
- package/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.d.ts +12 -6
- package/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js +26 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts +31 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts +31 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js +75 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs +71 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js +44 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs +36 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +11 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +11 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.js +37 -11
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +35 -10
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js +18 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts +0 -3
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts +0 -3
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.js +3 -16
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs +2 -16
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +9 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +9 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +23 -2
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +23 -2
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.js +8 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs +5 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +66 -31
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +66 -31
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +37 -26
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +34 -23
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts +39 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts +39 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js +245 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs +208 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js +72 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs +35 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts +40 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts +40 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js +82 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs +79 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts +54 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts +54 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js +112 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs +108 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts +96 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts +96 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js +266 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs +224 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts +21 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js +130 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs +94 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.js +8 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.js +18 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts +95 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts +95 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js +226 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs +217 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts +227 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts +227 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js +569 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs +564 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts +31 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts +31 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.js +58 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs +55 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts +98 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts +98 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.js +754 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs +749 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts +22 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts +22 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js +88 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs +85 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts +38 -5
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts +38 -5
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js +28 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs +25 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +107 -29
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +105 -27
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts +179 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts +179 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js +728 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs +724 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/package.json +32 -15
- package/node_modules/@anthropic-ai/sdk/pagination.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/pagination.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/pagination.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +608 -68
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts +608 -68
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +51 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +51 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +22 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +22 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +306 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts +306 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +55 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +51 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +698 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts +698 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +196 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +192 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +309 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts +309 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +116 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +112 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +426 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts +426 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +150 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +145 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts +501 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts +501 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +257 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +251 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts +1 -388
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts +1 -388
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js +2 -138
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs +1 -136
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +22 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +22 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +11 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +11 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +23 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +6 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +136 -24
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts +136 -24
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +10 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +10 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts +60 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts +60 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +12 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +12 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +105 -7
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts +105 -7
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +6 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +6 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +81 -30
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +81 -30
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +12 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +12 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +2453 -380
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +2453 -380
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +16 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +16 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +643 -19
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts +643 -19
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +29 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +27 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts +3 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts +3 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js +3 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +455 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts +455 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +5 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +6 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts +78 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts +78 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +61 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +57 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +195 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts +195 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +88 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +83 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +13 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts +13 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +5 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +5 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +31 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts +31 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +32 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +32 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts +163 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts +163 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +125 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts +212 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts +212 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +181 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +176 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +62 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts +62 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.js +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts +256 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts +256 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +22 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +22 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +466 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts +466 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js +20 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs +16 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +18 -11
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +18 -11
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/files.d.mts +105 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.ts +105 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.js +52 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs +48 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/index.d.mts +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.d.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.js +5 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +20 -11
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +20 -11
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +17 -9
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +17 -9
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1782 -162
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1782 -162
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +23 -28
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +23 -28
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +44 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +39 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts +104 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts +104 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +41 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +37 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +18 -2
- package/node_modules/@anthropic-ai/sdk/src/client.ts +749 -42
- package/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +14 -4
- package/node_modules/@anthropic-ai/sdk/src/core/api.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/src/core/credentials.ts +379 -0
- package/node_modules/@anthropic-ai/sdk/src/core/error.ts +17 -0
- package/node_modules/@anthropic-ai/sdk/src/core/middleware.ts +339 -0
- package/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +60 -0
- package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +38 -1
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/environments.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/json-schema.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/mcp.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/zod.ts +14 -10
- package/node_modules/@anthropic-ai/sdk/src/helpers/zod.ts +3 -6
- package/node_modules/@anthropic-ai/sdk/src/index.ts +16 -1
- package/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +0 -5
- package/node_modules/@anthropic-ai/sdk/src/internal/file-store.ts +550 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +47 -4
- package/node_modules/@anthropic-ai/sdk/src/internal/message-stream-utils.ts +30 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +16 -11
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/LICENSE.md +13 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/README.md +3 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/formats.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/index.ts +13 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/stringify.ts +385 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/types.ts +71 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/utils.ts +265 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +55 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/request-signal.ts +68 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/stainless-helper-header.ts +122 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/abort.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/async-queue.ts +66 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/backoff.ts +41 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +41 -10
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/promise.ts +18 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/query.ts +2 -18
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +25 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/time.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +72 -33
- package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +36 -24
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/credential-chain.ts +292 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/identity-token.ts +37 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/oidc-federation.ts +140 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/token-cache.ts +130 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/types.ts +295 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/user-oauth.ts +144 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/index.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/poller.ts +299 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/worker.ts +779 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/helper-client.ts +86 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/middleware.ts +994 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/sessions/accumulate.ts +130 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaRunnableTool.ts +71 -7
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +135 -35
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/SessionToolRunner.ts +885 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +806 -69
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/index.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +690 -28
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +441 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +996 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +453 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +626 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/index.ts +42 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +705 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments.ts +1 -540
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +28 -28
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +312 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/index.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +141 -31
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +66 -20
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +112 -9
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +90 -33
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +90 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +2755 -211
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +888 -18
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/index.ts +60 -1
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +669 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +123 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/index.ts +15 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +330 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +15 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +49 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +252 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/index.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +347 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/user-profiles.ts +76 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +347 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/index.ts +17 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/webhooks.ts +762 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +18 -11
- package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +163 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +89 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +30 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +70 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +2202 -226
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +194 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +160 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +190 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/memories.ts +1017 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.browser.ts +172 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.ts +914 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/skills.ts +372 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/sync-interval.ts +30 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/memory/node.browser.ts +64 -0
- package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts +75 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts +75 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +196 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +185 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts +173 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts +173 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js +902 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs +895 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js +151 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs +131 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +190 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts +190 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js +819 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs +797 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js +352 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs +344 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts +19 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts +19 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js +29 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs +25 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts +27 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts +27 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js +49 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs +44 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.js +1 -1
- package/node_modules/@anthropic-ai/sdk/version.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs.map +1 -1
- package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +12 -0
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
- package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +3 -3
- package/node_modules/@earendil-works/pi-pty/package.json +1 -1
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@stablelib/base64/LICENSE +21 -0
- package/node_modules/@stablelib/base64/base64.bench.ts +25 -0
- package/node_modules/@stablelib/base64/base64.test.ts +85 -0
- package/node_modules/@stablelib/base64/base64.ts +283 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.d.ts +1 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.js +23 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.js.map +1 -0
- package/node_modules/@stablelib/base64/lib/base64.d.ts +34 -0
- package/node_modules/@stablelib/base64/lib/base64.js +282 -0
- package/node_modules/@stablelib/base64/lib/base64.js.map +1 -0
- package/node_modules/@stablelib/base64/lib/base64.test.d.ts +1 -0
- package/node_modules/@stablelib/base64/lib/base64.test.js +82 -0
- package/node_modules/@stablelib/base64/lib/base64.test.js.map +1 -0
- package/node_modules/@stablelib/base64/package.json +25 -0
- package/node_modules/@stablelib/base64/tsconfig.json +27 -0
- package/node_modules/fast-sha256/LICENSE +24 -0
- package/node_modules/fast-sha256/README.md +127 -0
- package/node_modules/fast-sha256/package.json +42 -0
- package/node_modules/fast-sha256/sha256.d.ts +39 -0
- package/node_modules/fast-sha256/sha256.js +427 -0
- package/node_modules/fast-sha256/sha256.min.js +1 -0
- package/node_modules/standardwebhooks/README.md +41 -0
- package/node_modules/standardwebhooks/dist/index.d.ts +24 -0
- package/node_modules/standardwebhooks/dist/index.js +106 -0
- package/node_modules/standardwebhooks/dist/index.js.map +1 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.d.ts +1 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.js +30 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.js.map +1 -0
- package/node_modules/standardwebhooks/package.json +45 -0
- package/package.json +17 -8
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts +0 -34
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts +0 -34
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.js.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts +0 -132
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts +0 -132
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js +0 -294
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs +0 -290
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs.map +0 -1
- package/node_modules/@anthropic-ai/sdk/src/lib/stainless-helper-header.ts +0 -80
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/ToolRunner.ts +0 -381
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { AnthropicError } from '../../../error';
|
|
4
4
|
import { Anthropic } from '../../../client';
|
|
5
|
+
import * as BatchesAPI from './batches';
|
|
5
6
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
7
|
import { APIResource } from '../../../core/resource';
|
|
7
8
|
import { Stream } from '../../../core/streaming';
|
|
8
9
|
import { MODEL_NONSTREAMING_TOKENS } from '../../../internal/constants';
|
|
9
10
|
import { buildHeaders } from '../../../internal/headers';
|
|
10
11
|
import { RequestOptions } from '../../../internal/request-options';
|
|
11
|
-
import { stainlessHelperHeader } from '../../../
|
|
12
|
+
import { stainlessHelperHeader } from '../../../internal/stainless-helper-header';
|
|
12
13
|
import {
|
|
13
14
|
parseBetaMessage,
|
|
14
15
|
type ExtractParsedContentFromBetaParams,
|
|
@@ -25,7 +26,6 @@ import type { Model } from '../../messages/messages';
|
|
|
25
26
|
import * as BetaMessagesAPI from './messages';
|
|
26
27
|
import * as MessagesAPI from '../../messages/messages';
|
|
27
28
|
import * as BetaAPI from '../beta';
|
|
28
|
-
import * as BatchesAPI from './batches';
|
|
29
29
|
import {
|
|
30
30
|
BatchCancelParams,
|
|
31
31
|
BatchCreateParams,
|
|
@@ -48,19 +48,7 @@ import {
|
|
|
48
48
|
|
|
49
49
|
const DEPRECATED_MODELS: {
|
|
50
50
|
[K in Model]?: string;
|
|
51
|
-
} = {
|
|
52
|
-
'claude-1.3': 'November 6th, 2024',
|
|
53
|
-
'claude-1.3-100k': 'November 6th, 2024',
|
|
54
|
-
'claude-instant-1.1': 'November 6th, 2024',
|
|
55
|
-
'claude-instant-1.1-100k': 'November 6th, 2024',
|
|
56
|
-
'claude-instant-1.2': 'November 6th, 2024',
|
|
57
|
-
'claude-3-sonnet-20240229': 'July 21st, 2025',
|
|
58
|
-
'claude-3-opus-20240229': 'January 5th, 2026',
|
|
59
|
-
'claude-2.1': 'July 21st, 2025',
|
|
60
|
-
'claude-2.0': 'July 21st, 2025',
|
|
61
|
-
'claude-3-7-sonnet-latest': 'February 19th, 2026',
|
|
62
|
-
'claude-3-7-sonnet-20250219': 'February 19th, 2026',
|
|
63
|
-
};
|
|
51
|
+
} = {};
|
|
64
52
|
|
|
65
53
|
const MODELS_TO_WARN_WITH_THINKING_ENABLED: Model[] = ['claude-mythos-preview', 'claude-opus-4-6'];
|
|
66
54
|
|
|
@@ -75,14 +63,14 @@ export class Messages extends APIResource {
|
|
|
75
63
|
* conversations.
|
|
76
64
|
*
|
|
77
65
|
* Learn more about the Messages API in our
|
|
78
|
-
* [user guide](https://
|
|
66
|
+
* [user guide](https://platform.claude.com/docs/en/get-started)
|
|
79
67
|
*
|
|
80
68
|
* @example
|
|
81
69
|
* ```ts
|
|
82
70
|
* const betaMessage = await client.beta.messages.create({
|
|
83
71
|
* max_tokens: 1024,
|
|
84
72
|
* messages: [{ content: 'Hello, world', role: 'user' }],
|
|
85
|
-
* model: 'claude-opus-
|
|
73
|
+
* model: 'claude-opus-5',
|
|
86
74
|
* });
|
|
87
75
|
* ```
|
|
88
76
|
*/
|
|
@@ -102,7 +90,7 @@ export class Messages extends APIResource {
|
|
|
102
90
|
// Transform deprecated output_format to output_config.format
|
|
103
91
|
const modifiedParams = transformOutputFormat(params);
|
|
104
92
|
|
|
105
|
-
const { betas, ...body } = modifiedParams;
|
|
93
|
+
const { betas, user_profile_id, ...body } = modifiedParams;
|
|
106
94
|
|
|
107
95
|
if (body.model in DEPRECATED_MODELS) {
|
|
108
96
|
console.warn(
|
|
@@ -122,7 +110,7 @@ export class Messages extends APIResource {
|
|
|
122
110
|
);
|
|
123
111
|
}
|
|
124
112
|
|
|
125
|
-
let timeout = (this._client as any)._options.timeout as number | null;
|
|
113
|
+
let timeout = options?.timeout ?? ((this._client as any)._options.timeout as number | null);
|
|
126
114
|
if (!body.stream && timeout == null) {
|
|
127
115
|
const maxNonstreamingTokens = MODEL_NONSTREAMING_TOKENS[body.model] ?? undefined;
|
|
128
116
|
timeout = this._client.calculateNonstreamingTimeout(body.max_tokens, maxNonstreamingTokens);
|
|
@@ -136,7 +124,10 @@ export class Messages extends APIResource {
|
|
|
136
124
|
timeout: timeout ?? 600000,
|
|
137
125
|
...options,
|
|
138
126
|
headers: buildHeaders([
|
|
139
|
-
{
|
|
127
|
+
{
|
|
128
|
+
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
129
|
+
...(user_profile_id != null ? { 'anthropic-user-profile-id': user_profile_id } : undefined),
|
|
130
|
+
},
|
|
140
131
|
helperHeader,
|
|
141
132
|
options?.headers,
|
|
142
133
|
]),
|
|
@@ -194,14 +185,14 @@ export class Messages extends APIResource {
|
|
|
194
185
|
* including tools, images, and documents, without creating it.
|
|
195
186
|
*
|
|
196
187
|
* Learn more about token counting in our
|
|
197
|
-
* [user guide](https://
|
|
188
|
+
* [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
|
|
198
189
|
*
|
|
199
190
|
* @example
|
|
200
191
|
* ```ts
|
|
201
192
|
* const betaMessageTokensCount =
|
|
202
193
|
* await client.beta.messages.countTokens({
|
|
203
194
|
* messages: [{ content: 'Hello, world', role: 'user' }],
|
|
204
|
-
* model: 'claude-opus-
|
|
195
|
+
* model: 'claude-opus-5',
|
|
205
196
|
* });
|
|
206
197
|
* ```
|
|
207
198
|
*/
|
|
@@ -212,12 +203,15 @@ export class Messages extends APIResource {
|
|
|
212
203
|
// Transform deprecated output_format to output_config.format
|
|
213
204
|
const modifiedParams = transformOutputFormat(params);
|
|
214
205
|
|
|
215
|
-
const { betas, ...body } = modifiedParams;
|
|
206
|
+
const { betas, user_profile_id, ...body } = modifiedParams;
|
|
216
207
|
return this._client.post('/v1/messages/count_tokens?beta=true', {
|
|
217
208
|
body,
|
|
218
209
|
...options,
|
|
219
210
|
headers: buildHeaders([
|
|
220
|
-
{
|
|
211
|
+
{
|
|
212
|
+
'anthropic-beta': [...(betas ?? []), 'token-counting-2024-11-01'].toString(),
|
|
213
|
+
...(user_profile_id != null ? { 'anthropic-user-profile-id': user_profile_id } : undefined),
|
|
214
|
+
},
|
|
221
215
|
options?.headers,
|
|
222
216
|
]),
|
|
223
217
|
});
|
|
@@ -289,8 +283,9 @@ export interface BetaAdvisorMessageIterationUsage {
|
|
|
289
283
|
input_tokens: number;
|
|
290
284
|
|
|
291
285
|
/**
|
|
292
|
-
* The model that will complete your prompt
|
|
293
|
-
*
|
|
286
|
+
* The model that will complete your prompt.
|
|
287
|
+
*
|
|
288
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
294
289
|
* details and options.
|
|
295
290
|
*/
|
|
296
291
|
model: MessagesAPI.Model;
|
|
@@ -313,6 +308,12 @@ export interface BetaAdvisorRedactedResultBlock {
|
|
|
313
308
|
*/
|
|
314
309
|
encrypted_content: string;
|
|
315
310
|
|
|
311
|
+
/**
|
|
312
|
+
* The advisor sub-inference's stop reason (same values as the top-level message
|
|
313
|
+
* `stop_reason`).
|
|
314
|
+
*/
|
|
315
|
+
stop_reason: string | null;
|
|
316
|
+
|
|
316
317
|
type: 'advisor_redacted_result';
|
|
317
318
|
}
|
|
318
319
|
|
|
@@ -323,9 +324,18 @@ export interface BetaAdvisorRedactedResultBlockParam {
|
|
|
323
324
|
encrypted_content: string;
|
|
324
325
|
|
|
325
326
|
type: 'advisor_redacted_result';
|
|
327
|
+
|
|
328
|
+
stop_reason?: string | null;
|
|
326
329
|
}
|
|
327
330
|
|
|
328
331
|
export interface BetaAdvisorResultBlock {
|
|
332
|
+
/**
|
|
333
|
+
* The advisor sub-inference's stop reason (same values as the top-level message
|
|
334
|
+
* `stop_reason`). `max_tokens` indicates the advisor's output was truncated at the
|
|
335
|
+
* tool's `max_tokens` value or the advisor model's policy cap.
|
|
336
|
+
*/
|
|
337
|
+
stop_reason: string | null;
|
|
338
|
+
|
|
329
339
|
text: string;
|
|
330
340
|
|
|
331
341
|
type: 'advisor_result';
|
|
@@ -335,12 +345,15 @@ export interface BetaAdvisorResultBlockParam {
|
|
|
335
345
|
text: string;
|
|
336
346
|
|
|
337
347
|
type: 'advisor_result';
|
|
348
|
+
|
|
349
|
+
stop_reason?: string | null;
|
|
338
350
|
}
|
|
339
351
|
|
|
340
352
|
export interface BetaAdvisorTool20260301 {
|
|
341
353
|
/**
|
|
342
|
-
* The model that will complete your prompt
|
|
343
|
-
*
|
|
354
|
+
* The model that will complete your prompt.
|
|
355
|
+
*
|
|
356
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
344
357
|
* details and options.
|
|
345
358
|
*/
|
|
346
359
|
model: MessagesAPI.Model;
|
|
@@ -354,7 +367,9 @@ export interface BetaAdvisorTool20260301 {
|
|
|
354
367
|
|
|
355
368
|
type: 'advisor_20260301';
|
|
356
369
|
|
|
357
|
-
allowed_callers?: Array<
|
|
370
|
+
allowed_callers?: Array<
|
|
371
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
372
|
+
>;
|
|
358
373
|
|
|
359
374
|
/**
|
|
360
375
|
* Create a cache control breakpoint at this content block.
|
|
@@ -374,6 +389,17 @@ export interface BetaAdvisorTool20260301 {
|
|
|
374
389
|
*/
|
|
375
390
|
defer_loading?: boolean;
|
|
376
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Bounds the advisor's total output (thinking + text) per call. When the advisor
|
|
394
|
+
* hits this cap, the returned advisor_result or advisor_redacted_result block
|
|
395
|
+
* carries stop_reason='max_tokens', and a truncation note is appended to the
|
|
396
|
+
* advice text the worker model sees (inside the encrypted blob in redacted mode).
|
|
397
|
+
* When set, the server also emits a remaining-tokens budget block in the advisor's
|
|
398
|
+
* prompt so the advisor self-shapes toward the cap. When omitted, the advisor
|
|
399
|
+
* model's default output cap applies and no budget block is emitted.
|
|
400
|
+
*/
|
|
401
|
+
max_tokens?: number | null;
|
|
402
|
+
|
|
377
403
|
/**
|
|
378
404
|
* Maximum number of times the tool can be used in the API request.
|
|
379
405
|
*/
|
|
@@ -416,7 +442,8 @@ export interface BetaAdvisorToolResultError {
|
|
|
416
442
|
| 'too_many_requests'
|
|
417
443
|
| 'overloaded'
|
|
418
444
|
| 'unavailable'
|
|
419
|
-
| 'execution_time_exceeded'
|
|
445
|
+
| 'execution_time_exceeded'
|
|
446
|
+
| 'model_not_found';
|
|
420
447
|
|
|
421
448
|
type: 'advisor_tool_result_error';
|
|
422
449
|
}
|
|
@@ -428,7 +455,8 @@ export interface BetaAdvisorToolResultErrorParam {
|
|
|
428
455
|
| 'too_many_requests'
|
|
429
456
|
| 'overloaded'
|
|
430
457
|
| 'unavailable'
|
|
431
|
-
| 'execution_time_exceeded'
|
|
458
|
+
| 'execution_time_exceeded'
|
|
459
|
+
| 'model_not_found';
|
|
432
460
|
|
|
433
461
|
type: 'advisor_tool_result_error';
|
|
434
462
|
}
|
|
@@ -534,138 +562,1164 @@ export interface BetaBashCodeExecutionToolResultErrorParam {
|
|
|
534
562
|
type: 'bash_code_execution_tool_result_error';
|
|
535
563
|
}
|
|
536
564
|
|
|
537
|
-
|
|
538
|
-
|
|
565
|
+
/**
|
|
566
|
+
* `close_tab`'s config overrides.
|
|
567
|
+
*/
|
|
568
|
+
export interface BetaBrowserCloseTabConfig {
|
|
569
|
+
/**
|
|
570
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
571
|
+
* member of the toolset.
|
|
572
|
+
*/
|
|
573
|
+
defer_loading?: boolean | null;
|
|
539
574
|
|
|
540
575
|
/**
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
* - `5m`: 5 minutes
|
|
546
|
-
* - `1h`: 1 hour
|
|
547
|
-
*
|
|
548
|
-
* Defaults to `5m`.
|
|
576
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
577
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
578
|
+
* the served schema.
|
|
549
579
|
*/
|
|
550
|
-
|
|
580
|
+
enabled?: boolean | null;
|
|
551
581
|
}
|
|
552
582
|
|
|
553
|
-
|
|
583
|
+
/**
|
|
584
|
+
* `double_click`'s config overrides.
|
|
585
|
+
*/
|
|
586
|
+
export interface BetaBrowserDoubleClickConfig {
|
|
554
587
|
/**
|
|
555
|
-
*
|
|
588
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
589
|
+
* member of the toolset.
|
|
556
590
|
*/
|
|
557
|
-
|
|
591
|
+
defer_loading?: boolean | null;
|
|
558
592
|
|
|
559
593
|
/**
|
|
560
|
-
*
|
|
594
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
595
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
596
|
+
* the served schema.
|
|
561
597
|
*/
|
|
562
|
-
|
|
598
|
+
enabled?: boolean | null;
|
|
563
599
|
}
|
|
564
600
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
601
|
+
/**
|
|
602
|
+
* `file_upload`'s config overrides.
|
|
603
|
+
*/
|
|
604
|
+
export interface BetaBrowserFileUploadConfig {
|
|
605
|
+
/**
|
|
606
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
607
|
+
* member of the toolset.
|
|
608
|
+
*/
|
|
609
|
+
defer_loading?: boolean | null;
|
|
569
610
|
|
|
570
|
-
|
|
611
|
+
/**
|
|
612
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
613
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
614
|
+
* the served schema.
|
|
615
|
+
*/
|
|
616
|
+
enabled?: boolean | null;
|
|
617
|
+
}
|
|
571
618
|
|
|
572
|
-
|
|
619
|
+
/**
|
|
620
|
+
* `find`'s config overrides.
|
|
621
|
+
*/
|
|
622
|
+
export interface BetaBrowserFindConfig {
|
|
623
|
+
/**
|
|
624
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
625
|
+
* member of the toolset.
|
|
626
|
+
*/
|
|
627
|
+
defer_loading?: boolean | null;
|
|
573
628
|
|
|
574
|
-
|
|
629
|
+
/**
|
|
630
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
631
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
632
|
+
* the served schema.
|
|
633
|
+
*/
|
|
634
|
+
enabled?: boolean | null;
|
|
635
|
+
}
|
|
575
636
|
|
|
576
|
-
|
|
637
|
+
/**
|
|
638
|
+
* `form_input`'s config overrides.
|
|
639
|
+
*/
|
|
640
|
+
export interface BetaBrowserFormInputConfig {
|
|
641
|
+
/**
|
|
642
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
643
|
+
* member of the toolset.
|
|
644
|
+
*/
|
|
645
|
+
defer_loading?: boolean | null;
|
|
577
646
|
|
|
578
|
-
|
|
647
|
+
/**
|
|
648
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
649
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
650
|
+
* the served schema.
|
|
651
|
+
*/
|
|
652
|
+
enabled?: boolean | null;
|
|
579
653
|
}
|
|
580
654
|
|
|
581
|
-
|
|
582
|
-
|
|
655
|
+
/**
|
|
656
|
+
* `get_page_text`'s config overrides.
|
|
657
|
+
*/
|
|
658
|
+
export interface BetaBrowserGetPageTextConfig {
|
|
659
|
+
/**
|
|
660
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
661
|
+
* member of the toolset.
|
|
662
|
+
*/
|
|
663
|
+
defer_loading?: boolean | null;
|
|
583
664
|
|
|
584
|
-
|
|
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
|
+
}
|
|
585
672
|
|
|
586
|
-
|
|
673
|
+
/**
|
|
674
|
+
* `hold_key`'s config overrides.
|
|
675
|
+
*/
|
|
676
|
+
export interface BetaBrowserHoldKeyConfig {
|
|
677
|
+
/**
|
|
678
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
679
|
+
* member of the toolset.
|
|
680
|
+
*/
|
|
681
|
+
defer_loading?: boolean | null;
|
|
587
682
|
|
|
588
|
-
|
|
683
|
+
/**
|
|
684
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
685
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
686
|
+
* the served schema.
|
|
687
|
+
*/
|
|
688
|
+
enabled?: boolean | null;
|
|
689
|
+
}
|
|
589
690
|
|
|
590
|
-
|
|
691
|
+
/**
|
|
692
|
+
* `hover`'s config overrides.
|
|
693
|
+
*/
|
|
694
|
+
export interface BetaBrowserHoverConfig {
|
|
695
|
+
/**
|
|
696
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
697
|
+
* member of the toolset.
|
|
698
|
+
*/
|
|
699
|
+
defer_loading?: boolean | null;
|
|
591
700
|
|
|
592
|
-
|
|
701
|
+
/**
|
|
702
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
703
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
704
|
+
* the served schema.
|
|
705
|
+
*/
|
|
706
|
+
enabled?: boolean | null;
|
|
593
707
|
}
|
|
594
708
|
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
709
|
+
/**
|
|
710
|
+
* `javascript_exec`'s config overrides.
|
|
711
|
+
*/
|
|
712
|
+
export interface BetaBrowserJavascriptExecConfig {
|
|
713
|
+
/**
|
|
714
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
715
|
+
* member of the toolset.
|
|
716
|
+
*/
|
|
717
|
+
defer_loading?: boolean | null;
|
|
598
718
|
|
|
599
|
-
|
|
600
|
-
|
|
719
|
+
/**
|
|
720
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
721
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
722
|
+
* the served schema.
|
|
723
|
+
*/
|
|
724
|
+
enabled?: boolean | null;
|
|
725
|
+
}
|
|
601
726
|
|
|
602
|
-
|
|
727
|
+
/**
|
|
728
|
+
* `key`'s config overrides.
|
|
729
|
+
*/
|
|
730
|
+
export interface BetaBrowserKeyConfig {
|
|
731
|
+
/**
|
|
732
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
733
|
+
* member of the toolset.
|
|
734
|
+
*/
|
|
735
|
+
defer_loading?: boolean | null;
|
|
603
736
|
|
|
604
|
-
|
|
737
|
+
/**
|
|
738
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
739
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
740
|
+
* the served schema.
|
|
741
|
+
*/
|
|
742
|
+
enabled?: boolean | null;
|
|
743
|
+
}
|
|
605
744
|
|
|
606
|
-
|
|
745
|
+
/**
|
|
746
|
+
* `left_click`'s config overrides.
|
|
747
|
+
*/
|
|
748
|
+
export interface BetaBrowserLeftClickConfig {
|
|
749
|
+
/**
|
|
750
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
751
|
+
* member of the toolset.
|
|
752
|
+
*/
|
|
753
|
+
defer_loading?: boolean | null;
|
|
607
754
|
|
|
608
|
-
|
|
755
|
+
/**
|
|
756
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
757
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
758
|
+
* the served schema.
|
|
759
|
+
*/
|
|
760
|
+
enabled?: boolean | null;
|
|
761
|
+
}
|
|
609
762
|
|
|
610
|
-
|
|
763
|
+
/**
|
|
764
|
+
* `left_click_drag`'s config overrides.
|
|
765
|
+
*/
|
|
766
|
+
export interface BetaBrowserLeftClickDragConfig {
|
|
767
|
+
/**
|
|
768
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
769
|
+
* member of the toolset.
|
|
770
|
+
*/
|
|
771
|
+
defer_loading?: boolean | null;
|
|
611
772
|
|
|
612
|
-
|
|
773
|
+
/**
|
|
774
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
775
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
776
|
+
* the served schema.
|
|
777
|
+
*/
|
|
778
|
+
enabled?: boolean | null;
|
|
613
779
|
}
|
|
614
780
|
|
|
615
|
-
|
|
616
|
-
|
|
781
|
+
/**
|
|
782
|
+
* `left_mouse_down`'s config overrides.
|
|
783
|
+
*/
|
|
784
|
+
export interface BetaBrowserLeftMouseDownConfig {
|
|
785
|
+
/**
|
|
786
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
787
|
+
* member of the toolset.
|
|
788
|
+
*/
|
|
789
|
+
defer_loading?: boolean | null;
|
|
617
790
|
|
|
618
|
-
|
|
791
|
+
/**
|
|
792
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
793
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
794
|
+
* the served schema.
|
|
795
|
+
*/
|
|
796
|
+
enabled?: boolean | null;
|
|
797
|
+
}
|
|
619
798
|
|
|
620
|
-
|
|
799
|
+
/**
|
|
800
|
+
* `left_mouse_up`'s config overrides.
|
|
801
|
+
*/
|
|
802
|
+
export interface BetaBrowserLeftMouseUpConfig {
|
|
803
|
+
/**
|
|
804
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
805
|
+
* member of the toolset.
|
|
806
|
+
*/
|
|
807
|
+
defer_loading?: boolean | null;
|
|
621
808
|
|
|
622
|
-
|
|
809
|
+
/**
|
|
810
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
811
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
812
|
+
* the served schema.
|
|
813
|
+
*/
|
|
814
|
+
enabled?: boolean | null;
|
|
815
|
+
}
|
|
623
816
|
|
|
624
|
-
|
|
817
|
+
/**
|
|
818
|
+
* `list_tabs`'s config overrides.
|
|
819
|
+
*/
|
|
820
|
+
export interface BetaBrowserListTabsConfig {
|
|
821
|
+
/**
|
|
822
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
823
|
+
* member of the toolset.
|
|
824
|
+
*/
|
|
825
|
+
defer_loading?: boolean | null;
|
|
625
826
|
|
|
626
|
-
|
|
827
|
+
/**
|
|
828
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
829
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
830
|
+
* the served schema.
|
|
831
|
+
*/
|
|
832
|
+
enabled?: boolean | null;
|
|
627
833
|
}
|
|
628
834
|
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
835
|
+
/**
|
|
836
|
+
* `middle_click`'s config overrides.
|
|
837
|
+
*/
|
|
838
|
+
export interface BetaBrowserMiddleClickConfig {
|
|
839
|
+
/**
|
|
840
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
841
|
+
* member of the toolset.
|
|
842
|
+
*/
|
|
843
|
+
defer_loading?: boolean | null;
|
|
633
844
|
|
|
634
|
-
|
|
845
|
+
/**
|
|
846
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
847
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
848
|
+
* the served schema.
|
|
849
|
+
*/
|
|
850
|
+
enabled?: boolean | null;
|
|
851
|
+
}
|
|
635
852
|
|
|
636
|
-
|
|
853
|
+
/**
|
|
854
|
+
* `mouse_move`'s config overrides.
|
|
855
|
+
*/
|
|
856
|
+
export interface BetaBrowserMouseMoveConfig {
|
|
857
|
+
/**
|
|
858
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
859
|
+
* member of the toolset.
|
|
860
|
+
*/
|
|
861
|
+
defer_loading?: boolean | null;
|
|
637
862
|
|
|
638
|
-
|
|
863
|
+
/**
|
|
864
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
865
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
866
|
+
* the served schema.
|
|
867
|
+
*/
|
|
868
|
+
enabled?: boolean | null;
|
|
869
|
+
}
|
|
639
870
|
|
|
640
|
-
|
|
871
|
+
/**
|
|
872
|
+
* `navigate`'s config overrides.
|
|
873
|
+
*/
|
|
874
|
+
export interface BetaBrowserNavigateConfig {
|
|
875
|
+
/**
|
|
876
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
877
|
+
* member of the toolset.
|
|
878
|
+
*/
|
|
879
|
+
defer_loading?: boolean | null;
|
|
641
880
|
|
|
642
|
-
|
|
881
|
+
/**
|
|
882
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
883
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
884
|
+
* the served schema.
|
|
885
|
+
*/
|
|
886
|
+
enabled?: boolean | null;
|
|
643
887
|
}
|
|
644
888
|
|
|
645
|
-
|
|
646
|
-
|
|
889
|
+
/**
|
|
890
|
+
* `new_tab`'s config overrides.
|
|
891
|
+
*/
|
|
892
|
+
export interface BetaBrowserNewTabConfig {
|
|
893
|
+
/**
|
|
894
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
895
|
+
* member of the toolset.
|
|
896
|
+
*/
|
|
897
|
+
defer_loading?: boolean | null;
|
|
647
898
|
|
|
648
|
-
|
|
899
|
+
/**
|
|
900
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
901
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
902
|
+
* the served schema.
|
|
903
|
+
*/
|
|
904
|
+
enabled?: boolean | null;
|
|
905
|
+
}
|
|
649
906
|
|
|
650
|
-
|
|
907
|
+
/**
|
|
908
|
+
* `read_console`'s config overrides.
|
|
909
|
+
*/
|
|
910
|
+
export interface BetaBrowserReadConsoleConfig {
|
|
911
|
+
/**
|
|
912
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
913
|
+
* member of the toolset.
|
|
914
|
+
*/
|
|
915
|
+
defer_loading?: boolean | null;
|
|
651
916
|
|
|
652
|
-
|
|
917
|
+
/**
|
|
918
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
919
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
920
|
+
* the served schema.
|
|
921
|
+
*/
|
|
922
|
+
enabled?: boolean | null;
|
|
923
|
+
}
|
|
653
924
|
|
|
654
|
-
|
|
925
|
+
/**
|
|
926
|
+
* `read_network`'s config overrides.
|
|
927
|
+
*/
|
|
928
|
+
export interface BetaBrowserReadNetworkConfig {
|
|
929
|
+
/**
|
|
930
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
931
|
+
* member of the toolset.
|
|
932
|
+
*/
|
|
933
|
+
defer_loading?: boolean | null;
|
|
655
934
|
|
|
656
|
-
|
|
935
|
+
/**
|
|
936
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
937
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
938
|
+
* the served schema.
|
|
939
|
+
*/
|
|
940
|
+
enabled?: boolean | null;
|
|
657
941
|
}
|
|
658
942
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
943
|
+
/**
|
|
944
|
+
* `read_page`'s config overrides.
|
|
945
|
+
*/
|
|
946
|
+
export interface BetaBrowserReadPageConfig {
|
|
947
|
+
/**
|
|
948
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
949
|
+
* member of the toolset.
|
|
950
|
+
*/
|
|
951
|
+
defer_loading?: boolean | null;
|
|
663
952
|
|
|
664
|
-
|
|
953
|
+
/**
|
|
954
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
955
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
956
|
+
* the served schema.
|
|
957
|
+
*/
|
|
958
|
+
enabled?: boolean | null;
|
|
959
|
+
}
|
|
665
960
|
|
|
666
|
-
|
|
961
|
+
/**
|
|
962
|
+
* `right_click`'s config overrides.
|
|
963
|
+
*/
|
|
964
|
+
export interface BetaBrowserRightClickConfig {
|
|
965
|
+
/**
|
|
966
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
967
|
+
* member of the toolset.
|
|
968
|
+
*/
|
|
969
|
+
defer_loading?: boolean | null;
|
|
667
970
|
|
|
668
|
-
|
|
971
|
+
/**
|
|
972
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
973
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
974
|
+
* the served schema.
|
|
975
|
+
*/
|
|
976
|
+
enabled?: boolean | null;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* `screenshot`'s config overrides.
|
|
981
|
+
*/
|
|
982
|
+
export interface BetaBrowserScreenshotConfig {
|
|
983
|
+
/**
|
|
984
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
985
|
+
* member of the toolset.
|
|
986
|
+
*/
|
|
987
|
+
defer_loading?: boolean | null;
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
991
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
992
|
+
* the served schema.
|
|
993
|
+
*/
|
|
994
|
+
enabled?: boolean | null;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* `scroll`'s config overrides.
|
|
999
|
+
*/
|
|
1000
|
+
export interface BetaBrowserScrollConfig {
|
|
1001
|
+
/**
|
|
1002
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1003
|
+
* member of the toolset.
|
|
1004
|
+
*/
|
|
1005
|
+
defer_loading?: boolean | null;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1009
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1010
|
+
* the served schema.
|
|
1011
|
+
*/
|
|
1012
|
+
enabled?: boolean | null;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* `scroll_to`'s config overrides.
|
|
1017
|
+
*/
|
|
1018
|
+
export interface BetaBrowserScrollToConfig {
|
|
1019
|
+
/**
|
|
1020
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1021
|
+
* member of the toolset.
|
|
1022
|
+
*/
|
|
1023
|
+
defer_loading?: boolean | null;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1027
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1028
|
+
* the served schema.
|
|
1029
|
+
*/
|
|
1030
|
+
enabled?: boolean | null;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* The caller's browser state after a browser toolset member call — the full
|
|
1035
|
+
* inventory of open tabs, which tab is active, and any side effects (tabs opened,
|
|
1036
|
+
* download state changes) the call produced.
|
|
1037
|
+
*
|
|
1038
|
+
* At most one per `tool_result`, only on a non-error result answering a browser
|
|
1039
|
+
* toolset member `tool_use`. The server renders the model-visible text from it;
|
|
1040
|
+
* the model never sees the raw fields.
|
|
1041
|
+
*/
|
|
1042
|
+
export interface BetaBrowserStateBlockParam {
|
|
1043
|
+
/**
|
|
1044
|
+
* All tabs open in the browser after this call — the full inventory, not a delta.
|
|
1045
|
+
* May be empty. Whenever non-empty, exactly one entry carries `active: true`.
|
|
1046
|
+
*/
|
|
1047
|
+
tabs: Array<BetaBrowserStateTabEntry>;
|
|
1048
|
+
|
|
1049
|
+
type: 'browser_state';
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Create a cache control breakpoint at this content block.
|
|
1053
|
+
*/
|
|
1054
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Tabs opened and download state changes during this call. "Nothing to report" is
|
|
1058
|
+
* expressed by omitting the field, never by an empty list.
|
|
1059
|
+
*/
|
|
1060
|
+
state_changes?: Array<BetaBrowserStateChange> | null;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
1065
|
+
* delta of the `tabs` inventory, not an event log.
|
|
1066
|
+
*
|
|
1067
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
1068
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
1069
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
1070
|
+
*/
|
|
1071
|
+
export type BetaBrowserStateChange =
|
|
1072
|
+
| BetaBrowserStateChangeTabOpened
|
|
1073
|
+
| BetaBrowserStateChangeDownloadStarted
|
|
1074
|
+
| BetaBrowserStateChangeDownloadCompleted
|
|
1075
|
+
| BetaBrowserStateChangeDownloadFailed;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* A file download that finished during this call, reported with the same
|
|
1079
|
+
* `download_id` as its `download_started` — or without a prior `download_started`,
|
|
1080
|
+
* when the download finished during the call that started it (at most one state
|
|
1081
|
+
* change per `download_id` per result).
|
|
1082
|
+
*/
|
|
1083
|
+
export interface BetaBrowserStateChangeDownloadCompleted {
|
|
1084
|
+
/**
|
|
1085
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
1086
|
+
* changes reporting it.
|
|
1087
|
+
*/
|
|
1088
|
+
download_id: string;
|
|
1089
|
+
|
|
1090
|
+
type: 'download_completed';
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* The final post-redirect URL the download was served from.
|
|
1094
|
+
*/
|
|
1095
|
+
url: string;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Where the executor saved the file, on the executor's filesystem. Only included
|
|
1099
|
+
* when another tool in the same environment can read the file at that path.
|
|
1100
|
+
*/
|
|
1101
|
+
path?: string | null;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* The completed download's size.
|
|
1105
|
+
*/
|
|
1106
|
+
size_bytes?: number | null;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* A file download that failed — or was cancelled — during this call.
|
|
1111
|
+
*/
|
|
1112
|
+
export interface BetaBrowserStateChangeDownloadFailed {
|
|
1113
|
+
/**
|
|
1114
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
1115
|
+
* changes reporting it.
|
|
1116
|
+
*/
|
|
1117
|
+
download_id: string;
|
|
1118
|
+
|
|
1119
|
+
type: 'download_failed';
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* The final post-redirect URL the download was served from.
|
|
1123
|
+
*/
|
|
1124
|
+
url: string;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* The failure or cancellation detail, when known.
|
|
1128
|
+
*/
|
|
1129
|
+
error?: string | null;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* A file download that started during this call.
|
|
1134
|
+
*/
|
|
1135
|
+
export interface BetaBrowserStateChangeDownloadStarted {
|
|
1136
|
+
/**
|
|
1137
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
1138
|
+
* changes reporting it.
|
|
1139
|
+
*/
|
|
1140
|
+
download_id: string;
|
|
1141
|
+
|
|
1142
|
+
type: 'download_started';
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* The final post-redirect URL the download was served from.
|
|
1146
|
+
*/
|
|
1147
|
+
url: string;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
1152
|
+
* delta of the `tabs` inventory, not an event log.
|
|
1153
|
+
*
|
|
1154
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
1155
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
1156
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
1157
|
+
*/
|
|
1158
|
+
export interface BetaBrowserStateChangeTabOpened {
|
|
1159
|
+
/**
|
|
1160
|
+
* The `tab_id` of the opened tab, present in `tabs`.
|
|
1161
|
+
*/
|
|
1162
|
+
tab_id: string;
|
|
1163
|
+
|
|
1164
|
+
type: 'tab_opened';
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* One open browser tab reported in a `browser_state` block's `tabs` inventory.
|
|
1169
|
+
*
|
|
1170
|
+
* `tab_id` is the caller-assigned identifier for the tab; `title` and `url`
|
|
1171
|
+
* describe the page the tab is currently showing and may be empty strings (a blank
|
|
1172
|
+
* tab legitimately has both empty). `active` marks the tab that is active after
|
|
1173
|
+
* this call; whenever `tabs` is non-empty, exactly one entry is marked.
|
|
1174
|
+
*/
|
|
1175
|
+
export interface BetaBrowserStateTabEntry {
|
|
1176
|
+
/**
|
|
1177
|
+
* The caller-assigned identifier for this tab, unique within the inventory.
|
|
1178
|
+
*/
|
|
1179
|
+
tab_id: string;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* The title of the page the tab is showing. May be empty.
|
|
1183
|
+
*/
|
|
1184
|
+
title: string;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* The URL of the page the tab is showing. May be empty.
|
|
1188
|
+
*/
|
|
1189
|
+
url: string;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* Whether this tab is the active tab after this call. Whenever `tabs` is
|
|
1193
|
+
* non-empty, exactly one entry is marked `active: true`.
|
|
1194
|
+
*/
|
|
1195
|
+
active?: boolean;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* `switch_tab`'s config overrides.
|
|
1200
|
+
*/
|
|
1201
|
+
export interface BetaBrowserSwitchTabConfig {
|
|
1202
|
+
/**
|
|
1203
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1204
|
+
* member of the toolset.
|
|
1205
|
+
*/
|
|
1206
|
+
defer_loading?: boolean | null;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1210
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1211
|
+
* the served schema.
|
|
1212
|
+
*/
|
|
1213
|
+
enabled?: boolean | null;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* The browser toolset: a single `tools[]` entry (carrying no `name`) that declares
|
|
1218
|
+
* the browser tool family. The model is served the family's tool with any members
|
|
1219
|
+
* disabled via `configs` removed from its schema.
|
|
1220
|
+
*/
|
|
1221
|
+
export interface BetaBrowserToolset20260801 {
|
|
1222
|
+
type: 'browser_toolset_20260801';
|
|
1223
|
+
|
|
1224
|
+
allowed_callers?: Array<
|
|
1225
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1226
|
+
>;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Create a cache control breakpoint at this content block.
|
|
1230
|
+
*/
|
|
1231
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
1235
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1236
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1237
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1238
|
+
* toolset version's complete member set.
|
|
1239
|
+
*/
|
|
1240
|
+
configs?: BetaBrowserToolsetConfigs | null;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
1245
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1246
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1247
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1248
|
+
* toolset version's complete member set.
|
|
1249
|
+
*/
|
|
1250
|
+
export interface BetaBrowserToolsetConfigs {
|
|
1251
|
+
/**
|
|
1252
|
+
* `close_tab`'s config overrides.
|
|
1253
|
+
*/
|
|
1254
|
+
close_tab?: BetaBrowserCloseTabConfig | null;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* `double_click`'s config overrides.
|
|
1258
|
+
*/
|
|
1259
|
+
double_click?: BetaBrowserDoubleClickConfig | null;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* `file_upload`'s config overrides.
|
|
1263
|
+
*/
|
|
1264
|
+
file_upload?: BetaBrowserFileUploadConfig | null;
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* `find`'s config overrides.
|
|
1268
|
+
*/
|
|
1269
|
+
find?: BetaBrowserFindConfig | null;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* `form_input`'s config overrides.
|
|
1273
|
+
*/
|
|
1274
|
+
form_input?: BetaBrowserFormInputConfig | null;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* `get_page_text`'s config overrides.
|
|
1278
|
+
*/
|
|
1279
|
+
get_page_text?: BetaBrowserGetPageTextConfig | null;
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* `hold_key`'s config overrides.
|
|
1283
|
+
*/
|
|
1284
|
+
hold_key?: BetaBrowserHoldKeyConfig | null;
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* `hover`'s config overrides.
|
|
1288
|
+
*/
|
|
1289
|
+
hover?: BetaBrowserHoverConfig | null;
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* `javascript_exec`'s config overrides.
|
|
1293
|
+
*/
|
|
1294
|
+
javascript_exec?: BetaBrowserJavascriptExecConfig | null;
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* `key`'s config overrides.
|
|
1298
|
+
*/
|
|
1299
|
+
key?: BetaBrowserKeyConfig | null;
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* `left_click`'s config overrides.
|
|
1303
|
+
*/
|
|
1304
|
+
left_click?: BetaBrowserLeftClickConfig | null;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* `left_click_drag`'s config overrides.
|
|
1308
|
+
*/
|
|
1309
|
+
left_click_drag?: BetaBrowserLeftClickDragConfig | null;
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* `left_mouse_down`'s config overrides.
|
|
1313
|
+
*/
|
|
1314
|
+
left_mouse_down?: BetaBrowserLeftMouseDownConfig | null;
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* `left_mouse_up`'s config overrides.
|
|
1318
|
+
*/
|
|
1319
|
+
left_mouse_up?: BetaBrowserLeftMouseUpConfig | null;
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* `list_tabs`'s config overrides.
|
|
1323
|
+
*/
|
|
1324
|
+
list_tabs?: BetaBrowserListTabsConfig | null;
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* `middle_click`'s config overrides.
|
|
1328
|
+
*/
|
|
1329
|
+
middle_click?: BetaBrowserMiddleClickConfig | null;
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* `mouse_move`'s config overrides.
|
|
1333
|
+
*/
|
|
1334
|
+
mouse_move?: BetaBrowserMouseMoveConfig | null;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* `navigate`'s config overrides.
|
|
1338
|
+
*/
|
|
1339
|
+
navigate?: BetaBrowserNavigateConfig | null;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* `new_tab`'s config overrides.
|
|
1343
|
+
*/
|
|
1344
|
+
new_tab?: BetaBrowserNewTabConfig | null;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* `read_console`'s config overrides.
|
|
1348
|
+
*/
|
|
1349
|
+
read_console?: BetaBrowserReadConsoleConfig | null;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* `read_network`'s config overrides.
|
|
1353
|
+
*/
|
|
1354
|
+
read_network?: BetaBrowserReadNetworkConfig | null;
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* `read_page`'s config overrides.
|
|
1358
|
+
*/
|
|
1359
|
+
read_page?: BetaBrowserReadPageConfig | null;
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* `right_click`'s config overrides.
|
|
1363
|
+
*/
|
|
1364
|
+
right_click?: BetaBrowserRightClickConfig | null;
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* `screenshot`'s config overrides.
|
|
1368
|
+
*/
|
|
1369
|
+
screenshot?: BetaBrowserScreenshotConfig | null;
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* `scroll`'s config overrides.
|
|
1373
|
+
*/
|
|
1374
|
+
scroll?: BetaBrowserScrollConfig | null;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* `scroll_to`'s config overrides.
|
|
1378
|
+
*/
|
|
1379
|
+
scroll_to?: BetaBrowserScrollToConfig | null;
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* `switch_tab`'s config overrides.
|
|
1383
|
+
*/
|
|
1384
|
+
switch_tab?: BetaBrowserSwitchTabConfig | null;
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* `triple_click`'s config overrides.
|
|
1388
|
+
*/
|
|
1389
|
+
triple_click?: BetaBrowserTripleClickConfig | null;
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* `type`'s config overrides.
|
|
1393
|
+
*/
|
|
1394
|
+
type?: BetaBrowserTypeConfig | null;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* `wait`'s config overrides.
|
|
1398
|
+
*/
|
|
1399
|
+
wait?: BetaBrowserWaitConfig | null;
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* `zoom`'s config overrides.
|
|
1403
|
+
*/
|
|
1404
|
+
zoom?: BetaBrowserZoomConfig | null;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* `triple_click`'s config overrides.
|
|
1409
|
+
*/
|
|
1410
|
+
export interface BetaBrowserTripleClickConfig {
|
|
1411
|
+
/**
|
|
1412
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1413
|
+
* member of the toolset.
|
|
1414
|
+
*/
|
|
1415
|
+
defer_loading?: boolean | null;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1419
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1420
|
+
* the served schema.
|
|
1421
|
+
*/
|
|
1422
|
+
enabled?: boolean | null;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* `type`'s config overrides.
|
|
1427
|
+
*/
|
|
1428
|
+
export interface BetaBrowserTypeConfig {
|
|
1429
|
+
/**
|
|
1430
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1431
|
+
* member of the toolset.
|
|
1432
|
+
*/
|
|
1433
|
+
defer_loading?: boolean | null;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1437
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1438
|
+
* the served schema.
|
|
1439
|
+
*/
|
|
1440
|
+
enabled?: boolean | null;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* `wait`'s config overrides.
|
|
1445
|
+
*/
|
|
1446
|
+
export interface BetaBrowserWaitConfig {
|
|
1447
|
+
/**
|
|
1448
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1449
|
+
* member of the toolset.
|
|
1450
|
+
*/
|
|
1451
|
+
defer_loading?: boolean | null;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1455
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1456
|
+
* the served schema.
|
|
1457
|
+
*/
|
|
1458
|
+
enabled?: boolean | null;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* `zoom`'s config overrides.
|
|
1463
|
+
*/
|
|
1464
|
+
export interface BetaBrowserZoomConfig {
|
|
1465
|
+
/**
|
|
1466
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1467
|
+
* member of the toolset.
|
|
1468
|
+
*/
|
|
1469
|
+
defer_loading?: boolean | null;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1473
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1474
|
+
* the served schema.
|
|
1475
|
+
*/
|
|
1476
|
+
enabled?: boolean | null;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
export interface BetaCacheControlEphemeral {
|
|
1480
|
+
type: 'ephemeral';
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* The time-to-live for the cache control breakpoint.
|
|
1484
|
+
*
|
|
1485
|
+
* This may be one the following values:
|
|
1486
|
+
*
|
|
1487
|
+
* - `5m`: 5 minutes
|
|
1488
|
+
* - `1h`: 1 hour
|
|
1489
|
+
*
|
|
1490
|
+
* Defaults to `5m`. See
|
|
1491
|
+
* [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)
|
|
1492
|
+
* for details.
|
|
1493
|
+
*/
|
|
1494
|
+
ttl?: '5m' | '1h';
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
export interface BetaCacheCreation {
|
|
1498
|
+
/**
|
|
1499
|
+
* The number of input tokens used to create the 1 hour cache entry.
|
|
1500
|
+
*/
|
|
1501
|
+
ephemeral_1h_input_tokens: number;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* The number of input tokens used to create the 5 minute cache entry.
|
|
1505
|
+
*/
|
|
1506
|
+
ephemeral_5m_input_tokens: number;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
export interface BetaCacheMissMessagesChanged {
|
|
1510
|
+
/**
|
|
1511
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
1512
|
+
* prefix matched the previous request.
|
|
1513
|
+
*/
|
|
1514
|
+
cache_missed_input_tokens: number;
|
|
1515
|
+
|
|
1516
|
+
type: 'messages_changed';
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
export interface BetaCacheMissModelChanged {
|
|
1520
|
+
/**
|
|
1521
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
1522
|
+
* prefix matched the previous request.
|
|
1523
|
+
*/
|
|
1524
|
+
cache_missed_input_tokens: number;
|
|
1525
|
+
|
|
1526
|
+
type: 'model_changed';
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
export interface BetaCacheMissPreviousMessageNotFound {
|
|
1530
|
+
type: 'previous_message_not_found';
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
export interface BetaCacheMissSystemChanged {
|
|
1534
|
+
/**
|
|
1535
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
1536
|
+
* prefix matched the previous request.
|
|
1537
|
+
*/
|
|
1538
|
+
cache_missed_input_tokens: number;
|
|
1539
|
+
|
|
1540
|
+
type: 'system_changed';
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
export interface BetaCacheMissToolsChanged {
|
|
1544
|
+
/**
|
|
1545
|
+
* Approximate number of input tokens that would have been read from cache had the
|
|
1546
|
+
* prefix matched the previous request.
|
|
1547
|
+
*/
|
|
1548
|
+
cache_missed_input_tokens: number;
|
|
1549
|
+
|
|
1550
|
+
type: 'tools_changed';
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
export interface BetaCacheMissUnavailable {
|
|
1554
|
+
type: 'unavailable';
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
export interface BetaCitationCharLocation {
|
|
1558
|
+
cited_text: string;
|
|
1559
|
+
|
|
1560
|
+
document_index: number;
|
|
1561
|
+
|
|
1562
|
+
document_title: string | null;
|
|
1563
|
+
|
|
1564
|
+
end_char_index: number;
|
|
1565
|
+
|
|
1566
|
+
file_id: string | null;
|
|
1567
|
+
|
|
1568
|
+
start_char_index: number;
|
|
1569
|
+
|
|
1570
|
+
type: 'char_location';
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
export interface BetaCitationCharLocationParam {
|
|
1574
|
+
cited_text: string;
|
|
1575
|
+
|
|
1576
|
+
document_index: number;
|
|
1577
|
+
|
|
1578
|
+
document_title: string | null;
|
|
1579
|
+
|
|
1580
|
+
end_char_index: number;
|
|
1581
|
+
|
|
1582
|
+
start_char_index: number;
|
|
1583
|
+
|
|
1584
|
+
type: 'char_location';
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
export interface BetaCitationConfig {
|
|
1588
|
+
enabled: boolean;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
export interface BetaCitationContentBlockLocation {
|
|
1592
|
+
/**
|
|
1593
|
+
* The full text of the cited block range, concatenated.
|
|
1594
|
+
*
|
|
1595
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1596
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1597
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1598
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1599
|
+
*/
|
|
1600
|
+
cited_text: string;
|
|
1601
|
+
|
|
1602
|
+
document_index: number;
|
|
1603
|
+
|
|
1604
|
+
document_title: string | null;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1608
|
+
* array.
|
|
1609
|
+
*
|
|
1610
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1611
|
+
* `end_block_index = start_block_index + 1`.
|
|
1612
|
+
*/
|
|
1613
|
+
end_block_index: number;
|
|
1614
|
+
|
|
1615
|
+
file_id: string | null;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1619
|
+
*/
|
|
1620
|
+
start_block_index: number;
|
|
1621
|
+
|
|
1622
|
+
type: 'content_block_location';
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
export interface BetaCitationContentBlockLocationParam {
|
|
1626
|
+
/**
|
|
1627
|
+
* The full text of the cited block range, concatenated.
|
|
1628
|
+
*
|
|
1629
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1630
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1631
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1632
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1633
|
+
*/
|
|
1634
|
+
cited_text: string;
|
|
1635
|
+
|
|
1636
|
+
document_index: number;
|
|
1637
|
+
|
|
1638
|
+
document_title: string | null;
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1642
|
+
* array.
|
|
1643
|
+
*
|
|
1644
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1645
|
+
* `end_block_index = start_block_index + 1`.
|
|
1646
|
+
*/
|
|
1647
|
+
end_block_index: number;
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1651
|
+
*/
|
|
1652
|
+
start_block_index: number;
|
|
1653
|
+
|
|
1654
|
+
type: 'content_block_location';
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
export interface BetaCitationPageLocation {
|
|
1658
|
+
cited_text: string;
|
|
1659
|
+
|
|
1660
|
+
document_index: number;
|
|
1661
|
+
|
|
1662
|
+
document_title: string | null;
|
|
1663
|
+
|
|
1664
|
+
end_page_number: number;
|
|
1665
|
+
|
|
1666
|
+
file_id: string | null;
|
|
1667
|
+
|
|
1668
|
+
start_page_number: number;
|
|
1669
|
+
|
|
1670
|
+
type: 'page_location';
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
export interface BetaCitationPageLocationParam {
|
|
1674
|
+
cited_text: string;
|
|
1675
|
+
|
|
1676
|
+
document_index: number;
|
|
1677
|
+
|
|
1678
|
+
document_title: string | null;
|
|
1679
|
+
|
|
1680
|
+
end_page_number: number;
|
|
1681
|
+
|
|
1682
|
+
start_page_number: number;
|
|
1683
|
+
|
|
1684
|
+
type: 'page_location';
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
export interface BetaCitationSearchResultLocation {
|
|
1688
|
+
/**
|
|
1689
|
+
* The full text of the cited block range, concatenated.
|
|
1690
|
+
*
|
|
1691
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1692
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1693
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1694
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1695
|
+
*/
|
|
1696
|
+
cited_text: string;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1700
|
+
* array.
|
|
1701
|
+
*
|
|
1702
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1703
|
+
* `end_block_index = start_block_index + 1`.
|
|
1704
|
+
*/
|
|
1705
|
+
end_block_index: number;
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* 0-based index of the cited search result among all `search_result` content
|
|
1709
|
+
* blocks in the request, in the order they appear across messages and tool
|
|
1710
|
+
* results.
|
|
1711
|
+
*
|
|
1712
|
+
* Counted separately from `document_index`; server-side web search results are not
|
|
1713
|
+
* included in this count.
|
|
1714
|
+
*/
|
|
1715
|
+
search_result_index: number;
|
|
1716
|
+
|
|
1717
|
+
source: string;
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1721
|
+
*/
|
|
1722
|
+
start_block_index: number;
|
|
669
1723
|
|
|
670
1724
|
title: string | null;
|
|
671
1725
|
|
|
@@ -673,14 +1727,40 @@ export interface BetaCitationSearchResultLocation {
|
|
|
673
1727
|
}
|
|
674
1728
|
|
|
675
1729
|
export interface BetaCitationSearchResultLocationParam {
|
|
1730
|
+
/**
|
|
1731
|
+
* The full text of the cited block range, concatenated.
|
|
1732
|
+
*
|
|
1733
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1734
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1735
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1736
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1737
|
+
*/
|
|
676
1738
|
cited_text: string;
|
|
677
1739
|
|
|
1740
|
+
/**
|
|
1741
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1742
|
+
* array.
|
|
1743
|
+
*
|
|
1744
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1745
|
+
* `end_block_index = start_block_index + 1`.
|
|
1746
|
+
*/
|
|
678
1747
|
end_block_index: number;
|
|
679
1748
|
|
|
1749
|
+
/**
|
|
1750
|
+
* 0-based index of the cited search result among all `search_result` content
|
|
1751
|
+
* blocks in the request, in the order they appear across messages and tool
|
|
1752
|
+
* results.
|
|
1753
|
+
*
|
|
1754
|
+
* Counted separately from `document_index`; server-side web search results are not
|
|
1755
|
+
* included in this count.
|
|
1756
|
+
*/
|
|
680
1757
|
search_result_index: number;
|
|
681
1758
|
|
|
682
1759
|
source: string;
|
|
683
1760
|
|
|
1761
|
+
/**
|
|
1762
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1763
|
+
*/
|
|
684
1764
|
start_block_index: number;
|
|
685
1765
|
|
|
686
1766
|
title: string | null;
|
|
@@ -847,7 +1927,9 @@ export interface BetaCodeExecutionTool20250522 {
|
|
|
847
1927
|
|
|
848
1928
|
type: 'code_execution_20250522';
|
|
849
1929
|
|
|
850
|
-
allowed_callers?: Array<
|
|
1930
|
+
allowed_callers?: Array<
|
|
1931
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1932
|
+
>;
|
|
851
1933
|
|
|
852
1934
|
/**
|
|
853
1935
|
* Create a cache control breakpoint at this content block.
|
|
@@ -874,9 +1956,46 @@ export interface BetaCodeExecutionTool20250825 {
|
|
|
874
1956
|
*/
|
|
875
1957
|
name: 'code_execution';
|
|
876
1958
|
|
|
877
|
-
type: 'code_execution_20250825';
|
|
1959
|
+
type: 'code_execution_20250825';
|
|
1960
|
+
|
|
1961
|
+
allowed_callers?: Array<
|
|
1962
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1963
|
+
>;
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Create a cache control breakpoint at this content block.
|
|
1967
|
+
*/
|
|
1968
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
1972
|
+
* returned via tool_reference from tool search.
|
|
1973
|
+
*/
|
|
1974
|
+
defer_loading?: boolean;
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
1978
|
+
*/
|
|
1979
|
+
strict?: boolean;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
1984
|
+
* checkpoint).
|
|
1985
|
+
*/
|
|
1986
|
+
export interface BetaCodeExecutionTool20260120 {
|
|
1987
|
+
/**
|
|
1988
|
+
* Name of the tool.
|
|
1989
|
+
*
|
|
1990
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1991
|
+
*/
|
|
1992
|
+
name: 'code_execution';
|
|
1993
|
+
|
|
1994
|
+
type: 'code_execution_20260120';
|
|
878
1995
|
|
|
879
|
-
allowed_callers?: Array<
|
|
1996
|
+
allowed_callers?: Array<
|
|
1997
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1998
|
+
>;
|
|
880
1999
|
|
|
881
2000
|
/**
|
|
882
2001
|
* Create a cache control breakpoint at this content block.
|
|
@@ -896,10 +2015,9 @@ export interface BetaCodeExecutionTool20250825 {
|
|
|
896
2015
|
}
|
|
897
2016
|
|
|
898
2017
|
/**
|
|
899
|
-
* Code execution tool with REPL state persistence
|
|
900
|
-
* checkpoint).
|
|
2018
|
+
* Code execution tool with REPL state persistence.
|
|
901
2019
|
*/
|
|
902
|
-
export interface
|
|
2020
|
+
export interface BetaCodeExecutionTool20260521 {
|
|
903
2021
|
/**
|
|
904
2022
|
* Name of the tool.
|
|
905
2023
|
*
|
|
@@ -907,9 +2025,11 @@ export interface BetaCodeExecutionTool20260120 {
|
|
|
907
2025
|
*/
|
|
908
2026
|
name: 'code_execution';
|
|
909
2027
|
|
|
910
|
-
type: '
|
|
2028
|
+
type: 'code_execution_20260521';
|
|
911
2029
|
|
|
912
|
-
allowed_callers?: Array<
|
|
2030
|
+
allowed_callers?: Array<
|
|
2031
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
2032
|
+
>;
|
|
913
2033
|
|
|
914
2034
|
/**
|
|
915
2035
|
* Create a cache control breakpoint at this content block.
|
|
@@ -1043,68 +2163,498 @@ export interface BetaCompactionBlock {
|
|
|
1043
2163
|
* treats these as no-ops. Empty string content is not allowed.
|
|
1044
2164
|
*/
|
|
1045
2165
|
export interface BetaCompactionBlockParam {
|
|
2166
|
+
type: 'compaction';
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Create a cache control breakpoint at this content block.
|
|
2170
|
+
*/
|
|
2171
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* Summary of previously compacted content, or null if compaction failed
|
|
2175
|
+
*/
|
|
2176
|
+
content?: string | null;
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
2180
|
+
*/
|
|
2181
|
+
encrypted_content?: string | null;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
export interface BetaCompactionContentBlockDelta {
|
|
2185
|
+
content: string | null;
|
|
2186
|
+
|
|
2187
|
+
/**
|
|
2188
|
+
* Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
2189
|
+
*/
|
|
2190
|
+
encrypted_content: string | null;
|
|
2191
|
+
|
|
2192
|
+
type: 'compaction_delta';
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* Token usage for a compaction iteration.
|
|
2197
|
+
*/
|
|
2198
|
+
export interface BetaCompactionIterationUsage {
|
|
2199
|
+
/**
|
|
2200
|
+
* Breakdown of cached tokens by TTL
|
|
2201
|
+
*/
|
|
2202
|
+
cache_creation: BetaCacheCreation | null;
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* The number of input tokens used to create the cache entry.
|
|
2206
|
+
*/
|
|
2207
|
+
cache_creation_input_tokens: number;
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* The number of input tokens read from the cache.
|
|
2211
|
+
*/
|
|
2212
|
+
cache_read_input_tokens: number;
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* The number of input tokens which were used.
|
|
2216
|
+
*/
|
|
2217
|
+
input_tokens: number;
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* The number of output tokens which were used.
|
|
2221
|
+
*/
|
|
2222
|
+
output_tokens: number;
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* Usage for a compaction iteration
|
|
2226
|
+
*/
|
|
2227
|
+
type: 'compaction';
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* `cursor_position`'s config overrides.
|
|
2232
|
+
*/
|
|
2233
|
+
export interface BetaComputerCursorPositionConfig {
|
|
2234
|
+
/**
|
|
2235
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2236
|
+
* member of the toolset.
|
|
2237
|
+
*/
|
|
2238
|
+
defer_loading?: boolean | null;
|
|
2239
|
+
|
|
2240
|
+
/**
|
|
2241
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2242
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2243
|
+
* the served schema.
|
|
2244
|
+
*/
|
|
2245
|
+
enabled?: boolean | null;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* `double_click`'s config overrides.
|
|
2250
|
+
*/
|
|
2251
|
+
export interface BetaComputerDoubleClickConfig {
|
|
2252
|
+
/**
|
|
2253
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2254
|
+
* member of the toolset.
|
|
2255
|
+
*/
|
|
2256
|
+
defer_loading?: boolean | null;
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2260
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2261
|
+
* the served schema.
|
|
2262
|
+
*/
|
|
2263
|
+
enabled?: boolean | null;
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* `hold_key`'s config overrides.
|
|
2268
|
+
*/
|
|
2269
|
+
export interface BetaComputerHoldKeyConfig {
|
|
2270
|
+
/**
|
|
2271
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2272
|
+
* member of the toolset.
|
|
2273
|
+
*/
|
|
2274
|
+
defer_loading?: boolean | null;
|
|
2275
|
+
|
|
2276
|
+
/**
|
|
2277
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2278
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2279
|
+
* the served schema.
|
|
2280
|
+
*/
|
|
2281
|
+
enabled?: boolean | null;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
/**
|
|
2285
|
+
* `key`'s config overrides.
|
|
2286
|
+
*/
|
|
2287
|
+
export interface BetaComputerKeyConfig {
|
|
2288
|
+
/**
|
|
2289
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2290
|
+
* member of the toolset.
|
|
2291
|
+
*/
|
|
2292
|
+
defer_loading?: boolean | null;
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2296
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2297
|
+
* the served schema.
|
|
2298
|
+
*/
|
|
2299
|
+
enabled?: boolean | null;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* `left_click`'s config overrides.
|
|
2304
|
+
*/
|
|
2305
|
+
export interface BetaComputerLeftClickConfig {
|
|
2306
|
+
/**
|
|
2307
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2308
|
+
* member of the toolset.
|
|
2309
|
+
*/
|
|
2310
|
+
defer_loading?: boolean | null;
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2314
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2315
|
+
* the served schema.
|
|
2316
|
+
*/
|
|
2317
|
+
enabled?: boolean | null;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* `left_click_drag`'s config overrides.
|
|
2322
|
+
*/
|
|
2323
|
+
export interface BetaComputerLeftClickDragConfig {
|
|
2324
|
+
/**
|
|
2325
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2326
|
+
* member of the toolset.
|
|
2327
|
+
*/
|
|
2328
|
+
defer_loading?: boolean | null;
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2332
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2333
|
+
* the served schema.
|
|
2334
|
+
*/
|
|
2335
|
+
enabled?: boolean | null;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
/**
|
|
2339
|
+
* `left_mouse_down`'s config overrides.
|
|
2340
|
+
*/
|
|
2341
|
+
export interface BetaComputerLeftMouseDownConfig {
|
|
2342
|
+
/**
|
|
2343
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2344
|
+
* member of the toolset.
|
|
2345
|
+
*/
|
|
2346
|
+
defer_loading?: boolean | null;
|
|
2347
|
+
|
|
2348
|
+
/**
|
|
2349
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2350
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2351
|
+
* the served schema.
|
|
2352
|
+
*/
|
|
2353
|
+
enabled?: boolean | null;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
/**
|
|
2357
|
+
* `left_mouse_up`'s config overrides.
|
|
2358
|
+
*/
|
|
2359
|
+
export interface BetaComputerLeftMouseUpConfig {
|
|
2360
|
+
/**
|
|
2361
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2362
|
+
* member of the toolset.
|
|
2363
|
+
*/
|
|
2364
|
+
defer_loading?: boolean | null;
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2368
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2369
|
+
* the served schema.
|
|
2370
|
+
*/
|
|
2371
|
+
enabled?: boolean | null;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* `middle_click`'s config overrides.
|
|
2376
|
+
*/
|
|
2377
|
+
export interface BetaComputerMiddleClickConfig {
|
|
2378
|
+
/**
|
|
2379
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2380
|
+
* member of the toolset.
|
|
2381
|
+
*/
|
|
2382
|
+
defer_loading?: boolean | null;
|
|
2383
|
+
|
|
2384
|
+
/**
|
|
2385
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2386
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2387
|
+
* the served schema.
|
|
2388
|
+
*/
|
|
2389
|
+
enabled?: boolean | null;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* `mouse_move`'s config overrides.
|
|
2394
|
+
*/
|
|
2395
|
+
export interface BetaComputerMouseMoveConfig {
|
|
2396
|
+
/**
|
|
2397
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2398
|
+
* member of the toolset.
|
|
2399
|
+
*/
|
|
2400
|
+
defer_loading?: boolean | null;
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2404
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2405
|
+
* the served schema.
|
|
2406
|
+
*/
|
|
2407
|
+
enabled?: boolean | null;
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* `right_click`'s config overrides.
|
|
2412
|
+
*/
|
|
2413
|
+
export interface BetaComputerRightClickConfig {
|
|
2414
|
+
/**
|
|
2415
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2416
|
+
* member of the toolset.
|
|
2417
|
+
*/
|
|
2418
|
+
defer_loading?: boolean | null;
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2422
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2423
|
+
* the served schema.
|
|
2424
|
+
*/
|
|
2425
|
+
enabled?: boolean | null;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
/**
|
|
2429
|
+
* `screenshot`'s config overrides.
|
|
2430
|
+
*/
|
|
2431
|
+
export interface BetaComputerScreenshotConfig {
|
|
2432
|
+
/**
|
|
2433
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2434
|
+
* member of the toolset.
|
|
2435
|
+
*/
|
|
2436
|
+
defer_loading?: boolean | null;
|
|
2437
|
+
|
|
2438
|
+
/**
|
|
2439
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2440
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2441
|
+
* the served schema.
|
|
2442
|
+
*/
|
|
2443
|
+
enabled?: boolean | null;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* `scroll`'s config overrides.
|
|
2448
|
+
*/
|
|
2449
|
+
export interface BetaComputerScrollConfig {
|
|
2450
|
+
/**
|
|
2451
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2452
|
+
* member of the toolset.
|
|
2453
|
+
*/
|
|
2454
|
+
defer_loading?: boolean | null;
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2458
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2459
|
+
* the served schema.
|
|
2460
|
+
*/
|
|
2461
|
+
enabled?: boolean | null;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* The computer toolset: a single `tools[]` entry (carrying no `name`) that
|
|
2466
|
+
* declares the computer tool family. The model is served the family's tool with
|
|
2467
|
+
* any members disabled via `configs` removed from its schema. Every member is
|
|
2468
|
+
* enabled by default, zoom included. The single-tool options `display_number` and
|
|
2469
|
+
* `enable_zoom` are not fields of a toolset entry — it carries only `type`,
|
|
2470
|
+
* `configs`, and `cache_control`; zoom is controlled via `configs.zoom.enabled`.
|
|
2471
|
+
*/
|
|
2472
|
+
export interface BetaComputerToolset20260801 {
|
|
2473
|
+
type: 'computer_toolset_20260801';
|
|
2474
|
+
|
|
2475
|
+
allowed_callers?: Array<
|
|
2476
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
2477
|
+
>;
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* Create a cache control breakpoint at this content block.
|
|
2481
|
+
*/
|
|
2482
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
2483
|
+
|
|
2484
|
+
/**
|
|
2485
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
2486
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
2487
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
2488
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
2489
|
+
* toolset version's complete member set.
|
|
2490
|
+
*/
|
|
2491
|
+
configs?: BetaComputerToolsetConfigs | null;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
/**
|
|
2495
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
2496
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
2497
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
2498
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
2499
|
+
* toolset version's complete member set.
|
|
2500
|
+
*/
|
|
2501
|
+
export interface BetaComputerToolsetConfigs {
|
|
2502
|
+
/**
|
|
2503
|
+
* `cursor_position`'s config overrides.
|
|
2504
|
+
*/
|
|
2505
|
+
cursor_position?: BetaComputerCursorPositionConfig | null;
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* `double_click`'s config overrides.
|
|
2509
|
+
*/
|
|
2510
|
+
double_click?: BetaComputerDoubleClickConfig | null;
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* `hold_key`'s config overrides.
|
|
2514
|
+
*/
|
|
2515
|
+
hold_key?: BetaComputerHoldKeyConfig | null;
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* `key`'s config overrides.
|
|
2519
|
+
*/
|
|
2520
|
+
key?: BetaComputerKeyConfig | null;
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* `left_click`'s config overrides.
|
|
2524
|
+
*/
|
|
2525
|
+
left_click?: BetaComputerLeftClickConfig | null;
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* `left_click_drag`'s config overrides.
|
|
2529
|
+
*/
|
|
2530
|
+
left_click_drag?: BetaComputerLeftClickDragConfig | null;
|
|
2531
|
+
|
|
2532
|
+
/**
|
|
2533
|
+
* `left_mouse_down`'s config overrides.
|
|
2534
|
+
*/
|
|
2535
|
+
left_mouse_down?: BetaComputerLeftMouseDownConfig | null;
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* `left_mouse_up`'s config overrides.
|
|
2539
|
+
*/
|
|
2540
|
+
left_mouse_up?: BetaComputerLeftMouseUpConfig | null;
|
|
2541
|
+
|
|
2542
|
+
/**
|
|
2543
|
+
* `middle_click`'s config overrides.
|
|
2544
|
+
*/
|
|
2545
|
+
middle_click?: BetaComputerMiddleClickConfig | null;
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* `mouse_move`'s config overrides.
|
|
2549
|
+
*/
|
|
2550
|
+
mouse_move?: BetaComputerMouseMoveConfig | null;
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* `right_click`'s config overrides.
|
|
2554
|
+
*/
|
|
2555
|
+
right_click?: BetaComputerRightClickConfig | null;
|
|
2556
|
+
|
|
2557
|
+
/**
|
|
2558
|
+
* `screenshot`'s config overrides.
|
|
2559
|
+
*/
|
|
2560
|
+
screenshot?: BetaComputerScreenshotConfig | null;
|
|
2561
|
+
|
|
1046
2562
|
/**
|
|
1047
|
-
*
|
|
2563
|
+
* `scroll`'s config overrides.
|
|
1048
2564
|
*/
|
|
1049
|
-
|
|
2565
|
+
scroll?: BetaComputerScrollConfig | null;
|
|
1050
2566
|
|
|
1051
|
-
|
|
2567
|
+
/**
|
|
2568
|
+
* `triple_click`'s config overrides.
|
|
2569
|
+
*/
|
|
2570
|
+
triple_click?: BetaComputerTripleClickConfig | null;
|
|
1052
2571
|
|
|
1053
2572
|
/**
|
|
1054
|
-
*
|
|
2573
|
+
* `type`'s config overrides.
|
|
1055
2574
|
*/
|
|
1056
|
-
|
|
2575
|
+
type?: BetaComputerTypeConfig | null;
|
|
1057
2576
|
|
|
1058
2577
|
/**
|
|
1059
|
-
*
|
|
2578
|
+
* `wait`'s config overrides.
|
|
1060
2579
|
*/
|
|
1061
|
-
|
|
1062
|
-
}
|
|
2580
|
+
wait?: BetaComputerWaitConfig | null;
|
|
1063
2581
|
|
|
1064
|
-
|
|
1065
|
-
|
|
2582
|
+
/**
|
|
2583
|
+
* `zoom`'s config overrides.
|
|
2584
|
+
*/
|
|
2585
|
+
zoom?: BetaComputerZoomConfig | null;
|
|
2586
|
+
}
|
|
1066
2587
|
|
|
2588
|
+
/**
|
|
2589
|
+
* `triple_click`'s config overrides.
|
|
2590
|
+
*/
|
|
2591
|
+
export interface BetaComputerTripleClickConfig {
|
|
1067
2592
|
/**
|
|
1068
|
-
*
|
|
2593
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2594
|
+
* member of the toolset.
|
|
1069
2595
|
*/
|
|
1070
|
-
|
|
2596
|
+
defer_loading?: boolean | null;
|
|
1071
2597
|
|
|
1072
|
-
|
|
2598
|
+
/**
|
|
2599
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2600
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2601
|
+
* the served schema.
|
|
2602
|
+
*/
|
|
2603
|
+
enabled?: boolean | null;
|
|
1073
2604
|
}
|
|
1074
2605
|
|
|
1075
2606
|
/**
|
|
1076
|
-
*
|
|
2607
|
+
* `type`'s config overrides.
|
|
1077
2608
|
*/
|
|
1078
|
-
export interface
|
|
2609
|
+
export interface BetaComputerTypeConfig {
|
|
1079
2610
|
/**
|
|
1080
|
-
*
|
|
2611
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2612
|
+
* member of the toolset.
|
|
1081
2613
|
*/
|
|
1082
|
-
|
|
2614
|
+
defer_loading?: boolean | null;
|
|
1083
2615
|
|
|
1084
2616
|
/**
|
|
1085
|
-
*
|
|
2617
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2618
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2619
|
+
* the served schema.
|
|
1086
2620
|
*/
|
|
1087
|
-
|
|
2621
|
+
enabled?: boolean | null;
|
|
2622
|
+
}
|
|
1088
2623
|
|
|
2624
|
+
/**
|
|
2625
|
+
* `wait`'s config overrides.
|
|
2626
|
+
*/
|
|
2627
|
+
export interface BetaComputerWaitConfig {
|
|
1089
2628
|
/**
|
|
1090
|
-
*
|
|
2629
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2630
|
+
* member of the toolset.
|
|
1091
2631
|
*/
|
|
1092
|
-
|
|
2632
|
+
defer_loading?: boolean | null;
|
|
1093
2633
|
|
|
1094
2634
|
/**
|
|
1095
|
-
*
|
|
2635
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2636
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2637
|
+
* the served schema.
|
|
1096
2638
|
*/
|
|
1097
|
-
|
|
2639
|
+
enabled?: boolean | null;
|
|
2640
|
+
}
|
|
1098
2641
|
|
|
2642
|
+
/**
|
|
2643
|
+
* `zoom`'s config overrides.
|
|
2644
|
+
*/
|
|
2645
|
+
export interface BetaComputerZoomConfig {
|
|
1099
2646
|
/**
|
|
1100
|
-
*
|
|
2647
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2648
|
+
* member of the toolset.
|
|
1101
2649
|
*/
|
|
1102
|
-
|
|
2650
|
+
defer_loading?: boolean | null;
|
|
1103
2651
|
|
|
1104
2652
|
/**
|
|
1105
|
-
*
|
|
2653
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2654
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2655
|
+
* the served schema.
|
|
1106
2656
|
*/
|
|
1107
|
-
|
|
2657
|
+
enabled?: boolean | null;
|
|
1108
2658
|
}
|
|
1109
2659
|
|
|
1110
2660
|
/**
|
|
@@ -1186,7 +2736,8 @@ export type BetaContentBlock =
|
|
|
1186
2736
|
| BetaMCPToolUseBlock
|
|
1187
2737
|
| BetaMCPToolResultBlock
|
|
1188
2738
|
| BetaContainerUploadBlock
|
|
1189
|
-
| BetaCompactionBlock
|
|
2739
|
+
| BetaCompactionBlock
|
|
2740
|
+
| BetaFallbackBlock;
|
|
1190
2741
|
|
|
1191
2742
|
/**
|
|
1192
2743
|
* Regular text content.
|
|
@@ -1211,7 +2762,10 @@ export type BetaContentBlockParam =
|
|
|
1211
2762
|
| BetaMCPToolUseBlockParam
|
|
1212
2763
|
| BetaRequestMCPToolResultBlockParam
|
|
1213
2764
|
| BetaContainerUploadBlockParam
|
|
1214
|
-
| BetaCompactionBlockParam
|
|
2765
|
+
| BetaCompactionBlockParam
|
|
2766
|
+
| BetaRequestToolAdditionBlock
|
|
2767
|
+
| BetaRequestToolRemovalBlock
|
|
2768
|
+
| BetaFallbackBlockParam;
|
|
1215
2769
|
|
|
1216
2770
|
export interface BetaContentBlockSource {
|
|
1217
2771
|
content: string | Array<BetaContentBlockSourceContent>;
|
|
@@ -1242,6 +2796,42 @@ export interface BetaCountTokensContextManagementResponse {
|
|
|
1242
2796
|
original_input_tokens: number;
|
|
1243
2797
|
}
|
|
1244
2798
|
|
|
2799
|
+
/**
|
|
2800
|
+
* Response envelope for request-level diagnostics. Present (possibly null)
|
|
2801
|
+
* whenever the caller supplied `diagnostics` on the request.
|
|
2802
|
+
*/
|
|
2803
|
+
export interface BetaDiagnostics {
|
|
2804
|
+
/**
|
|
2805
|
+
* Explains why the prompt cache could not fully reuse the prefix from the request
|
|
2806
|
+
* identified by `diagnostics.previous_message_id`. `null` means diagnosis is still
|
|
2807
|
+
* pending — the response was serialized before the background comparison
|
|
2808
|
+
* completed.
|
|
2809
|
+
*/
|
|
2810
|
+
cache_miss_reason:
|
|
2811
|
+
| BetaCacheMissModelChanged
|
|
2812
|
+
| BetaCacheMissSystemChanged
|
|
2813
|
+
| BetaCacheMissToolsChanged
|
|
2814
|
+
| BetaCacheMissMessagesChanged
|
|
2815
|
+
| BetaCacheMissPreviousMessageNotFound
|
|
2816
|
+
| BetaCacheMissUnavailable
|
|
2817
|
+
| null;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* Request-level diagnostics. Currently carries the previous response id for
|
|
2822
|
+
* prompt-cache divergence reporting.
|
|
2823
|
+
*/
|
|
2824
|
+
export interface BetaDiagnosticsParam {
|
|
2825
|
+
/**
|
|
2826
|
+
* The `id` (`msg_...`) from this client's previous /v1/messages response. The
|
|
2827
|
+
* server compares that request's prompt fingerprint against this one and returns
|
|
2828
|
+
* `diagnostics.cache_miss_reason` when the prompt-cache prefix could not be
|
|
2829
|
+
* reused. Pass `null` on the first turn to opt in without a prior message to
|
|
2830
|
+
* compare.
|
|
2831
|
+
*/
|
|
2832
|
+
previous_message_id?: string | null;
|
|
2833
|
+
}
|
|
2834
|
+
|
|
1245
2835
|
/**
|
|
1246
2836
|
* Tool invocation directly from the model.
|
|
1247
2837
|
*/
|
|
@@ -1295,6 +2885,306 @@ export interface BetaEncryptedCodeExecutionResultBlockParam {
|
|
|
1295
2885
|
type: 'encrypted_code_execution_result';
|
|
1296
2886
|
}
|
|
1297
2887
|
|
|
2888
|
+
/**
|
|
2889
|
+
* Marks the point in `content` where one model's output gives way to the next.
|
|
2890
|
+
*
|
|
2891
|
+
* One block appears per hop where a preceding model actually ran this turn and
|
|
2892
|
+
* declined. A turn where no preceding model ran and declined has no such boundary
|
|
2893
|
+
* and carries no block — the signal for whether a fallback model served the
|
|
2894
|
+
* response is the presence of a `fallback_message` entry in `usage.iterations`,
|
|
2895
|
+
* not this block.
|
|
2896
|
+
*
|
|
2897
|
+
* The block is treated like a server-tool content block for streaming: it arrives
|
|
2898
|
+
* via the standard `content_block_start` / `content_block_stop` pair and carries
|
|
2899
|
+
* no deltas.
|
|
2900
|
+
*/
|
|
2901
|
+
export interface BetaFallbackBlock {
|
|
2902
|
+
/**
|
|
2903
|
+
* The model whose output ends at this point — the model that declined at this hop.
|
|
2904
|
+
* When the declining hop is the requested model, its `model` echoes the top-level
|
|
2905
|
+
* `model` string the caller sent (alias or canonical); when the declining hop is a
|
|
2906
|
+
* fallback model, its `model` is that model's canonical id.
|
|
2907
|
+
*/
|
|
2908
|
+
from: BetaFallbackInfo;
|
|
2909
|
+
|
|
2910
|
+
/**
|
|
2911
|
+
* The fallback model producing the content that follows this block. Its `model` is
|
|
2912
|
+
* always the canonical id.
|
|
2913
|
+
*/
|
|
2914
|
+
to: BetaFallbackInfo;
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* What caused the `from` model to hand over at this hop.
|
|
2918
|
+
*/
|
|
2919
|
+
trigger: BetaFallbackRefusalTrigger;
|
|
2920
|
+
|
|
2921
|
+
type: 'fallback';
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
/**
|
|
2925
|
+
* A `fallback` block echoed back from a prior response.
|
|
2926
|
+
*
|
|
2927
|
+
* Accepted in `messages[].content` and not rendered into the prompt; not validated
|
|
2928
|
+
* against the request's `fallbacks` chain or top-level `model`.
|
|
2929
|
+
*
|
|
2930
|
+
* Echo the assistant turn back verbatim, including this block in its original
|
|
2931
|
+
* position. The block marks the boundary between content produced before and after
|
|
2932
|
+
* a fallback hop, and the server relies on that boundary to validate the turn:
|
|
2933
|
+
* when thinking runs flank the boundary, omitting the block merges them into one
|
|
2934
|
+
* span the server cannot validate (the request is rejected), and moving it into
|
|
2935
|
+
* the middle of a single run is likewise rejected; between non-thinking blocks the
|
|
2936
|
+
* block's placement has no validation effect.
|
|
2937
|
+
*/
|
|
2938
|
+
export interface BetaFallbackBlockParam {
|
|
2939
|
+
/**
|
|
2940
|
+
* Identifies one hop of a fallback transition.
|
|
2941
|
+
*/
|
|
2942
|
+
from: BetaFallbackInfoParam;
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* Identifies one hop of a fallback transition.
|
|
2946
|
+
*/
|
|
2947
|
+
to: BetaFallbackInfoParam;
|
|
2948
|
+
|
|
2949
|
+
type: 'fallback';
|
|
2950
|
+
|
|
2951
|
+
/**
|
|
2952
|
+
* The response block's `trigger`, echoed verbatim. Accepted and ignored by the
|
|
2953
|
+
* server; any object or `null` is allowed.
|
|
2954
|
+
*/
|
|
2955
|
+
trigger?: unknown;
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* No reprice was applied; `reason` says why.
|
|
2960
|
+
*/
|
|
2961
|
+
export interface BetaFallbackCreditNotApplied {
|
|
2962
|
+
/**
|
|
2963
|
+
* Why the reprice was not applied.
|
|
2964
|
+
*
|
|
2965
|
+
* A closed enum; additions to the redemption-check vocabulary arrive as deliberate
|
|
2966
|
+
* schema updates.
|
|
2967
|
+
*/
|
|
2968
|
+
reason:
|
|
2969
|
+
| 'body_mismatch'
|
|
2970
|
+
| 'continuation_excluded'
|
|
2971
|
+
| 'continuation_only'
|
|
2972
|
+
| 'expired'
|
|
2973
|
+
| 'invalid_target_model'
|
|
2974
|
+
| 'not_enabled'
|
|
2975
|
+
| 'reprice_unavailable'
|
|
2976
|
+
| 'temporarily_unavailable'
|
|
2977
|
+
| 'variant_fields_present'
|
|
2978
|
+
| 'wrong_organization'
|
|
2979
|
+
| 'wrong_platform'
|
|
2980
|
+
| 'wrong_workspace';
|
|
2981
|
+
|
|
2982
|
+
type: 'not_applied';
|
|
2983
|
+
|
|
2984
|
+
/**
|
|
2985
|
+
* Request fields to remove before retrying, so the retry can redeem this token.
|
|
2986
|
+
*
|
|
2987
|
+
* Present exactly when `reason` is `variant_fields_present` — never null, never an
|
|
2988
|
+
* empty array; absent otherwise. Fields are named only from your own request, and
|
|
2989
|
+
* only after the sealed variant hash matched. A served best-effort retry has
|
|
2990
|
+
* already been billed at normal price; nothing redeems retroactively, but a
|
|
2991
|
+
* corrected re-send inside the token's five-minute window can still redeem.
|
|
2992
|
+
*/
|
|
2993
|
+
remove_to_redeem?: Array<string> | null;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
/**
|
|
2997
|
+
* The reprice was applied: the retry is billed as if the conversation had been on
|
|
2998
|
+
* the retry model all along.
|
|
2999
|
+
*/
|
|
3000
|
+
export interface BetaFallbackCreditRedeemed {
|
|
3001
|
+
type: 'redeemed';
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
/**
|
|
3005
|
+
* Object form of `fallback_credit_token`: the token plus a redemption mode.
|
|
3006
|
+
*
|
|
3007
|
+
* Requires `anthropic-beta: fallback-credit-2026-07-01`; without that header the
|
|
3008
|
+
* field accepts the bare string only. The bare string and the mode-less object are
|
|
3009
|
+
* equivalent (both select `strict`), so wrapping an existing token changes nothing
|
|
3010
|
+
* by itself.
|
|
3011
|
+
*/
|
|
3012
|
+
export interface BetaFallbackCreditTokenParam {
|
|
3013
|
+
/**
|
|
3014
|
+
* The opaque `fallback_credit_token` from a prior refusal's `stop_details` — the
|
|
3015
|
+
* same string the bare-string form carries.
|
|
3016
|
+
*/
|
|
3017
|
+
token: string;
|
|
3018
|
+
|
|
3019
|
+
/**
|
|
3020
|
+
* How a failing token affects the retry. `strict` (the default, and the
|
|
3021
|
+
* bare-string behavior): a failing redemption is a 400 and the retry is not
|
|
3022
|
+
* served. `best_effort`: the retry is served either way — a token-layer failure no
|
|
3023
|
+
* longer rejects the request; the retry proceeds at normal price and the outcome
|
|
3024
|
+
* is reported on the response's `usage.fallback_credit`. Two failures stay hard in
|
|
3025
|
+
* both modes: a malformed token, and combining `fallback_credit_token` with
|
|
3026
|
+
* `fallbacks`.
|
|
3027
|
+
*/
|
|
3028
|
+
mode?: 'strict' | 'best_effort';
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* Outcome of the `fallback_credit_token` presented on this request.
|
|
3033
|
+
*/
|
|
3034
|
+
export interface BetaFallbackCreditUsage {
|
|
3035
|
+
/**
|
|
3036
|
+
* Whether the fallback-credit reprice was applied to this response's billing.
|
|
3037
|
+
*
|
|
3038
|
+
* A union discriminated on `type`. `redeemed`: the retry is billed as if the
|
|
3039
|
+
* conversation had been on the retry model all along — including when the
|
|
3040
|
+
* resulting shift is zero because there was nothing to move. `not_applied`: no
|
|
3041
|
+
* reprice was applied; the arm's `reason` says why.
|
|
3042
|
+
*/
|
|
3043
|
+
status: BetaFallbackCreditRedeemed | BetaFallbackCreditNotApplied;
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
/**
|
|
3047
|
+
* Identifies one hop of a fallback transition.
|
|
3048
|
+
*/
|
|
3049
|
+
export interface BetaFallbackInfo {
|
|
3050
|
+
/**
|
|
3051
|
+
* The model that will complete your prompt.
|
|
3052
|
+
*
|
|
3053
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
3054
|
+
* details and options.
|
|
3055
|
+
*/
|
|
3056
|
+
model: MessagesAPI.Model;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Identifies one hop of a fallback transition.
|
|
3061
|
+
*/
|
|
3062
|
+
export interface BetaFallbackInfoParam {
|
|
3063
|
+
/**
|
|
3064
|
+
* The model that will complete your prompt.
|
|
3065
|
+
*
|
|
3066
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
3067
|
+
* details and options.
|
|
3068
|
+
*/
|
|
3069
|
+
model: MessagesAPI.Model;
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
/**
|
|
3073
|
+
* Token usage for the fallback-model attempt of a server-side fallback request.
|
|
3074
|
+
*
|
|
3075
|
+
* Produced in place of a `message` entry for whichever hop served the response. A
|
|
3076
|
+
* declined hop produces the existing `message` entry. Whether a fallback model
|
|
3077
|
+
* served the response is signalled by the presence of this entry in
|
|
3078
|
+
* `usage.iterations`.
|
|
3079
|
+
*/
|
|
3080
|
+
export interface BetaFallbackMessageIterationUsage {
|
|
3081
|
+
/**
|
|
3082
|
+
* Breakdown of cached tokens by TTL
|
|
3083
|
+
*/
|
|
3084
|
+
cache_creation: BetaCacheCreation | null;
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* The number of input tokens used to create the cache entry.
|
|
3088
|
+
*/
|
|
3089
|
+
cache_creation_input_tokens: number;
|
|
3090
|
+
|
|
3091
|
+
/**
|
|
3092
|
+
* The number of input tokens read from the cache.
|
|
3093
|
+
*/
|
|
3094
|
+
cache_read_input_tokens: number;
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* The number of input tokens which were used.
|
|
3098
|
+
*/
|
|
3099
|
+
input_tokens: number;
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* The model that will complete your prompt.
|
|
3103
|
+
*
|
|
3104
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
3105
|
+
* details and options.
|
|
3106
|
+
*/
|
|
3107
|
+
model: MessagesAPI.Model;
|
|
3108
|
+
|
|
3109
|
+
/**
|
|
3110
|
+
* The number of output tokens which were used.
|
|
3111
|
+
*/
|
|
3112
|
+
output_tokens: number;
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* Usage for the fallback-model attempt that served the response
|
|
3116
|
+
*/
|
|
3117
|
+
type: 'fallback_message';
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* One entry in the `fallbacks` chain on a `/v1/messages` request.
|
|
3122
|
+
*
|
|
3123
|
+
* `model` is required. The override fields (`max_tokens`, `thinking`,
|
|
3124
|
+
* `output_config`, and `speed`) set the corresponding parameter for this attempt
|
|
3125
|
+
* only and are validated as if the request were made to `model`. Any other key is
|
|
3126
|
+
* rejected at parse time.
|
|
3127
|
+
*/
|
|
3128
|
+
export interface BetaFallbackParam {
|
|
3129
|
+
/**
|
|
3130
|
+
* The model that will complete your prompt.
|
|
3131
|
+
*
|
|
3132
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
3133
|
+
* details and options.
|
|
3134
|
+
*/
|
|
3135
|
+
model: MessagesAPI.Model;
|
|
3136
|
+
|
|
3137
|
+
max_tokens?: number | null;
|
|
3138
|
+
|
|
3139
|
+
output_config?: BetaOutputConfig | null;
|
|
3140
|
+
|
|
3141
|
+
/**
|
|
3142
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
3143
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
3144
|
+
* combinations are rejected at create time.
|
|
3145
|
+
*/
|
|
3146
|
+
speed?: 'standard' | 'fast' | null;
|
|
3147
|
+
|
|
3148
|
+
thinking?: BetaThinkingConfigEnabled | BetaThinkingConfigDisabled | BetaThinkingConfigAdaptive | null;
|
|
3149
|
+
|
|
3150
|
+
[k: string]: unknown;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
/**
|
|
3154
|
+
* The `from` model declined for policy reasons.
|
|
3155
|
+
*/
|
|
3156
|
+
export interface BetaFallbackRefusalTrigger {
|
|
3157
|
+
/**
|
|
3158
|
+
* The policy category that triggered a refusal.
|
|
3159
|
+
*
|
|
3160
|
+
* - `cyber` - The request could enable cyber harm, such as malware or exploit
|
|
3161
|
+
* development. Benign cybersecurity work can also trigger this category.
|
|
3162
|
+
* - `bio` - The request could enable biological harm, such as dangerous lab
|
|
3163
|
+
* methods. Beneficial life sciences work can also trigger this category.
|
|
3164
|
+
* - `frontier_llm` - The request could assist the development of competing AI
|
|
3165
|
+
* models, which is restricted under
|
|
3166
|
+
* [Anthropic's commercial terms](https://www.anthropic.com/legal/commercial-terms).
|
|
3167
|
+
* Benign machine learning work can also trigger this category.
|
|
3168
|
+
* - `reasoning_extraction` - The request asks the model to reproduce its internal
|
|
3169
|
+
* reasoning in the response text. To get reasoning in a structured form instead,
|
|
3170
|
+
* use
|
|
3171
|
+
* [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking).
|
|
3172
|
+
* - `general_harms` - The request could be related to an area that was determined
|
|
3173
|
+
* as harmful. Benign work might sometimes trigger this category.
|
|
3174
|
+
*/
|
|
3175
|
+
category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'general_harms' | null;
|
|
3176
|
+
|
|
3177
|
+
type: 'refusal';
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
/**
|
|
3181
|
+
* Opt-in server-side retry on one or more substitute models when the requested
|
|
3182
|
+
* model declines for policy reasons. Tried in order: if the first entry also
|
|
3183
|
+
* declines, the second is tried, and so on. The string "default" requests the
|
|
3184
|
+
* requested model's server-defined default fallback configuration.
|
|
3185
|
+
*/
|
|
3186
|
+
export type BetaFallbacksParam = Array<BetaFallbackParam> | 'default';
|
|
3187
|
+
|
|
1298
3188
|
export interface BetaFileDocumentSource {
|
|
1299
3189
|
file_id: string;
|
|
1300
3190
|
|
|
@@ -1316,6 +3206,32 @@ export interface BetaImageBlockParam {
|
|
|
1316
3206
|
* Create a cache control breakpoint at this content block.
|
|
1317
3207
|
*/
|
|
1318
3208
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
3209
|
+
|
|
3210
|
+
/**
|
|
3211
|
+
* Configures the transformations the server applies to this image before the model
|
|
3212
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
3213
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
3214
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
3215
|
+
*/
|
|
3216
|
+
transformations?: BetaImageTransformationsParam | null;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* Configures the transformations the server applies to this image before the model
|
|
3221
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
3222
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
3223
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
3224
|
+
*/
|
|
3225
|
+
export interface BetaImageTransformationsParam {
|
|
3226
|
+
/**
|
|
3227
|
+
* What the server does when this image exceeds the model's maximum image size.
|
|
3228
|
+
* `"downsize"` (the default) scales the image down to fit, which changes the
|
|
3229
|
+
* dimensions the model observes without telling you. `"error"` instead rejects the
|
|
3230
|
+
* request with a 400 error naming the image's dimensions and the largest
|
|
3231
|
+
* dimensions that fit, so you can scale the image deliberately — your image is
|
|
3232
|
+
* never silently scaled down.
|
|
3233
|
+
*/
|
|
3234
|
+
oversized_image?: 'downsize' | 'error';
|
|
1319
3235
|
}
|
|
1320
3236
|
|
|
1321
3237
|
export interface BetaInputJSONDelta {
|
|
@@ -1347,7 +3263,10 @@ export interface BetaInputTokensTrigger {
|
|
|
1347
3263
|
* - Understand token accumulation across server-side tool use loops
|
|
1348
3264
|
*/
|
|
1349
3265
|
export type BetaIterationsUsage = Array<
|
|
1350
|
-
|
|
3266
|
+
| BetaMessageIterationUsage
|
|
3267
|
+
| BetaCompactionIterationUsage
|
|
3268
|
+
| BetaAdvisorMessageIterationUsage
|
|
3269
|
+
| BetaFallbackMessageIterationUsage
|
|
1351
3270
|
>;
|
|
1352
3271
|
|
|
1353
3272
|
export interface BetaJSONOutputFormat {
|
|
@@ -1465,7 +3384,9 @@ export interface BetaMemoryTool20250818 {
|
|
|
1465
3384
|
|
|
1466
3385
|
type: 'memory_20250818';
|
|
1467
3386
|
|
|
1468
|
-
allowed_callers?: Array<
|
|
3387
|
+
allowed_callers?: Array<
|
|
3388
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3389
|
+
>;
|
|
1469
3390
|
|
|
1470
3391
|
/**
|
|
1471
3392
|
* Create a cache control breakpoint at this content block.
|
|
@@ -1659,8 +3580,15 @@ export interface BetaMessage {
|
|
|
1659
3580
|
context_management: BetaContextManagementResponse | null;
|
|
1660
3581
|
|
|
1661
3582
|
/**
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
3583
|
+
* Response envelope for request-level diagnostics. Present (possibly null)
|
|
3584
|
+
* whenever the caller supplied `diagnostics` on the request.
|
|
3585
|
+
*/
|
|
3586
|
+
diagnostics: BetaDiagnostics | null;
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* The model that will complete your prompt.
|
|
3590
|
+
*
|
|
3591
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
1664
3592
|
* details and options.
|
|
1665
3593
|
*/
|
|
1666
3594
|
model: MessagesAPI.Model;
|
|
@@ -1690,6 +3618,7 @@ export interface BetaMessage {
|
|
|
1690
3618
|
* back as-is in a subsequent request to let the model continue.
|
|
1691
3619
|
* - `"refusal"`: when streaming classifiers intervene to handle potential policy
|
|
1692
3620
|
* violations
|
|
3621
|
+
* - `"model_context_window_exceeded"`: we exceeded the model's context window
|
|
1693
3622
|
*
|
|
1694
3623
|
* In non-streaming mode this value is always non-null. In streaming mode, it is
|
|
1695
3624
|
* null in the `message_start` event and non-null otherwise.
|
|
@@ -1742,6 +3671,11 @@ export interface BetaMessageDeltaUsage {
|
|
|
1742
3671
|
*/
|
|
1743
3672
|
cache_read_input_tokens: number | null;
|
|
1744
3673
|
|
|
3674
|
+
/**
|
|
3675
|
+
* Outcome of the `fallback_credit_token` presented on this request.
|
|
3676
|
+
*/
|
|
3677
|
+
fallback_credit: BetaFallbackCreditUsage | null;
|
|
3678
|
+
|
|
1745
3679
|
/**
|
|
1746
3680
|
* The cumulative number of input tokens which were used.
|
|
1747
3681
|
*/
|
|
@@ -1764,6 +3698,16 @@ export interface BetaMessageDeltaUsage {
|
|
|
1764
3698
|
*/
|
|
1765
3699
|
output_tokens: number;
|
|
1766
3700
|
|
|
3701
|
+
/**
|
|
3702
|
+
* Breakdown of output tokens by category.
|
|
3703
|
+
*
|
|
3704
|
+
* `output_tokens` remains the inclusive, authoritative total used for billing.
|
|
3705
|
+
* This object provides a read-only decomposition for observability — for example,
|
|
3706
|
+
* how many of the billed output tokens were spent on internal reasoning that may
|
|
3707
|
+
* have been summarized before being returned to you.
|
|
3708
|
+
*/
|
|
3709
|
+
output_tokens_details: BetaOutputTokensDetails | null;
|
|
3710
|
+
|
|
1767
3711
|
/**
|
|
1768
3712
|
* The number of server tool requests.
|
|
1769
3713
|
*/
|
|
@@ -1794,6 +3738,14 @@ export interface BetaMessageIterationUsage {
|
|
|
1794
3738
|
*/
|
|
1795
3739
|
input_tokens: number;
|
|
1796
3740
|
|
|
3741
|
+
/**
|
|
3742
|
+
* The model that will complete your prompt.
|
|
3743
|
+
*
|
|
3744
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
3745
|
+
* details and options.
|
|
3746
|
+
*/
|
|
3747
|
+
model: MessagesAPI.Model;
|
|
3748
|
+
|
|
1797
3749
|
/**
|
|
1798
3750
|
* The number of output tokens which were used.
|
|
1799
3751
|
*/
|
|
@@ -1808,7 +3760,7 @@ export interface BetaMessageIterationUsage {
|
|
|
1808
3760
|
export interface BetaMessageParam {
|
|
1809
3761
|
content: string | Array<BetaContentBlockParam>;
|
|
1810
3762
|
|
|
1811
|
-
role: 'user' | 'assistant';
|
|
3763
|
+
role: 'user' | 'assistant' | 'system';
|
|
1812
3764
|
}
|
|
1813
3765
|
|
|
1814
3766
|
export interface BetaMessageTokensCount {
|
|
@@ -1853,6 +3805,20 @@ export interface BetaOutputConfig {
|
|
|
1853
3805
|
task_budget?: BetaTokenTaskBudget | null;
|
|
1854
3806
|
}
|
|
1855
3807
|
|
|
3808
|
+
export interface BetaOutputTokensDetails {
|
|
3809
|
+
/**
|
|
3810
|
+
* Number of output tokens the model generated as internal reasoning, including the
|
|
3811
|
+
* thinking-block delimiter tokens.
|
|
3812
|
+
*
|
|
3813
|
+
* Reflects the raw reasoning the model produced, not the (possibly shorter)
|
|
3814
|
+
* summarized thinking text returned in the response body. Computed by
|
|
3815
|
+
* re-tokenizing the raw reasoning text, so it may differ from the model's exact
|
|
3816
|
+
* generation count by a small number of tokens. Always ≤ `output_tokens`;
|
|
3817
|
+
* `output_tokens - thinking_tokens` approximates the non-reasoning output.
|
|
3818
|
+
*/
|
|
3819
|
+
thinking_tokens: number;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
1856
3822
|
export interface BetaPlainTextSource {
|
|
1857
3823
|
data: string;
|
|
1858
3824
|
|
|
@@ -1897,7 +3863,8 @@ export interface BetaRawContentBlockStartEvent {
|
|
|
1897
3863
|
| BetaMCPToolUseBlock
|
|
1898
3864
|
| BetaMCPToolResultBlock
|
|
1899
3865
|
| BetaContainerUploadBlock
|
|
1900
|
-
| BetaCompactionBlock
|
|
3866
|
+
| BetaCompactionBlock
|
|
3867
|
+
| BetaFallbackBlock;
|
|
1901
3868
|
|
|
1902
3869
|
index: number;
|
|
1903
3870
|
|
|
@@ -1978,12 +3945,28 @@ export type BetaRawMessageStreamEvent =
|
|
|
1978
3945
|
| BetaRawContentBlockStopEvent;
|
|
1979
3946
|
|
|
1980
3947
|
export interface BetaRedactedThinkingBlock {
|
|
3948
|
+
/**
|
|
3949
|
+
* The contents of this redacted thinking block, returned when portions of the
|
|
3950
|
+
* model's thinking were safety-redacted. This field is opaque and encrypted, with
|
|
3951
|
+
* no readable content.
|
|
3952
|
+
*
|
|
3953
|
+
* Pass `redacted_thinking` blocks back to the API unchanged when continuing a
|
|
3954
|
+
* multi-turn conversation.
|
|
3955
|
+
*
|
|
3956
|
+
* See
|
|
3957
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks)
|
|
3958
|
+
* for details.
|
|
3959
|
+
*/
|
|
1981
3960
|
data: string;
|
|
1982
3961
|
|
|
1983
3962
|
type: 'redacted_thinking';
|
|
1984
3963
|
}
|
|
1985
3964
|
|
|
1986
3965
|
export interface BetaRedactedThinkingBlockParam {
|
|
3966
|
+
/**
|
|
3967
|
+
* The `data` value of this redacted thinking block, exactly as returned by the API
|
|
3968
|
+
* in a previous response. Opaque and encrypted; pass it back unchanged.
|
|
3969
|
+
*/
|
|
1987
3970
|
data: string;
|
|
1988
3971
|
|
|
1989
3972
|
type: 'redacted_thinking';
|
|
@@ -1994,19 +3977,85 @@ export interface BetaRedactedThinkingBlockParam {
|
|
|
1994
3977
|
*/
|
|
1995
3978
|
export interface BetaRefusalStopDetails {
|
|
1996
3979
|
/**
|
|
1997
|
-
* The policy category that triggered
|
|
3980
|
+
* The policy category that triggered a refusal.
|
|
3981
|
+
*
|
|
3982
|
+
* - `cyber` - The request could enable cyber harm, such as malware or exploit
|
|
3983
|
+
* development. Benign cybersecurity work can also trigger this category.
|
|
3984
|
+
* - `bio` - The request could enable biological harm, such as dangerous lab
|
|
3985
|
+
* methods. Beneficial life sciences work can also trigger this category.
|
|
3986
|
+
* - `frontier_llm` - The request could assist the development of competing AI
|
|
3987
|
+
* models, which is restricted under
|
|
3988
|
+
* [Anthropic's commercial terms](https://www.anthropic.com/legal/commercial-terms).
|
|
3989
|
+
* Benign machine learning work can also trigger this category.
|
|
3990
|
+
* - `reasoning_extraction` - The request asks the model to reproduce its internal
|
|
3991
|
+
* reasoning in the response text. To get reasoning in a structured form instead,
|
|
3992
|
+
* use
|
|
3993
|
+
* [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking).
|
|
3994
|
+
* - `general_harms` - The request could be related to an area that was determined
|
|
3995
|
+
* as harmful. Benign work might sometimes trigger this category.
|
|
3996
|
+
*/
|
|
3997
|
+
category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'general_harms' | null;
|
|
3998
|
+
|
|
3999
|
+
/**
|
|
4000
|
+
* Human-readable explanation of the refusal.
|
|
4001
|
+
*
|
|
4002
|
+
* This text is not guaranteed to be stable. `null` when no explanation is
|
|
4003
|
+
* available for the category.
|
|
4004
|
+
*/
|
|
4005
|
+
explanation: string | null;
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* Opaque code that refunds the cache-miss cost when retrying this refused request
|
|
4009
|
+
* on the fallback model. Pass it as `fallback_credit_token` on the retry request.
|
|
4010
|
+
* Expires 5 minutes after the refusal.
|
|
4011
|
+
*
|
|
4012
|
+
* The retry is sent either with the same request body (`system`, `messages`,
|
|
4013
|
+
* `tools`, and other render-shaping fields), or with the same body plus one
|
|
4014
|
+
* appended `assistant` message whose content is the partial text (with any
|
|
4015
|
+
* trailing whitespace stripped from the final text block) and paired server-tool
|
|
4016
|
+
* blocks from this refusal — which also authorizes that appended turn as an
|
|
4017
|
+
* assistant-prefill continuation on models that otherwise disallow prefill. A
|
|
4018
|
+
* token minted mid-server-tool-loop whose partial content was continuable may only
|
|
4019
|
+
* be redeemed the second way — if a same-body retry is rejected with a 400 saying
|
|
4020
|
+
* the token must be redeemed by continuing the partial response, retry the second
|
|
4021
|
+
* way instead. Either way: same workspace, same platform; a mismatch is a 400.
|
|
4022
|
+
* Resending a token for an already-warm prefix is permitted but yields no
|
|
4023
|
+
* additional credit.
|
|
1998
4024
|
*
|
|
1999
|
-
* `null` when the
|
|
4025
|
+
* `null` when the refused model isn't eligible for a fallback credit.
|
|
2000
4026
|
*/
|
|
2001
|
-
|
|
4027
|
+
fallback_credit_token: string | null;
|
|
2002
4028
|
|
|
2003
4029
|
/**
|
|
2004
|
-
*
|
|
4030
|
+
* Whether the accompanying `fallback_credit_token` may be redeemed with the
|
|
4031
|
+
* appended-assistant retry form. Only set when `fallback_credit_token` is present.
|
|
2005
4032
|
*
|
|
2006
|
-
*
|
|
2007
|
-
*
|
|
4033
|
+
* `true`: retry by resending the same request body plus one appended `assistant`
|
|
4034
|
+
* message whose content is this response's `content` with any trailing whitespace
|
|
4035
|
+
* stripped from the final text block and unpaired `tool_use` blocks omitted (the
|
|
4036
|
+
* same appended-turn shape described on `fallback_credit_token`), with the token
|
|
4037
|
+
* attached. `false`: retry by resending the original request body unchanged, with
|
|
4038
|
+
* the token attached — the appended-assistant form is not available for this
|
|
4039
|
+
* refusal (no continuable partial content, or the request uses `output_format` or
|
|
4040
|
+
* a `tool_choice` that forces tool use). One exception: when the request used
|
|
4041
|
+
* `output_format` or a forced `tool_choice` and the refusal arrived after server
|
|
4042
|
+
* tools (including MCP connector tools) had already executed, the token may not be
|
|
4043
|
+
* redeemable by either retry form; if the exact-body retry is then rejected with a
|
|
4044
|
+
* 400 saying the token must be redeemed by continuing the partial response,
|
|
4045
|
+
* discard the token and retry without it.
|
|
4046
|
+
*
|
|
4047
|
+
* Advisory: if an appended-assistant retry is rejected with a 400 despite `true`,
|
|
4048
|
+
* fall back to resending the original request body with the token.
|
|
2008
4049
|
*/
|
|
2009
|
-
|
|
4050
|
+
fallback_has_prefill_claim: boolean | null;
|
|
4051
|
+
|
|
4052
|
+
/**
|
|
4053
|
+
* The server's suggested retry target for this refusal. Populated when a fallback
|
|
4054
|
+
* attempt could not be made (the fallback model's rate limit was exhausted, or it
|
|
4055
|
+
* was overloaded); names the fallback model the caller can retry directly. Null
|
|
4056
|
+
* otherwise.
|
|
4057
|
+
*/
|
|
4058
|
+
recommended_model: string | null;
|
|
2010
4059
|
|
|
2011
4060
|
type: 'refusal';
|
|
2012
4061
|
}
|
|
@@ -2066,6 +4115,50 @@ export interface BetaRequestMCPToolResultBlockParam {
|
|
|
2066
4115
|
is_error?: boolean;
|
|
2067
4116
|
}
|
|
2068
4117
|
|
|
4118
|
+
/**
|
|
4119
|
+
* Mid-conversation directive to surface a declared tool.
|
|
4120
|
+
*
|
|
4121
|
+
* `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
|
|
4122
|
+
* is offered to the model from this point in the conversation onward.
|
|
4123
|
+
*/
|
|
4124
|
+
export interface BetaRequestToolAdditionBlock {
|
|
4125
|
+
/**
|
|
4126
|
+
* Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
4127
|
+
* accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
4128
|
+
* tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
4129
|
+
*/
|
|
4130
|
+
tool: BetaToolChangeToolReference | BetaToolChangeMCPToolReference | BetaToolChangeMCPToolsetReference;
|
|
4131
|
+
|
|
4132
|
+
type: 'tool_addition';
|
|
4133
|
+
|
|
4134
|
+
/**
|
|
4135
|
+
* Create a cache control breakpoint at this content block.
|
|
4136
|
+
*/
|
|
4137
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
/**
|
|
4141
|
+
* Mid-conversation directive to withdraw a tool.
|
|
4142
|
+
*
|
|
4143
|
+
* `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
|
|
4144
|
+
* is no longer offered to the model from this point in the conversation onward.
|
|
4145
|
+
*/
|
|
4146
|
+
export interface BetaRequestToolRemovalBlock {
|
|
4147
|
+
/**
|
|
4148
|
+
* Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
4149
|
+
* accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
4150
|
+
* tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
4151
|
+
*/
|
|
4152
|
+
tool: BetaToolChangeToolReference | BetaToolChangeMCPToolReference | BetaToolChangeMCPToolsetReference;
|
|
4153
|
+
|
|
4154
|
+
type: 'tool_removal';
|
|
4155
|
+
|
|
4156
|
+
/**
|
|
4157
|
+
* Create a cache control breakpoint at this content block.
|
|
4158
|
+
*/
|
|
4159
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
4160
|
+
}
|
|
4161
|
+
|
|
2069
4162
|
export interface BetaSearchResultBlockParam {
|
|
2070
4163
|
content: Array<BetaTextBlockParam>;
|
|
2071
4164
|
|
|
@@ -2162,6 +4255,11 @@ export interface BetaServerToolUseBlockParam {
|
|
|
2162
4255
|
}
|
|
2163
4256
|
|
|
2164
4257
|
export interface BetaSignatureDelta {
|
|
4258
|
+
/**
|
|
4259
|
+
* The `signature` for this thinking block: an opaque value used to verify that the
|
|
4260
|
+
* block was generated by Claude when it is passed back to the API. Delivered in a
|
|
4261
|
+
* `signature_delta` event just before the block's `content_block_stop` event.
|
|
4262
|
+
*/
|
|
2165
4263
|
signature: string;
|
|
2166
4264
|
|
|
2167
4265
|
type: 'signature_delta';
|
|
@@ -2182,7 +4280,7 @@ export interface BetaSkill {
|
|
|
2182
4280
|
type: 'anthropic' | 'custom';
|
|
2183
4281
|
|
|
2184
4282
|
/**
|
|
2185
|
-
*
|
|
4283
|
+
* The resolved version: a skill version ID for custom skills.
|
|
2186
4284
|
*/
|
|
2187
4285
|
version: string;
|
|
2188
4286
|
}
|
|
@@ -2389,16 +4487,41 @@ export interface BetaTextEditorCodeExecutionViewResultBlockParam {
|
|
|
2389
4487
|
}
|
|
2390
4488
|
|
|
2391
4489
|
export interface BetaThinkingBlock {
|
|
4490
|
+
/**
|
|
4491
|
+
* A value used to verify that this thinking block was generated by Claude when it
|
|
4492
|
+
* is passed back to the API.
|
|
4493
|
+
*
|
|
4494
|
+
* This is an opaque field and should not be interpreted or parsed. When passing
|
|
4495
|
+
* thinking blocks back to the API (required when using tools with extended
|
|
4496
|
+
* thinking), pass them back exactly as received, with this field intact.
|
|
4497
|
+
*
|
|
4498
|
+
* See
|
|
4499
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
4500
|
+
* for details.
|
|
4501
|
+
*/
|
|
2392
4502
|
signature: string;
|
|
2393
4503
|
|
|
4504
|
+
/**
|
|
4505
|
+
* The text of Claude's thinking process for this block.
|
|
4506
|
+
*/
|
|
2394
4507
|
thinking: string;
|
|
2395
4508
|
|
|
2396
4509
|
type: 'thinking';
|
|
2397
4510
|
}
|
|
2398
4511
|
|
|
2399
4512
|
export interface BetaThinkingBlockParam {
|
|
4513
|
+
/**
|
|
4514
|
+
* The `signature` value of this thinking block, exactly as returned by the API in
|
|
4515
|
+
* a previous response. Used to verify that the block was generated by Claude.
|
|
4516
|
+
*
|
|
4517
|
+
* Thinking blocks must be passed back unmodified and in their original order; a
|
|
4518
|
+
* modified block results in a 400 `invalid_request_error`.
|
|
4519
|
+
*/
|
|
2400
4520
|
signature: string;
|
|
2401
4521
|
|
|
4522
|
+
/**
|
|
4523
|
+
* The `thinking` text of this block as returned by the API.
|
|
4524
|
+
*/
|
|
2402
4525
|
thinking: string;
|
|
2403
4526
|
|
|
2404
4527
|
type: 'thinking';
|
|
@@ -2429,7 +4552,7 @@ export interface BetaThinkingConfigEnabled {
|
|
|
2429
4552
|
* Must be ≥1024 and less than `max_tokens`.
|
|
2430
4553
|
*
|
|
2431
4554
|
* See
|
|
2432
|
-
* [extended thinking](https://
|
|
4555
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
2433
4556
|
* for details.
|
|
2434
4557
|
*/
|
|
2435
4558
|
budget_tokens: number;
|
|
@@ -2453,7 +4576,7 @@ export interface BetaThinkingConfigEnabled {
|
|
|
2453
4576
|
* tokens and counts towards your `max_tokens` limit.
|
|
2454
4577
|
*
|
|
2455
4578
|
* See
|
|
2456
|
-
* [extended thinking](https://
|
|
4579
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
2457
4580
|
* for details.
|
|
2458
4581
|
*/
|
|
2459
4582
|
export type BetaThinkingConfigParam =
|
|
@@ -2462,6 +4585,23 @@ export type BetaThinkingConfigParam =
|
|
|
2462
4585
|
| BetaThinkingConfigAdaptive;
|
|
2463
4586
|
|
|
2464
4587
|
export interface BetaThinkingDelta {
|
|
4588
|
+
/**
|
|
4589
|
+
* Per-frame increment of a coarse, running estimate of the tokens this thinking
|
|
4590
|
+
* block has produced so far. Present whenever the
|
|
4591
|
+
* `thinking-token-count-2026-05-13` beta is set; `null` unless `thinking.display`
|
|
4592
|
+
* resolves to `"omitted"` and a count is due this frame. Sum the increments across
|
|
4593
|
+
* `thinking_delta` frames on this block for a progress indicator. Each increment
|
|
4594
|
+
* is a non-negative multiple of a fixed quantum and the cadence is rate-limited,
|
|
4595
|
+
* so this is a deliberately lossy display hint, not a billable count;
|
|
4596
|
+
* `usage.output_tokens` remains authoritative.
|
|
4597
|
+
*/
|
|
4598
|
+
estimated_tokens: number | null;
|
|
4599
|
+
|
|
4600
|
+
/**
|
|
4601
|
+
* The incremental `thinking` text for this content block. Concatenate the
|
|
4602
|
+
* `thinking` values of successive `thinking_delta` events to assemble the block's
|
|
4603
|
+
* full `thinking` value.
|
|
4604
|
+
*/
|
|
2465
4605
|
thinking: string;
|
|
2466
4606
|
|
|
2467
4607
|
type: 'thinking_delta';
|
|
@@ -2510,7 +4650,9 @@ export interface BetaTool {
|
|
|
2510
4650
|
*/
|
|
2511
4651
|
name: string;
|
|
2512
4652
|
|
|
2513
|
-
allowed_callers?: Array<
|
|
4653
|
+
allowed_callers?: Array<
|
|
4654
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4655
|
+
>;
|
|
2514
4656
|
|
|
2515
4657
|
/**
|
|
2516
4658
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2580,7 +4722,9 @@ export interface BetaToolBash20241022 {
|
|
|
2580
4722
|
|
|
2581
4723
|
type: 'bash_20241022';
|
|
2582
4724
|
|
|
2583
|
-
allowed_callers?: Array<
|
|
4725
|
+
allowed_callers?: Array<
|
|
4726
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4727
|
+
>;
|
|
2584
4728
|
|
|
2585
4729
|
/**
|
|
2586
4730
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2611,7 +4755,9 @@ export interface BetaToolBash20250124 {
|
|
|
2611
4755
|
|
|
2612
4756
|
type: 'bash_20250124';
|
|
2613
4757
|
|
|
2614
|
-
allowed_callers?: Array<
|
|
4758
|
+
allowed_callers?: Array<
|
|
4759
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4760
|
+
>;
|
|
2615
4761
|
|
|
2616
4762
|
/**
|
|
2617
4763
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2632,6 +4778,38 @@ export interface BetaToolBash20250124 {
|
|
|
2632
4778
|
strict?: boolean;
|
|
2633
4779
|
}
|
|
2634
4780
|
|
|
4781
|
+
/**
|
|
4782
|
+
* Reference to a single MCP tool by its server and remote name — the same
|
|
4783
|
+
* `server_name`/`name` pair `mcp_tool_use` carries.
|
|
4784
|
+
*/
|
|
4785
|
+
export interface BetaToolChangeMCPToolReference {
|
|
4786
|
+
name: string;
|
|
4787
|
+
|
|
4788
|
+
server_name: string;
|
|
4789
|
+
|
|
4790
|
+
type: 'mcp_tool_reference';
|
|
4791
|
+
}
|
|
4792
|
+
|
|
4793
|
+
/**
|
|
4794
|
+
* Reference to every tool in the named MCP server's toolset.
|
|
4795
|
+
*/
|
|
4796
|
+
export interface BetaToolChangeMCPToolsetReference {
|
|
4797
|
+
server_name: string;
|
|
4798
|
+
|
|
4799
|
+
type: 'mcp_toolset_reference';
|
|
4800
|
+
}
|
|
4801
|
+
|
|
4802
|
+
/**
|
|
4803
|
+
* Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
4804
|
+
* accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
4805
|
+
* tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
4806
|
+
*/
|
|
4807
|
+
export interface BetaToolChangeToolReference {
|
|
4808
|
+
name: string;
|
|
4809
|
+
|
|
4810
|
+
type: 'tool_reference';
|
|
4811
|
+
}
|
|
4812
|
+
|
|
2635
4813
|
/**
|
|
2636
4814
|
* How the model should use the provided tools. The model can use a specific tool,
|
|
2637
4815
|
* any available tool, decide by itself, or not use tools at all.
|
|
@@ -2715,7 +4893,9 @@ export interface BetaToolComputerUse20241022 {
|
|
|
2715
4893
|
|
|
2716
4894
|
type: 'computer_20241022';
|
|
2717
4895
|
|
|
2718
|
-
allowed_callers?: Array<
|
|
4896
|
+
allowed_callers?: Array<
|
|
4897
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4898
|
+
>;
|
|
2719
4899
|
|
|
2720
4900
|
/**
|
|
2721
4901
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2761,7 +4941,9 @@ export interface BetaToolComputerUse20250124 {
|
|
|
2761
4941
|
|
|
2762
4942
|
type: 'computer_20250124';
|
|
2763
4943
|
|
|
2764
|
-
allowed_callers?: Array<
|
|
4944
|
+
allowed_callers?: Array<
|
|
4945
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4946
|
+
>;
|
|
2765
4947
|
|
|
2766
4948
|
/**
|
|
2767
4949
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2807,7 +4989,9 @@ export interface BetaToolComputerUse20251124 {
|
|
|
2807
4989
|
|
|
2808
4990
|
type: 'computer_20251124';
|
|
2809
4991
|
|
|
2810
|
-
allowed_callers?: Array<
|
|
4992
|
+
allowed_callers?: Array<
|
|
4993
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4994
|
+
>;
|
|
2811
4995
|
|
|
2812
4996
|
/**
|
|
2813
4997
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2876,9 +5060,15 @@ export interface BetaToolResultBlockParam {
|
|
|
2876
5060
|
| BetaSearchResultBlockParam
|
|
2877
5061
|
| BetaRequestDocumentBlock
|
|
2878
5062
|
| BetaToolReferenceBlockParam
|
|
5063
|
+
| BetaBrowserStateBlockParam
|
|
2879
5064
|
>;
|
|
2880
5065
|
|
|
2881
5066
|
is_error?: boolean;
|
|
5067
|
+
|
|
5068
|
+
/**
|
|
5069
|
+
* For a toolset member tool_result, the toolset family of the paired tool_use.
|
|
5070
|
+
*/
|
|
5071
|
+
toolset_name?: string | null;
|
|
2882
5072
|
}
|
|
2883
5073
|
|
|
2884
5074
|
export interface BetaToolSearchToolBm25_20251119 {
|
|
@@ -2891,7 +5081,9 @@ export interface BetaToolSearchToolBm25_20251119 {
|
|
|
2891
5081
|
|
|
2892
5082
|
type: 'tool_search_tool_bm25_20251119' | 'tool_search_tool_bm25';
|
|
2893
5083
|
|
|
2894
|
-
allowed_callers?: Array<
|
|
5084
|
+
allowed_callers?: Array<
|
|
5085
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5086
|
+
>;
|
|
2895
5087
|
|
|
2896
5088
|
/**
|
|
2897
5089
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2920,7 +5112,9 @@ export interface BetaToolSearchToolRegex20251119 {
|
|
|
2920
5112
|
|
|
2921
5113
|
type: 'tool_search_tool_regex_20251119' | 'tool_search_tool_regex';
|
|
2922
5114
|
|
|
2923
|
-
allowed_callers?: Array<
|
|
5115
|
+
allowed_callers?: Array<
|
|
5116
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5117
|
+
>;
|
|
2924
5118
|
|
|
2925
5119
|
/**
|
|
2926
5120
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2972,6 +5166,8 @@ export interface BetaToolSearchToolResultErrorParam {
|
|
|
2972
5166
|
error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded';
|
|
2973
5167
|
|
|
2974
5168
|
type: 'tool_search_tool_result_error';
|
|
5169
|
+
|
|
5170
|
+
error_message?: string | null;
|
|
2975
5171
|
}
|
|
2976
5172
|
|
|
2977
5173
|
export interface BetaToolSearchToolSearchResultBlock {
|
|
@@ -2998,7 +5194,9 @@ export interface BetaToolTextEditor20241022 {
|
|
|
2998
5194
|
|
|
2999
5195
|
type: 'text_editor_20241022';
|
|
3000
5196
|
|
|
3001
|
-
allowed_callers?: Array<
|
|
5197
|
+
allowed_callers?: Array<
|
|
5198
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5199
|
+
>;
|
|
3002
5200
|
|
|
3003
5201
|
/**
|
|
3004
5202
|
* Create a cache control breakpoint at this content block.
|
|
@@ -3029,7 +5227,9 @@ export interface BetaToolTextEditor20250124 {
|
|
|
3029
5227
|
|
|
3030
5228
|
type: 'text_editor_20250124';
|
|
3031
5229
|
|
|
3032
|
-
allowed_callers?: Array<
|
|
5230
|
+
allowed_callers?: Array<
|
|
5231
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5232
|
+
>;
|
|
3033
5233
|
|
|
3034
5234
|
/**
|
|
3035
5235
|
* Create a cache control breakpoint at this content block.
|
|
@@ -3060,7 +5260,9 @@ export interface BetaToolTextEditor20250429 {
|
|
|
3060
5260
|
|
|
3061
5261
|
type: 'text_editor_20250429';
|
|
3062
5262
|
|
|
3063
|
-
allowed_callers?: Array<
|
|
5263
|
+
allowed_callers?: Array<
|
|
5264
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5265
|
+
>;
|
|
3064
5266
|
|
|
3065
5267
|
/**
|
|
3066
5268
|
* Create a cache control breakpoint at this content block.
|
|
@@ -3091,7 +5293,9 @@ export interface BetaToolTextEditor20250728 {
|
|
|
3091
5293
|
|
|
3092
5294
|
type: 'text_editor_20250728';
|
|
3093
5295
|
|
|
3094
|
-
allowed_callers?: Array<
|
|
5296
|
+
allowed_callers?: Array<
|
|
5297
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5298
|
+
>;
|
|
3095
5299
|
|
|
3096
5300
|
/**
|
|
3097
5301
|
* Create a cache control breakpoint at this content block.
|
|
@@ -3129,11 +5333,14 @@ export type BetaToolUnion =
|
|
|
3129
5333
|
| BetaCodeExecutionTool20250522
|
|
3130
5334
|
| BetaCodeExecutionTool20250825
|
|
3131
5335
|
| BetaCodeExecutionTool20260120
|
|
5336
|
+
| BetaCodeExecutionTool20260521
|
|
5337
|
+
| BetaBrowserToolset20260801
|
|
3132
5338
|
| BetaToolComputerUse20241022
|
|
3133
5339
|
| BetaMemoryTool20250818
|
|
3134
5340
|
| BetaToolComputerUse20250124
|
|
3135
5341
|
| BetaToolTextEditor20241022
|
|
3136
5342
|
| BetaToolComputerUse20251124
|
|
5343
|
+
| BetaComputerToolset20260801
|
|
3137
5344
|
| BetaToolTextEditor20250124
|
|
3138
5345
|
| BetaToolTextEditor20250429
|
|
3139
5346
|
| BetaToolTextEditor20250728
|
|
@@ -3142,6 +5349,8 @@ export type BetaToolUnion =
|
|
|
3142
5349
|
| BetaWebSearchTool20260209
|
|
3143
5350
|
| BetaWebFetchTool20260209
|
|
3144
5351
|
| BetaWebFetchTool20260309
|
|
5352
|
+
| BetaWebSearchTool20260318
|
|
5353
|
+
| BetaWebFetchTool20260318
|
|
3145
5354
|
| BetaAdvisorTool20260301
|
|
3146
5355
|
| BetaToolSearchToolBm25_20251119
|
|
3147
5356
|
| BetaToolSearchToolRegex20251119
|
|
@@ -3160,6 +5369,11 @@ export interface BetaToolUseBlock {
|
|
|
3160
5369
|
* Tool invocation directly from the model.
|
|
3161
5370
|
*/
|
|
3162
5371
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
5372
|
+
|
|
5373
|
+
/**
|
|
5374
|
+
* For a toolset member tool_use, the toolset family.
|
|
5375
|
+
*/
|
|
5376
|
+
toolset_name?: string | null;
|
|
3163
5377
|
}
|
|
3164
5378
|
|
|
3165
5379
|
export interface BetaToolUseBlockParam {
|
|
@@ -3180,6 +5394,11 @@ export interface BetaToolUseBlockParam {
|
|
|
3180
5394
|
* Tool invocation directly from the model.
|
|
3181
5395
|
*/
|
|
3182
5396
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
5397
|
+
|
|
5398
|
+
/**
|
|
5399
|
+
* For a toolset member tool_use, the toolset family this member belongs to.
|
|
5400
|
+
*/
|
|
5401
|
+
toolset_name?: string | null;
|
|
3183
5402
|
}
|
|
3184
5403
|
|
|
3185
5404
|
export interface BetaToolUsesKeep {
|
|
@@ -3222,6 +5441,11 @@ export interface BetaUsage {
|
|
|
3222
5441
|
*/
|
|
3223
5442
|
cache_read_input_tokens: number | null;
|
|
3224
5443
|
|
|
5444
|
+
/**
|
|
5445
|
+
* Outcome of the `fallback_credit_token` presented on this request.
|
|
5446
|
+
*/
|
|
5447
|
+
fallback_credit: BetaFallbackCreditUsage | null;
|
|
5448
|
+
|
|
3225
5449
|
/**
|
|
3226
5450
|
* The geographic region where inference was performed for this request.
|
|
3227
5451
|
*/
|
|
@@ -3249,6 +5473,16 @@ export interface BetaUsage {
|
|
|
3249
5473
|
*/
|
|
3250
5474
|
output_tokens: number;
|
|
3251
5475
|
|
|
5476
|
+
/**
|
|
5477
|
+
* Breakdown of output tokens by category.
|
|
5478
|
+
*
|
|
5479
|
+
* `output_tokens` remains the inclusive, authoritative total used for billing.
|
|
5480
|
+
* This object provides a read-only decomposition for observability — for example,
|
|
5481
|
+
* how many of the billed output tokens were spent on internal reasoning that may
|
|
5482
|
+
* have been summarized before being returned to you.
|
|
5483
|
+
*/
|
|
5484
|
+
output_tokens_details: BetaOutputTokensDetails | null;
|
|
5485
|
+
|
|
3252
5486
|
/**
|
|
3253
5487
|
* The number of server tool requests.
|
|
3254
5488
|
*/
|
|
@@ -3260,7 +5494,9 @@ export interface BetaUsage {
|
|
|
3260
5494
|
service_tier: 'standard' | 'priority' | 'batch' | null;
|
|
3261
5495
|
|
|
3262
5496
|
/**
|
|
3263
|
-
*
|
|
5497
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
5498
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
5499
|
+
* combinations are rejected at create time.
|
|
3264
5500
|
*/
|
|
3265
5501
|
speed: 'standard' | 'fast' | null;
|
|
3266
5502
|
}
|
|
@@ -3333,7 +5569,9 @@ export interface BetaWebFetchTool20250910 {
|
|
|
3333
5569
|
|
|
3334
5570
|
type: 'web_fetch_20250910';
|
|
3335
5571
|
|
|
3336
|
-
allowed_callers?: Array<
|
|
5572
|
+
allowed_callers?: Array<
|
|
5573
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5574
|
+
>;
|
|
3337
5575
|
|
|
3338
5576
|
/**
|
|
3339
5577
|
* List of domains to allow fetching from
|
|
@@ -3389,7 +5627,9 @@ export interface BetaWebFetchTool20260209 {
|
|
|
3389
5627
|
|
|
3390
5628
|
type: 'web_fetch_20260209';
|
|
3391
5629
|
|
|
3392
|
-
allowed_callers?: Array<
|
|
5630
|
+
allowed_callers?: Array<
|
|
5631
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5632
|
+
>;
|
|
3393
5633
|
|
|
3394
5634
|
/**
|
|
3395
5635
|
* List of domains to allow fetching from
|
|
@@ -3448,7 +5688,74 @@ export interface BetaWebFetchTool20260309 {
|
|
|
3448
5688
|
|
|
3449
5689
|
type: 'web_fetch_20260309';
|
|
3450
5690
|
|
|
3451
|
-
allowed_callers?: Array<
|
|
5691
|
+
allowed_callers?: Array<
|
|
5692
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5693
|
+
>;
|
|
5694
|
+
|
|
5695
|
+
/**
|
|
5696
|
+
* List of domains to allow fetching from
|
|
5697
|
+
*/
|
|
5698
|
+
allowed_domains?: Array<string> | null;
|
|
5699
|
+
|
|
5700
|
+
/**
|
|
5701
|
+
* List of domains to block fetching from
|
|
5702
|
+
*/
|
|
5703
|
+
blocked_domains?: Array<string> | null;
|
|
5704
|
+
|
|
5705
|
+
/**
|
|
5706
|
+
* Create a cache control breakpoint at this content block.
|
|
5707
|
+
*/
|
|
5708
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
5709
|
+
|
|
5710
|
+
/**
|
|
5711
|
+
* Citations configuration for fetched documents. Citations are disabled by
|
|
5712
|
+
* default.
|
|
5713
|
+
*/
|
|
5714
|
+
citations?: BetaCitationsConfigParam | null;
|
|
5715
|
+
|
|
5716
|
+
/**
|
|
5717
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
5718
|
+
* returned via tool_reference from tool search.
|
|
5719
|
+
*/
|
|
5720
|
+
defer_loading?: boolean;
|
|
5721
|
+
|
|
5722
|
+
/**
|
|
5723
|
+
* Maximum number of tokens used by including web page text content in the context.
|
|
5724
|
+
* The limit is approximate and does not apply to binary content such as PDFs.
|
|
5725
|
+
*/
|
|
5726
|
+
max_content_tokens?: number | null;
|
|
5727
|
+
|
|
5728
|
+
/**
|
|
5729
|
+
* Maximum number of times the tool can be used in the API request.
|
|
5730
|
+
*/
|
|
5731
|
+
max_uses?: number | null;
|
|
5732
|
+
|
|
5733
|
+
/**
|
|
5734
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
5735
|
+
*/
|
|
5736
|
+
strict?: boolean;
|
|
5737
|
+
|
|
5738
|
+
/**
|
|
5739
|
+
* Whether to use cached content. Set to false to bypass the cache and fetch fresh
|
|
5740
|
+
* content. Only set to false when the user explicitly requests fresh content or
|
|
5741
|
+
* when fetching rapidly-changing sources.
|
|
5742
|
+
*/
|
|
5743
|
+
use_cache?: boolean;
|
|
5744
|
+
}
|
|
5745
|
+
|
|
5746
|
+
export interface BetaWebFetchTool20260318 {
|
|
5747
|
+
/**
|
|
5748
|
+
* Name of the tool.
|
|
5749
|
+
*
|
|
5750
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
5751
|
+
*/
|
|
5752
|
+
name: 'web_fetch';
|
|
5753
|
+
|
|
5754
|
+
type: 'web_fetch_20260318';
|
|
5755
|
+
|
|
5756
|
+
allowed_callers?: Array<
|
|
5757
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5758
|
+
>;
|
|
3452
5759
|
|
|
3453
5760
|
/**
|
|
3454
5761
|
* List of domains to allow fetching from
|
|
@@ -3488,6 +5795,16 @@ export interface BetaWebFetchTool20260309 {
|
|
|
3488
5795
|
*/
|
|
3489
5796
|
max_uses?: number | null;
|
|
3490
5797
|
|
|
5798
|
+
/**
|
|
5799
|
+
* How this tool's result blocks appear in the API response when the result was
|
|
5800
|
+
* consumed by a completed code_execution call in the same turn. 'full' returns the
|
|
5801
|
+
* complete content (default). 'excluded' drops the nested server_tool_use and
|
|
5802
|
+
* result block pair entirely. Results from direct calls, or from code_execution
|
|
5803
|
+
* calls that paused before completing, are always returned in full so they can be
|
|
5804
|
+
* sent back on the next turn.
|
|
5805
|
+
*/
|
|
5806
|
+
response_inclusion?: 'full' | 'excluded';
|
|
5807
|
+
|
|
3491
5808
|
/**
|
|
3492
5809
|
* When true, guarantees schema validation on tool names and inputs
|
|
3493
5810
|
*/
|
|
@@ -3548,6 +5865,7 @@ export type BetaWebFetchToolResultErrorCode =
|
|
|
3548
5865
|
| 'invalid_tool_input'
|
|
3549
5866
|
| 'url_too_long'
|
|
3550
5867
|
| 'url_not_allowed'
|
|
5868
|
+
| 'url_not_in_prior_context'
|
|
3551
5869
|
| 'url_not_accessible'
|
|
3552
5870
|
| 'unsupported_content_type'
|
|
3553
5871
|
| 'too_many_requests'
|
|
@@ -3588,7 +5906,9 @@ export interface BetaWebSearchTool20250305 {
|
|
|
3588
5906
|
|
|
3589
5907
|
type: 'web_search_20250305';
|
|
3590
5908
|
|
|
3591
|
-
allowed_callers?: Array<
|
|
5909
|
+
allowed_callers?: Array<
|
|
5910
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5911
|
+
>;
|
|
3592
5912
|
|
|
3593
5913
|
/**
|
|
3594
5914
|
* If provided, only these domains will be included in results. Cannot be used
|
|
@@ -3640,7 +5960,63 @@ export interface BetaWebSearchTool20260209 {
|
|
|
3640
5960
|
|
|
3641
5961
|
type: 'web_search_20260209';
|
|
3642
5962
|
|
|
3643
|
-
allowed_callers?: Array<
|
|
5963
|
+
allowed_callers?: Array<
|
|
5964
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
5965
|
+
>;
|
|
5966
|
+
|
|
5967
|
+
/**
|
|
5968
|
+
* If provided, only these domains will be included in results. Cannot be used
|
|
5969
|
+
* alongside `blocked_domains`.
|
|
5970
|
+
*/
|
|
5971
|
+
allowed_domains?: Array<string> | null;
|
|
5972
|
+
|
|
5973
|
+
/**
|
|
5974
|
+
* If provided, these domains will never appear in results. Cannot be used
|
|
5975
|
+
* alongside `allowed_domains`.
|
|
5976
|
+
*/
|
|
5977
|
+
blocked_domains?: Array<string> | null;
|
|
5978
|
+
|
|
5979
|
+
/**
|
|
5980
|
+
* Create a cache control breakpoint at this content block.
|
|
5981
|
+
*/
|
|
5982
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
5983
|
+
|
|
5984
|
+
/**
|
|
5985
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
5986
|
+
* returned via tool_reference from tool search.
|
|
5987
|
+
*/
|
|
5988
|
+
defer_loading?: boolean;
|
|
5989
|
+
|
|
5990
|
+
/**
|
|
5991
|
+
* Maximum number of times the tool can be used in the API request.
|
|
5992
|
+
*/
|
|
5993
|
+
max_uses?: number | null;
|
|
5994
|
+
|
|
5995
|
+
/**
|
|
5996
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
5997
|
+
*/
|
|
5998
|
+
strict?: boolean;
|
|
5999
|
+
|
|
6000
|
+
/**
|
|
6001
|
+
* Parameters for the user's location. Used to provide more relevant search
|
|
6002
|
+
* results.
|
|
6003
|
+
*/
|
|
6004
|
+
user_location?: BetaUserLocation | null;
|
|
6005
|
+
}
|
|
6006
|
+
|
|
6007
|
+
export interface BetaWebSearchTool20260318 {
|
|
6008
|
+
/**
|
|
6009
|
+
* Name of the tool.
|
|
6010
|
+
*
|
|
6011
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
6012
|
+
*/
|
|
6013
|
+
name: 'web_search';
|
|
6014
|
+
|
|
6015
|
+
type: 'web_search_20260318';
|
|
6016
|
+
|
|
6017
|
+
allowed_callers?: Array<
|
|
6018
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
6019
|
+
>;
|
|
3644
6020
|
|
|
3645
6021
|
/**
|
|
3646
6022
|
* If provided, only these domains will be included in results. Cannot be used
|
|
@@ -3670,6 +6046,16 @@ export interface BetaWebSearchTool20260209 {
|
|
|
3670
6046
|
*/
|
|
3671
6047
|
max_uses?: number | null;
|
|
3672
6048
|
|
|
6049
|
+
/**
|
|
6050
|
+
* How this tool's result blocks appear in the API response when the result was
|
|
6051
|
+
* consumed by a completed code_execution call in the same turn. 'full' returns the
|
|
6052
|
+
* complete content (default). 'excluded' drops the nested server_tool_use and
|
|
6053
|
+
* result block pair entirely. Results from direct calls, or from code_execution
|
|
6054
|
+
* calls that paused before completing, are always returned in full so they can be
|
|
6055
|
+
* sent back on the next turn.
|
|
6056
|
+
*/
|
|
6057
|
+
response_inclusion?: 'full' | 'excluded';
|
|
6058
|
+
|
|
3673
6059
|
/**
|
|
3674
6060
|
* When true, guarantees schema validation on tool names and inputs
|
|
3675
6061
|
*/
|
|
@@ -3755,8 +6141,13 @@ export interface MessageCreateParamsBase {
|
|
|
3755
6141
|
* Note that our models may stop _before_ reaching this maximum. This parameter
|
|
3756
6142
|
* only specifies the absolute maximum number of tokens to generate.
|
|
3757
6143
|
*
|
|
6144
|
+
* Set to `0` to populate the
|
|
6145
|
+
* [prompt cache](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#pre-warming-the-cache)
|
|
6146
|
+
* without generating a response.
|
|
6147
|
+
*
|
|
3758
6148
|
* Different models have different maximum values for this parameter. See
|
|
3759
|
-
* [models](https://
|
|
6149
|
+
* [models](https://platform.claude.com/docs/en/about-claude/models/overview) for
|
|
6150
|
+
* details.
|
|
3760
6151
|
*/
|
|
3761
6152
|
max_tokens: number;
|
|
3762
6153
|
|
|
@@ -3818,20 +6209,22 @@ export interface MessageCreateParamsBase {
|
|
|
3818
6209
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
3819
6210
|
* ```
|
|
3820
6211
|
*
|
|
3821
|
-
* See
|
|
6212
|
+
* See
|
|
6213
|
+
* [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
|
|
3822
6214
|
*
|
|
3823
6215
|
* Note that if you want to include a
|
|
3824
|
-
* [system prompt](https://
|
|
3825
|
-
* top-level `system` parameter — there is no `"system"` role for
|
|
3826
|
-
* the Messages API.
|
|
6216
|
+
* [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
6217
|
+
* you can use the top-level `system` parameter — there is no `"system"` role for
|
|
6218
|
+
* input messages in the Messages API.
|
|
3827
6219
|
*
|
|
3828
6220
|
* There is a limit of 100,000 messages in a single request.
|
|
3829
6221
|
*/
|
|
3830
6222
|
messages: Array<BetaMessageParam>;
|
|
3831
6223
|
|
|
3832
6224
|
/**
|
|
3833
|
-
* Body param: The model that will complete your prompt
|
|
3834
|
-
*
|
|
6225
|
+
* Body param: The model that will complete your prompt.
|
|
6226
|
+
*
|
|
6227
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
3835
6228
|
* details and options.
|
|
3836
6229
|
*/
|
|
3837
6230
|
model: MessagesAPI.Model;
|
|
@@ -3855,6 +6248,43 @@ export interface MessageCreateParamsBase {
|
|
|
3855
6248
|
*/
|
|
3856
6249
|
context_management?: BetaContextManagementConfig | null;
|
|
3857
6250
|
|
|
6251
|
+
/**
|
|
6252
|
+
* Body param: Request-level diagnostics. Currently carries the previous response
|
|
6253
|
+
* id for prompt-cache divergence reporting.
|
|
6254
|
+
*/
|
|
6255
|
+
diagnostics?: BetaDiagnosticsParam | null;
|
|
6256
|
+
|
|
6257
|
+
/**
|
|
6258
|
+
* Body param: The `fallback_credit_token` from a prior refusal's `stop_details`.
|
|
6259
|
+
*
|
|
6260
|
+
* When a preceding request was refused and returned a `fallback_credit_token`,
|
|
6261
|
+
* pass that code here on the retry to have the retry's cache-creation tokens for
|
|
6262
|
+
* the prefix that was warm on the refused model billed at the cache-read rate.
|
|
6263
|
+
* Must be redeemed by the same organization and workspace, with the same request
|
|
6264
|
+
* body (optionally extended by one appended `assistant` message whose content is
|
|
6265
|
+
* the partial text — with any trailing whitespace stripped from the final text
|
|
6266
|
+
* block — and paired server-tool blocks streamed before the refusal; the
|
|
6267
|
+
* appended-assistant form is not available for requests with `output_format` set
|
|
6268
|
+
* or forced `tool_choice`), on an eligible fallback model, on the same platform,
|
|
6269
|
+
* and within 5 minutes of the refusal; a mismatch is a 400. A token minted
|
|
6270
|
+
* mid-server-tool-loop whose partial content was continuable may only be redeemed
|
|
6271
|
+
* with the appended-assistant form — if an exact-body retry is rejected with a 400
|
|
6272
|
+
* saying the token must be redeemed by continuing the partial response, retry with
|
|
6273
|
+
* the appended-assistant form instead.
|
|
6274
|
+
*
|
|
6275
|
+
* When the appended-assistant form is used on a model that otherwise disallows
|
|
6276
|
+
* assistant-turn prefill, this token also authorizes that one prefill.
|
|
6277
|
+
*/
|
|
6278
|
+
fallback_credit_token?: string | BetaFallbackCreditTokenParam | null;
|
|
6279
|
+
|
|
6280
|
+
/**
|
|
6281
|
+
* Body param: Opt-in server-side retry on one or more substitute models when the
|
|
6282
|
+
* requested model declines for policy reasons. Tried in order: if the first entry
|
|
6283
|
+
* also declines, the second is tried, and so on. The string "default" requests the
|
|
6284
|
+
* requested model's server-defined default fallback configuration.
|
|
6285
|
+
*/
|
|
6286
|
+
fallbacks?: BetaFallbacksParam | null;
|
|
6287
|
+
|
|
3858
6288
|
/**
|
|
3859
6289
|
* Body param: Specifies the geographic region for inference processing. If not
|
|
3860
6290
|
* specified, the workspace's `default_inference_geo` is used.
|
|
@@ -3891,13 +6321,15 @@ export interface MessageCreateParamsBase {
|
|
|
3891
6321
|
* standard capacity for this request.
|
|
3892
6322
|
*
|
|
3893
6323
|
* Anthropic offers different levels of service for your API requests. See
|
|
3894
|
-
* [service-tiers](https://
|
|
6324
|
+
* [service-tiers](https://platform.claude.com/docs/en/api/service-tiers) for
|
|
6325
|
+
* details.
|
|
3895
6326
|
*/
|
|
3896
6327
|
service_tier?: 'auto' | 'standard_only';
|
|
3897
6328
|
|
|
3898
6329
|
/**
|
|
3899
|
-
* Body param:
|
|
3900
|
-
*
|
|
6330
|
+
* Body param: Inference speed mode. `fast` provides significantly faster output
|
|
6331
|
+
* token generation at premium pricing. Not all models support `fast`; invalid
|
|
6332
|
+
* combinations are rejected at create time.
|
|
3901
6333
|
*/
|
|
3902
6334
|
speed?: 'standard' | 'fast' | null;
|
|
3903
6335
|
|
|
@@ -3918,7 +6350,8 @@ export interface MessageCreateParamsBase {
|
|
|
3918
6350
|
* Body param: Whether to incrementally stream the response using server-sent
|
|
3919
6351
|
* events.
|
|
3920
6352
|
*
|
|
3921
|
-
* See [streaming](https://
|
|
6353
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
6354
|
+
* for details.
|
|
3922
6355
|
*/
|
|
3923
6356
|
stream?: boolean;
|
|
3924
6357
|
|
|
@@ -3927,7 +6360,7 @@ export interface MessageCreateParamsBase {
|
|
|
3927
6360
|
*
|
|
3928
6361
|
* A system prompt is a way of providing context and instructions to Claude, such
|
|
3929
6362
|
* as specifying a particular goal or role. See our
|
|
3930
|
-
* [guide to system prompts](https://
|
|
6363
|
+
* [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
3931
6364
|
*/
|
|
3932
6365
|
system?: string | Array<BetaTextBlockParam>;
|
|
3933
6366
|
|
|
@@ -3946,7 +6379,7 @@ export interface MessageCreateParamsBase {
|
|
|
3946
6379
|
* tokens and counts towards your `max_tokens` limit.
|
|
3947
6380
|
*
|
|
3948
6381
|
* See
|
|
3949
|
-
* [extended thinking](https://
|
|
6382
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
3950
6383
|
* for details.
|
|
3951
6384
|
*/
|
|
3952
6385
|
thinking?: BetaThinkingConfigParam;
|
|
@@ -3967,9 +6400,9 @@ export interface MessageCreateParamsBase {
|
|
|
3967
6400
|
*
|
|
3968
6401
|
* There are two types of tools: **client tools** and **server tools**. The
|
|
3969
6402
|
* behavior described below applies to client tools. For
|
|
3970
|
-
* [server tools](https://
|
|
6403
|
+
* [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
|
|
3971
6404
|
* see their individual documentation as each has its own behavior (e.g., the
|
|
3972
|
-
* [web search tool](https://
|
|
6405
|
+
* [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
|
|
3973
6406
|
*
|
|
3974
6407
|
* Each tool definition includes:
|
|
3975
6408
|
*
|
|
@@ -4032,7 +6465,9 @@ export interface MessageCreateParamsBase {
|
|
|
4032
6465
|
* functions, or more generally whenever you want the model to produce a particular
|
|
4033
6466
|
* JSON structure of output.
|
|
4034
6467
|
*
|
|
4035
|
-
* See our
|
|
6468
|
+
* See our
|
|
6469
|
+
* [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
6470
|
+
* for more details.
|
|
4036
6471
|
*/
|
|
4037
6472
|
tools?: Array<BetaToolUnion>;
|
|
4038
6473
|
|
|
@@ -4050,15 +6485,16 @@ export interface MessageCreateParamsBase {
|
|
|
4050
6485
|
top_p?: number;
|
|
4051
6486
|
|
|
4052
6487
|
/**
|
|
4053
|
-
*
|
|
4054
|
-
* behalf of a party other than your organization.
|
|
6488
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
4055
6489
|
*/
|
|
4056
|
-
|
|
6490
|
+
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
4057
6491
|
|
|
4058
6492
|
/**
|
|
4059
|
-
* Header param:
|
|
6493
|
+
* Header param: The user profile ID to attribute this request to. Use when acting
|
|
6494
|
+
* on behalf of a party other than your organization. Requires the `user-profiles`
|
|
6495
|
+
* beta header.
|
|
4060
6496
|
*/
|
|
4061
|
-
|
|
6497
|
+
user_profile_id?: string;
|
|
4062
6498
|
}
|
|
4063
6499
|
|
|
4064
6500
|
export namespace MessageCreateParams {
|
|
@@ -4071,7 +6507,8 @@ export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase
|
|
|
4071
6507
|
* Body param: Whether to incrementally stream the response using server-sent
|
|
4072
6508
|
* events.
|
|
4073
6509
|
*
|
|
4074
|
-
* See [streaming](https://
|
|
6510
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
6511
|
+
* for details.
|
|
4075
6512
|
*/
|
|
4076
6513
|
stream?: false;
|
|
4077
6514
|
}
|
|
@@ -4081,7 +6518,8 @@ export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
|
|
|
4081
6518
|
* Body param: Whether to incrementally stream the response using server-sent
|
|
4082
6519
|
* events.
|
|
4083
6520
|
*
|
|
4084
|
-
* See [streaming](https://
|
|
6521
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
6522
|
+
* for details.
|
|
4085
6523
|
*/
|
|
4086
6524
|
stream: true;
|
|
4087
6525
|
}
|
|
@@ -4145,20 +6583,22 @@ export interface MessageCountTokensParams {
|
|
|
4145
6583
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
4146
6584
|
* ```
|
|
4147
6585
|
*
|
|
4148
|
-
* See
|
|
6586
|
+
* See
|
|
6587
|
+
* [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
|
|
4149
6588
|
*
|
|
4150
6589
|
* Note that if you want to include a
|
|
4151
|
-
* [system prompt](https://
|
|
4152
|
-
* top-level `system` parameter — there is no `"system"` role for
|
|
4153
|
-
* the Messages API.
|
|
6590
|
+
* [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
6591
|
+
* you can use the top-level `system` parameter — there is no `"system"` role for
|
|
6592
|
+
* input messages in the Messages API.
|
|
4154
6593
|
*
|
|
4155
6594
|
* There is a limit of 100,000 messages in a single request.
|
|
4156
6595
|
*/
|
|
4157
6596
|
messages: Array<BetaMessageParam>;
|
|
4158
6597
|
|
|
4159
6598
|
/**
|
|
4160
|
-
* Body param: The model that will complete your prompt
|
|
4161
|
-
*
|
|
6599
|
+
* Body param: The model that will complete your prompt.
|
|
6600
|
+
*
|
|
6601
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
4162
6602
|
* details and options.
|
|
4163
6603
|
*/
|
|
4164
6604
|
model: MessagesAPI.Model;
|
|
@@ -4198,8 +6638,9 @@ export interface MessageCountTokensParams {
|
|
|
4198
6638
|
output_format?: BetaJSONOutputFormat | null;
|
|
4199
6639
|
|
|
4200
6640
|
/**
|
|
4201
|
-
* Body param:
|
|
4202
|
-
*
|
|
6641
|
+
* Body param: Inference speed mode. `fast` provides significantly faster output
|
|
6642
|
+
* token generation at premium pricing. Not all models support `fast`; invalid
|
|
6643
|
+
* combinations are rejected at create time.
|
|
4203
6644
|
*/
|
|
4204
6645
|
speed?: 'standard' | 'fast' | null;
|
|
4205
6646
|
|
|
@@ -4208,7 +6649,7 @@ export interface MessageCountTokensParams {
|
|
|
4208
6649
|
*
|
|
4209
6650
|
* A system prompt is a way of providing context and instructions to Claude, such
|
|
4210
6651
|
* as specifying a particular goal or role. See our
|
|
4211
|
-
* [guide to system prompts](https://
|
|
6652
|
+
* [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
4212
6653
|
*/
|
|
4213
6654
|
system?: string | Array<BetaTextBlockParam>;
|
|
4214
6655
|
|
|
@@ -4220,7 +6661,7 @@ export interface MessageCountTokensParams {
|
|
|
4220
6661
|
* tokens and counts towards your `max_tokens` limit.
|
|
4221
6662
|
*
|
|
4222
6663
|
* See
|
|
4223
|
-
* [extended thinking](https://
|
|
6664
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
4224
6665
|
* for details.
|
|
4225
6666
|
*/
|
|
4226
6667
|
thinking?: BetaThinkingConfigParam;
|
|
@@ -4241,9 +6682,9 @@ export interface MessageCountTokensParams {
|
|
|
4241
6682
|
*
|
|
4242
6683
|
* There are two types of tools: **client tools** and **server tools**. The
|
|
4243
6684
|
* behavior described below applies to client tools. For
|
|
4244
|
-
* [server tools](https://
|
|
6685
|
+
* [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
|
|
4245
6686
|
* see their individual documentation as each has its own behavior (e.g., the
|
|
4246
|
-
* [web search tool](https://
|
|
6687
|
+
* [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
|
|
4247
6688
|
*
|
|
4248
6689
|
* Each tool definition includes:
|
|
4249
6690
|
*
|
|
@@ -4306,7 +6747,9 @@ export interface MessageCountTokensParams {
|
|
|
4306
6747
|
* functions, or more generally whenever you want the model to produce a particular
|
|
4307
6748
|
* JSON structure of output.
|
|
4308
6749
|
*
|
|
4309
|
-
* See our
|
|
6750
|
+
* See our
|
|
6751
|
+
* [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
6752
|
+
* for more details.
|
|
4310
6753
|
*/
|
|
4311
6754
|
tools?: Array<
|
|
4312
6755
|
| BetaTool
|
|
@@ -4315,11 +6758,14 @@ export interface MessageCountTokensParams {
|
|
|
4315
6758
|
| BetaCodeExecutionTool20250522
|
|
4316
6759
|
| BetaCodeExecutionTool20250825
|
|
4317
6760
|
| BetaCodeExecutionTool20260120
|
|
6761
|
+
| BetaCodeExecutionTool20260521
|
|
6762
|
+
| BetaBrowserToolset20260801
|
|
4318
6763
|
| BetaToolComputerUse20241022
|
|
4319
6764
|
| BetaMemoryTool20250818
|
|
4320
6765
|
| BetaToolComputerUse20250124
|
|
4321
6766
|
| BetaToolTextEditor20241022
|
|
4322
6767
|
| BetaToolComputerUse20251124
|
|
6768
|
+
| BetaComputerToolset20260801
|
|
4323
6769
|
| BetaToolTextEditor20250124
|
|
4324
6770
|
| BetaToolTextEditor20250429
|
|
4325
6771
|
| BetaToolTextEditor20250728
|
|
@@ -4328,6 +6774,8 @@ export interface MessageCountTokensParams {
|
|
|
4328
6774
|
| BetaWebSearchTool20260209
|
|
4329
6775
|
| BetaWebFetchTool20260209
|
|
4330
6776
|
| BetaWebFetchTool20260309
|
|
6777
|
+
| BetaWebSearchTool20260318
|
|
6778
|
+
| BetaWebFetchTool20260318
|
|
4331
6779
|
| BetaAdvisorTool20260301
|
|
4332
6780
|
| BetaToolSearchToolBm25_20251119
|
|
4333
6781
|
| BetaToolSearchToolRegex20251119
|
|
@@ -4338,6 +6786,13 @@ export interface MessageCountTokensParams {
|
|
|
4338
6786
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
4339
6787
|
*/
|
|
4340
6788
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
6789
|
+
|
|
6790
|
+
/**
|
|
6791
|
+
* Header param: The user profile ID to attribute this request to. Use when acting
|
|
6792
|
+
* on behalf of a party other than your organization. Requires the `user-profiles`
|
|
6793
|
+
* beta header.
|
|
6794
|
+
*/
|
|
6795
|
+
user_profile_id?: string;
|
|
4341
6796
|
}
|
|
4342
6797
|
|
|
4343
6798
|
export { BetaToolRunner, type BetaToolRunnerParams } from '../../../lib/tools/BetaToolRunner';
|
|
@@ -4371,8 +6826,54 @@ export declare namespace Messages {
|
|
|
4371
6826
|
type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam,
|
|
4372
6827
|
type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError,
|
|
4373
6828
|
type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam,
|
|
6829
|
+
type BetaBrowserCloseTabConfig as BetaBrowserCloseTabConfig,
|
|
6830
|
+
type BetaBrowserDoubleClickConfig as BetaBrowserDoubleClickConfig,
|
|
6831
|
+
type BetaBrowserFileUploadConfig as BetaBrowserFileUploadConfig,
|
|
6832
|
+
type BetaBrowserFindConfig as BetaBrowserFindConfig,
|
|
6833
|
+
type BetaBrowserFormInputConfig as BetaBrowserFormInputConfig,
|
|
6834
|
+
type BetaBrowserGetPageTextConfig as BetaBrowserGetPageTextConfig,
|
|
6835
|
+
type BetaBrowserHoldKeyConfig as BetaBrowserHoldKeyConfig,
|
|
6836
|
+
type BetaBrowserHoverConfig as BetaBrowserHoverConfig,
|
|
6837
|
+
type BetaBrowserJavascriptExecConfig as BetaBrowserJavascriptExecConfig,
|
|
6838
|
+
type BetaBrowserKeyConfig as BetaBrowserKeyConfig,
|
|
6839
|
+
type BetaBrowserLeftClickConfig as BetaBrowserLeftClickConfig,
|
|
6840
|
+
type BetaBrowserLeftClickDragConfig as BetaBrowserLeftClickDragConfig,
|
|
6841
|
+
type BetaBrowserLeftMouseDownConfig as BetaBrowserLeftMouseDownConfig,
|
|
6842
|
+
type BetaBrowserLeftMouseUpConfig as BetaBrowserLeftMouseUpConfig,
|
|
6843
|
+
type BetaBrowserListTabsConfig as BetaBrowserListTabsConfig,
|
|
6844
|
+
type BetaBrowserMiddleClickConfig as BetaBrowserMiddleClickConfig,
|
|
6845
|
+
type BetaBrowserMouseMoveConfig as BetaBrowserMouseMoveConfig,
|
|
6846
|
+
type BetaBrowserNavigateConfig as BetaBrowserNavigateConfig,
|
|
6847
|
+
type BetaBrowserNewTabConfig as BetaBrowserNewTabConfig,
|
|
6848
|
+
type BetaBrowserReadConsoleConfig as BetaBrowserReadConsoleConfig,
|
|
6849
|
+
type BetaBrowserReadNetworkConfig as BetaBrowserReadNetworkConfig,
|
|
6850
|
+
type BetaBrowserReadPageConfig as BetaBrowserReadPageConfig,
|
|
6851
|
+
type BetaBrowserRightClickConfig as BetaBrowserRightClickConfig,
|
|
6852
|
+
type BetaBrowserScreenshotConfig as BetaBrowserScreenshotConfig,
|
|
6853
|
+
type BetaBrowserScrollConfig as BetaBrowserScrollConfig,
|
|
6854
|
+
type BetaBrowserScrollToConfig as BetaBrowserScrollToConfig,
|
|
6855
|
+
type BetaBrowserStateBlockParam as BetaBrowserStateBlockParam,
|
|
6856
|
+
type BetaBrowserStateChange as BetaBrowserStateChange,
|
|
6857
|
+
type BetaBrowserStateChangeDownloadCompleted as BetaBrowserStateChangeDownloadCompleted,
|
|
6858
|
+
type BetaBrowserStateChangeDownloadFailed as BetaBrowserStateChangeDownloadFailed,
|
|
6859
|
+
type BetaBrowserStateChangeDownloadStarted as BetaBrowserStateChangeDownloadStarted,
|
|
6860
|
+
type BetaBrowserStateChangeTabOpened as BetaBrowserStateChangeTabOpened,
|
|
6861
|
+
type BetaBrowserStateTabEntry as BetaBrowserStateTabEntry,
|
|
6862
|
+
type BetaBrowserSwitchTabConfig as BetaBrowserSwitchTabConfig,
|
|
6863
|
+
type BetaBrowserToolset20260801 as BetaBrowserToolset20260801,
|
|
6864
|
+
type BetaBrowserToolsetConfigs as BetaBrowserToolsetConfigs,
|
|
6865
|
+
type BetaBrowserTripleClickConfig as BetaBrowserTripleClickConfig,
|
|
6866
|
+
type BetaBrowserTypeConfig as BetaBrowserTypeConfig,
|
|
6867
|
+
type BetaBrowserWaitConfig as BetaBrowserWaitConfig,
|
|
6868
|
+
type BetaBrowserZoomConfig as BetaBrowserZoomConfig,
|
|
4374
6869
|
type BetaCacheControlEphemeral as BetaCacheControlEphemeral,
|
|
4375
6870
|
type BetaCacheCreation as BetaCacheCreation,
|
|
6871
|
+
type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged,
|
|
6872
|
+
type BetaCacheMissModelChanged as BetaCacheMissModelChanged,
|
|
6873
|
+
type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound,
|
|
6874
|
+
type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged,
|
|
6875
|
+
type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged,
|
|
6876
|
+
type BetaCacheMissUnavailable as BetaCacheMissUnavailable,
|
|
4376
6877
|
type BetaCitationCharLocation as BetaCitationCharLocation,
|
|
4377
6878
|
type BetaCitationCharLocationParam as BetaCitationCharLocationParam,
|
|
4378
6879
|
type BetaCitationConfig as BetaCitationConfig,
|
|
@@ -4397,6 +6898,7 @@ export declare namespace Messages {
|
|
|
4397
6898
|
type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522,
|
|
4398
6899
|
type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825,
|
|
4399
6900
|
type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120,
|
|
6901
|
+
type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521,
|
|
4400
6902
|
type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock,
|
|
4401
6903
|
type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent,
|
|
4402
6904
|
type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam,
|
|
@@ -4409,6 +6911,25 @@ export declare namespace Messages {
|
|
|
4409
6911
|
type BetaCompactionBlockParam as BetaCompactionBlockParam,
|
|
4410
6912
|
type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta,
|
|
4411
6913
|
type BetaCompactionIterationUsage as BetaCompactionIterationUsage,
|
|
6914
|
+
type BetaComputerCursorPositionConfig as BetaComputerCursorPositionConfig,
|
|
6915
|
+
type BetaComputerDoubleClickConfig as BetaComputerDoubleClickConfig,
|
|
6916
|
+
type BetaComputerHoldKeyConfig as BetaComputerHoldKeyConfig,
|
|
6917
|
+
type BetaComputerKeyConfig as BetaComputerKeyConfig,
|
|
6918
|
+
type BetaComputerLeftClickConfig as BetaComputerLeftClickConfig,
|
|
6919
|
+
type BetaComputerLeftClickDragConfig as BetaComputerLeftClickDragConfig,
|
|
6920
|
+
type BetaComputerLeftMouseDownConfig as BetaComputerLeftMouseDownConfig,
|
|
6921
|
+
type BetaComputerLeftMouseUpConfig as BetaComputerLeftMouseUpConfig,
|
|
6922
|
+
type BetaComputerMiddleClickConfig as BetaComputerMiddleClickConfig,
|
|
6923
|
+
type BetaComputerMouseMoveConfig as BetaComputerMouseMoveConfig,
|
|
6924
|
+
type BetaComputerRightClickConfig as BetaComputerRightClickConfig,
|
|
6925
|
+
type BetaComputerScreenshotConfig as BetaComputerScreenshotConfig,
|
|
6926
|
+
type BetaComputerScrollConfig as BetaComputerScrollConfig,
|
|
6927
|
+
type BetaComputerToolset20260801 as BetaComputerToolset20260801,
|
|
6928
|
+
type BetaComputerToolsetConfigs as BetaComputerToolsetConfigs,
|
|
6929
|
+
type BetaComputerTripleClickConfig as BetaComputerTripleClickConfig,
|
|
6930
|
+
type BetaComputerTypeConfig as BetaComputerTypeConfig,
|
|
6931
|
+
type BetaComputerWaitConfig as BetaComputerWaitConfig,
|
|
6932
|
+
type BetaComputerZoomConfig as BetaComputerZoomConfig,
|
|
4412
6933
|
type BetaContainer as BetaContainer,
|
|
4413
6934
|
type BetaContainerParams as BetaContainerParams,
|
|
4414
6935
|
type BetaContainerUploadBlock as BetaContainerUploadBlock,
|
|
@@ -4420,13 +6941,28 @@ export declare namespace Messages {
|
|
|
4420
6941
|
type BetaContextManagementConfig as BetaContextManagementConfig,
|
|
4421
6942
|
type BetaContextManagementResponse as BetaContextManagementResponse,
|
|
4422
6943
|
type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse,
|
|
6944
|
+
type BetaDiagnostics as BetaDiagnostics,
|
|
6945
|
+
type BetaDiagnosticsParam as BetaDiagnosticsParam,
|
|
4423
6946
|
type BetaDirectCaller as BetaDirectCaller,
|
|
4424
6947
|
type BetaDocumentBlock as BetaDocumentBlock,
|
|
4425
6948
|
type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock,
|
|
4426
6949
|
type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam,
|
|
6950
|
+
type BetaFallbackBlock as BetaFallbackBlock,
|
|
6951
|
+
type BetaFallbackBlockParam as BetaFallbackBlockParam,
|
|
6952
|
+
type BetaFallbackCreditNotApplied as BetaFallbackCreditNotApplied,
|
|
6953
|
+
type BetaFallbackCreditRedeemed as BetaFallbackCreditRedeemed,
|
|
6954
|
+
type BetaFallbackCreditTokenParam as BetaFallbackCreditTokenParam,
|
|
6955
|
+
type BetaFallbackCreditUsage as BetaFallbackCreditUsage,
|
|
6956
|
+
type BetaFallbackInfo as BetaFallbackInfo,
|
|
6957
|
+
type BetaFallbackInfoParam as BetaFallbackInfoParam,
|
|
6958
|
+
type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage,
|
|
6959
|
+
type BetaFallbackParam as BetaFallbackParam,
|
|
6960
|
+
type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger,
|
|
6961
|
+
type BetaFallbacksParam as BetaFallbacksParam,
|
|
4427
6962
|
type BetaFileDocumentSource as BetaFileDocumentSource,
|
|
4428
6963
|
type BetaFileImageSource as BetaFileImageSource,
|
|
4429
6964
|
type BetaImageBlockParam as BetaImageBlockParam,
|
|
6965
|
+
type BetaImageTransformationsParam as BetaImageTransformationsParam,
|
|
4430
6966
|
type BetaInputJSONDelta as BetaInputJSONDelta,
|
|
4431
6967
|
type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast,
|
|
4432
6968
|
type BetaInputTokensTrigger as BetaInputTokensTrigger,
|
|
@@ -4453,6 +6989,7 @@ export declare namespace Messages {
|
|
|
4453
6989
|
type BetaMessageTokensCount as BetaMessageTokensCount,
|
|
4454
6990
|
type BetaMetadata as BetaMetadata,
|
|
4455
6991
|
type BetaOutputConfig as BetaOutputConfig,
|
|
6992
|
+
type BetaOutputTokensDetails as BetaOutputTokensDetails,
|
|
4456
6993
|
type BetaPlainTextSource as BetaPlainTextSource,
|
|
4457
6994
|
type BetaRawContentBlockDelta as BetaRawContentBlockDelta,
|
|
4458
6995
|
type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent,
|
|
@@ -4469,6 +7006,8 @@ export declare namespace Messages {
|
|
|
4469
7006
|
type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration,
|
|
4470
7007
|
type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition,
|
|
4471
7008
|
type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam,
|
|
7009
|
+
type BetaRequestToolAdditionBlock as BetaRequestToolAdditionBlock,
|
|
7010
|
+
type BetaRequestToolRemovalBlock as BetaRequestToolRemovalBlock,
|
|
4472
7011
|
type BetaSearchResultBlockParam as BetaSearchResultBlockParam,
|
|
4473
7012
|
type BetaServerToolCaller as BetaServerToolCaller,
|
|
4474
7013
|
type BetaServerToolCaller20260120 as BetaServerToolCaller20260120,
|
|
@@ -4506,6 +7045,9 @@ export declare namespace Messages {
|
|
|
4506
7045
|
type BetaTool as BetaTool,
|
|
4507
7046
|
type BetaToolBash20241022 as BetaToolBash20241022,
|
|
4508
7047
|
type BetaToolBash20250124 as BetaToolBash20250124,
|
|
7048
|
+
type BetaToolChangeMCPToolReference as BetaToolChangeMCPToolReference,
|
|
7049
|
+
type BetaToolChangeMCPToolsetReference as BetaToolChangeMCPToolsetReference,
|
|
7050
|
+
type BetaToolChangeToolReference as BetaToolChangeToolReference,
|
|
4509
7051
|
type BetaToolChoice as BetaToolChoice,
|
|
4510
7052
|
type BetaToolChoiceAny as BetaToolChoiceAny,
|
|
4511
7053
|
type BetaToolChoiceAuto as BetaToolChoiceAuto,
|
|
@@ -4544,6 +7086,7 @@ export declare namespace Messages {
|
|
|
4544
7086
|
type BetaWebFetchTool20250910 as BetaWebFetchTool20250910,
|
|
4545
7087
|
type BetaWebFetchTool20260209 as BetaWebFetchTool20260209,
|
|
4546
7088
|
type BetaWebFetchTool20260309 as BetaWebFetchTool20260309,
|
|
7089
|
+
type BetaWebFetchTool20260318 as BetaWebFetchTool20260318,
|
|
4547
7090
|
type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock,
|
|
4548
7091
|
type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam,
|
|
4549
7092
|
type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock,
|
|
@@ -4553,6 +7096,7 @@ export declare namespace Messages {
|
|
|
4553
7096
|
type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam,
|
|
4554
7097
|
type BetaWebSearchTool20250305 as BetaWebSearchTool20250305,
|
|
4555
7098
|
type BetaWebSearchTool20260209 as BetaWebSearchTool20260209,
|
|
7099
|
+
type BetaWebSearchTool20260318 as BetaWebSearchTool20260318,
|
|
4556
7100
|
type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError,
|
|
4557
7101
|
type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock,
|
|
4558
7102
|
type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent,
|