@code-yeongyu/senpi 2026.8.24 → 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 +98 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +24 -9
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js +2 -1
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/config.d.ts +6 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +24 -14
- package/dist/config.js.map +1 -1
- package/dist/core/agent-abort-provenance.d.ts.map +1 -1
- package/dist/core/agent-abort-provenance.js +5 -1
- package/dist/core/agent-abort-provenance.js.map +1 -1
- package/dist/core/agent-session.d.ts +11 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +154 -29
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts +4 -0
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +35 -8
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/brand.d.ts +2 -0
- package/dist/core/brand.d.ts.map +1 -1
- package/dist/core/brand.js +1 -0
- package/dist/core/brand.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +1 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +24 -8
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/defaults.d.ts +1 -0
- package/dist/core/defaults.d.ts.map +1 -1
- package/dist/core/defaults.js +9 -0
- package/dist/core/defaults.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/dist/core/extensions/builtin/goal/terminal-provider-error.js +1 -1
- package/dist/core/extensions/builtin/goal/terminal-provider-error.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/notice.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/notice.js +5 -1
- package/dist/core/extensions/builtin/loop-guard/notice.js.map +1 -1
- package/dist/core/extensions/builtin/mcp/config-schema.d.ts +2 -2
- package/dist/core/extensions/builtin/ttsr/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/index.js +6 -6
- package/dist/core/extensions/builtin/ttsr/index.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/message-update.d.ts +10 -0
- package/dist/core/extensions/builtin/ttsr/message-update.d.ts.map +1 -0
- package/dist/core/extensions/builtin/ttsr/message-update.js +38 -0
- package/dist/core/extensions/builtin/ttsr/message-update.js.map +1 -0
- package/dist/core/extensions/builtin/ttsr/remediation.d.ts +5 -10
- package/dist/core/extensions/builtin/ttsr/remediation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/remediation.js +19 -3
- package/dist/core/extensions/builtin/ttsr/remediation.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/stream-remediation.d.ts +1 -1
- package/dist/core/extensions/builtin/ttsr/stream-remediation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/stream-remediation.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/types.d.ts +1 -1
- package/dist/core/extensions/builtin/ttsr/types.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/types.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/watch.d.ts +1 -1
- package/dist/core/extensions/builtin/ttsr/watch.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/watch.js +2 -2
- package/dist/core/extensions/builtin/ttsr/watch.js.map +1 -1
- package/dist/core/extensions/index.d.ts +2 -2
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +107 -45
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +17 -6
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js +3 -0
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts +1 -1
- package/dist/core/footer-data-provider.js +1 -1
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/keybindings.d.ts +20 -19
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +26 -5
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-config-schema.d.ts +17 -5
- package/dist/core/model-config-schema.d.ts.map +1 -1
- package/dist/core/model-config-schema.js +1 -1
- package/dist/core/model-config-schema.js.map +1 -1
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +7 -5
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-resolver.d.ts +3 -2
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +3 -2
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts +0 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +0 -18
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/models-store.d.ts.map +1 -1
- package/dist/core/models-store.js +2 -1
- package/dist/core/models-store.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +14 -10
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-manifest.d.ts.map +1 -1
- package/dist/core/pi-manifest.js +2 -1
- package/dist/core/pi-manifest.js.map +1 -1
- package/dist/core/provider-composer.d.ts +2 -0
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +3 -6
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/provider-display-names.d.ts.map +1 -1
- package/dist/core/provider-display-names.js +0 -1
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/provider-timeout-retry.d.ts.map +1 -1
- package/dist/core/provider-timeout-retry.js +8 -12
- package/dist/core/provider-timeout-retry.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +3 -2
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/retry-fallback/profile-override.d.ts +24 -0
- package/dist/core/retry-fallback/profile-override.d.ts.map +1 -0
- package/dist/core/retry-fallback/profile-override.js +138 -0
- package/dist/core/retry-fallback/profile-override.js.map +1 -0
- package/dist/core/retry-fallback/settings.d.ts +1 -0
- package/dist/core/retry-fallback/settings.d.ts.map +1 -1
- package/dist/core/retry-fallback/settings.js.map +1 -1
- package/dist/core/sdk.d.ts +2 -2
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +20 -5
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-export.d.ts +4 -0
- package/dist/core/session-export.d.ts.map +1 -0
- package/dist/core/session-export.js +32 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +2 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-diagnostics.d.ts +9 -0
- package/dist/core/settings-diagnostics.d.ts.map +1 -0
- package/dist/core/settings-diagnostics.js +21 -0
- package/dist/core/settings-diagnostics.js.map +1 -0
- package/dist/core/settings-manager.d.ts +18 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +88 -7
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +2 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +11 -2
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/bash.d.ts +14 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +35 -19
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +0 -5
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +2 -5
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +3 -2
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/index.d.ts +4 -1
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +13 -1
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/powershell.d.ts +16 -0
- package/dist/core/tools/powershell.d.ts.map +1 -0
- package/dist/core/tools/powershell.js +39 -0
- package/dist/core/tools/powershell.js.map +1 -0
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +2 -1
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/extensions/llama/client.d.ts +6 -0
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +7 -0
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts +3 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +27 -6
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +13 -2
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +4 -3
- package/dist/migrations.js.map +1 -1
- package/dist/modes/app-server/daemon/probe.js +1 -1
- package/dist/modes/app-server/daemon/probe.js.map +1 -1
- package/dist/modes/app-server/daemon.js +13 -2
- package/dist/modes/app-server/daemon.js.map +1 -1
- package/dist/modes/app-server/transports/websocket-connection-handler.d.ts.map +1 -1
- package/dist/modes/app-server/transports/websocket-connection-handler.js +4 -0
- package/dist/modes/app-server/transports/websocket-connection-handler.js.map +1 -1
- package/dist/modes/interactive/aborted-error-label.d.ts +2 -0
- package/dist/modes/interactive/aborted-error-label.d.ts.map +1 -1
- package/dist/modes/interactive/aborted-error-label.js +7 -0
- package/dist/modes/interactive/aborted-error-label.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts +15 -3
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +68 -17
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/external-editor.d.ts.map +1 -1
- package/dist/modes/interactive/external-editor.js +2 -1
- package/dist/modes/interactive/external-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +6 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +19 -12
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/json-event.d.ts +16 -13
- package/dist/modes/json-event.d.ts.map +1 -1
- package/dist/modes/json-event.js +20 -6
- package/dist/modes/json-event.js.map +1 -1
- package/dist/modes/rpc/connection-handler.d.ts.map +1 -1
- package/dist/modes/rpc/connection-handler.js +3 -0
- package/dist/modes/rpc/connection-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +7 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +7 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +12 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/package-manager-cli.d.ts +1 -0
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +186 -2
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/frontmatter.d.ts.map +1 -1
- package/dist/utils/frontmatter.js +2 -1
- package/dist/utils/frontmatter.js.map +1 -1
- package/dist/utils/shell.d.ts +3 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +17 -5
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +1 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +60 -1
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/text.d.ts +8 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +9 -0
- package/dist/utils/text.js.map +1 -0
- package/docs/compaction.md +0 -2
- package/docs/custom-provider.md +6 -6
- package/docs/environment-variables.md +8 -8
- package/docs/extensions.md +6 -5
- package/docs/json.md +7 -2
- package/docs/keybindings.md +1 -1
- package/docs/packages.md +2 -2
- package/docs/rpc.md +32 -3
- package/docs/sdk.md +7 -2
- package/docs/settings.md +9 -1
- package/docs/terminal-setup.md +11 -9
- package/docs/usage.md +4 -1
- package/docs/windows.md +24 -2
- 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 +24 -0
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
- package/node_modules/@code-yeongyu/senpi-codemode/src/extension/session-manager-proxy.ts +39 -5
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +7 -4
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +2 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +7 -6
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.d.ts +4 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.js +8 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +5 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +1 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +25 -13
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +91 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +93 -54
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +2 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js +97 -46
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +1 -14
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.d.ts +50 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.js +129 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.d.ts +8 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.js +16 -3
- package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +10 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.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/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.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/opengateway.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/dist/providers/data/zai-coding-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +8 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +16 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +17 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.d.ts +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.js +24 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.d.ts +36 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.js +109 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.d.ts +12 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.js +109 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.d.ts +9 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.d.ts +46 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.js +41 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.d.ts +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.js +93 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.d.ts +121 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.js +11 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +12 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +25 -5
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js +15 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/package.json +21 -17
- package/node_modules/@earendil-works/pi-pty/dist/index.d.ts +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.d.ts +30 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.js +76 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.js.map +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-types.d.ts +3 -1
- package/node_modules/@earendil-works/pi-pty/dist/session-types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session-types.js.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session.d.ts +2 -0
- package/node_modules/@earendil-works/pi-pty/dist/session.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session.js +19 -9
- package/node_modules/@earendil-works/pi-pty/dist/session.js.map +1 -1
- package/node_modules/@earendil-works/pi-pty/package.json +1 -1
- package/node_modules/@earendil-works/pi-telemetry/package.json +3 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +8 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +24 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +2 -8
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts +7 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +4 -10
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +5 -5
- 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 +100 -89
- package/dist/core/radius.d.ts +0 -2
- package/dist/core/radius.d.ts.map +0 -1
- package/dist/core/radius.js +0 -2
- package/dist/core/radius.js.map +0 -1
- 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
|
@@ -5,7 +5,7 @@ import { APIResource } from '../../core/resource';
|
|
|
5
5
|
import { Stream } from '../../core/streaming';
|
|
6
6
|
import { buildHeaders } from '../../internal/headers';
|
|
7
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
-
import { stainlessHelperHeader } from '../../
|
|
8
|
+
import { stainlessHelperHeader } from '../../internal/stainless-helper-header';
|
|
9
9
|
import { MessageStream } from '../../lib/MessageStream';
|
|
10
10
|
import {
|
|
11
11
|
parseMessage,
|
|
@@ -44,30 +44,31 @@ export class Messages extends APIResource {
|
|
|
44
44
|
* conversations.
|
|
45
45
|
*
|
|
46
46
|
* Learn more about the Messages API in our
|
|
47
|
-
* [user guide](https://
|
|
47
|
+
* [user guide](https://platform.claude.com/docs/en/get-started)
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
51
51
|
* const message = await client.messages.create({
|
|
52
52
|
* max_tokens: 1024,
|
|
53
53
|
* messages: [{ content: 'Hello, world', role: 'user' }],
|
|
54
|
-
* model: 'claude-opus-
|
|
54
|
+
* model: 'claude-opus-5',
|
|
55
55
|
* });
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
create(
|
|
58
|
+
create(params: MessageCreateParamsNonStreaming, options?: RequestOptions): APIPromise<Message>;
|
|
59
59
|
create(
|
|
60
|
-
|
|
60
|
+
params: MessageCreateParamsStreaming,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): APIPromise<Stream<RawMessageStreamEvent>>;
|
|
63
63
|
create(
|
|
64
|
-
|
|
64
|
+
params: MessageCreateParamsBase,
|
|
65
65
|
options?: RequestOptions,
|
|
66
66
|
): APIPromise<Stream<RawMessageStreamEvent> | Message>;
|
|
67
67
|
create(
|
|
68
|
-
|
|
68
|
+
params: MessageCreateParams,
|
|
69
69
|
options?: RequestOptions,
|
|
70
70
|
): APIPromise<Message> | APIPromise<Stream<RawMessageStreamEvent>> {
|
|
71
|
+
const { user_profile_id, ...body } = params;
|
|
71
72
|
if (body.model in DEPRECATED_MODELS) {
|
|
72
73
|
console.warn(
|
|
73
74
|
`The model '${body.model}' is deprecated and will reach end-of-life on ${
|
|
@@ -85,7 +86,7 @@ export class Messages extends APIResource {
|
|
|
85
86
|
);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
let timeout = (this._client as any)._options.timeout as number | null;
|
|
89
|
+
let timeout = options?.timeout ?? ((this._client as any)._options.timeout as number | null);
|
|
89
90
|
if (!body.stream && timeout == null) {
|
|
90
91
|
const maxNonstreamingTokens = MODEL_NONSTREAMING_TOKENS[body.model] ?? undefined;
|
|
91
92
|
timeout = this._client.calculateNonstreamingTimeout(body.max_tokens, maxNonstreamingTokens);
|
|
@@ -93,13 +94,16 @@ export class Messages extends APIResource {
|
|
|
93
94
|
|
|
94
95
|
// Collect helper info from tools and messages
|
|
95
96
|
const helperHeader = stainlessHelperHeader(body.tools, body.messages);
|
|
96
|
-
|
|
97
97
|
return this._client.post('/v1/messages', {
|
|
98
98
|
body,
|
|
99
99
|
timeout: timeout ?? 600000,
|
|
100
100
|
...options,
|
|
101
|
-
headers: buildHeaders([
|
|
102
|
-
|
|
101
|
+
headers: buildHeaders([
|
|
102
|
+
{ ...(user_profile_id != null ? { 'anthropic-user-profile-id': user_profile_id } : undefined) },
|
|
103
|
+
helperHeader,
|
|
104
|
+
options?.headers,
|
|
105
|
+
]),
|
|
106
|
+
stream: params.stream ?? false,
|
|
103
107
|
}) as APIPromise<Message> | APIPromise<Stream<RawMessageStreamEvent>>;
|
|
104
108
|
}
|
|
105
109
|
|
|
@@ -170,19 +174,27 @@ export class Messages extends APIResource {
|
|
|
170
174
|
* including tools, images, and documents, without creating it.
|
|
171
175
|
*
|
|
172
176
|
* Learn more about token counting in our
|
|
173
|
-
* [user guide](https://
|
|
177
|
+
* [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
|
|
174
178
|
*
|
|
175
179
|
* @example
|
|
176
180
|
* ```ts
|
|
177
181
|
* const messageTokensCount =
|
|
178
182
|
* await client.messages.countTokens({
|
|
179
183
|
* messages: [{ content: 'Hello, world', role: 'user' }],
|
|
180
|
-
* model: 'claude-opus-
|
|
184
|
+
* model: 'claude-opus-5',
|
|
181
185
|
* });
|
|
182
186
|
* ```
|
|
183
187
|
*/
|
|
184
|
-
countTokens(
|
|
185
|
-
|
|
188
|
+
countTokens(params: MessageCountTokensParams, options?: RequestOptions): APIPromise<MessageTokensCount> {
|
|
189
|
+
const { user_profile_id, ...body } = params;
|
|
190
|
+
return this._client.post('/v1/messages/count_tokens', {
|
|
191
|
+
body,
|
|
192
|
+
...options,
|
|
193
|
+
headers: buildHeaders([
|
|
194
|
+
{ ...(user_profile_id != null ? { 'anthropic-user-profile-id': user_profile_id } : undefined) },
|
|
195
|
+
options?.headers,
|
|
196
|
+
]),
|
|
197
|
+
});
|
|
186
198
|
}
|
|
187
199
|
}
|
|
188
200
|
|
|
@@ -278,164 +290,1142 @@ export interface BashCodeExecutionToolResultErrorParam {
|
|
|
278
290
|
type: 'bash_code_execution_tool_result_error';
|
|
279
291
|
}
|
|
280
292
|
|
|
281
|
-
|
|
282
|
-
|
|
293
|
+
/**
|
|
294
|
+
* `close_tab`'s config overrides.
|
|
295
|
+
*/
|
|
296
|
+
export interface BrowserCloseTabConfig {
|
|
297
|
+
/**
|
|
298
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
299
|
+
* member of the toolset.
|
|
300
|
+
*/
|
|
301
|
+
defer_loading?: boolean | null;
|
|
283
302
|
|
|
284
303
|
/**
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
* - `5m`: 5 minutes
|
|
290
|
-
* - `1h`: 1 hour
|
|
291
|
-
*
|
|
292
|
-
* Defaults to `5m`.
|
|
304
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
305
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
306
|
+
* the served schema.
|
|
293
307
|
*/
|
|
294
|
-
|
|
308
|
+
enabled?: boolean | null;
|
|
295
309
|
}
|
|
296
310
|
|
|
297
|
-
|
|
311
|
+
/**
|
|
312
|
+
* `double_click`'s config overrides.
|
|
313
|
+
*/
|
|
314
|
+
export interface BrowserDoubleClickConfig {
|
|
298
315
|
/**
|
|
299
|
-
*
|
|
316
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
317
|
+
* member of the toolset.
|
|
300
318
|
*/
|
|
301
|
-
|
|
319
|
+
defer_loading?: boolean | null;
|
|
302
320
|
|
|
303
321
|
/**
|
|
304
|
-
*
|
|
322
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
323
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
324
|
+
* the served schema.
|
|
305
325
|
*/
|
|
306
|
-
|
|
326
|
+
enabled?: boolean | null;
|
|
307
327
|
}
|
|
308
328
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
329
|
+
/**
|
|
330
|
+
* `file_upload`'s config overrides.
|
|
331
|
+
*/
|
|
332
|
+
export interface BrowserFileUploadConfig {
|
|
333
|
+
/**
|
|
334
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
335
|
+
* member of the toolset.
|
|
336
|
+
*/
|
|
337
|
+
defer_loading?: boolean | null;
|
|
313
338
|
|
|
314
|
-
|
|
339
|
+
/**
|
|
340
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
341
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
342
|
+
* the served schema.
|
|
343
|
+
*/
|
|
344
|
+
enabled?: boolean | null;
|
|
345
|
+
}
|
|
315
346
|
|
|
316
|
-
|
|
347
|
+
/**
|
|
348
|
+
* `find`'s config overrides.
|
|
349
|
+
*/
|
|
350
|
+
export interface BrowserFindConfig {
|
|
351
|
+
/**
|
|
352
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
353
|
+
* member of the toolset.
|
|
354
|
+
*/
|
|
355
|
+
defer_loading?: boolean | null;
|
|
317
356
|
|
|
318
|
-
|
|
357
|
+
/**
|
|
358
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
359
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
360
|
+
* the served schema.
|
|
361
|
+
*/
|
|
362
|
+
enabled?: boolean | null;
|
|
363
|
+
}
|
|
319
364
|
|
|
320
|
-
|
|
365
|
+
/**
|
|
366
|
+
* `form_input`'s config overrides.
|
|
367
|
+
*/
|
|
368
|
+
export interface BrowserFormInputConfig {
|
|
369
|
+
/**
|
|
370
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
371
|
+
* member of the toolset.
|
|
372
|
+
*/
|
|
373
|
+
defer_loading?: boolean | null;
|
|
321
374
|
|
|
322
|
-
|
|
375
|
+
/**
|
|
376
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
377
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
378
|
+
* the served schema.
|
|
379
|
+
*/
|
|
380
|
+
enabled?: boolean | null;
|
|
323
381
|
}
|
|
324
382
|
|
|
325
|
-
|
|
326
|
-
|
|
383
|
+
/**
|
|
384
|
+
* `get_page_text`'s config overrides.
|
|
385
|
+
*/
|
|
386
|
+
export interface BrowserGetPageTextConfig {
|
|
387
|
+
/**
|
|
388
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
389
|
+
* member of the toolset.
|
|
390
|
+
*/
|
|
391
|
+
defer_loading?: boolean | null;
|
|
327
392
|
|
|
328
|
-
|
|
393
|
+
/**
|
|
394
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
395
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
396
|
+
* the served schema.
|
|
397
|
+
*/
|
|
398
|
+
enabled?: boolean | null;
|
|
399
|
+
}
|
|
329
400
|
|
|
330
|
-
|
|
401
|
+
/**
|
|
402
|
+
* `hold_key`'s config overrides.
|
|
403
|
+
*/
|
|
404
|
+
export interface BrowserHoldKeyConfig {
|
|
405
|
+
/**
|
|
406
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
407
|
+
* member of the toolset.
|
|
408
|
+
*/
|
|
409
|
+
defer_loading?: boolean | null;
|
|
331
410
|
|
|
332
|
-
|
|
411
|
+
/**
|
|
412
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
413
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
414
|
+
* the served schema.
|
|
415
|
+
*/
|
|
416
|
+
enabled?: boolean | null;
|
|
417
|
+
}
|
|
333
418
|
|
|
334
|
-
|
|
419
|
+
/**
|
|
420
|
+
* `hover`'s config overrides.
|
|
421
|
+
*/
|
|
422
|
+
export interface BrowserHoverConfig {
|
|
423
|
+
/**
|
|
424
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
425
|
+
* member of the toolset.
|
|
426
|
+
*/
|
|
427
|
+
defer_loading?: boolean | null;
|
|
335
428
|
|
|
336
|
-
|
|
429
|
+
/**
|
|
430
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
431
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
432
|
+
* the served schema.
|
|
433
|
+
*/
|
|
434
|
+
enabled?: boolean | null;
|
|
337
435
|
}
|
|
338
436
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
437
|
+
/**
|
|
438
|
+
* `javascript_exec`'s config overrides.
|
|
439
|
+
*/
|
|
440
|
+
export interface BrowserJavascriptExecConfig {
|
|
441
|
+
/**
|
|
442
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
443
|
+
* member of the toolset.
|
|
444
|
+
*/
|
|
445
|
+
defer_loading?: boolean | null;
|
|
343
446
|
|
|
344
|
-
|
|
447
|
+
/**
|
|
448
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
449
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
450
|
+
* the served schema.
|
|
451
|
+
*/
|
|
452
|
+
enabled?: boolean | null;
|
|
453
|
+
}
|
|
345
454
|
|
|
346
|
-
|
|
455
|
+
/**
|
|
456
|
+
* `key`'s config overrides.
|
|
457
|
+
*/
|
|
458
|
+
export interface BrowserKeyConfig {
|
|
459
|
+
/**
|
|
460
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
461
|
+
* member of the toolset.
|
|
462
|
+
*/
|
|
463
|
+
defer_loading?: boolean | null;
|
|
347
464
|
|
|
348
|
-
|
|
465
|
+
/**
|
|
466
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
467
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
468
|
+
* the served schema.
|
|
469
|
+
*/
|
|
470
|
+
enabled?: boolean | null;
|
|
471
|
+
}
|
|
349
472
|
|
|
350
|
-
|
|
473
|
+
/**
|
|
474
|
+
* `left_click`'s config overrides.
|
|
475
|
+
*/
|
|
476
|
+
export interface BrowserLeftClickConfig {
|
|
477
|
+
/**
|
|
478
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
479
|
+
* member of the toolset.
|
|
480
|
+
*/
|
|
481
|
+
defer_loading?: boolean | null;
|
|
351
482
|
|
|
352
|
-
|
|
483
|
+
/**
|
|
484
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
485
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
486
|
+
* the served schema.
|
|
487
|
+
*/
|
|
488
|
+
enabled?: boolean | null;
|
|
353
489
|
}
|
|
354
490
|
|
|
355
|
-
|
|
356
|
-
|
|
491
|
+
/**
|
|
492
|
+
* `left_click_drag`'s config overrides.
|
|
493
|
+
*/
|
|
494
|
+
export interface BrowserLeftClickDragConfig {
|
|
495
|
+
/**
|
|
496
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
497
|
+
* member of the toolset.
|
|
498
|
+
*/
|
|
499
|
+
defer_loading?: boolean | null;
|
|
357
500
|
|
|
358
|
-
|
|
501
|
+
/**
|
|
502
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
503
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
504
|
+
* the served schema.
|
|
505
|
+
*/
|
|
506
|
+
enabled?: boolean | null;
|
|
507
|
+
}
|
|
359
508
|
|
|
360
|
-
|
|
509
|
+
/**
|
|
510
|
+
* `left_mouse_down`'s config overrides.
|
|
511
|
+
*/
|
|
512
|
+
export interface BrowserLeftMouseDownConfig {
|
|
513
|
+
/**
|
|
514
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
515
|
+
* member of the toolset.
|
|
516
|
+
*/
|
|
517
|
+
defer_loading?: boolean | null;
|
|
361
518
|
|
|
362
|
-
|
|
519
|
+
/**
|
|
520
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
521
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
522
|
+
* the served schema.
|
|
523
|
+
*/
|
|
524
|
+
enabled?: boolean | null;
|
|
525
|
+
}
|
|
363
526
|
|
|
364
|
-
|
|
527
|
+
/**
|
|
528
|
+
* `left_mouse_up`'s config overrides.
|
|
529
|
+
*/
|
|
530
|
+
export interface BrowserLeftMouseUpConfig {
|
|
531
|
+
/**
|
|
532
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
533
|
+
* member of the toolset.
|
|
534
|
+
*/
|
|
535
|
+
defer_loading?: boolean | null;
|
|
365
536
|
|
|
366
|
-
|
|
537
|
+
/**
|
|
538
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
539
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
540
|
+
* the served schema.
|
|
541
|
+
*/
|
|
542
|
+
enabled?: boolean | null;
|
|
367
543
|
}
|
|
368
544
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
545
|
+
/**
|
|
546
|
+
* `list_tabs`'s config overrides.
|
|
547
|
+
*/
|
|
548
|
+
export interface BrowserListTabsConfig {
|
|
549
|
+
/**
|
|
550
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
551
|
+
* member of the toolset.
|
|
552
|
+
*/
|
|
553
|
+
defer_loading?: boolean | null;
|
|
373
554
|
|
|
374
|
-
|
|
555
|
+
/**
|
|
556
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
557
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
558
|
+
* the served schema.
|
|
559
|
+
*/
|
|
560
|
+
enabled?: boolean | null;
|
|
561
|
+
}
|
|
375
562
|
|
|
376
|
-
|
|
563
|
+
/**
|
|
564
|
+
* `middle_click`'s config overrides.
|
|
565
|
+
*/
|
|
566
|
+
export interface BrowserMiddleClickConfig {
|
|
567
|
+
/**
|
|
568
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
569
|
+
* member of the toolset.
|
|
570
|
+
*/
|
|
571
|
+
defer_loading?: boolean | null;
|
|
377
572
|
|
|
378
|
-
|
|
573
|
+
/**
|
|
574
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
575
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
576
|
+
* the served schema.
|
|
577
|
+
*/
|
|
578
|
+
enabled?: boolean | null;
|
|
579
|
+
}
|
|
379
580
|
|
|
380
|
-
|
|
581
|
+
/**
|
|
582
|
+
* `mouse_move`'s config overrides.
|
|
583
|
+
*/
|
|
584
|
+
export interface BrowserMouseMoveConfig {
|
|
585
|
+
/**
|
|
586
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
587
|
+
* member of the toolset.
|
|
588
|
+
*/
|
|
589
|
+
defer_loading?: boolean | null;
|
|
381
590
|
|
|
382
|
-
|
|
591
|
+
/**
|
|
592
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
593
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
594
|
+
* the served schema.
|
|
595
|
+
*/
|
|
596
|
+
enabled?: boolean | null;
|
|
383
597
|
}
|
|
384
598
|
|
|
385
|
-
|
|
386
|
-
|
|
599
|
+
/**
|
|
600
|
+
* `navigate`'s config overrides.
|
|
601
|
+
*/
|
|
602
|
+
export interface BrowserNavigateConfig {
|
|
603
|
+
/**
|
|
604
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
605
|
+
* member of the toolset.
|
|
606
|
+
*/
|
|
607
|
+
defer_loading?: boolean | null;
|
|
387
608
|
|
|
388
|
-
|
|
609
|
+
/**
|
|
610
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
611
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
612
|
+
* the served schema.
|
|
613
|
+
*/
|
|
614
|
+
enabled?: boolean | null;
|
|
615
|
+
}
|
|
389
616
|
|
|
390
|
-
|
|
617
|
+
/**
|
|
618
|
+
* `new_tab`'s config overrides.
|
|
619
|
+
*/
|
|
620
|
+
export interface BrowserNewTabConfig {
|
|
621
|
+
/**
|
|
622
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
623
|
+
* member of the toolset.
|
|
624
|
+
*/
|
|
625
|
+
defer_loading?: boolean | null;
|
|
391
626
|
|
|
392
|
-
|
|
627
|
+
/**
|
|
628
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
629
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
630
|
+
* the served schema.
|
|
631
|
+
*/
|
|
632
|
+
enabled?: boolean | null;
|
|
633
|
+
}
|
|
393
634
|
|
|
394
|
-
|
|
635
|
+
/**
|
|
636
|
+
* `read_console`'s config overrides.
|
|
637
|
+
*/
|
|
638
|
+
export interface BrowserReadConsoleConfig {
|
|
639
|
+
/**
|
|
640
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
641
|
+
* member of the toolset.
|
|
642
|
+
*/
|
|
643
|
+
defer_loading?: boolean | null;
|
|
395
644
|
|
|
396
|
-
|
|
645
|
+
/**
|
|
646
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
647
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
648
|
+
* the served schema.
|
|
649
|
+
*/
|
|
650
|
+
enabled?: boolean | null;
|
|
397
651
|
}
|
|
398
652
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
653
|
+
/**
|
|
654
|
+
* `read_network`'s config overrides.
|
|
655
|
+
*/
|
|
656
|
+
export interface BrowserReadNetworkConfig {
|
|
657
|
+
/**
|
|
658
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
659
|
+
* member of the toolset.
|
|
660
|
+
*/
|
|
661
|
+
defer_loading?: boolean | null;
|
|
403
662
|
|
|
404
|
-
|
|
663
|
+
/**
|
|
664
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
665
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
666
|
+
* the served schema.
|
|
667
|
+
*/
|
|
668
|
+
enabled?: boolean | null;
|
|
669
|
+
}
|
|
405
670
|
|
|
406
|
-
|
|
671
|
+
/**
|
|
672
|
+
* `read_page`'s config overrides.
|
|
673
|
+
*/
|
|
674
|
+
export interface BrowserReadPageConfig {
|
|
675
|
+
/**
|
|
676
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
677
|
+
* member of the toolset.
|
|
678
|
+
*/
|
|
679
|
+
defer_loading?: boolean | null;
|
|
407
680
|
|
|
408
|
-
|
|
681
|
+
/**
|
|
682
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
683
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
684
|
+
* the served schema.
|
|
685
|
+
*/
|
|
686
|
+
enabled?: boolean | null;
|
|
687
|
+
}
|
|
409
688
|
|
|
410
|
-
|
|
689
|
+
/**
|
|
690
|
+
* `right_click`'s config overrides.
|
|
691
|
+
*/
|
|
692
|
+
export interface BrowserRightClickConfig {
|
|
693
|
+
/**
|
|
694
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
695
|
+
* member of the toolset.
|
|
696
|
+
*/
|
|
697
|
+
defer_loading?: boolean | null;
|
|
411
698
|
|
|
412
|
-
|
|
699
|
+
/**
|
|
700
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
701
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
702
|
+
* the served schema.
|
|
703
|
+
*/
|
|
704
|
+
enabled?: boolean | null;
|
|
413
705
|
}
|
|
414
706
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
707
|
+
/**
|
|
708
|
+
* `screenshot`'s config overrides.
|
|
709
|
+
*/
|
|
710
|
+
export interface BrowserScreenshotConfig {
|
|
711
|
+
/**
|
|
712
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
713
|
+
* member of the toolset.
|
|
714
|
+
*/
|
|
715
|
+
defer_loading?: boolean | null;
|
|
419
716
|
|
|
420
|
-
|
|
717
|
+
/**
|
|
718
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
719
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
720
|
+
* the served schema.
|
|
721
|
+
*/
|
|
722
|
+
enabled?: boolean | null;
|
|
723
|
+
}
|
|
421
724
|
|
|
422
|
-
|
|
725
|
+
/**
|
|
726
|
+
* `scroll`'s config overrides.
|
|
727
|
+
*/
|
|
728
|
+
export interface BrowserScrollConfig {
|
|
729
|
+
/**
|
|
730
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
731
|
+
* member of the toolset.
|
|
732
|
+
*/
|
|
733
|
+
defer_loading?: boolean | null;
|
|
423
734
|
|
|
424
|
-
|
|
735
|
+
/**
|
|
736
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
737
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
738
|
+
* the served schema.
|
|
739
|
+
*/
|
|
740
|
+
enabled?: boolean | null;
|
|
425
741
|
}
|
|
426
742
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
743
|
+
/**
|
|
744
|
+
* `scroll_to`'s config overrides.
|
|
745
|
+
*/
|
|
746
|
+
export interface BrowserScrollToConfig {
|
|
747
|
+
/**
|
|
748
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
749
|
+
* member of the toolset.
|
|
750
|
+
*/
|
|
751
|
+
defer_loading?: boolean | null;
|
|
430
752
|
|
|
431
|
-
|
|
432
|
-
|
|
753
|
+
/**
|
|
754
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
755
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
756
|
+
* the served schema.
|
|
757
|
+
*/
|
|
758
|
+
enabled?: boolean | null;
|
|
433
759
|
}
|
|
434
760
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
761
|
+
/**
|
|
762
|
+
* The caller's browser state after a browser toolset member call — the full
|
|
763
|
+
* inventory of open tabs, which tab is active, and any side effects (tabs opened,
|
|
764
|
+
* download state changes) the call produced.
|
|
765
|
+
*
|
|
766
|
+
* At most one per `tool_result`, only on a non-error result answering a browser
|
|
767
|
+
* toolset member `tool_use`. The server renders the model-visible text from it;
|
|
768
|
+
* the model never sees the raw fields.
|
|
769
|
+
*/
|
|
770
|
+
export interface BrowserStateBlockParam {
|
|
771
|
+
/**
|
|
772
|
+
* All tabs open in the browser after this call — the full inventory, not a delta.
|
|
773
|
+
* May be empty. Whenever non-empty, exactly one entry carries `active: true`.
|
|
774
|
+
*/
|
|
775
|
+
tabs: Array<BrowserStateTabEntry>;
|
|
776
|
+
|
|
777
|
+
type: 'browser_state';
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Create a cache control breakpoint at this content block.
|
|
781
|
+
*/
|
|
782
|
+
cache_control?: CacheControlEphemeral | null;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Tabs opened and download state changes during this call. "Nothing to report" is
|
|
786
|
+
* expressed by omitting the field, never by an empty list.
|
|
787
|
+
*/
|
|
788
|
+
state_changes?: Array<BrowserStateChange> | null;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
793
|
+
* delta of the `tabs` inventory, not an event log.
|
|
794
|
+
*
|
|
795
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
796
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
797
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
798
|
+
*/
|
|
799
|
+
export type BrowserStateChange =
|
|
800
|
+
| BrowserStateChangeTabOpened
|
|
801
|
+
| BrowserStateChangeDownloadStarted
|
|
802
|
+
| BrowserStateChangeDownloadCompleted
|
|
803
|
+
| BrowserStateChangeDownloadFailed;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* A file download that finished during this call, reported with the same
|
|
807
|
+
* `download_id` as its `download_started` — or without a prior `download_started`,
|
|
808
|
+
* when the download finished during the call that started it (at most one state
|
|
809
|
+
* change per `download_id` per result).
|
|
810
|
+
*/
|
|
811
|
+
export interface BrowserStateChangeDownloadCompleted {
|
|
812
|
+
/**
|
|
813
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
814
|
+
* changes reporting it.
|
|
815
|
+
*/
|
|
816
|
+
download_id: string;
|
|
817
|
+
|
|
818
|
+
type: 'download_completed';
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* The final post-redirect URL the download was served from.
|
|
822
|
+
*/
|
|
823
|
+
url: string;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Where the executor saved the file, on the executor's filesystem. Only included
|
|
827
|
+
* when another tool in the same environment can read the file at that path.
|
|
828
|
+
*/
|
|
829
|
+
path?: string | null;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* The completed download's size.
|
|
833
|
+
*/
|
|
834
|
+
size_bytes?: number | null;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* A file download that failed — or was cancelled — during this call.
|
|
839
|
+
*/
|
|
840
|
+
export interface BrowserStateChangeDownloadFailed {
|
|
841
|
+
/**
|
|
842
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
843
|
+
* changes reporting it.
|
|
844
|
+
*/
|
|
845
|
+
download_id: string;
|
|
846
|
+
|
|
847
|
+
type: 'download_failed';
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* The final post-redirect URL the download was served from.
|
|
851
|
+
*/
|
|
852
|
+
url: string;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* The failure or cancellation detail, when known.
|
|
856
|
+
*/
|
|
857
|
+
error?: string | null;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* A file download that started during this call.
|
|
862
|
+
*/
|
|
863
|
+
export interface BrowserStateChangeDownloadStarted {
|
|
864
|
+
/**
|
|
865
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
866
|
+
* changes reporting it.
|
|
867
|
+
*/
|
|
868
|
+
download_id: string;
|
|
869
|
+
|
|
870
|
+
type: 'download_started';
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* The final post-redirect URL the download was served from.
|
|
874
|
+
*/
|
|
875
|
+
url: string;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
880
|
+
* delta of the `tabs` inventory, not an event log.
|
|
881
|
+
*
|
|
882
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
883
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
884
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
885
|
+
*/
|
|
886
|
+
export interface BrowserStateChangeTabOpened {
|
|
887
|
+
/**
|
|
888
|
+
* The `tab_id` of the opened tab, present in `tabs`.
|
|
889
|
+
*/
|
|
890
|
+
tab_id: string;
|
|
891
|
+
|
|
892
|
+
type: 'tab_opened';
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* One open browser tab reported in a `browser_state` block's `tabs` inventory.
|
|
897
|
+
*
|
|
898
|
+
* `tab_id` is the caller-assigned identifier for the tab; `title` and `url`
|
|
899
|
+
* describe the page the tab is currently showing and may be empty strings (a blank
|
|
900
|
+
* tab legitimately has both empty). `active` marks the tab that is active after
|
|
901
|
+
* this call; whenever `tabs` is non-empty, exactly one entry is marked.
|
|
902
|
+
*/
|
|
903
|
+
export interface BrowserStateTabEntry {
|
|
904
|
+
/**
|
|
905
|
+
* The caller-assigned identifier for this tab, unique within the inventory.
|
|
906
|
+
*/
|
|
907
|
+
tab_id: string;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* The title of the page the tab is showing. May be empty.
|
|
911
|
+
*/
|
|
912
|
+
title: string;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* The URL of the page the tab is showing. May be empty.
|
|
916
|
+
*/
|
|
917
|
+
url: string;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Whether this tab is the active tab after this call. Whenever `tabs` is
|
|
921
|
+
* non-empty, exactly one entry is marked `active: true`.
|
|
922
|
+
*/
|
|
923
|
+
active?: boolean;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* `switch_tab`'s config overrides.
|
|
928
|
+
*/
|
|
929
|
+
export interface BrowserSwitchTabConfig {
|
|
930
|
+
/**
|
|
931
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
932
|
+
* member of the toolset.
|
|
933
|
+
*/
|
|
934
|
+
defer_loading?: boolean | null;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
938
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
939
|
+
* the served schema.
|
|
940
|
+
*/
|
|
941
|
+
enabled?: boolean | null;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The browser toolset: a single `tools[]` entry (carrying no `name`) that declares
|
|
946
|
+
* the browser tool family. The model is served the family's tool with any members
|
|
947
|
+
* disabled via `configs` removed from its schema.
|
|
948
|
+
*/
|
|
949
|
+
export interface BrowserToolset20260801 {
|
|
950
|
+
type: 'browser_toolset_20260801';
|
|
951
|
+
|
|
952
|
+
allowed_callers?: Array<
|
|
953
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
954
|
+
>;
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Create a cache control breakpoint at this content block.
|
|
958
|
+
*/
|
|
959
|
+
cache_control?: CacheControlEphemeral | null;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
963
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
964
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
965
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
966
|
+
* toolset version's complete member set.
|
|
967
|
+
*/
|
|
968
|
+
configs?: BrowserToolsetConfigs | null;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
973
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
974
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
975
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
976
|
+
* toolset version's complete member set.
|
|
977
|
+
*/
|
|
978
|
+
export interface BrowserToolsetConfigs {
|
|
979
|
+
/**
|
|
980
|
+
* `close_tab`'s config overrides.
|
|
981
|
+
*/
|
|
982
|
+
close_tab?: BrowserCloseTabConfig | null;
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* `double_click`'s config overrides.
|
|
986
|
+
*/
|
|
987
|
+
double_click?: BrowserDoubleClickConfig | null;
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* `file_upload`'s config overrides.
|
|
991
|
+
*/
|
|
992
|
+
file_upload?: BrowserFileUploadConfig | null;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* `find`'s config overrides.
|
|
996
|
+
*/
|
|
997
|
+
find?: BrowserFindConfig | null;
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* `form_input`'s config overrides.
|
|
1001
|
+
*/
|
|
1002
|
+
form_input?: BrowserFormInputConfig | null;
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* `get_page_text`'s config overrides.
|
|
1006
|
+
*/
|
|
1007
|
+
get_page_text?: BrowserGetPageTextConfig | null;
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* `hold_key`'s config overrides.
|
|
1011
|
+
*/
|
|
1012
|
+
hold_key?: BrowserHoldKeyConfig | null;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* `hover`'s config overrides.
|
|
1016
|
+
*/
|
|
1017
|
+
hover?: BrowserHoverConfig | null;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* `javascript_exec`'s config overrides.
|
|
1021
|
+
*/
|
|
1022
|
+
javascript_exec?: BrowserJavascriptExecConfig | null;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* `key`'s config overrides.
|
|
1026
|
+
*/
|
|
1027
|
+
key?: BrowserKeyConfig | null;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* `left_click`'s config overrides.
|
|
1031
|
+
*/
|
|
1032
|
+
left_click?: BrowserLeftClickConfig | null;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* `left_click_drag`'s config overrides.
|
|
1036
|
+
*/
|
|
1037
|
+
left_click_drag?: BrowserLeftClickDragConfig | null;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* `left_mouse_down`'s config overrides.
|
|
1041
|
+
*/
|
|
1042
|
+
left_mouse_down?: BrowserLeftMouseDownConfig | null;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* `left_mouse_up`'s config overrides.
|
|
1046
|
+
*/
|
|
1047
|
+
left_mouse_up?: BrowserLeftMouseUpConfig | null;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* `list_tabs`'s config overrides.
|
|
1051
|
+
*/
|
|
1052
|
+
list_tabs?: BrowserListTabsConfig | null;
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* `middle_click`'s config overrides.
|
|
1056
|
+
*/
|
|
1057
|
+
middle_click?: BrowserMiddleClickConfig | null;
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* `mouse_move`'s config overrides.
|
|
1061
|
+
*/
|
|
1062
|
+
mouse_move?: BrowserMouseMoveConfig | null;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* `navigate`'s config overrides.
|
|
1066
|
+
*/
|
|
1067
|
+
navigate?: BrowserNavigateConfig | null;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* `new_tab`'s config overrides.
|
|
1071
|
+
*/
|
|
1072
|
+
new_tab?: BrowserNewTabConfig | null;
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* `read_console`'s config overrides.
|
|
1076
|
+
*/
|
|
1077
|
+
read_console?: BrowserReadConsoleConfig | null;
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* `read_network`'s config overrides.
|
|
1081
|
+
*/
|
|
1082
|
+
read_network?: BrowserReadNetworkConfig | null;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* `read_page`'s config overrides.
|
|
1086
|
+
*/
|
|
1087
|
+
read_page?: BrowserReadPageConfig | null;
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* `right_click`'s config overrides.
|
|
1091
|
+
*/
|
|
1092
|
+
right_click?: BrowserRightClickConfig | null;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* `screenshot`'s config overrides.
|
|
1096
|
+
*/
|
|
1097
|
+
screenshot?: BrowserScreenshotConfig | null;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* `scroll`'s config overrides.
|
|
1101
|
+
*/
|
|
1102
|
+
scroll?: BrowserScrollConfig | null;
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* `scroll_to`'s config overrides.
|
|
1106
|
+
*/
|
|
1107
|
+
scroll_to?: BrowserScrollToConfig | null;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* `switch_tab`'s config overrides.
|
|
1111
|
+
*/
|
|
1112
|
+
switch_tab?: BrowserSwitchTabConfig | null;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* `triple_click`'s config overrides.
|
|
1116
|
+
*/
|
|
1117
|
+
triple_click?: BrowserTripleClickConfig | null;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* `type`'s config overrides.
|
|
1121
|
+
*/
|
|
1122
|
+
type?: BrowserTypeConfig | null;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* `wait`'s config overrides.
|
|
1126
|
+
*/
|
|
1127
|
+
wait?: BrowserWaitConfig | null;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* `zoom`'s config overrides.
|
|
1131
|
+
*/
|
|
1132
|
+
zoom?: BrowserZoomConfig | null;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* `triple_click`'s config overrides.
|
|
1137
|
+
*/
|
|
1138
|
+
export interface BrowserTripleClickConfig {
|
|
1139
|
+
/**
|
|
1140
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1141
|
+
* member of the toolset.
|
|
1142
|
+
*/
|
|
1143
|
+
defer_loading?: boolean | null;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1147
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1148
|
+
* the served schema.
|
|
1149
|
+
*/
|
|
1150
|
+
enabled?: boolean | null;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* `type`'s config overrides.
|
|
1155
|
+
*/
|
|
1156
|
+
export interface BrowserTypeConfig {
|
|
1157
|
+
/**
|
|
1158
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1159
|
+
* member of the toolset.
|
|
1160
|
+
*/
|
|
1161
|
+
defer_loading?: boolean | null;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1165
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1166
|
+
* the served schema.
|
|
1167
|
+
*/
|
|
1168
|
+
enabled?: boolean | null;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* `wait`'s config overrides.
|
|
1173
|
+
*/
|
|
1174
|
+
export interface BrowserWaitConfig {
|
|
1175
|
+
/**
|
|
1176
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1177
|
+
* member of the toolset.
|
|
1178
|
+
*/
|
|
1179
|
+
defer_loading?: boolean | null;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1183
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1184
|
+
* the served schema.
|
|
1185
|
+
*/
|
|
1186
|
+
enabled?: boolean | null;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* `zoom`'s config overrides.
|
|
1191
|
+
*/
|
|
1192
|
+
export interface BrowserZoomConfig {
|
|
1193
|
+
/**
|
|
1194
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1195
|
+
* member of the toolset.
|
|
1196
|
+
*/
|
|
1197
|
+
defer_loading?: boolean | null;
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1201
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1202
|
+
* the served schema.
|
|
1203
|
+
*/
|
|
1204
|
+
enabled?: boolean | null;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
export interface CacheControlEphemeral {
|
|
1208
|
+
type: 'ephemeral';
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* The time-to-live for the cache control breakpoint.
|
|
1212
|
+
*
|
|
1213
|
+
* This may be one the following values:
|
|
1214
|
+
*
|
|
1215
|
+
* - `5m`: 5 minutes
|
|
1216
|
+
* - `1h`: 1 hour
|
|
1217
|
+
*
|
|
1218
|
+
* Defaults to `5m`. See
|
|
1219
|
+
* [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)
|
|
1220
|
+
* for details.
|
|
1221
|
+
*/
|
|
1222
|
+
ttl?: '5m' | '1h';
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
export interface CacheCreation {
|
|
1226
|
+
/**
|
|
1227
|
+
* The number of input tokens used to create the 1 hour cache entry.
|
|
1228
|
+
*/
|
|
1229
|
+
ephemeral_1h_input_tokens: number;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* The number of input tokens used to create the 5 minute cache entry.
|
|
1233
|
+
*/
|
|
1234
|
+
ephemeral_5m_input_tokens: number;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
export interface CitationCharLocation {
|
|
1238
|
+
cited_text: string;
|
|
1239
|
+
|
|
1240
|
+
document_index: number;
|
|
1241
|
+
|
|
1242
|
+
document_title: string | null;
|
|
1243
|
+
|
|
1244
|
+
end_char_index: number;
|
|
1245
|
+
|
|
1246
|
+
file_id: string | null;
|
|
1247
|
+
|
|
1248
|
+
start_char_index: number;
|
|
1249
|
+
|
|
1250
|
+
type: 'char_location';
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
export interface CitationCharLocationParam {
|
|
1254
|
+
cited_text: string;
|
|
1255
|
+
|
|
1256
|
+
document_index: number;
|
|
1257
|
+
|
|
1258
|
+
document_title: string | null;
|
|
1259
|
+
|
|
1260
|
+
end_char_index: number;
|
|
1261
|
+
|
|
1262
|
+
start_char_index: number;
|
|
1263
|
+
|
|
1264
|
+
type: 'char_location';
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
export interface CitationContentBlockLocation {
|
|
1268
|
+
/**
|
|
1269
|
+
* The full text of the cited block range, concatenated.
|
|
1270
|
+
*
|
|
1271
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1272
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1273
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1274
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1275
|
+
*/
|
|
1276
|
+
cited_text: string;
|
|
1277
|
+
|
|
1278
|
+
document_index: number;
|
|
1279
|
+
|
|
1280
|
+
document_title: string | null;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1284
|
+
* array.
|
|
1285
|
+
*
|
|
1286
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1287
|
+
* `end_block_index = start_block_index + 1`.
|
|
1288
|
+
*/
|
|
1289
|
+
end_block_index: number;
|
|
1290
|
+
|
|
1291
|
+
file_id: string | null;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1295
|
+
*/
|
|
1296
|
+
start_block_index: number;
|
|
1297
|
+
|
|
1298
|
+
type: 'content_block_location';
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
export interface CitationContentBlockLocationParam {
|
|
1302
|
+
/**
|
|
1303
|
+
* The full text of the cited block range, concatenated.
|
|
1304
|
+
*
|
|
1305
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1306
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1307
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1308
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1309
|
+
*/
|
|
1310
|
+
cited_text: string;
|
|
1311
|
+
|
|
1312
|
+
document_index: number;
|
|
1313
|
+
|
|
1314
|
+
document_title: string | null;
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1318
|
+
* array.
|
|
1319
|
+
*
|
|
1320
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1321
|
+
* `end_block_index = start_block_index + 1`.
|
|
1322
|
+
*/
|
|
1323
|
+
end_block_index: number;
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1327
|
+
*/
|
|
1328
|
+
start_block_index: number;
|
|
1329
|
+
|
|
1330
|
+
type: 'content_block_location';
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
export interface CitationPageLocation {
|
|
1334
|
+
cited_text: string;
|
|
1335
|
+
|
|
1336
|
+
document_index: number;
|
|
1337
|
+
|
|
1338
|
+
document_title: string | null;
|
|
1339
|
+
|
|
1340
|
+
end_page_number: number;
|
|
1341
|
+
|
|
1342
|
+
file_id: string | null;
|
|
1343
|
+
|
|
1344
|
+
start_page_number: number;
|
|
1345
|
+
|
|
1346
|
+
type: 'page_location';
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
export interface CitationPageLocationParam {
|
|
1350
|
+
cited_text: string;
|
|
1351
|
+
|
|
1352
|
+
document_index: number;
|
|
1353
|
+
|
|
1354
|
+
document_title: string | null;
|
|
1355
|
+
|
|
1356
|
+
end_page_number: number;
|
|
1357
|
+
|
|
1358
|
+
start_page_number: number;
|
|
1359
|
+
|
|
1360
|
+
type: 'page_location';
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
export interface CitationSearchResultLocationParam {
|
|
1364
|
+
/**
|
|
1365
|
+
* The full text of the cited block range, concatenated.
|
|
1366
|
+
*
|
|
1367
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1368
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1369
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1370
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1371
|
+
*/
|
|
1372
|
+
cited_text: string;
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1376
|
+
* array.
|
|
1377
|
+
*
|
|
1378
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1379
|
+
* `end_block_index = start_block_index + 1`.
|
|
1380
|
+
*/
|
|
1381
|
+
end_block_index: number;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* 0-based index of the cited search result among all `search_result` content
|
|
1385
|
+
* blocks in the request, in the order they appear across messages and tool
|
|
1386
|
+
* results.
|
|
1387
|
+
*
|
|
1388
|
+
* Counted separately from `document_index`; server-side web search results are not
|
|
1389
|
+
* included in this count.
|
|
1390
|
+
*/
|
|
1391
|
+
search_result_index: number;
|
|
1392
|
+
|
|
1393
|
+
source: string;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1397
|
+
*/
|
|
1398
|
+
start_block_index: number;
|
|
1399
|
+
|
|
1400
|
+
title: string | null;
|
|
1401
|
+
|
|
1402
|
+
type: 'search_result_location';
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
export interface CitationWebSearchResultLocationParam {
|
|
1406
|
+
cited_text: string;
|
|
1407
|
+
|
|
1408
|
+
encrypted_index: string;
|
|
1409
|
+
|
|
1410
|
+
title: string | null;
|
|
1411
|
+
|
|
1412
|
+
type: 'web_search_result_location';
|
|
1413
|
+
|
|
1414
|
+
url: string;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
export interface CitationsConfig {
|
|
1418
|
+
enabled: boolean;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
export interface CitationsConfigParam {
|
|
1422
|
+
enabled?: boolean;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
export interface CitationsDelta {
|
|
1426
|
+
citation:
|
|
1427
|
+
| CitationCharLocation
|
|
1428
|
+
| CitationPageLocation
|
|
439
1429
|
| CitationContentBlockLocation
|
|
440
1430
|
| CitationsWebSearchResultLocation
|
|
441
1431
|
| CitationsSearchResultLocation;
|
|
@@ -444,14 +1434,40 @@ export interface CitationsDelta {
|
|
|
444
1434
|
}
|
|
445
1435
|
|
|
446
1436
|
export interface CitationsSearchResultLocation {
|
|
1437
|
+
/**
|
|
1438
|
+
* The full text of the cited block range, concatenated.
|
|
1439
|
+
*
|
|
1440
|
+
* Always equals the contents of `content[start_block_index:end_block_index]`
|
|
1441
|
+
* joined together. The text block is the minimal citable unit; this field is never
|
|
1442
|
+
* a substring of a single block. Not counted toward output tokens, and not counted
|
|
1443
|
+
* toward input tokens when sent back in subsequent turns.
|
|
1444
|
+
*/
|
|
447
1445
|
cited_text: string;
|
|
448
1446
|
|
|
1447
|
+
/**
|
|
1448
|
+
* Exclusive 0-based end index of the cited block range in the source's `content`
|
|
1449
|
+
* array.
|
|
1450
|
+
*
|
|
1451
|
+
* Always greater than `start_block_index`; a single-block citation has
|
|
1452
|
+
* `end_block_index = start_block_index + 1`.
|
|
1453
|
+
*/
|
|
449
1454
|
end_block_index: number;
|
|
450
1455
|
|
|
1456
|
+
/**
|
|
1457
|
+
* 0-based index of the cited search result among all `search_result` content
|
|
1458
|
+
* blocks in the request, in the order they appear across messages and tool
|
|
1459
|
+
* results.
|
|
1460
|
+
*
|
|
1461
|
+
* Counted separately from `document_index`; server-side web search results are not
|
|
1462
|
+
* included in this count.
|
|
1463
|
+
*/
|
|
451
1464
|
search_result_index: number;
|
|
452
1465
|
|
|
453
1466
|
source: string;
|
|
454
1467
|
|
|
1468
|
+
/**
|
|
1469
|
+
* 0-based index of the first cited block in the source's `content` array.
|
|
1470
|
+
*/
|
|
455
1471
|
start_block_index: number;
|
|
456
1472
|
|
|
457
1473
|
title: string | null;
|
|
@@ -517,7 +1533,9 @@ export interface CodeExecutionTool20250522 {
|
|
|
517
1533
|
|
|
518
1534
|
type: 'code_execution_20250522';
|
|
519
1535
|
|
|
520
|
-
allowed_callers?: Array<
|
|
1536
|
+
allowed_callers?: Array<
|
|
1537
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1538
|
+
>;
|
|
521
1539
|
|
|
522
1540
|
/**
|
|
523
1541
|
* Create a cache control breakpoint at this content block.
|
|
@@ -546,7 +1564,9 @@ export interface CodeExecutionTool20250825 {
|
|
|
546
1564
|
|
|
547
1565
|
type: 'code_execution_20250825';
|
|
548
1566
|
|
|
549
|
-
allowed_callers?: Array<
|
|
1567
|
+
allowed_callers?: Array<
|
|
1568
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1569
|
+
>;
|
|
550
1570
|
|
|
551
1571
|
/**
|
|
552
1572
|
* Create a cache control breakpoint at this content block.
|
|
@@ -579,7 +1599,43 @@ export interface CodeExecutionTool20260120 {
|
|
|
579
1599
|
|
|
580
1600
|
type: 'code_execution_20260120';
|
|
581
1601
|
|
|
582
|
-
allowed_callers?: Array<
|
|
1602
|
+
allowed_callers?: Array<
|
|
1603
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1604
|
+
>;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Create a cache control breakpoint at this content block.
|
|
1608
|
+
*/
|
|
1609
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
1613
|
+
* returned via tool_reference from tool search.
|
|
1614
|
+
*/
|
|
1615
|
+
defer_loading?: boolean;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
1619
|
+
*/
|
|
1620
|
+
strict?: boolean;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Code execution tool with REPL state persistence.
|
|
1625
|
+
*/
|
|
1626
|
+
export interface CodeExecutionTool20260521 {
|
|
1627
|
+
/**
|
|
1628
|
+
* Name of the tool.
|
|
1629
|
+
*
|
|
1630
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1631
|
+
*/
|
|
1632
|
+
name: 'code_execution';
|
|
1633
|
+
|
|
1634
|
+
type: 'code_execution_20260521';
|
|
1635
|
+
|
|
1636
|
+
allowed_callers?: Array<
|
|
1637
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1638
|
+
>;
|
|
583
1639
|
|
|
584
1640
|
/**
|
|
585
1641
|
* Create a cache control breakpoint at this content block.
|
|
@@ -644,19 +1700,449 @@ export type CodeExecutionToolResultBlockParamContent =
|
|
|
644
1700
|
export interface CodeExecutionToolResultError {
|
|
645
1701
|
error_code: CodeExecutionToolResultErrorCode;
|
|
646
1702
|
|
|
647
|
-
type: 'code_execution_tool_result_error';
|
|
1703
|
+
type: 'code_execution_tool_result_error';
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export type CodeExecutionToolResultErrorCode =
|
|
1707
|
+
| 'invalid_tool_input'
|
|
1708
|
+
| 'unavailable'
|
|
1709
|
+
| 'too_many_requests'
|
|
1710
|
+
| 'execution_time_exceeded';
|
|
1711
|
+
|
|
1712
|
+
export interface CodeExecutionToolResultErrorParam {
|
|
1713
|
+
error_code: CodeExecutionToolResultErrorCode;
|
|
1714
|
+
|
|
1715
|
+
type: 'code_execution_tool_result_error';
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* `cursor_position`'s config overrides.
|
|
1720
|
+
*/
|
|
1721
|
+
export interface ComputerCursorPositionConfig {
|
|
1722
|
+
/**
|
|
1723
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1724
|
+
* member of the toolset.
|
|
1725
|
+
*/
|
|
1726
|
+
defer_loading?: boolean | null;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1730
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1731
|
+
* the served schema.
|
|
1732
|
+
*/
|
|
1733
|
+
enabled?: boolean | null;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* `double_click`'s config overrides.
|
|
1738
|
+
*/
|
|
1739
|
+
export interface ComputerDoubleClickConfig {
|
|
1740
|
+
/**
|
|
1741
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1742
|
+
* member of the toolset.
|
|
1743
|
+
*/
|
|
1744
|
+
defer_loading?: boolean | null;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1748
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1749
|
+
* the served schema.
|
|
1750
|
+
*/
|
|
1751
|
+
enabled?: boolean | null;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* `hold_key`'s config overrides.
|
|
1756
|
+
*/
|
|
1757
|
+
export interface ComputerHoldKeyConfig {
|
|
1758
|
+
/**
|
|
1759
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1760
|
+
* member of the toolset.
|
|
1761
|
+
*/
|
|
1762
|
+
defer_loading?: boolean | null;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1766
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1767
|
+
* the served schema.
|
|
1768
|
+
*/
|
|
1769
|
+
enabled?: boolean | null;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* `key`'s config overrides.
|
|
1774
|
+
*/
|
|
1775
|
+
export interface ComputerKeyConfig {
|
|
1776
|
+
/**
|
|
1777
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1778
|
+
* member of the toolset.
|
|
1779
|
+
*/
|
|
1780
|
+
defer_loading?: boolean | null;
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1784
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1785
|
+
* the served schema.
|
|
1786
|
+
*/
|
|
1787
|
+
enabled?: boolean | null;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* `left_click`'s config overrides.
|
|
1792
|
+
*/
|
|
1793
|
+
export interface ComputerLeftClickConfig {
|
|
1794
|
+
/**
|
|
1795
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1796
|
+
* member of the toolset.
|
|
1797
|
+
*/
|
|
1798
|
+
defer_loading?: boolean | null;
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1802
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1803
|
+
* the served schema.
|
|
1804
|
+
*/
|
|
1805
|
+
enabled?: boolean | null;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* `left_click_drag`'s config overrides.
|
|
1810
|
+
*/
|
|
1811
|
+
export interface ComputerLeftClickDragConfig {
|
|
1812
|
+
/**
|
|
1813
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1814
|
+
* member of the toolset.
|
|
1815
|
+
*/
|
|
1816
|
+
defer_loading?: boolean | null;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1820
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1821
|
+
* the served schema.
|
|
1822
|
+
*/
|
|
1823
|
+
enabled?: boolean | null;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* `left_mouse_down`'s config overrides.
|
|
1828
|
+
*/
|
|
1829
|
+
export interface ComputerLeftMouseDownConfig {
|
|
1830
|
+
/**
|
|
1831
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1832
|
+
* member of the toolset.
|
|
1833
|
+
*/
|
|
1834
|
+
defer_loading?: boolean | null;
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1838
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1839
|
+
* the served schema.
|
|
1840
|
+
*/
|
|
1841
|
+
enabled?: boolean | null;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* `left_mouse_up`'s config overrides.
|
|
1846
|
+
*/
|
|
1847
|
+
export interface ComputerLeftMouseUpConfig {
|
|
1848
|
+
/**
|
|
1849
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1850
|
+
* member of the toolset.
|
|
1851
|
+
*/
|
|
1852
|
+
defer_loading?: boolean | null;
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1856
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1857
|
+
* the served schema.
|
|
1858
|
+
*/
|
|
1859
|
+
enabled?: boolean | null;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* `middle_click`'s config overrides.
|
|
1864
|
+
*/
|
|
1865
|
+
export interface ComputerMiddleClickConfig {
|
|
1866
|
+
/**
|
|
1867
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1868
|
+
* member of the toolset.
|
|
1869
|
+
*/
|
|
1870
|
+
defer_loading?: boolean | null;
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1874
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1875
|
+
* the served schema.
|
|
1876
|
+
*/
|
|
1877
|
+
enabled?: boolean | null;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* `mouse_move`'s config overrides.
|
|
1882
|
+
*/
|
|
1883
|
+
export interface ComputerMouseMoveConfig {
|
|
1884
|
+
/**
|
|
1885
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1886
|
+
* member of the toolset.
|
|
1887
|
+
*/
|
|
1888
|
+
defer_loading?: boolean | null;
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1892
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1893
|
+
* the served schema.
|
|
1894
|
+
*/
|
|
1895
|
+
enabled?: boolean | null;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* `right_click`'s config overrides.
|
|
1900
|
+
*/
|
|
1901
|
+
export interface ComputerRightClickConfig {
|
|
1902
|
+
/**
|
|
1903
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1904
|
+
* member of the toolset.
|
|
1905
|
+
*/
|
|
1906
|
+
defer_loading?: boolean | null;
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1910
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1911
|
+
* the served schema.
|
|
1912
|
+
*/
|
|
1913
|
+
enabled?: boolean | null;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* `screenshot`'s config overrides.
|
|
1918
|
+
*/
|
|
1919
|
+
export interface ComputerScreenshotConfig {
|
|
1920
|
+
/**
|
|
1921
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1922
|
+
* member of the toolset.
|
|
1923
|
+
*/
|
|
1924
|
+
defer_loading?: boolean | null;
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1928
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1929
|
+
* the served schema.
|
|
1930
|
+
*/
|
|
1931
|
+
enabled?: boolean | null;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* `scroll`'s config overrides.
|
|
1936
|
+
*/
|
|
1937
|
+
export interface ComputerScrollConfig {
|
|
1938
|
+
/**
|
|
1939
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1940
|
+
* member of the toolset.
|
|
1941
|
+
*/
|
|
1942
|
+
defer_loading?: boolean | null;
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1946
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1947
|
+
* the served schema.
|
|
1948
|
+
*/
|
|
1949
|
+
enabled?: boolean | null;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* The computer toolset: a single `tools[]` entry (carrying no `name`) that
|
|
1954
|
+
* declares the computer tool family. The model is served the family's tool with
|
|
1955
|
+
* any members disabled via `configs` removed from its schema. Every member is
|
|
1956
|
+
* enabled by default, zoom included. The single-tool options `display_number` and
|
|
1957
|
+
* `enable_zoom` are not fields of a toolset entry — it carries only `type`,
|
|
1958
|
+
* `configs`, and `cache_control`; zoom is controlled via `configs.zoom.enabled`.
|
|
1959
|
+
*/
|
|
1960
|
+
export interface ComputerToolset20260801 {
|
|
1961
|
+
type: 'computer_toolset_20260801';
|
|
1962
|
+
|
|
1963
|
+
allowed_callers?: Array<
|
|
1964
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1965
|
+
>;
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* Create a cache control breakpoint at this content block.
|
|
1969
|
+
*/
|
|
1970
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1974
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1975
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1976
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1977
|
+
* toolset version's complete member set.
|
|
1978
|
+
*/
|
|
1979
|
+
configs?: ComputerToolsetConfigs | null;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1984
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1985
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1986
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1987
|
+
* toolset version's complete member set.
|
|
1988
|
+
*/
|
|
1989
|
+
export interface ComputerToolsetConfigs {
|
|
1990
|
+
/**
|
|
1991
|
+
* `cursor_position`'s config overrides.
|
|
1992
|
+
*/
|
|
1993
|
+
cursor_position?: ComputerCursorPositionConfig | null;
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* `double_click`'s config overrides.
|
|
1997
|
+
*/
|
|
1998
|
+
double_click?: ComputerDoubleClickConfig | null;
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
* `hold_key`'s config overrides.
|
|
2002
|
+
*/
|
|
2003
|
+
hold_key?: ComputerHoldKeyConfig | null;
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* `key`'s config overrides.
|
|
2007
|
+
*/
|
|
2008
|
+
key?: ComputerKeyConfig | null;
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* `left_click`'s config overrides.
|
|
2012
|
+
*/
|
|
2013
|
+
left_click?: ComputerLeftClickConfig | null;
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* `left_click_drag`'s config overrides.
|
|
2017
|
+
*/
|
|
2018
|
+
left_click_drag?: ComputerLeftClickDragConfig | null;
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* `left_mouse_down`'s config overrides.
|
|
2022
|
+
*/
|
|
2023
|
+
left_mouse_down?: ComputerLeftMouseDownConfig | null;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* `left_mouse_up`'s config overrides.
|
|
2027
|
+
*/
|
|
2028
|
+
left_mouse_up?: ComputerLeftMouseUpConfig | null;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* `middle_click`'s config overrides.
|
|
2032
|
+
*/
|
|
2033
|
+
middle_click?: ComputerMiddleClickConfig | null;
|
|
2034
|
+
|
|
2035
|
+
/**
|
|
2036
|
+
* `mouse_move`'s config overrides.
|
|
2037
|
+
*/
|
|
2038
|
+
mouse_move?: ComputerMouseMoveConfig | null;
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* `right_click`'s config overrides.
|
|
2042
|
+
*/
|
|
2043
|
+
right_click?: ComputerRightClickConfig | null;
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* `screenshot`'s config overrides.
|
|
2047
|
+
*/
|
|
2048
|
+
screenshot?: ComputerScreenshotConfig | null;
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* `scroll`'s config overrides.
|
|
2052
|
+
*/
|
|
2053
|
+
scroll?: ComputerScrollConfig | null;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* `triple_click`'s config overrides.
|
|
2057
|
+
*/
|
|
2058
|
+
triple_click?: ComputerTripleClickConfig | null;
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* `type`'s config overrides.
|
|
2062
|
+
*/
|
|
2063
|
+
type?: ComputerTypeConfig | null;
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* `wait`'s config overrides.
|
|
2067
|
+
*/
|
|
2068
|
+
wait?: ComputerWaitConfig | null;
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* `zoom`'s config overrides.
|
|
2072
|
+
*/
|
|
2073
|
+
zoom?: ComputerZoomConfig | null;
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* `triple_click`'s config overrides.
|
|
2078
|
+
*/
|
|
2079
|
+
export interface ComputerTripleClickConfig {
|
|
2080
|
+
/**
|
|
2081
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2082
|
+
* member of the toolset.
|
|
2083
|
+
*/
|
|
2084
|
+
defer_loading?: boolean | null;
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2088
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2089
|
+
* the served schema.
|
|
2090
|
+
*/
|
|
2091
|
+
enabled?: boolean | null;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* `type`'s config overrides.
|
|
2096
|
+
*/
|
|
2097
|
+
export interface ComputerTypeConfig {
|
|
2098
|
+
/**
|
|
2099
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2100
|
+
* member of the toolset.
|
|
2101
|
+
*/
|
|
2102
|
+
defer_loading?: boolean | null;
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2106
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2107
|
+
* the served schema.
|
|
2108
|
+
*/
|
|
2109
|
+
enabled?: boolean | null;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* `wait`'s config overrides.
|
|
2114
|
+
*/
|
|
2115
|
+
export interface ComputerWaitConfig {
|
|
2116
|
+
/**
|
|
2117
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2118
|
+
* member of the toolset.
|
|
2119
|
+
*/
|
|
2120
|
+
defer_loading?: boolean | null;
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2124
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2125
|
+
* the served schema.
|
|
2126
|
+
*/
|
|
2127
|
+
enabled?: boolean | null;
|
|
648
2128
|
}
|
|
649
2129
|
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
2130
|
+
/**
|
|
2131
|
+
* `zoom`'s config overrides.
|
|
2132
|
+
*/
|
|
2133
|
+
export interface ComputerZoomConfig {
|
|
2134
|
+
/**
|
|
2135
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2136
|
+
* member of the toolset.
|
|
2137
|
+
*/
|
|
2138
|
+
defer_loading?: boolean | null;
|
|
658
2139
|
|
|
659
|
-
|
|
2140
|
+
/**
|
|
2141
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2142
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2143
|
+
* the served schema.
|
|
2144
|
+
*/
|
|
2145
|
+
enabled?: boolean | null;
|
|
660
2146
|
}
|
|
661
2147
|
|
|
662
2148
|
/**
|
|
@@ -673,6 +2159,46 @@ export interface Container {
|
|
|
673
2159
|
* The time at which the container will expire.
|
|
674
2160
|
*/
|
|
675
2161
|
expires_at: string;
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Skills loaded in the container
|
|
2165
|
+
*/
|
|
2166
|
+
skills: Array<ContainerSkill> | null;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Container parameters with skills to be loaded.
|
|
2171
|
+
*/
|
|
2172
|
+
export interface ContainerParams {
|
|
2173
|
+
/**
|
|
2174
|
+
* Container id
|
|
2175
|
+
*/
|
|
2176
|
+
id?: string | null;
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* List of skills to load in the container
|
|
2180
|
+
*/
|
|
2181
|
+
skills?: Array<SkillParams> | null;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* A skill that was loaded in a container (response model).
|
|
2186
|
+
*/
|
|
2187
|
+
export interface ContainerSkill {
|
|
2188
|
+
/**
|
|
2189
|
+
* Skill ID
|
|
2190
|
+
*/
|
|
2191
|
+
skill_id: string;
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
2195
|
+
*/
|
|
2196
|
+
type: 'anthropic' | 'custom';
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* The resolved version: a skill version ID for custom skills.
|
|
2200
|
+
*/
|
|
2201
|
+
version: string;
|
|
676
2202
|
}
|
|
677
2203
|
|
|
678
2204
|
/**
|
|
@@ -769,7 +2295,7 @@ export interface DocumentBlock {
|
|
|
769
2295
|
}
|
|
770
2296
|
|
|
771
2297
|
export interface DocumentBlockParam {
|
|
772
|
-
source: Base64PDFSource | PlainTextSource | ContentBlockSource | URLPDFSource;
|
|
2298
|
+
source: Base64PDFSource | PlainTextSource | ContentBlockSource | URLPDFSource | FileDocumentSource;
|
|
773
2299
|
|
|
774
2300
|
type: 'document';
|
|
775
2301
|
|
|
@@ -815,8 +2341,20 @@ export interface EncryptedCodeExecutionResultBlockParam {
|
|
|
815
2341
|
type: 'encrypted_code_execution_result';
|
|
816
2342
|
}
|
|
817
2343
|
|
|
2344
|
+
export interface FileDocumentSource {
|
|
2345
|
+
file_id: string;
|
|
2346
|
+
|
|
2347
|
+
type: 'file';
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
export interface FileImageSource {
|
|
2351
|
+
file_id: string;
|
|
2352
|
+
|
|
2353
|
+
type: 'file';
|
|
2354
|
+
}
|
|
2355
|
+
|
|
818
2356
|
export interface ImageBlockParam {
|
|
819
|
-
source: Base64ImageSource | URLImageSource;
|
|
2357
|
+
source: Base64ImageSource | URLImageSource | FileImageSource;
|
|
820
2358
|
|
|
821
2359
|
type: 'image';
|
|
822
2360
|
|
|
@@ -824,6 +2362,32 @@ export interface ImageBlockParam {
|
|
|
824
2362
|
* Create a cache control breakpoint at this content block.
|
|
825
2363
|
*/
|
|
826
2364
|
cache_control?: CacheControlEphemeral | null;
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* Configures the transformations the server applies to this image before the model
|
|
2368
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
2369
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
2370
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
2371
|
+
*/
|
|
2372
|
+
transformations?: ImageTransformationsParam | null;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* Configures the transformations the server applies to this image before the model
|
|
2377
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
2378
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
2379
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
2380
|
+
*/
|
|
2381
|
+
export interface ImageTransformationsParam {
|
|
2382
|
+
/**
|
|
2383
|
+
* What the server does when this image exceeds the model's maximum image size.
|
|
2384
|
+
* `"downsize"` (the default) scales the image down to fit, which changes the
|
|
2385
|
+
* dimensions the model observes without telling you. `"error"` instead rejects the
|
|
2386
|
+
* request with a 400 error naming the image's dimensions and the largest
|
|
2387
|
+
* dimensions that fit, so you can scale the image deliberately — your image is
|
|
2388
|
+
* never silently scaled down.
|
|
2389
|
+
*/
|
|
2390
|
+
oversized_image?: 'downsize' | 'error';
|
|
827
2391
|
}
|
|
828
2392
|
|
|
829
2393
|
export interface InputJSONDelta {
|
|
@@ -851,7 +2415,9 @@ export interface MemoryTool20250818 {
|
|
|
851
2415
|
|
|
852
2416
|
type: 'memory_20250818';
|
|
853
2417
|
|
|
854
|
-
allowed_callers?: Array<
|
|
2418
|
+
allowed_callers?: Array<
|
|
2419
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
2420
|
+
>;
|
|
855
2421
|
|
|
856
2422
|
/**
|
|
857
2423
|
* Create a cache control breakpoint at this content block.
|
|
@@ -923,8 +2489,9 @@ export interface Message {
|
|
|
923
2489
|
content: Array<ContentBlock>;
|
|
924
2490
|
|
|
925
2491
|
/**
|
|
926
|
-
* The model that will complete your prompt
|
|
927
|
-
*
|
|
2492
|
+
* The model that will complete your prompt.
|
|
2493
|
+
*
|
|
2494
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
928
2495
|
* details and options.
|
|
929
2496
|
*/
|
|
930
2497
|
model: Model;
|
|
@@ -954,6 +2521,7 @@ export interface Message {
|
|
|
954
2521
|
* back as-is in a subsequent request to let the model continue.
|
|
955
2522
|
* - `"refusal"`: when streaming classifiers intervene to handle potential policy
|
|
956
2523
|
* violations
|
|
2524
|
+
* - `"model_context_window_exceeded"`: we exceeded the model's context window
|
|
957
2525
|
*
|
|
958
2526
|
* In non-streaming mode this value is always non-null. In streaming mode, it is
|
|
959
2527
|
* null in the `message_start` event and non-null otherwise.
|
|
@@ -1005,7 +2573,10 @@ export type MessageCountTokensTool =
|
|
|
1005
2573
|
| CodeExecutionTool20250522
|
|
1006
2574
|
| CodeExecutionTool20250825
|
|
1007
2575
|
| CodeExecutionTool20260120
|
|
2576
|
+
| CodeExecutionTool20260521
|
|
2577
|
+
| BrowserToolset20260801
|
|
1008
2578
|
| MemoryTool20250818
|
|
2579
|
+
| ComputerToolset20260801
|
|
1009
2580
|
| ToolTextEditor20250124
|
|
1010
2581
|
| ToolTextEditor20250429
|
|
1011
2582
|
| ToolTextEditor20250728
|
|
@@ -1014,9 +2585,16 @@ export type MessageCountTokensTool =
|
|
|
1014
2585
|
| WebSearchTool20260209
|
|
1015
2586
|
| WebFetchTool20260209
|
|
1016
2587
|
| WebFetchTool20260309
|
|
2588
|
+
| WebSearchTool20260318
|
|
2589
|
+
| WebFetchTool20260318
|
|
1017
2590
|
| ToolSearchToolBm25_20251119
|
|
1018
2591
|
| ToolSearchToolRegex20251119;
|
|
1019
2592
|
|
|
2593
|
+
/**
|
|
2594
|
+
* Container identifier for reuse across requests.
|
|
2595
|
+
*/
|
|
2596
|
+
export type MessageCreateParamsContainer = ContainerParams | string;
|
|
2597
|
+
|
|
1020
2598
|
export interface MessageDeltaUsage {
|
|
1021
2599
|
/**
|
|
1022
2600
|
* The cumulative number of input tokens used to create the cache entry.
|
|
@@ -1038,6 +2616,16 @@ export interface MessageDeltaUsage {
|
|
|
1038
2616
|
*/
|
|
1039
2617
|
output_tokens: number;
|
|
1040
2618
|
|
|
2619
|
+
/**
|
|
2620
|
+
* Breakdown of output tokens by category.
|
|
2621
|
+
*
|
|
2622
|
+
* `output_tokens` remains the inclusive, authoritative total used for billing.
|
|
2623
|
+
* This object provides a read-only decomposition for observability — for example,
|
|
2624
|
+
* how many of the billed output tokens were spent on internal reasoning that may
|
|
2625
|
+
* have been summarized before being returned to you.
|
|
2626
|
+
*/
|
|
2627
|
+
output_tokens_details: OutputTokensDetails | null;
|
|
2628
|
+
|
|
1041
2629
|
/**
|
|
1042
2630
|
* The number of server tool requests.
|
|
1043
2631
|
*/
|
|
@@ -1047,7 +2635,7 @@ export interface MessageDeltaUsage {
|
|
|
1047
2635
|
export interface MessageParam {
|
|
1048
2636
|
content: string | Array<ContentBlockParam>;
|
|
1049
2637
|
|
|
1050
|
-
role: 'user' | 'assistant';
|
|
2638
|
+
role: 'user' | 'assistant' | 'system';
|
|
1051
2639
|
}
|
|
1052
2640
|
|
|
1053
2641
|
export interface MessageTokensCount {
|
|
@@ -1070,11 +2658,17 @@ export interface Metadata {
|
|
|
1070
2658
|
}
|
|
1071
2659
|
|
|
1072
2660
|
/**
|
|
1073
|
-
* The model that will complete your prompt
|
|
1074
|
-
*
|
|
2661
|
+
* The model that will complete your prompt.
|
|
2662
|
+
*
|
|
2663
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
1075
2664
|
* details and options.
|
|
1076
2665
|
*/
|
|
1077
2666
|
export type Model =
|
|
2667
|
+
| 'claude-sonnet-5'
|
|
2668
|
+
| 'claude-fable-5'
|
|
2669
|
+
| 'claude-mythos-5'
|
|
2670
|
+
| 'claude-opus-5'
|
|
2671
|
+
| 'claude-opus-4-8'
|
|
1078
2672
|
| 'claude-opus-4-7'
|
|
1079
2673
|
| 'claude-mythos-preview'
|
|
1080
2674
|
| 'claude-opus-4-6'
|
|
@@ -1085,13 +2679,6 @@ export type Model =
|
|
|
1085
2679
|
| 'claude-opus-4-5-20251101'
|
|
1086
2680
|
| 'claude-sonnet-4-5'
|
|
1087
2681
|
| 'claude-sonnet-4-5-20250929'
|
|
1088
|
-
| 'claude-opus-4-1'
|
|
1089
|
-
| 'claude-opus-4-1-20250805'
|
|
1090
|
-
| 'claude-opus-4-0'
|
|
1091
|
-
| 'claude-opus-4-20250514'
|
|
1092
|
-
| 'claude-sonnet-4-0'
|
|
1093
|
-
| 'claude-sonnet-4-20250514'
|
|
1094
|
-
| 'claude-3-haiku-20240307'
|
|
1095
2682
|
| (string & {});
|
|
1096
2683
|
|
|
1097
2684
|
export interface OutputConfig {
|
|
@@ -1107,27 +2694,22 @@ export interface OutputConfig {
|
|
|
1107
2694
|
format?: JSONOutputFormat | null;
|
|
1108
2695
|
}
|
|
1109
2696
|
|
|
2697
|
+
export interface OutputTokensDetails {
|
|
2698
|
+
/**
|
|
2699
|
+
* Number of output tokens the model generated as internal reasoning, including the
|
|
2700
|
+
* thinking-block delimiter tokens.
|
|
2701
|
+
*
|
|
2702
|
+
* Reflects the raw reasoning the model produced, not the (possibly shorter)
|
|
2703
|
+
* summarized thinking text returned in the response body. Computed by
|
|
2704
|
+
* re-tokenizing the raw reasoning text, so it may differ from the model's exact
|
|
2705
|
+
* generation count by a small number of tokens. Always ≤ `output_tokens`;
|
|
2706
|
+
* `output_tokens - thinking_tokens` approximates the non-reasoning output.
|
|
2707
|
+
*/
|
|
2708
|
+
thinking_tokens: number;
|
|
2709
|
+
}
|
|
1110
2710
|
const DEPRECATED_MODELS: {
|
|
1111
2711
|
[K in Model]?: string;
|
|
1112
|
-
} = {
|
|
1113
|
-
'claude-1.3': 'November 6th, 2024',
|
|
1114
|
-
'claude-1.3-100k': 'November 6th, 2024',
|
|
1115
|
-
'claude-instant-1.1': 'November 6th, 2024',
|
|
1116
|
-
'claude-instant-1.1-100k': 'November 6th, 2024',
|
|
1117
|
-
'claude-instant-1.2': 'November 6th, 2024',
|
|
1118
|
-
'claude-3-sonnet-20240229': 'July 21st, 2025',
|
|
1119
|
-
'claude-3-opus-20240229': 'January 5th, 2026',
|
|
1120
|
-
'claude-2.1': 'July 21st, 2025',
|
|
1121
|
-
'claude-2.0': 'July 21st, 2025',
|
|
1122
|
-
'claude-3-7-sonnet-latest': 'February 19th, 2026',
|
|
1123
|
-
'claude-3-7-sonnet-20250219': 'February 19th, 2026',
|
|
1124
|
-
'claude-3-5-haiku-latest': 'February 19th, 2026',
|
|
1125
|
-
'claude-3-5-haiku-20241022': 'February 19th, 2026',
|
|
1126
|
-
'claude-opus-4-0': 'June 15th, 2026',
|
|
1127
|
-
'claude-opus-4-20250514': 'June 15th, 2026',
|
|
1128
|
-
'claude-sonnet-4-0': 'June 15th, 2026',
|
|
1129
|
-
'claude-sonnet-4-20250514': 'June 15th, 2026',
|
|
1130
|
-
};
|
|
2712
|
+
} = {};
|
|
1131
2713
|
|
|
1132
2714
|
const MODELS_TO_WARN_WITH_THINKING_ENABLED: Model[] = ['claude-mythos-preview', 'claude-opus-4-6'];
|
|
1133
2715
|
|
|
@@ -1246,12 +2828,28 @@ export type RawMessageStreamEvent =
|
|
|
1246
2828
|
| RawContentBlockStopEvent;
|
|
1247
2829
|
|
|
1248
2830
|
export interface RedactedThinkingBlock {
|
|
2831
|
+
/**
|
|
2832
|
+
* The contents of this redacted thinking block, returned when portions of the
|
|
2833
|
+
* model's thinking were safety-redacted. This field is opaque and encrypted, with
|
|
2834
|
+
* no readable content.
|
|
2835
|
+
*
|
|
2836
|
+
* Pass `redacted_thinking` blocks back to the API unchanged when continuing a
|
|
2837
|
+
* multi-turn conversation.
|
|
2838
|
+
*
|
|
2839
|
+
* See
|
|
2840
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks)
|
|
2841
|
+
* for details.
|
|
2842
|
+
*/
|
|
1249
2843
|
data: string;
|
|
1250
2844
|
|
|
1251
2845
|
type: 'redacted_thinking';
|
|
1252
2846
|
}
|
|
1253
2847
|
|
|
1254
2848
|
export interface RedactedThinkingBlockParam {
|
|
2849
|
+
/**
|
|
2850
|
+
* The `data` value of this redacted thinking block, exactly as returned by the API
|
|
2851
|
+
* in a previous response. Opaque and encrypted; pass it back unchanged.
|
|
2852
|
+
*/
|
|
1255
2853
|
data: string;
|
|
1256
2854
|
|
|
1257
2855
|
type: 'redacted_thinking';
|
|
@@ -1262,11 +2860,24 @@ export interface RedactedThinkingBlockParam {
|
|
|
1262
2860
|
*/
|
|
1263
2861
|
export interface RefusalStopDetails {
|
|
1264
2862
|
/**
|
|
1265
|
-
* The policy category that triggered
|
|
2863
|
+
* The policy category that triggered a refusal.
|
|
1266
2864
|
*
|
|
1267
|
-
* `
|
|
2865
|
+
* - `cyber` - The request could enable cyber harm, such as malware or exploit
|
|
2866
|
+
* development. Benign cybersecurity work can also trigger this category.
|
|
2867
|
+
* - `bio` - The request could enable biological harm, such as dangerous lab
|
|
2868
|
+
* methods. Beneficial life sciences work can also trigger this category.
|
|
2869
|
+
* - `frontier_llm` - The request could assist the development of competing AI
|
|
2870
|
+
* models, which is restricted under
|
|
2871
|
+
* [Anthropic's commercial terms](https://www.anthropic.com/legal/commercial-terms).
|
|
2872
|
+
* Benign machine learning work can also trigger this category.
|
|
2873
|
+
* - `reasoning_extraction` - The request asks the model to reproduce its internal
|
|
2874
|
+
* reasoning in the response text. To get reasoning in a structured form instead,
|
|
2875
|
+
* use
|
|
2876
|
+
* [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking).
|
|
2877
|
+
* - `general_harms` - The request could be related to an area that was determined
|
|
2878
|
+
* as harmful. Benign work might sometimes trigger this category.
|
|
1268
2879
|
*/
|
|
1269
|
-
category: 'cyber' | 'bio' | null;
|
|
2880
|
+
category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'general_harms' | null;
|
|
1270
2881
|
|
|
1271
2882
|
/**
|
|
1272
2883
|
* Human-readable explanation of the refusal.
|
|
@@ -1373,12 +2984,44 @@ export interface ServerToolUseBlockParam {
|
|
|
1373
2984
|
}
|
|
1374
2985
|
|
|
1375
2986
|
export interface SignatureDelta {
|
|
2987
|
+
/**
|
|
2988
|
+
* The `signature` for this thinking block: an opaque value used to verify that the
|
|
2989
|
+
* block was generated by Claude when it is passed back to the API. Delivered in a
|
|
2990
|
+
* `signature_delta` event just before the block's `content_block_stop` event.
|
|
2991
|
+
*/
|
|
1376
2992
|
signature: string;
|
|
1377
2993
|
|
|
1378
2994
|
type: 'signature_delta';
|
|
1379
2995
|
}
|
|
1380
2996
|
|
|
1381
|
-
|
|
2997
|
+
/**
|
|
2998
|
+
* Specification for a skill to be loaded in a container (request model).
|
|
2999
|
+
*/
|
|
3000
|
+
export interface SkillParams {
|
|
3001
|
+
/**
|
|
3002
|
+
* Skill ID
|
|
3003
|
+
*/
|
|
3004
|
+
skill_id: string;
|
|
3005
|
+
|
|
3006
|
+
/**
|
|
3007
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
3008
|
+
*/
|
|
3009
|
+
type: 'anthropic' | 'custom';
|
|
3010
|
+
|
|
3011
|
+
/**
|
|
3012
|
+
* Skill version or 'latest' for most recent version
|
|
3013
|
+
*/
|
|
3014
|
+
version?: string;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
export type StopReason =
|
|
3018
|
+
| 'end_turn'
|
|
3019
|
+
| 'max_tokens'
|
|
3020
|
+
| 'stop_sequence'
|
|
3021
|
+
| 'tool_use'
|
|
3022
|
+
| 'pause_turn'
|
|
3023
|
+
| 'refusal'
|
|
3024
|
+
| 'model_context_window_exceeded';
|
|
1382
3025
|
|
|
1383
3026
|
export interface TextBlock {
|
|
1384
3027
|
/**
|
|
@@ -1549,16 +3192,41 @@ export interface TextEditorCodeExecutionViewResultBlockParam {
|
|
|
1549
3192
|
}
|
|
1550
3193
|
|
|
1551
3194
|
export interface ThinkingBlock {
|
|
3195
|
+
/**
|
|
3196
|
+
* A value used to verify that this thinking block was generated by Claude when it
|
|
3197
|
+
* is passed back to the API.
|
|
3198
|
+
*
|
|
3199
|
+
* This is an opaque field and should not be interpreted or parsed. When passing
|
|
3200
|
+
* thinking blocks back to the API (required when using tools with extended
|
|
3201
|
+
* thinking), pass them back exactly as received, with this field intact.
|
|
3202
|
+
*
|
|
3203
|
+
* See
|
|
3204
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
3205
|
+
* for details.
|
|
3206
|
+
*/
|
|
1552
3207
|
signature: string;
|
|
1553
3208
|
|
|
3209
|
+
/**
|
|
3210
|
+
* The text of Claude's thinking process for this block.
|
|
3211
|
+
*/
|
|
1554
3212
|
thinking: string;
|
|
1555
3213
|
|
|
1556
3214
|
type: 'thinking';
|
|
1557
3215
|
}
|
|
1558
3216
|
|
|
1559
3217
|
export interface ThinkingBlockParam {
|
|
3218
|
+
/**
|
|
3219
|
+
* The `signature` value of this thinking block, exactly as returned by the API in
|
|
3220
|
+
* a previous response. Used to verify that the block was generated by Claude.
|
|
3221
|
+
*
|
|
3222
|
+
* Thinking blocks must be passed back unmodified and in their original order; a
|
|
3223
|
+
* modified block results in a 400 `invalid_request_error`.
|
|
3224
|
+
*/
|
|
1560
3225
|
signature: string;
|
|
1561
3226
|
|
|
3227
|
+
/**
|
|
3228
|
+
* The `thinking` text of this block as returned by the API.
|
|
3229
|
+
*/
|
|
1562
3230
|
thinking: string;
|
|
1563
3231
|
|
|
1564
3232
|
type: 'thinking';
|
|
@@ -1589,7 +3257,7 @@ export interface ThinkingConfigEnabled {
|
|
|
1589
3257
|
* Must be ≥1024 and less than `max_tokens`.
|
|
1590
3258
|
*
|
|
1591
3259
|
* See
|
|
1592
|
-
* [extended thinking](https://
|
|
3260
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
1593
3261
|
* for details.
|
|
1594
3262
|
*/
|
|
1595
3263
|
budget_tokens: number;
|
|
@@ -1613,12 +3281,17 @@ export interface ThinkingConfigEnabled {
|
|
|
1613
3281
|
* tokens and counts towards your `max_tokens` limit.
|
|
1614
3282
|
*
|
|
1615
3283
|
* See
|
|
1616
|
-
* [extended thinking](https://
|
|
3284
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
1617
3285
|
* for details.
|
|
1618
3286
|
*/
|
|
1619
3287
|
export type ThinkingConfigParam = ThinkingConfigEnabled | ThinkingConfigDisabled | ThinkingConfigAdaptive;
|
|
1620
3288
|
|
|
1621
3289
|
export interface ThinkingDelta {
|
|
3290
|
+
/**
|
|
3291
|
+
* The incremental `thinking` text for this content block. Concatenate the
|
|
3292
|
+
* `thinking` values of successive `thinking_delta` events to assemble the block's
|
|
3293
|
+
* full `thinking` value.
|
|
3294
|
+
*/
|
|
1622
3295
|
thinking: string;
|
|
1623
3296
|
|
|
1624
3297
|
type: 'thinking_delta';
|
|
@@ -1640,7 +3313,9 @@ export interface Tool {
|
|
|
1640
3313
|
*/
|
|
1641
3314
|
name: string;
|
|
1642
3315
|
|
|
1643
|
-
allowed_callers?: Array<
|
|
3316
|
+
allowed_callers?: Array<
|
|
3317
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3318
|
+
>;
|
|
1644
3319
|
|
|
1645
3320
|
/**
|
|
1646
3321
|
* Create a cache control breakpoint at this content block.
|
|
@@ -1710,7 +3385,9 @@ export interface ToolBash20250124 {
|
|
|
1710
3385
|
|
|
1711
3386
|
type: 'bash_20250124';
|
|
1712
3387
|
|
|
1713
|
-
allowed_callers?: Array<
|
|
3388
|
+
allowed_callers?: Array<
|
|
3389
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3390
|
+
>;
|
|
1714
3391
|
|
|
1715
3392
|
/**
|
|
1716
3393
|
* Create a cache control breakpoint at this content block.
|
|
@@ -1832,9 +3509,15 @@ export interface ToolResultBlockParam {
|
|
|
1832
3509
|
| SearchResultBlockParam
|
|
1833
3510
|
| DocumentBlockParam
|
|
1834
3511
|
| ToolReferenceBlockParam
|
|
3512
|
+
| BrowserStateBlockParam
|
|
1835
3513
|
>;
|
|
1836
3514
|
|
|
1837
3515
|
is_error?: boolean;
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* For a toolset member tool_result, the toolset family of the paired tool_use.
|
|
3519
|
+
*/
|
|
3520
|
+
toolset_name?: string | null;
|
|
1838
3521
|
}
|
|
1839
3522
|
|
|
1840
3523
|
export interface ToolSearchToolBm25_20251119 {
|
|
@@ -1847,7 +3530,9 @@ export interface ToolSearchToolBm25_20251119 {
|
|
|
1847
3530
|
|
|
1848
3531
|
type: 'tool_search_tool_bm25_20251119' | 'tool_search_tool_bm25';
|
|
1849
3532
|
|
|
1850
|
-
allowed_callers?: Array<
|
|
3533
|
+
allowed_callers?: Array<
|
|
3534
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3535
|
+
>;
|
|
1851
3536
|
|
|
1852
3537
|
/**
|
|
1853
3538
|
* Create a cache control breakpoint at this content block.
|
|
@@ -1876,7 +3561,9 @@ export interface ToolSearchToolRegex20251119 {
|
|
|
1876
3561
|
|
|
1877
3562
|
type: 'tool_search_tool_regex_20251119' | 'tool_search_tool_regex';
|
|
1878
3563
|
|
|
1879
|
-
allowed_callers?: Array<
|
|
3564
|
+
allowed_callers?: Array<
|
|
3565
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3566
|
+
>;
|
|
1880
3567
|
|
|
1881
3568
|
/**
|
|
1882
3569
|
* Create a cache control breakpoint at this content block.
|
|
@@ -1934,6 +3621,8 @@ export interface ToolSearchToolResultErrorParam {
|
|
|
1934
3621
|
error_code: ToolSearchToolResultErrorCode;
|
|
1935
3622
|
|
|
1936
3623
|
type: 'tool_search_tool_result_error';
|
|
3624
|
+
|
|
3625
|
+
error_message?: string | null;
|
|
1937
3626
|
}
|
|
1938
3627
|
|
|
1939
3628
|
export interface ToolSearchToolSearchResultBlock {
|
|
@@ -1958,7 +3647,9 @@ export interface ToolTextEditor20250124 {
|
|
|
1958
3647
|
|
|
1959
3648
|
type: 'text_editor_20250124';
|
|
1960
3649
|
|
|
1961
|
-
allowed_callers?: Array<
|
|
3650
|
+
allowed_callers?: Array<
|
|
3651
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3652
|
+
>;
|
|
1962
3653
|
|
|
1963
3654
|
/**
|
|
1964
3655
|
* Create a cache control breakpoint at this content block.
|
|
@@ -1989,7 +3680,9 @@ export interface ToolTextEditor20250429 {
|
|
|
1989
3680
|
|
|
1990
3681
|
type: 'text_editor_20250429';
|
|
1991
3682
|
|
|
1992
|
-
allowed_callers?: Array<
|
|
3683
|
+
allowed_callers?: Array<
|
|
3684
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3685
|
+
>;
|
|
1993
3686
|
|
|
1994
3687
|
/**
|
|
1995
3688
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2020,7 +3713,9 @@ export interface ToolTextEditor20250728 {
|
|
|
2020
3713
|
|
|
2021
3714
|
type: 'text_editor_20250728';
|
|
2022
3715
|
|
|
2023
|
-
allowed_callers?: Array<
|
|
3716
|
+
allowed_callers?: Array<
|
|
3717
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3718
|
+
>;
|
|
2024
3719
|
|
|
2025
3720
|
/**
|
|
2026
3721
|
* Create a cache control breakpoint at this content block.
|
|
@@ -2057,7 +3752,10 @@ export type ToolUnion =
|
|
|
2057
3752
|
| CodeExecutionTool20250522
|
|
2058
3753
|
| CodeExecutionTool20250825
|
|
2059
3754
|
| CodeExecutionTool20260120
|
|
3755
|
+
| CodeExecutionTool20260521
|
|
3756
|
+
| BrowserToolset20260801
|
|
2060
3757
|
| MemoryTool20250818
|
|
3758
|
+
| ComputerToolset20260801
|
|
2061
3759
|
| ToolTextEditor20250124
|
|
2062
3760
|
| ToolTextEditor20250429
|
|
2063
3761
|
| ToolTextEditor20250728
|
|
@@ -2066,6 +3764,8 @@ export type ToolUnion =
|
|
|
2066
3764
|
| WebSearchTool20260209
|
|
2067
3765
|
| WebFetchTool20260209
|
|
2068
3766
|
| WebFetchTool20260309
|
|
3767
|
+
| WebSearchTool20260318
|
|
3768
|
+
| WebFetchTool20260318
|
|
2069
3769
|
| ToolSearchToolBm25_20251119
|
|
2070
3770
|
| ToolSearchToolRegex20251119;
|
|
2071
3771
|
|
|
@@ -2082,6 +3782,11 @@ export interface ToolUseBlock {
|
|
|
2082
3782
|
name: string;
|
|
2083
3783
|
|
|
2084
3784
|
type: 'tool_use';
|
|
3785
|
+
|
|
3786
|
+
/**
|
|
3787
|
+
* For a toolset member tool_use, the toolset family.
|
|
3788
|
+
*/
|
|
3789
|
+
toolset_name?: string | null;
|
|
2085
3790
|
}
|
|
2086
3791
|
|
|
2087
3792
|
export interface ToolUseBlockParam {
|
|
@@ -2102,6 +3807,11 @@ export interface ToolUseBlockParam {
|
|
|
2102
3807
|
* Tool invocation directly from the model.
|
|
2103
3808
|
*/
|
|
2104
3809
|
caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
3810
|
+
|
|
3811
|
+
/**
|
|
3812
|
+
* For a toolset member tool_use, the toolset family this member belongs to.
|
|
3813
|
+
*/
|
|
3814
|
+
toolset_name?: string | null;
|
|
2105
3815
|
}
|
|
2106
3816
|
|
|
2107
3817
|
export interface URLImageSource {
|
|
@@ -2147,6 +3857,16 @@ export interface Usage {
|
|
|
2147
3857
|
*/
|
|
2148
3858
|
output_tokens: number;
|
|
2149
3859
|
|
|
3860
|
+
/**
|
|
3861
|
+
* Breakdown of output tokens by category.
|
|
3862
|
+
*
|
|
3863
|
+
* `output_tokens` remains the inclusive, authoritative total used for billing.
|
|
3864
|
+
* This object provides a read-only decomposition for observability — for example,
|
|
3865
|
+
* how many of the billed output tokens were spent on internal reasoning that may
|
|
3866
|
+
* have been summarized before being returned to you.
|
|
3867
|
+
*/
|
|
3868
|
+
output_tokens_details: OutputTokensDetails | null;
|
|
3869
|
+
|
|
2150
3870
|
/**
|
|
2151
3871
|
* The number of server tool requests.
|
|
2152
3872
|
*/
|
|
@@ -2226,7 +3946,9 @@ export interface WebFetchTool20250910 {
|
|
|
2226
3946
|
|
|
2227
3947
|
type: 'web_fetch_20250910';
|
|
2228
3948
|
|
|
2229
|
-
allowed_callers?: Array<
|
|
3949
|
+
allowed_callers?: Array<
|
|
3950
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
3951
|
+
>;
|
|
2230
3952
|
|
|
2231
3953
|
/**
|
|
2232
3954
|
* List of domains to allow fetching from
|
|
@@ -2282,7 +4004,9 @@ export interface WebFetchTool20260209 {
|
|
|
2282
4004
|
|
|
2283
4005
|
type: 'web_fetch_20260209';
|
|
2284
4006
|
|
|
2285
|
-
allowed_callers?: Array<
|
|
4007
|
+
allowed_callers?: Array<
|
|
4008
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4009
|
+
>;
|
|
2286
4010
|
|
|
2287
4011
|
/**
|
|
2288
4012
|
* List of domains to allow fetching from
|
|
@@ -2341,7 +4065,74 @@ export interface WebFetchTool20260309 {
|
|
|
2341
4065
|
|
|
2342
4066
|
type: 'web_fetch_20260309';
|
|
2343
4067
|
|
|
2344
|
-
allowed_callers?: Array<
|
|
4068
|
+
allowed_callers?: Array<
|
|
4069
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4070
|
+
>;
|
|
4071
|
+
|
|
4072
|
+
/**
|
|
4073
|
+
* List of domains to allow fetching from
|
|
4074
|
+
*/
|
|
4075
|
+
allowed_domains?: Array<string> | null;
|
|
4076
|
+
|
|
4077
|
+
/**
|
|
4078
|
+
* List of domains to block fetching from
|
|
4079
|
+
*/
|
|
4080
|
+
blocked_domains?: Array<string> | null;
|
|
4081
|
+
|
|
4082
|
+
/**
|
|
4083
|
+
* Create a cache control breakpoint at this content block.
|
|
4084
|
+
*/
|
|
4085
|
+
cache_control?: CacheControlEphemeral | null;
|
|
4086
|
+
|
|
4087
|
+
/**
|
|
4088
|
+
* Citations configuration for fetched documents. Citations are disabled by
|
|
4089
|
+
* default.
|
|
4090
|
+
*/
|
|
4091
|
+
citations?: CitationsConfigParam | null;
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
4095
|
+
* returned via tool_reference from tool search.
|
|
4096
|
+
*/
|
|
4097
|
+
defer_loading?: boolean;
|
|
4098
|
+
|
|
4099
|
+
/**
|
|
4100
|
+
* Maximum number of tokens used by including web page text content in the context.
|
|
4101
|
+
* The limit is approximate and does not apply to binary content such as PDFs.
|
|
4102
|
+
*/
|
|
4103
|
+
max_content_tokens?: number | null;
|
|
4104
|
+
|
|
4105
|
+
/**
|
|
4106
|
+
* Maximum number of times the tool can be used in the API request.
|
|
4107
|
+
*/
|
|
4108
|
+
max_uses?: number | null;
|
|
4109
|
+
|
|
4110
|
+
/**
|
|
4111
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
4112
|
+
*/
|
|
4113
|
+
strict?: boolean;
|
|
4114
|
+
|
|
4115
|
+
/**
|
|
4116
|
+
* Whether to use cached content. Set to false to bypass the cache and fetch fresh
|
|
4117
|
+
* content. Only set to false when the user explicitly requests fresh content or
|
|
4118
|
+
* when fetching rapidly-changing sources.
|
|
4119
|
+
*/
|
|
4120
|
+
use_cache?: boolean;
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
export interface WebFetchTool20260318 {
|
|
4124
|
+
/**
|
|
4125
|
+
* Name of the tool.
|
|
4126
|
+
*
|
|
4127
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
4128
|
+
*/
|
|
4129
|
+
name: 'web_fetch';
|
|
4130
|
+
|
|
4131
|
+
type: 'web_fetch_20260318';
|
|
4132
|
+
|
|
4133
|
+
allowed_callers?: Array<
|
|
4134
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4135
|
+
>;
|
|
2345
4136
|
|
|
2346
4137
|
/**
|
|
2347
4138
|
* List of domains to allow fetching from
|
|
@@ -2381,6 +4172,16 @@ export interface WebFetchTool20260309 {
|
|
|
2381
4172
|
*/
|
|
2382
4173
|
max_uses?: number | null;
|
|
2383
4174
|
|
|
4175
|
+
/**
|
|
4176
|
+
* How this tool's result blocks appear in the API response when the result was
|
|
4177
|
+
* consumed by a completed code_execution call in the same turn. 'full' returns the
|
|
4178
|
+
* complete content (default). 'excluded' drops the nested server_tool_use and
|
|
4179
|
+
* result block pair entirely. Results from direct calls, or from code_execution
|
|
4180
|
+
* calls that paused before completing, are always returned in full so they can be
|
|
4181
|
+
* sent back on the next turn.
|
|
4182
|
+
*/
|
|
4183
|
+
response_inclusion?: 'full' | 'excluded';
|
|
4184
|
+
|
|
2384
4185
|
/**
|
|
2385
4186
|
* When true, guarantees schema validation on tool names and inputs
|
|
2386
4187
|
*/
|
|
@@ -2441,6 +4242,7 @@ export type WebFetchToolResultErrorCode =
|
|
|
2441
4242
|
| 'invalid_tool_input'
|
|
2442
4243
|
| 'url_too_long'
|
|
2443
4244
|
| 'url_not_allowed'
|
|
4245
|
+
| 'url_not_in_prior_context'
|
|
2444
4246
|
| 'url_not_accessible'
|
|
2445
4247
|
| 'unsupported_content_type'
|
|
2446
4248
|
| 'too_many_requests'
|
|
@@ -2481,7 +4283,9 @@ export interface WebSearchTool20250305 {
|
|
|
2481
4283
|
|
|
2482
4284
|
type: 'web_search_20250305';
|
|
2483
4285
|
|
|
2484
|
-
allowed_callers?: Array<
|
|
4286
|
+
allowed_callers?: Array<
|
|
4287
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4288
|
+
>;
|
|
2485
4289
|
|
|
2486
4290
|
/**
|
|
2487
4291
|
* If provided, only these domains will be included in results. Cannot be used
|
|
@@ -2542,7 +4346,9 @@ export interface WebSearchTool20260209 {
|
|
|
2542
4346
|
|
|
2543
4347
|
type: 'web_search_20260209';
|
|
2544
4348
|
|
|
2545
|
-
allowed_callers?: Array<
|
|
4349
|
+
allowed_callers?: Array<
|
|
4350
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4351
|
+
>;
|
|
2546
4352
|
|
|
2547
4353
|
/**
|
|
2548
4354
|
* If provided, only these domains will be included in results. Cannot be used
|
|
@@ -2593,6 +4399,70 @@ export namespace WebSearchTool20260209 {
|
|
|
2593
4399
|
export type UserLocation = Messages.UserLocation;
|
|
2594
4400
|
}
|
|
2595
4401
|
|
|
4402
|
+
export interface WebSearchTool20260318 {
|
|
4403
|
+
/**
|
|
4404
|
+
* Name of the tool.
|
|
4405
|
+
*
|
|
4406
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
4407
|
+
*/
|
|
4408
|
+
name: 'web_search';
|
|
4409
|
+
|
|
4410
|
+
type: 'web_search_20260318';
|
|
4411
|
+
|
|
4412
|
+
allowed_callers?: Array<
|
|
4413
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
4414
|
+
>;
|
|
4415
|
+
|
|
4416
|
+
/**
|
|
4417
|
+
* If provided, only these domains will be included in results. Cannot be used
|
|
4418
|
+
* alongside `blocked_domains`.
|
|
4419
|
+
*/
|
|
4420
|
+
allowed_domains?: Array<string> | null;
|
|
4421
|
+
|
|
4422
|
+
/**
|
|
4423
|
+
* If provided, these domains will never appear in results. Cannot be used
|
|
4424
|
+
* alongside `allowed_domains`.
|
|
4425
|
+
*/
|
|
4426
|
+
blocked_domains?: Array<string> | null;
|
|
4427
|
+
|
|
4428
|
+
/**
|
|
4429
|
+
* Create a cache control breakpoint at this content block.
|
|
4430
|
+
*/
|
|
4431
|
+
cache_control?: CacheControlEphemeral | null;
|
|
4432
|
+
|
|
4433
|
+
/**
|
|
4434
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
4435
|
+
* returned via tool_reference from tool search.
|
|
4436
|
+
*/
|
|
4437
|
+
defer_loading?: boolean;
|
|
4438
|
+
|
|
4439
|
+
/**
|
|
4440
|
+
* Maximum number of times the tool can be used in the API request.
|
|
4441
|
+
*/
|
|
4442
|
+
max_uses?: number | null;
|
|
4443
|
+
|
|
4444
|
+
/**
|
|
4445
|
+
* How this tool's result blocks appear in the API response when the result was
|
|
4446
|
+
* consumed by a completed code_execution call in the same turn. 'full' returns the
|
|
4447
|
+
* complete content (default). 'excluded' drops the nested server_tool_use and
|
|
4448
|
+
* result block pair entirely. Results from direct calls, or from code_execution
|
|
4449
|
+
* calls that paused before completing, are always returned in full so they can be
|
|
4450
|
+
* sent back on the next turn.
|
|
4451
|
+
*/
|
|
4452
|
+
response_inclusion?: 'full' | 'excluded';
|
|
4453
|
+
|
|
4454
|
+
/**
|
|
4455
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
4456
|
+
*/
|
|
4457
|
+
strict?: boolean;
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* Parameters for the user's location. Used to provide more relevant search
|
|
4461
|
+
* results.
|
|
4462
|
+
*/
|
|
4463
|
+
user_location?: UserLocation | null;
|
|
4464
|
+
}
|
|
4465
|
+
|
|
2596
4466
|
export interface WebSearchToolRequestError {
|
|
2597
4467
|
error_code: WebSearchToolResultErrorCode;
|
|
2598
4468
|
|
|
@@ -2668,18 +4538,23 @@ export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreat
|
|
|
2668
4538
|
|
|
2669
4539
|
export interface MessageCreateParamsBase {
|
|
2670
4540
|
/**
|
|
2671
|
-
* The maximum number of tokens to generate before stopping.
|
|
4541
|
+
* Body param: The maximum number of tokens to generate before stopping.
|
|
2672
4542
|
*
|
|
2673
4543
|
* Note that our models may stop _before_ reaching this maximum. This parameter
|
|
2674
4544
|
* only specifies the absolute maximum number of tokens to generate.
|
|
2675
4545
|
*
|
|
4546
|
+
* Set to `0` to populate the
|
|
4547
|
+
* [prompt cache](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#pre-warming-the-cache)
|
|
4548
|
+
* without generating a response.
|
|
4549
|
+
*
|
|
2676
4550
|
* Different models have different maximum values for this parameter. See
|
|
2677
|
-
* [models](https://
|
|
4551
|
+
* [models](https://platform.claude.com/docs/en/about-claude/models/overview) for
|
|
4552
|
+
* details.
|
|
2678
4553
|
*/
|
|
2679
4554
|
max_tokens: number;
|
|
2680
4555
|
|
|
2681
4556
|
/**
|
|
2682
|
-
* Input messages.
|
|
4557
|
+
* Body param: Input messages.
|
|
2683
4558
|
*
|
|
2684
4559
|
* Our models are trained to operate on alternating `user` and `assistant`
|
|
2685
4560
|
* conversational turns. When creating a new `Message`, you specify the prior
|
|
@@ -2736,62 +4611,66 @@ export interface MessageCreateParamsBase {
|
|
|
2736
4611
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
2737
4612
|
* ```
|
|
2738
4613
|
*
|
|
2739
|
-
* See
|
|
4614
|
+
* See
|
|
4615
|
+
* [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
|
|
2740
4616
|
*
|
|
2741
4617
|
* Note that if you want to include a
|
|
2742
|
-
* [system prompt](https://
|
|
2743
|
-
* top-level `system` parameter — there is no `"system"` role for
|
|
2744
|
-
* the Messages API.
|
|
4618
|
+
* [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
4619
|
+
* you can use the top-level `system` parameter — there is no `"system"` role for
|
|
4620
|
+
* input messages in the Messages API.
|
|
2745
4621
|
*
|
|
2746
4622
|
* There is a limit of 100,000 messages in a single request.
|
|
2747
4623
|
*/
|
|
2748
4624
|
messages: Array<MessageParam>;
|
|
2749
4625
|
|
|
2750
4626
|
/**
|
|
2751
|
-
* The model that will complete your prompt
|
|
2752
|
-
*
|
|
4627
|
+
* Body param: The model that will complete your prompt.
|
|
4628
|
+
*
|
|
4629
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
2753
4630
|
* details and options.
|
|
2754
4631
|
*/
|
|
2755
4632
|
model: Model;
|
|
2756
4633
|
|
|
2757
4634
|
/**
|
|
2758
|
-
* Top-level cache control automatically applies a cache_control marker
|
|
2759
|
-
* cacheable block in the request.
|
|
4635
|
+
* Body param: Top-level cache control automatically applies a cache_control marker
|
|
4636
|
+
* to the last cacheable block in the request.
|
|
2760
4637
|
*/
|
|
2761
4638
|
cache_control?: CacheControlEphemeral | null;
|
|
2762
4639
|
|
|
2763
4640
|
/**
|
|
2764
|
-
* Container identifier for reuse across requests.
|
|
4641
|
+
* Body param: Container identifier for reuse across requests.
|
|
2765
4642
|
*/
|
|
2766
|
-
container?:
|
|
4643
|
+
container?: MessageCreateParamsContainer | null;
|
|
2767
4644
|
|
|
2768
4645
|
/**
|
|
2769
|
-
* Specifies the geographic region for inference processing. If not
|
|
2770
|
-
* workspace's `default_inference_geo` is used.
|
|
4646
|
+
* Body param: Specifies the geographic region for inference processing. If not
|
|
4647
|
+
* specified, the workspace's `default_inference_geo` is used.
|
|
2771
4648
|
*/
|
|
2772
4649
|
inference_geo?: string | null;
|
|
2773
4650
|
|
|
2774
4651
|
/**
|
|
2775
|
-
* An object describing metadata about the request.
|
|
4652
|
+
* Body param: An object describing metadata about the request.
|
|
2776
4653
|
*/
|
|
2777
4654
|
metadata?: Metadata;
|
|
2778
4655
|
|
|
2779
4656
|
/**
|
|
2780
|
-
* Configuration options for the model's output, such as the output
|
|
4657
|
+
* Body param: Configuration options for the model's output, such as the output
|
|
4658
|
+
* format.
|
|
2781
4659
|
*/
|
|
2782
4660
|
output_config?: OutputConfig;
|
|
2783
4661
|
|
|
2784
4662
|
/**
|
|
2785
|
-
* Determines whether to use priority capacity (if available) or
|
|
2786
|
-
* for this request.
|
|
4663
|
+
* Body param: Determines whether to use priority capacity (if available) or
|
|
4664
|
+
* standard capacity for this request.
|
|
2787
4665
|
*
|
|
2788
4666
|
* Anthropic offers different levels of service for your API requests. See
|
|
2789
|
-
* [service-tiers](https://
|
|
4667
|
+
* [service-tiers](https://platform.claude.com/docs/en/api/service-tiers) for
|
|
4668
|
+
* details.
|
|
2790
4669
|
*/
|
|
2791
4670
|
service_tier?: 'auto' | 'standard_only';
|
|
2792
4671
|
|
|
2793
4672
|
/**
|
|
2794
|
-
* Custom text sequences that will cause the model to stop generating.
|
|
4673
|
+
* Body param: Custom text sequences that will cause the model to stop generating.
|
|
2795
4674
|
*
|
|
2796
4675
|
* Our models will normally stop when they have naturally completed their turn,
|
|
2797
4676
|
* which will result in a response `stop_reason` of `"end_turn"`.
|
|
@@ -2804,18 +4683,20 @@ export interface MessageCreateParamsBase {
|
|
|
2804
4683
|
stop_sequences?: Array<string>;
|
|
2805
4684
|
|
|
2806
4685
|
/**
|
|
2807
|
-
* Whether to incrementally stream the response using server-sent
|
|
4686
|
+
* Body param: Whether to incrementally stream the response using server-sent
|
|
4687
|
+
* events.
|
|
2808
4688
|
*
|
|
2809
|
-
* See [streaming](https://
|
|
4689
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
4690
|
+
* for details.
|
|
2810
4691
|
*/
|
|
2811
4692
|
stream?: boolean;
|
|
2812
4693
|
|
|
2813
4694
|
/**
|
|
2814
|
-
* System prompt.
|
|
4695
|
+
* Body param: System prompt.
|
|
2815
4696
|
*
|
|
2816
4697
|
* A system prompt is a way of providing context and instructions to Claude, such
|
|
2817
4698
|
* as specifying a particular goal or role. See our
|
|
2818
|
-
* [guide to system prompts](https://
|
|
4699
|
+
* [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
2819
4700
|
*/
|
|
2820
4701
|
system?: string | Array<TextBlockParam>;
|
|
2821
4702
|
|
|
@@ -2827,26 +4708,26 @@ export interface MessageCreateParamsBase {
|
|
|
2827
4708
|
temperature?: number;
|
|
2828
4709
|
|
|
2829
4710
|
/**
|
|
2830
|
-
* Configuration for enabling Claude's extended thinking.
|
|
4711
|
+
* Body param: Configuration for enabling Claude's extended thinking.
|
|
2831
4712
|
*
|
|
2832
4713
|
* When enabled, responses include `thinking` content blocks showing Claude's
|
|
2833
4714
|
* thinking process before the final answer. Requires a minimum budget of 1,024
|
|
2834
4715
|
* tokens and counts towards your `max_tokens` limit.
|
|
2835
4716
|
*
|
|
2836
4717
|
* See
|
|
2837
|
-
* [extended thinking](https://
|
|
4718
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
2838
4719
|
* for details.
|
|
2839
4720
|
*/
|
|
2840
4721
|
thinking?: ThinkingConfigParam;
|
|
2841
4722
|
|
|
2842
4723
|
/**
|
|
2843
|
-
* How the model should use the provided tools. The model can use a
|
|
2844
|
-
* any available tool, decide by itself, or not use tools at all.
|
|
4724
|
+
* Body param: How the model should use the provided tools. The model can use a
|
|
4725
|
+
* specific tool, any available tool, decide by itself, or not use tools at all.
|
|
2845
4726
|
*/
|
|
2846
4727
|
tool_choice?: ToolChoice;
|
|
2847
4728
|
|
|
2848
4729
|
/**
|
|
2849
|
-
* Definitions of tools that the model may use.
|
|
4730
|
+
* Body param: Definitions of tools that the model may use.
|
|
2850
4731
|
*
|
|
2851
4732
|
* If you include `tools` in your API request, the model may return `tool_use`
|
|
2852
4733
|
* content blocks that represent the model's use of those tools. You can then run
|
|
@@ -2855,9 +4736,9 @@ export interface MessageCreateParamsBase {
|
|
|
2855
4736
|
*
|
|
2856
4737
|
* There are two types of tools: **client tools** and **server tools**. The
|
|
2857
4738
|
* behavior described below applies to client tools. For
|
|
2858
|
-
* [server tools](https://
|
|
4739
|
+
* [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
|
|
2859
4740
|
* see their individual documentation as each has its own behavior (e.g., the
|
|
2860
|
-
* [web search tool](https://
|
|
4741
|
+
* [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
|
|
2861
4742
|
*
|
|
2862
4743
|
* Each tool definition includes:
|
|
2863
4744
|
*
|
|
@@ -2920,7 +4801,9 @@ export interface MessageCreateParamsBase {
|
|
|
2920
4801
|
* functions, or more generally whenever you want the model to produce a particular
|
|
2921
4802
|
* JSON structure of output.
|
|
2922
4803
|
*
|
|
2923
|
-
* See our
|
|
4804
|
+
* See our
|
|
4805
|
+
* [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
4806
|
+
* for more details.
|
|
2924
4807
|
*/
|
|
2925
4808
|
tools?: Array<ToolUnion>;
|
|
2926
4809
|
|
|
@@ -2936,6 +4819,13 @@ export interface MessageCreateParamsBase {
|
|
|
2936
4819
|
* other values will be rejected with a 400 error.
|
|
2937
4820
|
*/
|
|
2938
4821
|
top_p?: number;
|
|
4822
|
+
|
|
4823
|
+
/**
|
|
4824
|
+
* Header param: The user profile ID to attribute this request to. Use when acting
|
|
4825
|
+
* on behalf of a party other than your organization. Requires the `user-profiles`
|
|
4826
|
+
* beta header.
|
|
4827
|
+
*/
|
|
4828
|
+
user_profile_id?: string;
|
|
2939
4829
|
}
|
|
2940
4830
|
|
|
2941
4831
|
export namespace MessageCreateParams {
|
|
@@ -2945,18 +4835,22 @@ export namespace MessageCreateParams {
|
|
|
2945
4835
|
|
|
2946
4836
|
export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase {
|
|
2947
4837
|
/**
|
|
2948
|
-
* Whether to incrementally stream the response using server-sent
|
|
4838
|
+
* Body param: Whether to incrementally stream the response using server-sent
|
|
4839
|
+
* events.
|
|
2949
4840
|
*
|
|
2950
|
-
* See [streaming](https://
|
|
4841
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
4842
|
+
* for details.
|
|
2951
4843
|
*/
|
|
2952
4844
|
stream?: false;
|
|
2953
4845
|
}
|
|
2954
4846
|
|
|
2955
4847
|
export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
|
|
2956
4848
|
/**
|
|
2957
|
-
* Whether to incrementally stream the response using server-sent
|
|
4849
|
+
* Body param: Whether to incrementally stream the response using server-sent
|
|
4850
|
+
* events.
|
|
2958
4851
|
*
|
|
2959
|
-
* See [streaming](https://
|
|
4852
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
4853
|
+
* for details.
|
|
2960
4854
|
*/
|
|
2961
4855
|
stream: true;
|
|
2962
4856
|
}
|
|
@@ -2965,7 +4859,7 @@ export type MessageStreamParams = ParseableMessageCreateParams;
|
|
|
2965
4859
|
|
|
2966
4860
|
export interface MessageCountTokensParams {
|
|
2967
4861
|
/**
|
|
2968
|
-
* Input messages.
|
|
4862
|
+
* Body param: Input messages.
|
|
2969
4863
|
*
|
|
2970
4864
|
* Our models are trained to operate on alternating `user` and `assistant`
|
|
2971
4865
|
* conversational turns. When creating a new `Message`, you specify the prior
|
|
@@ -3022,65 +4916,68 @@ export interface MessageCountTokensParams {
|
|
|
3022
4916
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
3023
4917
|
* ```
|
|
3024
4918
|
*
|
|
3025
|
-
* See
|
|
4919
|
+
* See
|
|
4920
|
+
* [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
|
|
3026
4921
|
*
|
|
3027
4922
|
* Note that if you want to include a
|
|
3028
|
-
* [system prompt](https://
|
|
3029
|
-
* top-level `system` parameter — there is no `"system"` role for
|
|
3030
|
-
* the Messages API.
|
|
4923
|
+
* [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
4924
|
+
* you can use the top-level `system` parameter — there is no `"system"` role for
|
|
4925
|
+
* input messages in the Messages API.
|
|
3031
4926
|
*
|
|
3032
4927
|
* There is a limit of 100,000 messages in a single request.
|
|
3033
4928
|
*/
|
|
3034
4929
|
messages: Array<MessageParam>;
|
|
3035
4930
|
|
|
3036
4931
|
/**
|
|
3037
|
-
* The model that will complete your prompt
|
|
3038
|
-
*
|
|
4932
|
+
* Body param: The model that will complete your prompt.
|
|
4933
|
+
*
|
|
4934
|
+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
3039
4935
|
* details and options.
|
|
3040
4936
|
*/
|
|
3041
4937
|
model: Model;
|
|
3042
4938
|
|
|
3043
4939
|
/**
|
|
3044
|
-
* Top-level cache control automatically applies a cache_control marker
|
|
3045
|
-
* cacheable block in the request.
|
|
4940
|
+
* Body param: Top-level cache control automatically applies a cache_control marker
|
|
4941
|
+
* to the last cacheable block in the request.
|
|
3046
4942
|
*/
|
|
3047
4943
|
cache_control?: CacheControlEphemeral | null;
|
|
3048
4944
|
|
|
3049
4945
|
/**
|
|
3050
|
-
* Configuration options for the model's output, such as the output
|
|
4946
|
+
* Body param: Configuration options for the model's output, such as the output
|
|
4947
|
+
* format.
|
|
3051
4948
|
*/
|
|
3052
4949
|
output_config?: OutputConfig;
|
|
3053
4950
|
|
|
3054
4951
|
/**
|
|
3055
|
-
* System prompt.
|
|
4952
|
+
* Body param: System prompt.
|
|
3056
4953
|
*
|
|
3057
4954
|
* A system prompt is a way of providing context and instructions to Claude, such
|
|
3058
4955
|
* as specifying a particular goal or role. See our
|
|
3059
|
-
* [guide to system prompts](https://
|
|
4956
|
+
* [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
3060
4957
|
*/
|
|
3061
4958
|
system?: string | Array<TextBlockParam>;
|
|
3062
4959
|
|
|
3063
4960
|
/**
|
|
3064
|
-
* Configuration for enabling Claude's extended thinking.
|
|
4961
|
+
* Body param: Configuration for enabling Claude's extended thinking.
|
|
3065
4962
|
*
|
|
3066
4963
|
* When enabled, responses include `thinking` content blocks showing Claude's
|
|
3067
4964
|
* thinking process before the final answer. Requires a minimum budget of 1,024
|
|
3068
4965
|
* tokens and counts towards your `max_tokens` limit.
|
|
3069
4966
|
*
|
|
3070
4967
|
* See
|
|
3071
|
-
* [extended thinking](https://
|
|
4968
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
3072
4969
|
* for details.
|
|
3073
4970
|
*/
|
|
3074
4971
|
thinking?: ThinkingConfigParam;
|
|
3075
4972
|
|
|
3076
4973
|
/**
|
|
3077
|
-
* How the model should use the provided tools. The model can use a
|
|
3078
|
-
* any available tool, decide by itself, or not use tools at all.
|
|
4974
|
+
* Body param: How the model should use the provided tools. The model can use a
|
|
4975
|
+
* specific tool, any available tool, decide by itself, or not use tools at all.
|
|
3079
4976
|
*/
|
|
3080
4977
|
tool_choice?: ToolChoice;
|
|
3081
4978
|
|
|
3082
4979
|
/**
|
|
3083
|
-
* Definitions of tools that the model may use.
|
|
4980
|
+
* Body param: Definitions of tools that the model may use.
|
|
3084
4981
|
*
|
|
3085
4982
|
* If you include `tools` in your API request, the model may return `tool_use`
|
|
3086
4983
|
* content blocks that represent the model's use of those tools. You can then run
|
|
@@ -3089,9 +4986,9 @@ export interface MessageCountTokensParams {
|
|
|
3089
4986
|
*
|
|
3090
4987
|
* There are two types of tools: **client tools** and **server tools**. The
|
|
3091
4988
|
* behavior described below applies to client tools. For
|
|
3092
|
-
* [server tools](https://
|
|
4989
|
+
* [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
|
|
3093
4990
|
* see their individual documentation as each has its own behavior (e.g., the
|
|
3094
|
-
* [web search tool](https://
|
|
4991
|
+
* [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
|
|
3095
4992
|
*
|
|
3096
4993
|
* Each tool definition includes:
|
|
3097
4994
|
*
|
|
@@ -3154,9 +5051,18 @@ export interface MessageCountTokensParams {
|
|
|
3154
5051
|
* functions, or more generally whenever you want the model to produce a particular
|
|
3155
5052
|
* JSON structure of output.
|
|
3156
5053
|
*
|
|
3157
|
-
* See our
|
|
5054
|
+
* See our
|
|
5055
|
+
* [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
5056
|
+
* for more details.
|
|
3158
5057
|
*/
|
|
3159
5058
|
tools?: Array<MessageCountTokensTool>;
|
|
5059
|
+
|
|
5060
|
+
/**
|
|
5061
|
+
* Header param: The user profile ID to attribute this request to. Use when acting
|
|
5062
|
+
* on behalf of a party other than your organization. Requires the `user-profiles`
|
|
5063
|
+
* beta header.
|
|
5064
|
+
*/
|
|
5065
|
+
user_profile_id?: string;
|
|
3160
5066
|
}
|
|
3161
5067
|
|
|
3162
5068
|
Messages.Batches = Batches;
|
|
@@ -3174,6 +5080,46 @@ export declare namespace Messages {
|
|
|
3174
5080
|
type BashCodeExecutionToolResultError as BashCodeExecutionToolResultError,
|
|
3175
5081
|
type BashCodeExecutionToolResultErrorCode as BashCodeExecutionToolResultErrorCode,
|
|
3176
5082
|
type BashCodeExecutionToolResultErrorParam as BashCodeExecutionToolResultErrorParam,
|
|
5083
|
+
type BrowserCloseTabConfig as BrowserCloseTabConfig,
|
|
5084
|
+
type BrowserDoubleClickConfig as BrowserDoubleClickConfig,
|
|
5085
|
+
type BrowserFileUploadConfig as BrowserFileUploadConfig,
|
|
5086
|
+
type BrowserFindConfig as BrowserFindConfig,
|
|
5087
|
+
type BrowserFormInputConfig as BrowserFormInputConfig,
|
|
5088
|
+
type BrowserGetPageTextConfig as BrowserGetPageTextConfig,
|
|
5089
|
+
type BrowserHoldKeyConfig as BrowserHoldKeyConfig,
|
|
5090
|
+
type BrowserHoverConfig as BrowserHoverConfig,
|
|
5091
|
+
type BrowserJavascriptExecConfig as BrowserJavascriptExecConfig,
|
|
5092
|
+
type BrowserKeyConfig as BrowserKeyConfig,
|
|
5093
|
+
type BrowserLeftClickConfig as BrowserLeftClickConfig,
|
|
5094
|
+
type BrowserLeftClickDragConfig as BrowserLeftClickDragConfig,
|
|
5095
|
+
type BrowserLeftMouseDownConfig as BrowserLeftMouseDownConfig,
|
|
5096
|
+
type BrowserLeftMouseUpConfig as BrowserLeftMouseUpConfig,
|
|
5097
|
+
type BrowserListTabsConfig as BrowserListTabsConfig,
|
|
5098
|
+
type BrowserMiddleClickConfig as BrowserMiddleClickConfig,
|
|
5099
|
+
type BrowserMouseMoveConfig as BrowserMouseMoveConfig,
|
|
5100
|
+
type BrowserNavigateConfig as BrowserNavigateConfig,
|
|
5101
|
+
type BrowserNewTabConfig as BrowserNewTabConfig,
|
|
5102
|
+
type BrowserReadConsoleConfig as BrowserReadConsoleConfig,
|
|
5103
|
+
type BrowserReadNetworkConfig as BrowserReadNetworkConfig,
|
|
5104
|
+
type BrowserReadPageConfig as BrowserReadPageConfig,
|
|
5105
|
+
type BrowserRightClickConfig as BrowserRightClickConfig,
|
|
5106
|
+
type BrowserScreenshotConfig as BrowserScreenshotConfig,
|
|
5107
|
+
type BrowserScrollConfig as BrowserScrollConfig,
|
|
5108
|
+
type BrowserScrollToConfig as BrowserScrollToConfig,
|
|
5109
|
+
type BrowserStateBlockParam as BrowserStateBlockParam,
|
|
5110
|
+
type BrowserStateChange as BrowserStateChange,
|
|
5111
|
+
type BrowserStateChangeDownloadCompleted as BrowserStateChangeDownloadCompleted,
|
|
5112
|
+
type BrowserStateChangeDownloadFailed as BrowserStateChangeDownloadFailed,
|
|
5113
|
+
type BrowserStateChangeDownloadStarted as BrowserStateChangeDownloadStarted,
|
|
5114
|
+
type BrowserStateChangeTabOpened as BrowserStateChangeTabOpened,
|
|
5115
|
+
type BrowserStateTabEntry as BrowserStateTabEntry,
|
|
5116
|
+
type BrowserSwitchTabConfig as BrowserSwitchTabConfig,
|
|
5117
|
+
type BrowserToolset20260801 as BrowserToolset20260801,
|
|
5118
|
+
type BrowserToolsetConfigs as BrowserToolsetConfigs,
|
|
5119
|
+
type BrowserTripleClickConfig as BrowserTripleClickConfig,
|
|
5120
|
+
type BrowserTypeConfig as BrowserTypeConfig,
|
|
5121
|
+
type BrowserWaitConfig as BrowserWaitConfig,
|
|
5122
|
+
type BrowserZoomConfig as BrowserZoomConfig,
|
|
3177
5123
|
type CacheControlEphemeral as CacheControlEphemeral,
|
|
3178
5124
|
type CacheCreation as CacheCreation,
|
|
3179
5125
|
type CitationCharLocation as CitationCharLocation,
|
|
@@ -3196,6 +5142,7 @@ export declare namespace Messages {
|
|
|
3196
5142
|
type CodeExecutionTool20250522 as CodeExecutionTool20250522,
|
|
3197
5143
|
type CodeExecutionTool20250825 as CodeExecutionTool20250825,
|
|
3198
5144
|
type CodeExecutionTool20260120 as CodeExecutionTool20260120,
|
|
5145
|
+
type CodeExecutionTool20260521 as CodeExecutionTool20260521,
|
|
3199
5146
|
type CodeExecutionToolResultBlock as CodeExecutionToolResultBlock,
|
|
3200
5147
|
type CodeExecutionToolResultBlockContent as CodeExecutionToolResultBlockContent,
|
|
3201
5148
|
type CodeExecutionToolResultBlockParam as CodeExecutionToolResultBlockParam,
|
|
@@ -3203,7 +5150,28 @@ export declare namespace Messages {
|
|
|
3203
5150
|
type CodeExecutionToolResultError as CodeExecutionToolResultError,
|
|
3204
5151
|
type CodeExecutionToolResultErrorCode as CodeExecutionToolResultErrorCode,
|
|
3205
5152
|
type CodeExecutionToolResultErrorParam as CodeExecutionToolResultErrorParam,
|
|
5153
|
+
type ComputerCursorPositionConfig as ComputerCursorPositionConfig,
|
|
5154
|
+
type ComputerDoubleClickConfig as ComputerDoubleClickConfig,
|
|
5155
|
+
type ComputerHoldKeyConfig as ComputerHoldKeyConfig,
|
|
5156
|
+
type ComputerKeyConfig as ComputerKeyConfig,
|
|
5157
|
+
type ComputerLeftClickConfig as ComputerLeftClickConfig,
|
|
5158
|
+
type ComputerLeftClickDragConfig as ComputerLeftClickDragConfig,
|
|
5159
|
+
type ComputerLeftMouseDownConfig as ComputerLeftMouseDownConfig,
|
|
5160
|
+
type ComputerLeftMouseUpConfig as ComputerLeftMouseUpConfig,
|
|
5161
|
+
type ComputerMiddleClickConfig as ComputerMiddleClickConfig,
|
|
5162
|
+
type ComputerMouseMoveConfig as ComputerMouseMoveConfig,
|
|
5163
|
+
type ComputerRightClickConfig as ComputerRightClickConfig,
|
|
5164
|
+
type ComputerScreenshotConfig as ComputerScreenshotConfig,
|
|
5165
|
+
type ComputerScrollConfig as ComputerScrollConfig,
|
|
5166
|
+
type ComputerToolset20260801 as ComputerToolset20260801,
|
|
5167
|
+
type ComputerToolsetConfigs as ComputerToolsetConfigs,
|
|
5168
|
+
type ComputerTripleClickConfig as ComputerTripleClickConfig,
|
|
5169
|
+
type ComputerTypeConfig as ComputerTypeConfig,
|
|
5170
|
+
type ComputerWaitConfig as ComputerWaitConfig,
|
|
5171
|
+
type ComputerZoomConfig as ComputerZoomConfig,
|
|
3206
5172
|
type Container as Container,
|
|
5173
|
+
type ContainerParams as ContainerParams,
|
|
5174
|
+
type ContainerSkill as ContainerSkill,
|
|
3207
5175
|
type ContainerUploadBlock as ContainerUploadBlock,
|
|
3208
5176
|
type ContainerUploadBlockParam as ContainerUploadBlockParam,
|
|
3209
5177
|
type ContentBlock as ContentBlock,
|
|
@@ -3217,12 +5185,16 @@ export declare namespace Messages {
|
|
|
3217
5185
|
type DocumentBlockParam as DocumentBlockParam,
|
|
3218
5186
|
type EncryptedCodeExecutionResultBlock as EncryptedCodeExecutionResultBlock,
|
|
3219
5187
|
type EncryptedCodeExecutionResultBlockParam as EncryptedCodeExecutionResultBlockParam,
|
|
5188
|
+
type FileDocumentSource as FileDocumentSource,
|
|
5189
|
+
type FileImageSource as FileImageSource,
|
|
3220
5190
|
type ImageBlockParam as ImageBlockParam,
|
|
5191
|
+
type ImageTransformationsParam as ImageTransformationsParam,
|
|
3221
5192
|
type InputJSONDelta as InputJSONDelta,
|
|
3222
5193
|
type JSONOutputFormat as JSONOutputFormat,
|
|
3223
5194
|
type MemoryTool20250818 as MemoryTool20250818,
|
|
3224
5195
|
type Message as Message,
|
|
3225
5196
|
type MessageCountTokensTool as MessageCountTokensTool,
|
|
5197
|
+
type MessageCreateParamsContainer as MessageCreateParamsContainer,
|
|
3226
5198
|
type MessageDeltaEvent as MessageDeltaEvent,
|
|
3227
5199
|
type MessageDeltaUsage as MessageDeltaUsage,
|
|
3228
5200
|
type MessageParam as MessageParam,
|
|
@@ -3230,6 +5202,7 @@ export declare namespace Messages {
|
|
|
3230
5202
|
type Metadata as Metadata,
|
|
3231
5203
|
type Model as Model,
|
|
3232
5204
|
type OutputConfig as OutputConfig,
|
|
5205
|
+
type OutputTokensDetails as OutputTokensDetails,
|
|
3233
5206
|
type PlainTextSource as PlainTextSource,
|
|
3234
5207
|
type RawContentBlockDelta as RawContentBlockDelta,
|
|
3235
5208
|
type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent,
|
|
@@ -3249,6 +5222,7 @@ export declare namespace Messages {
|
|
|
3249
5222
|
type ServerToolUseBlock as ServerToolUseBlock,
|
|
3250
5223
|
type ServerToolUseBlockParam as ServerToolUseBlockParam,
|
|
3251
5224
|
type SignatureDelta as SignatureDelta,
|
|
5225
|
+
type SkillParams as SkillParams,
|
|
3252
5226
|
type StopReason as StopReason,
|
|
3253
5227
|
type TextBlock as TextBlock,
|
|
3254
5228
|
type TextBlockParam as TextBlockParam,
|
|
@@ -3307,6 +5281,7 @@ export declare namespace Messages {
|
|
|
3307
5281
|
type WebFetchTool20250910 as WebFetchTool20250910,
|
|
3308
5282
|
type WebFetchTool20260209 as WebFetchTool20260209,
|
|
3309
5283
|
type WebFetchTool20260309 as WebFetchTool20260309,
|
|
5284
|
+
type WebFetchTool20260318 as WebFetchTool20260318,
|
|
3310
5285
|
type WebFetchToolResultBlock as WebFetchToolResultBlock,
|
|
3311
5286
|
type WebFetchToolResultBlockParam as WebFetchToolResultBlockParam,
|
|
3312
5287
|
type WebFetchToolResultErrorBlock as WebFetchToolResultErrorBlock,
|
|
@@ -3316,6 +5291,7 @@ export declare namespace Messages {
|
|
|
3316
5291
|
type WebSearchResultBlockParam as WebSearchResultBlockParam,
|
|
3317
5292
|
type WebSearchTool20250305 as WebSearchTool20250305,
|
|
3318
5293
|
type WebSearchTool20260209 as WebSearchTool20260209,
|
|
5294
|
+
type WebSearchTool20260318 as WebSearchTool20260318,
|
|
3319
5295
|
type WebSearchToolRequestError as WebSearchToolRequestError,
|
|
3320
5296
|
type WebSearchToolResultBlock as WebSearchToolResultBlock,
|
|
3321
5297
|
type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent,
|