@code-yeongyu/senpi 2026.8.25 → 2026.8.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +29 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts +5 -9
- package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.js +5 -11
- package/dist/core/extensions/builtin/compaction/per-turn-cap.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts +2 -3
- package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.js +53 -14
- package/dist/core/extensions/builtin/compaction/todo-bridge.js.map +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +28 -5
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +558 -0
- package/node_modules/@anthropic-ai/sdk/README.md +16 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +14 -2
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +14 -2
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/bin/migration-config.json +481 -0
- package/node_modules/@anthropic-ai/sdk/client.d.mts +165 -11
- package/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.d.ts +165 -11
- package/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.js +415 -38
- package/node_modules/@anthropic-ai/sdk/client.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.mjs +414 -37
- package/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.js +7 -2
- package/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +8 -3
- package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.js +3 -0
- package/node_modules/@anthropic-ai/sdk/core/api.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/core/api.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts +131 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts +131 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.js +317 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.mjs +277 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.mts +12 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.d.ts +12 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.js +18 -1
- package/node_modules/@anthropic-ai/sdk/core/error.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.mjs +16 -0
- package/node_modules/@anthropic-ai/sdk/core/error.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts +154 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts +154 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.js +174 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.mjs +168 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +20 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +20 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.js +26 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.mjs +24 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +9 -0
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +9 -0
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js +34 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +34 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js +31 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts +11 -5
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts +11 -5
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.js +1 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs +1 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.d.mts +4 -2
- package/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.d.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.js +5 -1
- package/node_modules/@anthropic-ai/sdk/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.mjs +3 -2
- package/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.js +0 -5
- package/node_modules/@anthropic-ai/sdk/internal/constants.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.mjs +0 -5
- package/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts +136 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts +136 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.js +531 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs +523 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.js +45 -4
- package/node_modules/@anthropic-ai/sdk/internal/headers.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.mjs +43 -3
- package/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js +34 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs +30 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +2 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +2 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.js +16 -10
- package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +15 -9
- package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs +9 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.js +14 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js +277 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs +274 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts +57 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts +57 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.js +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js +230 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs +217 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +52 -2
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +52 -2
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.js +12 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.js +50 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs +45 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts +60 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts +60 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.js +27 -6
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.mjs +25 -5
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.d.mts +12 -6
- package/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.d.ts +12 -6
- package/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js +26 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts +31 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts +31 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js +75 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs +71 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js +44 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs +36 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +11 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +11 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.js +37 -11
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +35 -10
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js +18 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts +0 -3
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts +0 -3
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.js +3 -16
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs +2 -16
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +9 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +9 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +23 -2
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +23 -2
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.js +8 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs +5 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +66 -31
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +66 -31
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +37 -26
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +34 -23
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts +39 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts +39 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js +245 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs +208 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js +72 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs +35 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts +40 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts +40 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js +82 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs +79 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts +54 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts +54 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js +112 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs +108 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts +96 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts +96 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js +266 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs +224 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts +21 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js +130 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs +94 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.js +8 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.js +18 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts +95 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts +95 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js +226 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs +217 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts +227 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts +227 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js +569 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs +564 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts +31 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts +31 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.js +58 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs +55 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts +98 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts +98 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.js +754 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs +749 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts +22 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts +22 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js +88 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs +85 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts +38 -5
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts +38 -5
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js +28 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs +25 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +107 -29
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +105 -27
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts +179 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts +179 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js +728 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs +724 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/package.json +32 -15
- package/node_modules/@anthropic-ai/sdk/pagination.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/pagination.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/pagination.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +608 -68
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts +608 -68
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +51 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +51 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +22 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +22 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +306 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts +306 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +55 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +51 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +698 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts +698 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +196 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +192 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +309 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts +309 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +116 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +112 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +426 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts +426 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +150 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +145 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts +501 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts +501 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +257 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +251 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts +1 -388
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts +1 -388
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js +2 -138
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs +1 -136
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +22 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +22 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +11 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +11 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +23 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +6 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +136 -24
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts +136 -24
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +10 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +10 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts +60 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts +60 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +12 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +12 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +105 -7
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts +105 -7
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +6 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +6 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +81 -30
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +81 -30
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +12 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +12 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +2453 -380
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +2453 -380
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +16 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +16 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +643 -19
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts +643 -19
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +29 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +27 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts +3 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts +3 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js +3 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +455 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts +455 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +5 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +6 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts +78 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts +78 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +61 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +57 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +195 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts +195 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +88 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +83 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +13 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts +13 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +5 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +5 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +31 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts +31 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +32 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +32 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts +163 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts +163 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +125 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts +212 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts +212 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +181 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +176 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +62 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts +62 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.js +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts +256 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts +256 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +22 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +22 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +466 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts +466 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js +20 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs +16 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +18 -11
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +18 -11
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/files.d.mts +105 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.ts +105 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.js +52 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs +48 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/index.d.mts +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.d.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.js +5 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +20 -11
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +20 -11
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +17 -9
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +17 -9
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1782 -162
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1782 -162
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +23 -28
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +23 -28
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +44 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +39 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts +104 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts +104 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +41 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +37 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +18 -2
- package/node_modules/@anthropic-ai/sdk/src/client.ts +749 -42
- package/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +14 -4
- package/node_modules/@anthropic-ai/sdk/src/core/api.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/src/core/credentials.ts +379 -0
- package/node_modules/@anthropic-ai/sdk/src/core/error.ts +17 -0
- package/node_modules/@anthropic-ai/sdk/src/core/middleware.ts +339 -0
- package/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +60 -0
- package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +38 -1
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/environments.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/json-schema.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/mcp.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/zod.ts +14 -10
- package/node_modules/@anthropic-ai/sdk/src/helpers/zod.ts +3 -6
- package/node_modules/@anthropic-ai/sdk/src/index.ts +16 -1
- package/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +0 -5
- package/node_modules/@anthropic-ai/sdk/src/internal/file-store.ts +550 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +47 -4
- package/node_modules/@anthropic-ai/sdk/src/internal/message-stream-utils.ts +30 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +16 -11
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/LICENSE.md +13 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/README.md +3 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/formats.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/index.ts +13 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/stringify.ts +385 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/types.ts +71 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/utils.ts +265 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +55 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/request-signal.ts +68 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/stainless-helper-header.ts +122 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/abort.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/async-queue.ts +66 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/backoff.ts +41 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +41 -10
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/promise.ts +18 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/query.ts +2 -18
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +25 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/time.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +72 -33
- package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +36 -24
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/credential-chain.ts +292 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/identity-token.ts +37 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/oidc-federation.ts +140 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/token-cache.ts +130 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/types.ts +295 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/user-oauth.ts +144 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/index.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/poller.ts +299 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/worker.ts +779 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/helper-client.ts +86 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/middleware.ts +994 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/sessions/accumulate.ts +130 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaRunnableTool.ts +71 -7
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +135 -35
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/SessionToolRunner.ts +885 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +806 -69
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/index.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +690 -28
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +441 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +996 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +453 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +626 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/index.ts +42 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +705 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments.ts +1 -540
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +28 -28
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +312 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/index.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +141 -31
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +66 -20
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +112 -9
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +90 -33
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +90 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +2755 -211
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +888 -18
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/index.ts +60 -1
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +669 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +123 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/index.ts +15 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +330 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +15 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +49 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +252 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/index.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +347 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/user-profiles.ts +76 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +347 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/index.ts +17 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/webhooks.ts +762 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +18 -11
- package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +163 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +89 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +30 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +70 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +2202 -226
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +194 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +160 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +190 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/memories.ts +1017 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.browser.ts +172 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.ts +914 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/skills.ts +372 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/sync-interval.ts +30 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/memory/node.browser.ts +64 -0
- package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts +75 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts +75 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +196 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +185 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts +173 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts +173 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js +902 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs +895 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js +151 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs +131 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +190 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts +190 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js +819 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs +797 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js +352 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs +344 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts +19 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts +19 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js +29 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs +25 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts +27 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts +27 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js +49 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs +44 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.js +1 -1
- package/node_modules/@anthropic-ai/sdk/version.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs.map +1 -1
- package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +12 -0
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
- package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +3 -3
- package/node_modules/@earendil-works/pi-pty/package.json +1 -1
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@stablelib/base64/LICENSE +21 -0
- package/node_modules/@stablelib/base64/base64.bench.ts +25 -0
- package/node_modules/@stablelib/base64/base64.test.ts +85 -0
- package/node_modules/@stablelib/base64/base64.ts +283 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.d.ts +1 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.js +23 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.js.map +1 -0
- package/node_modules/@stablelib/base64/lib/base64.d.ts +34 -0
- package/node_modules/@stablelib/base64/lib/base64.js +282 -0
- package/node_modules/@stablelib/base64/lib/base64.js.map +1 -0
- package/node_modules/@stablelib/base64/lib/base64.test.d.ts +1 -0
- package/node_modules/@stablelib/base64/lib/base64.test.js +82 -0
- package/node_modules/@stablelib/base64/lib/base64.test.js.map +1 -0
- package/node_modules/@stablelib/base64/package.json +25 -0
- package/node_modules/@stablelib/base64/tsconfig.json +27 -0
- package/node_modules/fast-sha256/LICENSE +24 -0
- package/node_modules/fast-sha256/README.md +127 -0
- package/node_modules/fast-sha256/package.json +42 -0
- package/node_modules/fast-sha256/sha256.d.ts +39 -0
- package/node_modules/fast-sha256/sha256.js +427 -0
- package/node_modules/fast-sha256/sha256.min.js +1 -0
- package/node_modules/standardwebhooks/README.md +41 -0
- package/node_modules/standardwebhooks/dist/index.d.ts +24 -0
- package/node_modules/standardwebhooks/dist/index.js +106 -0
- package/node_modules/standardwebhooks/dist/index.js.map +1 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.d.ts +1 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.js +30 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.js.map +1 -0
- package/node_modules/standardwebhooks/package.json +45 -0
- package/package.json +17 -8
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts +0 -34
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts +0 -34
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.js.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts +0 -132
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts +0 -132
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js +0 -294
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs +0 -290
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs.map +0 -1
- package/node_modules/@anthropic-ai/sdk/src/lib/stainless-helper-header.ts +0 -80
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/ToolRunner.ts +0 -381
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
import type { Anthropic } from '../../../client';
|
|
3
4
|
import { APIResource } from '../../../core/resource';
|
|
4
5
|
import * as BetaAPI from '../beta';
|
|
6
|
+
import * as SessionsAPI from './sessions';
|
|
5
7
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
8
|
import { PageCursor, type PageCursorParams, PagePromise } from '../../../core/pagination';
|
|
7
9
|
import { Stream } from '../../../core/streaming';
|
|
8
10
|
import { buildHeaders } from '../../../internal/headers';
|
|
9
11
|
import { RequestOptions } from '../../../internal/request-options';
|
|
10
12
|
import { path } from '../../../internal/utils/path';
|
|
13
|
+
import {
|
|
14
|
+
SessionToolRunner,
|
|
15
|
+
type SessionToolRunnerOptions as RunnerSessionToolRunnerOptions,
|
|
16
|
+
} from '../../../lib/tools/SessionToolRunner';
|
|
11
17
|
|
|
12
18
|
export class Events extends APIResource {
|
|
13
19
|
/**
|
|
@@ -99,8 +105,9 @@ export class Events extends APIResource {
|
|
|
99
105
|
params: EventStreamParams | undefined = {},
|
|
100
106
|
options?: RequestOptions,
|
|
101
107
|
): APIPromise<Stream<BetaManagedAgentsStreamSessionEvents>> {
|
|
102
|
-
const { betas } = params ?? {};
|
|
108
|
+
const { betas, ...query } = params ?? {};
|
|
103
109
|
return this._client.get(path`/v1/sessions/${sessionID}/events/stream?beta=true`, {
|
|
110
|
+
query,
|
|
104
111
|
...options,
|
|
105
112
|
headers: buildHeaders([
|
|
106
113
|
{ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
|
|
@@ -109,6 +116,29 @@ export class Events extends APIResource {
|
|
|
109
116
|
stream: true,
|
|
110
117
|
}) as APIPromise<Stream<BetaManagedAgentsStreamSessionEvents>>;
|
|
111
118
|
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Attach to a session and dispatch every incoming `agent.tool_use` and
|
|
122
|
+
* `agent.custom_tool_use` event to a local tool registry, sending the matching
|
|
123
|
+
* result back (`user.tool_result` / `user.custom_tool_result`). The
|
|
124
|
+
* sessions-side counterpart to `client.beta.messages.toolRunner`: yields one
|
|
125
|
+
* entry per completed tool call so callers can observe each dispatch (and
|
|
126
|
+
* `break` to abort cleanly).
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```ts
|
|
130
|
+
* import { betaAgentToolset20260401 } from '@anthropic-ai/sdk/tools/agent-toolset/node';
|
|
131
|
+
*
|
|
132
|
+
* for await (const call of client.beta.sessions.events.toolRunner(work.data.id, {
|
|
133
|
+
* tools: [...betaAgentToolset20260401({ workdir }), myTool],
|
|
134
|
+
* })) {
|
|
135
|
+
* console.log(`${call.name} -> ${call.isError ? 'error' : 'ok'}`);
|
|
136
|
+
* }
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
toolRunner(sessionID: string, opts: Omit<RunnerSessionToolRunnerOptions, 'client'>): SessionToolRunner {
|
|
140
|
+
return new SessionToolRunner(sessionID, { ...opts, client: this._client as Anthropic });
|
|
141
|
+
}
|
|
112
142
|
}
|
|
113
143
|
|
|
114
144
|
export type BetaManagedAgentsSessionEventsPageCursor = PageCursor<BetaManagedAgentsSessionEvent>;
|
|
@@ -139,6 +169,13 @@ export interface BetaManagedAgentsAgentCustomToolUseEvent {
|
|
|
139
169
|
processed_at: string;
|
|
140
170
|
|
|
141
171
|
type: 'agent.custom_tool_use';
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* When set, this event was cross-posted from a subagent's thread to surface its
|
|
175
|
+
* custom tool use on the primary thread's stream. Empty on the thread's own
|
|
176
|
+
* events. Echo this on a `user.custom_tool_result` event to route the result back.
|
|
177
|
+
*/
|
|
178
|
+
session_thread_id?: string | null;
|
|
142
179
|
}
|
|
143
180
|
|
|
144
181
|
/**
|
|
@@ -165,7 +202,12 @@ export interface BetaManagedAgentsAgentMCPToolResultEvent {
|
|
|
165
202
|
/**
|
|
166
203
|
* The result content returned by the tool.
|
|
167
204
|
*/
|
|
168
|
-
content?: Array<
|
|
205
|
+
content?: Array<
|
|
206
|
+
| BetaManagedAgentsTextBlock
|
|
207
|
+
| BetaManagedAgentsImageBlock
|
|
208
|
+
| BetaManagedAgentsDocumentBlock
|
|
209
|
+
| BetaManagedAgentsSearchResultBlock
|
|
210
|
+
>;
|
|
169
211
|
|
|
170
212
|
/**
|
|
171
213
|
* Whether the tool execution resulted in an error.
|
|
@@ -208,6 +250,14 @@ export interface BetaManagedAgentsAgentMCPToolUseEvent {
|
|
|
208
250
|
* AgentEvaluatedPermission enum
|
|
209
251
|
*/
|
|
210
252
|
evaluated_permission?: 'allow' | 'ask' | 'deny';
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* When set, this event was cross-posted from a subagent's thread to surface its
|
|
256
|
+
* permission request on the primary thread's stream. Empty on the thread's own
|
|
257
|
+
* events. Echo this on a `user.tool_confirmation` event to route the approval
|
|
258
|
+
* back.
|
|
259
|
+
*/
|
|
260
|
+
session_thread_id?: string | null;
|
|
211
261
|
}
|
|
212
262
|
|
|
213
263
|
/**
|
|
@@ -222,7 +272,7 @@ export interface BetaManagedAgentsAgentMessageEvent {
|
|
|
222
272
|
/**
|
|
223
273
|
* Array of text blocks comprising the agent response.
|
|
224
274
|
*/
|
|
225
|
-
content: Array<BetaManagedAgentsTextBlock>;
|
|
275
|
+
content: Array<BetaManagedAgentsTextBlock | BetaManagedAgentsRedactedBlock>;
|
|
226
276
|
|
|
227
277
|
/**
|
|
228
278
|
* A timestamp in RFC 3339 format
|
|
@@ -267,6 +317,84 @@ export interface BetaManagedAgentsAgentThreadContextCompactedEvent {
|
|
|
267
317
|
type: 'agent.thread_context_compacted';
|
|
268
318
|
}
|
|
269
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Delivery event written to the target thread's input stream when an
|
|
322
|
+
* agent-to-agent message arrives.
|
|
323
|
+
*/
|
|
324
|
+
export interface BetaManagedAgentsAgentThreadMessageReceivedEvent {
|
|
325
|
+
/**
|
|
326
|
+
* Unique identifier for this event.
|
|
327
|
+
*/
|
|
328
|
+
id: string;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Message content blocks.
|
|
332
|
+
*/
|
|
333
|
+
content: Array<
|
|
334
|
+
| BetaManagedAgentsTextBlock
|
|
335
|
+
| BetaManagedAgentsImageBlock
|
|
336
|
+
| BetaManagedAgentsDocumentBlock
|
|
337
|
+
| BetaManagedAgentsRedactedBlock
|
|
338
|
+
>;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Public `sthr_` ID of the thread that sent the message.
|
|
342
|
+
*/
|
|
343
|
+
from_session_thread_id: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* A timestamp in RFC 3339 format
|
|
347
|
+
*/
|
|
348
|
+
processed_at: string;
|
|
349
|
+
|
|
350
|
+
type: 'agent.thread_message_received';
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Name of the callable agent this message came from. Absent when received from the
|
|
354
|
+
* primary agent.
|
|
355
|
+
*/
|
|
356
|
+
from_agent_name?: string | null;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Observability event emitted to the sender's output stream when an agent-to-agent
|
|
361
|
+
* message is sent.
|
|
362
|
+
*/
|
|
363
|
+
export interface BetaManagedAgentsAgentThreadMessageSentEvent {
|
|
364
|
+
/**
|
|
365
|
+
* Unique identifier for this event.
|
|
366
|
+
*/
|
|
367
|
+
id: string;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Message content blocks.
|
|
371
|
+
*/
|
|
372
|
+
content: Array<
|
|
373
|
+
| BetaManagedAgentsTextBlock
|
|
374
|
+
| BetaManagedAgentsImageBlock
|
|
375
|
+
| BetaManagedAgentsDocumentBlock
|
|
376
|
+
| BetaManagedAgentsRedactedBlock
|
|
377
|
+
>;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* A timestamp in RFC 3339 format
|
|
381
|
+
*/
|
|
382
|
+
processed_at: string;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Public `sthr_` ID of the thread the message was sent to.
|
|
386
|
+
*/
|
|
387
|
+
to_session_thread_id: string;
|
|
388
|
+
|
|
389
|
+
type: 'agent.thread_message_sent';
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Name of the callable agent this message was sent to. Absent when sent to the
|
|
393
|
+
* primary agent.
|
|
394
|
+
*/
|
|
395
|
+
to_agent_name?: string | null;
|
|
396
|
+
}
|
|
397
|
+
|
|
270
398
|
/**
|
|
271
399
|
* Event representing the result of an agent tool execution.
|
|
272
400
|
*/
|
|
@@ -291,7 +419,12 @@ export interface BetaManagedAgentsAgentToolResultEvent {
|
|
|
291
419
|
/**
|
|
292
420
|
* The result content returned by the tool.
|
|
293
421
|
*/
|
|
294
|
-
content?: Array<
|
|
422
|
+
content?: Array<
|
|
423
|
+
| BetaManagedAgentsTextBlock
|
|
424
|
+
| BetaManagedAgentsImageBlock
|
|
425
|
+
| BetaManagedAgentsDocumentBlock
|
|
426
|
+
| BetaManagedAgentsSearchResultBlock
|
|
427
|
+
>;
|
|
295
428
|
|
|
296
429
|
/**
|
|
297
430
|
* Whether the tool execution resulted in an error.
|
|
@@ -329,6 +462,14 @@ export interface BetaManagedAgentsAgentToolUseEvent {
|
|
|
329
462
|
* AgentEvaluatedPermission enum
|
|
330
463
|
*/
|
|
331
464
|
evaluated_permission?: 'allow' | 'ask' | 'deny';
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* When set, this event was cross-posted from a subagent's thread to surface its
|
|
468
|
+
* permission request on the primary thread's stream. Empty on the thread's own
|
|
469
|
+
* events. Echo this on a `user.tool_confirmation` event to route the approval
|
|
470
|
+
* back.
|
|
471
|
+
*/
|
|
472
|
+
session_thread_id?: string | null;
|
|
332
473
|
}
|
|
333
474
|
|
|
334
475
|
/**
|
|
@@ -388,6 +529,37 @@ export interface BetaManagedAgentsBillingError {
|
|
|
388
529
|
type: 'billing_error';
|
|
389
530
|
}
|
|
390
531
|
|
|
532
|
+
/**
|
|
533
|
+
* An `environment_variable` credential's `auth.networking.allowed_hosts` includes
|
|
534
|
+
* a host the environment's network policy does not permit.
|
|
535
|
+
*/
|
|
536
|
+
export interface BetaManagedAgentsCredentialHostUnreachableError {
|
|
537
|
+
/**
|
|
538
|
+
* ID of the affected credential.
|
|
539
|
+
*/
|
|
540
|
+
credential_id: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Human-readable error description.
|
|
544
|
+
*/
|
|
545
|
+
message: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* What the client should do next in response to this error.
|
|
549
|
+
*/
|
|
550
|
+
retry_status:
|
|
551
|
+
| BetaManagedAgentsRetryStatusRetrying
|
|
552
|
+
| BetaManagedAgentsRetryStatusExhausted
|
|
553
|
+
| BetaManagedAgentsRetryStatusTerminal;
|
|
554
|
+
|
|
555
|
+
type: 'credential_host_unreachable_error';
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* ID of the vault containing the affected credential.
|
|
559
|
+
*/
|
|
560
|
+
vault_id: string;
|
|
561
|
+
}
|
|
562
|
+
|
|
391
563
|
/**
|
|
392
564
|
* Document content, either specified directly as base64 data, as text, or as a
|
|
393
565
|
* reference via a URL.
|
|
@@ -422,7 +594,10 @@ export type BetaManagedAgentsEventParams =
|
|
|
422
594
|
| BetaManagedAgentsUserMessageEventParams
|
|
423
595
|
| BetaManagedAgentsUserInterruptEventParams
|
|
424
596
|
| BetaManagedAgentsUserToolConfirmationEventParams
|
|
425
|
-
| BetaManagedAgentsUserCustomToolResultEventParams
|
|
597
|
+
| BetaManagedAgentsUserCustomToolResultEventParams
|
|
598
|
+
| BetaManagedAgentsUserDefineOutcomeEventParams
|
|
599
|
+
| BetaManagedAgentsUserToolResultEventParams
|
|
600
|
+
| BetaManagedAgentsSystemMessageEventParams;
|
|
426
601
|
|
|
427
602
|
/**
|
|
428
603
|
* Document referenced by file ID.
|
|
@@ -448,6 +623,30 @@ export interface BetaManagedAgentsFileImageSource {
|
|
|
448
623
|
type: 'file';
|
|
449
624
|
}
|
|
450
625
|
|
|
626
|
+
/**
|
|
627
|
+
* Rubric referenced by a file uploaded via the Files API.
|
|
628
|
+
*/
|
|
629
|
+
export interface BetaManagedAgentsFileRubric {
|
|
630
|
+
/**
|
|
631
|
+
* ID of the rubric file.
|
|
632
|
+
*/
|
|
633
|
+
file_id: string;
|
|
634
|
+
|
|
635
|
+
type: 'file';
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Rubric referenced by a file uploaded via the Files API.
|
|
640
|
+
*/
|
|
641
|
+
export interface BetaManagedAgentsFileRubricParams {
|
|
642
|
+
/**
|
|
643
|
+
* ID of the rubric file.
|
|
644
|
+
*/
|
|
645
|
+
file_id: string;
|
|
646
|
+
|
|
647
|
+
type: 'file';
|
|
648
|
+
}
|
|
649
|
+
|
|
451
650
|
/**
|
|
452
651
|
* Image content specified directly as base64 data or as a reference via a URL.
|
|
453
652
|
*/
|
|
@@ -591,6 +790,13 @@ export interface BetaManagedAgentsPlainTextDocumentSource {
|
|
|
591
790
|
type: 'text';
|
|
592
791
|
}
|
|
593
792
|
|
|
793
|
+
/**
|
|
794
|
+
* Placeholder for content withheld by Anthropic model policy.
|
|
795
|
+
*/
|
|
796
|
+
export interface BetaManagedAgentsRedactedBlock {
|
|
797
|
+
type: 'redacted';
|
|
798
|
+
}
|
|
799
|
+
|
|
594
800
|
/**
|
|
595
801
|
* This turn is dead; queued inputs are flushed and the session returns to idle.
|
|
596
802
|
* Client may send a new prompt.
|
|
@@ -616,6 +822,55 @@ export interface BetaManagedAgentsRetryStatusTerminal {
|
|
|
616
822
|
type: 'terminal';
|
|
617
823
|
}
|
|
618
824
|
|
|
825
|
+
/**
|
|
826
|
+
* A block containing a web search result.
|
|
827
|
+
*/
|
|
828
|
+
export interface BetaManagedAgentsSearchResultBlock {
|
|
829
|
+
/**
|
|
830
|
+
* Citation settings for a search result.
|
|
831
|
+
*/
|
|
832
|
+
citations: BetaManagedAgentsSearchResultCitations;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Array of text content blocks from the search result.
|
|
836
|
+
*/
|
|
837
|
+
content: Array<BetaManagedAgentsSearchResultContent>;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* The URL source of the search result.
|
|
841
|
+
*/
|
|
842
|
+
source: string;
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* The title of the search result.
|
|
846
|
+
*/
|
|
847
|
+
title: string;
|
|
848
|
+
|
|
849
|
+
type: 'search_result';
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Citation settings for a search result.
|
|
854
|
+
*/
|
|
855
|
+
export interface BetaManagedAgentsSearchResultCitations {
|
|
856
|
+
/**
|
|
857
|
+
* Whether citations are enabled for this search result.
|
|
858
|
+
*/
|
|
859
|
+
enabled: boolean;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Text content within a search result.
|
|
864
|
+
*/
|
|
865
|
+
export interface BetaManagedAgentsSearchResultContent {
|
|
866
|
+
/**
|
|
867
|
+
* The text content.
|
|
868
|
+
*/
|
|
869
|
+
text: string;
|
|
870
|
+
|
|
871
|
+
type: 'text';
|
|
872
|
+
}
|
|
873
|
+
|
|
619
874
|
/**
|
|
620
875
|
* Events that were successfully sent to the session.
|
|
621
876
|
*/
|
|
@@ -628,9 +883,22 @@ export interface BetaManagedAgentsSendSessionEvents {
|
|
|
628
883
|
| BetaManagedAgentsUserInterruptEvent
|
|
629
884
|
| BetaManagedAgentsUserToolConfirmationEvent
|
|
630
885
|
| BetaManagedAgentsUserCustomToolResultEvent
|
|
886
|
+
| BetaManagedAgentsUserDefineOutcomeEvent
|
|
887
|
+
| SessionsAPI.BetaManagedAgentsUserToolResultEvent
|
|
888
|
+
| SessionsAPI.BetaManagedAgentsSystemMessageEvent
|
|
631
889
|
>;
|
|
632
890
|
}
|
|
633
891
|
|
|
892
|
+
/**
|
|
893
|
+
* The agent stopped because the session's tracked list cost reached its budget, or
|
|
894
|
+
* because its usage includes a model with no list price (which the budget cannot
|
|
895
|
+
* measure). Raise the budget to continue — or, if raising is rejected because a
|
|
896
|
+
* model has no list price, remove the budget.
|
|
897
|
+
*/
|
|
898
|
+
export interface BetaManagedAgentsSessionBudgetReached {
|
|
899
|
+
type: 'budget_reached';
|
|
900
|
+
}
|
|
901
|
+
|
|
634
902
|
/**
|
|
635
903
|
* Emitted when a session has been deleted. Terminates any active event stream — no
|
|
636
904
|
* further events will be emitted for this session.
|
|
@@ -677,7 +945,8 @@ export interface BetaManagedAgentsSessionErrorEvent {
|
|
|
677
945
|
| BetaManagedAgentsModelRequestFailedError
|
|
678
946
|
| BetaManagedAgentsMCPConnectionFailedError
|
|
679
947
|
| BetaManagedAgentsMCPAuthenticationFailedError
|
|
680
|
-
| BetaManagedAgentsBillingError
|
|
948
|
+
| BetaManagedAgentsBillingError
|
|
949
|
+
| BetaManagedAgentsCredentialHostUnreachableError;
|
|
681
950
|
|
|
682
951
|
/**
|
|
683
952
|
* A timestamp in RFC 3339 format
|
|
@@ -702,15 +971,30 @@ export type BetaManagedAgentsSessionEvent =
|
|
|
702
971
|
| BetaManagedAgentsAgentMCPToolResultEvent
|
|
703
972
|
| BetaManagedAgentsAgentToolUseEvent
|
|
704
973
|
| BetaManagedAgentsAgentToolResultEvent
|
|
974
|
+
| BetaManagedAgentsAgentThreadMessageReceivedEvent
|
|
975
|
+
| BetaManagedAgentsAgentThreadMessageSentEvent
|
|
705
976
|
| BetaManagedAgentsAgentThreadContextCompactedEvent
|
|
706
977
|
| BetaManagedAgentsSessionErrorEvent
|
|
707
978
|
| BetaManagedAgentsSessionStatusRescheduledEvent
|
|
708
979
|
| BetaManagedAgentsSessionStatusRunningEvent
|
|
709
980
|
| BetaManagedAgentsSessionStatusIdleEvent
|
|
710
981
|
| BetaManagedAgentsSessionStatusTerminatedEvent
|
|
982
|
+
| BetaManagedAgentsSessionThreadCreatedEvent
|
|
983
|
+
| BetaManagedAgentsSpanOutcomeEvaluationStartEvent
|
|
984
|
+
| BetaManagedAgentsSpanOutcomeEvaluationEndEvent
|
|
711
985
|
| BetaManagedAgentsSpanModelRequestStartEvent
|
|
712
986
|
| BetaManagedAgentsSpanModelRequestEndEvent
|
|
713
|
-
|
|
|
987
|
+
| BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent
|
|
988
|
+
| BetaManagedAgentsUserDefineOutcomeEvent
|
|
989
|
+
| BetaManagedAgentsSessionDeletedEvent
|
|
990
|
+
| BetaManagedAgentsSessionThreadStatusRunningEvent
|
|
991
|
+
| BetaManagedAgentsSessionThreadStatusIdleEvent
|
|
992
|
+
| BetaManagedAgentsSessionThreadStatusTerminatedEvent
|
|
993
|
+
| SessionsAPI.BetaManagedAgentsUserToolResultEvent
|
|
994
|
+
| BetaManagedAgentsSessionThreadStatusRescheduledEvent
|
|
995
|
+
| SessionsAPI.BetaManagedAgentsSessionUpdatedEvent
|
|
996
|
+
| SessionsAPI.BetaManagedAgentsSystemMessageEvent
|
|
997
|
+
| SessionsAPI.BetaManagedAgentsSessionUsageEvent;
|
|
714
998
|
|
|
715
999
|
/**
|
|
716
1000
|
* The agent is idle waiting on one or more blocking user-input events (tool
|
|
@@ -728,8 +1012,8 @@ export interface BetaManagedAgentsSessionRequiresAction {
|
|
|
728
1012
|
}
|
|
729
1013
|
|
|
730
1014
|
/**
|
|
731
|
-
* The turn ended because the retry budget
|
|
732
|
-
*
|
|
1015
|
+
* The turn ended because repeated errors exhausted the retry budget or an error
|
|
1016
|
+
* escalated to `retry_status: 'exhausted'`.
|
|
733
1017
|
*/
|
|
734
1018
|
export interface BetaManagedAgentsSessionRetriesExhausted {
|
|
735
1019
|
type: 'retries_exhausted';
|
|
@@ -755,7 +1039,8 @@ export interface BetaManagedAgentsSessionStatusIdleEvent {
|
|
|
755
1039
|
stop_reason:
|
|
756
1040
|
| BetaManagedAgentsSessionEndTurn
|
|
757
1041
|
| BetaManagedAgentsSessionRequiresAction
|
|
758
|
-
| BetaManagedAgentsSessionRetriesExhausted
|
|
1042
|
+
| BetaManagedAgentsSessionRetriesExhausted
|
|
1043
|
+
| BetaManagedAgentsSessionBudgetReached;
|
|
759
1044
|
|
|
760
1045
|
type: 'session.status_idle';
|
|
761
1046
|
}
|
|
@@ -812,6 +1097,198 @@ export interface BetaManagedAgentsSessionStatusTerminatedEvent {
|
|
|
812
1097
|
type: 'session.status_terminated';
|
|
813
1098
|
}
|
|
814
1099
|
|
|
1100
|
+
/**
|
|
1101
|
+
* Emitted when a subagent is spawned as a new thread. Written to the parent
|
|
1102
|
+
* thread's output stream so clients observing the session see child creation.
|
|
1103
|
+
*/
|
|
1104
|
+
export interface BetaManagedAgentsSessionThreadCreatedEvent {
|
|
1105
|
+
/**
|
|
1106
|
+
* Unique identifier for this event.
|
|
1107
|
+
*/
|
|
1108
|
+
id: string;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* Name of the callable agent the thread runs.
|
|
1112
|
+
*/
|
|
1113
|
+
agent_name: string;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* A timestamp in RFC 3339 format
|
|
1117
|
+
*/
|
|
1118
|
+
processed_at: string;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Public `sthr_` ID of the newly created thread.
|
|
1122
|
+
*/
|
|
1123
|
+
session_thread_id: string;
|
|
1124
|
+
|
|
1125
|
+
type: 'session.thread_created';
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* A session thread has yielded and is awaiting input. Emitted on the thread's own
|
|
1130
|
+
* stream and cross-posted to the primary stream for child threads.
|
|
1131
|
+
*/
|
|
1132
|
+
export interface BetaManagedAgentsSessionThreadStatusIdleEvent {
|
|
1133
|
+
/**
|
|
1134
|
+
* Unique identifier for this event.
|
|
1135
|
+
*/
|
|
1136
|
+
id: string;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Name of the agent the thread runs.
|
|
1140
|
+
*/
|
|
1141
|
+
agent_name: string;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* A timestamp in RFC 3339 format
|
|
1145
|
+
*/
|
|
1146
|
+
processed_at: string;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Public sthr\_ ID of the thread that went idle.
|
|
1150
|
+
*/
|
|
1151
|
+
session_thread_id: string;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* The agent completed its turn naturally and is ready for the next user message.
|
|
1155
|
+
*/
|
|
1156
|
+
stop_reason:
|
|
1157
|
+
| BetaManagedAgentsSessionEndTurn
|
|
1158
|
+
| BetaManagedAgentsSessionRequiresAction
|
|
1159
|
+
| BetaManagedAgentsSessionRetriesExhausted
|
|
1160
|
+
| BetaManagedAgentsSessionBudgetReached;
|
|
1161
|
+
|
|
1162
|
+
type: 'session.thread_status_idle';
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* A session thread hit a transient error and is retrying automatically. Emitted on
|
|
1167
|
+
* the thread's own stream and cross-posted to the primary stream for child
|
|
1168
|
+
* threads.
|
|
1169
|
+
*/
|
|
1170
|
+
export interface BetaManagedAgentsSessionThreadStatusRescheduledEvent {
|
|
1171
|
+
/**
|
|
1172
|
+
* Unique identifier for this event.
|
|
1173
|
+
*/
|
|
1174
|
+
id: string;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Name of the agent the thread runs.
|
|
1178
|
+
*/
|
|
1179
|
+
agent_name: string;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* A timestamp in RFC 3339 format
|
|
1183
|
+
*/
|
|
1184
|
+
processed_at: string;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Public sthr\_ ID of the thread that is retrying.
|
|
1188
|
+
*/
|
|
1189
|
+
session_thread_id: string;
|
|
1190
|
+
|
|
1191
|
+
type: 'session.thread_status_rescheduled';
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* A session thread has begun executing. Emitted on the thread's own stream and
|
|
1196
|
+
* cross-posted to the primary stream for child threads.
|
|
1197
|
+
*/
|
|
1198
|
+
export interface BetaManagedAgentsSessionThreadStatusRunningEvent {
|
|
1199
|
+
/**
|
|
1200
|
+
* Unique identifier for this event.
|
|
1201
|
+
*/
|
|
1202
|
+
id: string;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Name of the agent the thread runs.
|
|
1206
|
+
*/
|
|
1207
|
+
agent_name: string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* A timestamp in RFC 3339 format
|
|
1211
|
+
*/
|
|
1212
|
+
processed_at: string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Public sthr\_ ID of the thread that started running.
|
|
1216
|
+
*/
|
|
1217
|
+
session_thread_id: string;
|
|
1218
|
+
|
|
1219
|
+
type: 'session.thread_status_running';
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* A session thread has terminated and will accept no further input. Emitted on the
|
|
1224
|
+
* thread's own stream and cross-posted to the primary stream for child threads.
|
|
1225
|
+
*/
|
|
1226
|
+
export interface BetaManagedAgentsSessionThreadStatusTerminatedEvent {
|
|
1227
|
+
/**
|
|
1228
|
+
* Unique identifier for this event.
|
|
1229
|
+
*/
|
|
1230
|
+
id: string;
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Name of the agent the thread runs.
|
|
1234
|
+
*/
|
|
1235
|
+
agent_name: string;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* A timestamp in RFC 3339 format
|
|
1239
|
+
*/
|
|
1240
|
+
processed_at: string;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Public sthr\_ ID of the thread that terminated.
|
|
1244
|
+
*/
|
|
1245
|
+
session_thread_id: string;
|
|
1246
|
+
|
|
1247
|
+
type: 'session.thread_status_terminated';
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Point-in-time snapshot of a session's cumulative usage.
|
|
1252
|
+
*/
|
|
1253
|
+
export interface BetaManagedAgentsSessionUsageSnapshot {
|
|
1254
|
+
/**
|
|
1255
|
+
* Cumulative time in seconds during which the session had at least one thread in
|
|
1256
|
+
* running status. Overlapping activity from concurrent threads is counted once.
|
|
1257
|
+
* This is the duration the session's runtime cost is priced on.
|
|
1258
|
+
*/
|
|
1259
|
+
active_seconds?: number;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Prompt-cache creation token usage broken down by cache lifetime.
|
|
1263
|
+
*/
|
|
1264
|
+
cache_creation?: SessionsAPI.BetaManagedAgentsCacheCreationUsage;
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* Total tokens read from prompt cache.
|
|
1268
|
+
*/
|
|
1269
|
+
cache_read_input_tokens?: number;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Total input tokens consumed across all turns.
|
|
1273
|
+
*/
|
|
1274
|
+
input_tokens?: number;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* A monetary amount in a specific currency.
|
|
1278
|
+
*/
|
|
1279
|
+
list_cost?: BetaAPI.BetaMonetaryAmount;
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Total output tokens generated across all turns.
|
|
1283
|
+
*/
|
|
1284
|
+
output_tokens?: number;
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Cumulative count of server-executed tool invocations, broken down by tool.
|
|
1288
|
+
*/
|
|
1289
|
+
server_tool_use?: SessionsAPI.BetaManagedAgentsServerToolUsage;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
815
1292
|
/**
|
|
816
1293
|
* Emitted when a model request completes.
|
|
817
1294
|
*/
|
|
@@ -893,6 +1370,123 @@ export interface BetaManagedAgentsSpanModelUsage {
|
|
|
893
1370
|
speed?: 'standard' | 'fast' | null;
|
|
894
1371
|
}
|
|
895
1372
|
|
|
1373
|
+
/**
|
|
1374
|
+
* Emitted when an outcome evaluation cycle completes. Carries the verdict and
|
|
1375
|
+
* aggregate token usage. A verdict of `needs_revision` means another evaluation
|
|
1376
|
+
* cycle follows; `satisfied`, `max_iterations_reached`, `failed`, or `interrupted`
|
|
1377
|
+
* are terminal — no further evaluation cycles follow.
|
|
1378
|
+
*/
|
|
1379
|
+
export interface BetaManagedAgentsSpanOutcomeEvaluationEndEvent {
|
|
1380
|
+
/**
|
|
1381
|
+
* Unique identifier for this event.
|
|
1382
|
+
*/
|
|
1383
|
+
id: string;
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Human-readable explanation of the verdict. For `needs_revision`, describes which
|
|
1387
|
+
* criteria failed and why.
|
|
1388
|
+
*/
|
|
1389
|
+
explanation: string;
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* 0-indexed revision cycle, matching the corresponding
|
|
1393
|
+
* `span.outcome_evaluation_start`.
|
|
1394
|
+
*/
|
|
1395
|
+
iteration: number;
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* The id of the corresponding `span.outcome_evaluation_start` event.
|
|
1399
|
+
*/
|
|
1400
|
+
outcome_evaluation_start_id: string;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* The `outc_` ID of the outcome being evaluated.
|
|
1404
|
+
*/
|
|
1405
|
+
outcome_id: string;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* A timestamp in RFC 3339 format
|
|
1409
|
+
*/
|
|
1410
|
+
processed_at: string;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Evaluation verdict. 'satisfied': criteria met, session goes idle.
|
|
1414
|
+
* 'needs_revision': criteria not met, another revision cycle follows.
|
|
1415
|
+
* 'max_iterations_reached': evaluation budget exhausted with criteria still unmet
|
|
1416
|
+
* — one final acknowledgment turn follows before the session goes idle, but no
|
|
1417
|
+
* further evaluation runs. 'failed': grader determined the rubric does not apply
|
|
1418
|
+
* to the deliverables. 'interrupted': user sent an interrupt while evaluation was
|
|
1419
|
+
* in progress.
|
|
1420
|
+
*/
|
|
1421
|
+
result: string;
|
|
1422
|
+
|
|
1423
|
+
type: 'span.outcome_evaluation_end';
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Token usage for a single model request.
|
|
1427
|
+
*/
|
|
1428
|
+
usage: BetaManagedAgentsSpanModelUsage;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Periodic heartbeat emitted while an outcome evaluation cycle is in progress.
|
|
1433
|
+
* Distinguishes 'evaluation is actively running' from 'evaluation is stuck'
|
|
1434
|
+
* between the corresponding `span.outcome_evaluation_start` and
|
|
1435
|
+
* `span.outcome_evaluation_end` events.
|
|
1436
|
+
*/
|
|
1437
|
+
export interface BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent {
|
|
1438
|
+
/**
|
|
1439
|
+
* Unique identifier for this event.
|
|
1440
|
+
*/
|
|
1441
|
+
id: string;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* 0-indexed revision cycle, matching the corresponding
|
|
1445
|
+
* `span.outcome_evaluation_start`.
|
|
1446
|
+
*/
|
|
1447
|
+
iteration: number;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* The `outc_` ID of the outcome being evaluated.
|
|
1451
|
+
*/
|
|
1452
|
+
outcome_id: string;
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* A timestamp in RFC 3339 format
|
|
1456
|
+
*/
|
|
1457
|
+
processed_at: string;
|
|
1458
|
+
|
|
1459
|
+
type: 'span.outcome_evaluation_ongoing';
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Emitted when an outcome evaluation cycle begins.
|
|
1464
|
+
*/
|
|
1465
|
+
export interface BetaManagedAgentsSpanOutcomeEvaluationStartEvent {
|
|
1466
|
+
/**
|
|
1467
|
+
* Unique identifier for this event.
|
|
1468
|
+
*/
|
|
1469
|
+
id: string;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* 0-indexed revision cycle. 0 is the first evaluation; 1 is the re-evaluation
|
|
1473
|
+
* after the first revision; etc.
|
|
1474
|
+
*/
|
|
1475
|
+
iteration: number;
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* The `outc_` ID of the outcome being evaluated.
|
|
1479
|
+
*/
|
|
1480
|
+
outcome_id: string;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* A timestamp in RFC 3339 format
|
|
1484
|
+
*/
|
|
1485
|
+
processed_at: string;
|
|
1486
|
+
|
|
1487
|
+
type: 'span.outcome_evaluation_start';
|
|
1488
|
+
}
|
|
1489
|
+
|
|
896
1490
|
/**
|
|
897
1491
|
* Server-sent event in the session stream.
|
|
898
1492
|
*/
|
|
@@ -908,15 +1502,49 @@ export type BetaManagedAgentsStreamSessionEvents =
|
|
|
908
1502
|
| BetaManagedAgentsAgentMCPToolResultEvent
|
|
909
1503
|
| BetaManagedAgentsAgentToolUseEvent
|
|
910
1504
|
| BetaManagedAgentsAgentToolResultEvent
|
|
1505
|
+
| BetaManagedAgentsAgentThreadMessageReceivedEvent
|
|
1506
|
+
| BetaManagedAgentsAgentThreadMessageSentEvent
|
|
911
1507
|
| BetaManagedAgentsAgentThreadContextCompactedEvent
|
|
912
1508
|
| BetaManagedAgentsSessionErrorEvent
|
|
913
1509
|
| BetaManagedAgentsSessionStatusRescheduledEvent
|
|
914
1510
|
| BetaManagedAgentsSessionStatusRunningEvent
|
|
915
1511
|
| BetaManagedAgentsSessionStatusIdleEvent
|
|
916
1512
|
| BetaManagedAgentsSessionStatusTerminatedEvent
|
|
1513
|
+
| BetaManagedAgentsSessionThreadCreatedEvent
|
|
1514
|
+
| BetaManagedAgentsSpanOutcomeEvaluationStartEvent
|
|
1515
|
+
| BetaManagedAgentsSpanOutcomeEvaluationEndEvent
|
|
917
1516
|
| BetaManagedAgentsSpanModelRequestStartEvent
|
|
918
1517
|
| BetaManagedAgentsSpanModelRequestEndEvent
|
|
919
|
-
|
|
|
1518
|
+
| BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent
|
|
1519
|
+
| BetaManagedAgentsUserDefineOutcomeEvent
|
|
1520
|
+
| BetaManagedAgentsSessionDeletedEvent
|
|
1521
|
+
| BetaManagedAgentsSessionThreadStatusRunningEvent
|
|
1522
|
+
| BetaManagedAgentsSessionThreadStatusIdleEvent
|
|
1523
|
+
| BetaManagedAgentsSessionThreadStatusTerminatedEvent
|
|
1524
|
+
| SessionsAPI.BetaManagedAgentsUserToolResultEvent
|
|
1525
|
+
| BetaManagedAgentsSessionThreadStatusRescheduledEvent
|
|
1526
|
+
| SessionsAPI.BetaManagedAgentsSessionUpdatedEvent
|
|
1527
|
+
| SessionsAPI.BetaManagedAgentsStartEvent
|
|
1528
|
+
| SessionsAPI.BetaManagedAgentsDeltaEvent
|
|
1529
|
+
| SessionsAPI.BetaManagedAgentsSystemMessageEvent
|
|
1530
|
+
| SessionsAPI.BetaManagedAgentsSessionUsageEvent;
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Privileged context for the accompanying turn and all subsequent turns, appended
|
|
1534
|
+
* to the session's system context as a `role: "system"` turn rather than replacing
|
|
1535
|
+
* the top-level system prompt. At most one per request: it must be the final event
|
|
1536
|
+
* and immediately follow the `user.message`, `user.tool_result`, or
|
|
1537
|
+
* `user.custom_tool_result` it accompanies. Only supported on models that accept
|
|
1538
|
+
* mid-conversation system messages.
|
|
1539
|
+
*/
|
|
1540
|
+
export interface BetaManagedAgentsSystemMessageEventParams {
|
|
1541
|
+
/**
|
|
1542
|
+
* System content blocks to append. Text-only.
|
|
1543
|
+
*/
|
|
1544
|
+
content: Array<SessionsAPI.BetaManagedAgentsSystemContentBlock>;
|
|
1545
|
+
|
|
1546
|
+
type: 'system.message';
|
|
1547
|
+
}
|
|
920
1548
|
|
|
921
1549
|
/**
|
|
922
1550
|
* Regular text content.
|
|
@@ -930,6 +1558,31 @@ export interface BetaManagedAgentsTextBlock {
|
|
|
930
1558
|
type: 'text';
|
|
931
1559
|
}
|
|
932
1560
|
|
|
1561
|
+
/**
|
|
1562
|
+
* Rubric content provided inline as text.
|
|
1563
|
+
*/
|
|
1564
|
+
export interface BetaManagedAgentsTextRubric {
|
|
1565
|
+
/**
|
|
1566
|
+
* Rubric content. Plain text or markdown — the grader treats it as freeform text.
|
|
1567
|
+
*/
|
|
1568
|
+
content: string;
|
|
1569
|
+
|
|
1570
|
+
type: 'text';
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Rubric content provided inline as text.
|
|
1575
|
+
*/
|
|
1576
|
+
export interface BetaManagedAgentsTextRubricParams {
|
|
1577
|
+
/**
|
|
1578
|
+
* Rubric content. Plain text or markdown — the grader treats it as freeform text.
|
|
1579
|
+
* Maximum 262144 characters.
|
|
1580
|
+
*/
|
|
1581
|
+
content: string;
|
|
1582
|
+
|
|
1583
|
+
type: 'text';
|
|
1584
|
+
}
|
|
1585
|
+
|
|
933
1586
|
/**
|
|
934
1587
|
* An unknown or unexpected error occurred during session execution. A fallback
|
|
935
1588
|
* variant; clients that don't recognize a new error code can match on
|
|
@@ -998,7 +1651,12 @@ export interface BetaManagedAgentsUserCustomToolResultEvent {
|
|
|
998
1651
|
/**
|
|
999
1652
|
* The result content returned by the tool.
|
|
1000
1653
|
*/
|
|
1001
|
-
content?: Array<
|
|
1654
|
+
content?: Array<
|
|
1655
|
+
| BetaManagedAgentsTextBlock
|
|
1656
|
+
| BetaManagedAgentsImageBlock
|
|
1657
|
+
| BetaManagedAgentsDocumentBlock
|
|
1658
|
+
| BetaManagedAgentsSearchResultBlock
|
|
1659
|
+
>;
|
|
1002
1660
|
|
|
1003
1661
|
/**
|
|
1004
1662
|
* Whether the tool execution resulted in an error.
|
|
@@ -1009,6 +1667,12 @@ export interface BetaManagedAgentsUserCustomToolResultEvent {
|
|
|
1009
1667
|
* A timestamp in RFC 3339 format
|
|
1010
1668
|
*/
|
|
1011
1669
|
processed_at?: string | null;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Routes this result to a subagent thread. Copy from the `agent.custom_tool_use`
|
|
1673
|
+
* event's `session_thread_id`.
|
|
1674
|
+
*/
|
|
1675
|
+
session_thread_id?: string | null;
|
|
1012
1676
|
}
|
|
1013
1677
|
|
|
1014
1678
|
/**
|
|
@@ -1028,7 +1692,12 @@ export interface BetaManagedAgentsUserCustomToolResultEventParams {
|
|
|
1028
1692
|
/**
|
|
1029
1693
|
* The result content returned by the tool.
|
|
1030
1694
|
*/
|
|
1031
|
-
content?: Array<
|
|
1695
|
+
content?: Array<
|
|
1696
|
+
| BetaManagedAgentsTextBlock
|
|
1697
|
+
| BetaManagedAgentsImageBlock
|
|
1698
|
+
| BetaManagedAgentsDocumentBlock
|
|
1699
|
+
| BetaManagedAgentsSearchResultBlock
|
|
1700
|
+
>;
|
|
1032
1701
|
|
|
1033
1702
|
/**
|
|
1034
1703
|
* Whether the tool execution resulted in an error.
|
|
@@ -1036,6 +1705,68 @@ export interface BetaManagedAgentsUserCustomToolResultEventParams {
|
|
|
1036
1705
|
is_error?: boolean | null;
|
|
1037
1706
|
}
|
|
1038
1707
|
|
|
1708
|
+
/**
|
|
1709
|
+
* Echo of a `user.define_outcome` input event. Carries the server-generated
|
|
1710
|
+
* `outcome_id` that subsequent `span.outcome_evaluation_*` events reference.
|
|
1711
|
+
*/
|
|
1712
|
+
export interface BetaManagedAgentsUserDefineOutcomeEvent {
|
|
1713
|
+
/**
|
|
1714
|
+
* Unique identifier for this event.
|
|
1715
|
+
*/
|
|
1716
|
+
id: string;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* What the agent should produce. Copied from the input event.
|
|
1720
|
+
*/
|
|
1721
|
+
description: string;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Evaluate-then-revise cycles before giving up. Default 3, max 20.
|
|
1725
|
+
*/
|
|
1726
|
+
max_iterations: number | null;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Server-generated `outc_` ID for this outcome. Referenced by
|
|
1730
|
+
* `span.outcome_evaluation_*` events and the session's `outcome_evaluations` list.
|
|
1731
|
+
*/
|
|
1732
|
+
outcome_id: string;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* A timestamp in RFC 3339 format
|
|
1736
|
+
*/
|
|
1737
|
+
processed_at: string;
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* Rubric for grading the quality of an outcome.
|
|
1741
|
+
*/
|
|
1742
|
+
rubric: BetaManagedAgentsFileRubric | BetaManagedAgentsTextRubric;
|
|
1743
|
+
|
|
1744
|
+
type: 'user.define_outcome';
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Parameters for defining an outcome the agent should work toward. The agent
|
|
1749
|
+
* begins work on receipt.
|
|
1750
|
+
*/
|
|
1751
|
+
export interface BetaManagedAgentsUserDefineOutcomeEventParams {
|
|
1752
|
+
/**
|
|
1753
|
+
* What the agent should produce. This is the task specification.
|
|
1754
|
+
*/
|
|
1755
|
+
description: string;
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Rubric for grading the quality of an outcome.
|
|
1759
|
+
*/
|
|
1760
|
+
rubric: BetaManagedAgentsFileRubricParams | BetaManagedAgentsTextRubricParams;
|
|
1761
|
+
|
|
1762
|
+
type: 'user.define_outcome';
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Eval→revision cycles before giving up. Default 3, max 20.
|
|
1766
|
+
*/
|
|
1767
|
+
max_iterations?: number | null;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1039
1770
|
/**
|
|
1040
1771
|
* An interrupt event that pauses agent execution and returns control to the user.
|
|
1041
1772
|
*/
|
|
@@ -1051,6 +1782,13 @@ export interface BetaManagedAgentsUserInterruptEvent {
|
|
|
1051
1782
|
* A timestamp in RFC 3339 format
|
|
1052
1783
|
*/
|
|
1053
1784
|
processed_at?: string | null;
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* If absent, interrupts every non-archived thread in a multiagent session (or the
|
|
1788
|
+
* primary alone in a single-agent session). If present, interrupts only the named
|
|
1789
|
+
* thread.
|
|
1790
|
+
*/
|
|
1791
|
+
session_thread_id?: string | null;
|
|
1054
1792
|
}
|
|
1055
1793
|
|
|
1056
1794
|
/**
|
|
@@ -1058,6 +1796,13 @@ export interface BetaManagedAgentsUserInterruptEvent {
|
|
|
1058
1796
|
*/
|
|
1059
1797
|
export interface BetaManagedAgentsUserInterruptEventParams {
|
|
1060
1798
|
type: 'user.interrupt';
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* If absent, interrupts every non-archived thread in a multiagent session (or the
|
|
1802
|
+
* primary alone in a single-agent session). If present, interrupts only the named
|
|
1803
|
+
* thread.
|
|
1804
|
+
*/
|
|
1805
|
+
session_thread_id?: string | null;
|
|
1061
1806
|
}
|
|
1062
1807
|
|
|
1063
1808
|
/**
|
|
@@ -1072,7 +1817,12 @@ export interface BetaManagedAgentsUserMessageEvent {
|
|
|
1072
1817
|
/**
|
|
1073
1818
|
* Array of content blocks comprising the user message.
|
|
1074
1819
|
*/
|
|
1075
|
-
content: Array<
|
|
1820
|
+
content: Array<
|
|
1821
|
+
| BetaManagedAgentsTextBlock
|
|
1822
|
+
| BetaManagedAgentsImageBlock
|
|
1823
|
+
| BetaManagedAgentsDocumentBlock
|
|
1824
|
+
| BetaManagedAgentsRedactedBlock
|
|
1825
|
+
>;
|
|
1076
1826
|
|
|
1077
1827
|
type: 'user.message';
|
|
1078
1828
|
|
|
@@ -1089,7 +1839,12 @@ export interface BetaManagedAgentsUserMessageEventParams {
|
|
|
1089
1839
|
/**
|
|
1090
1840
|
* Array of content blocks for the user message.
|
|
1091
1841
|
*/
|
|
1092
|
-
content: Array<
|
|
1842
|
+
content: Array<
|
|
1843
|
+
| BetaManagedAgentsTextBlock
|
|
1844
|
+
| BetaManagedAgentsImageBlock
|
|
1845
|
+
| BetaManagedAgentsDocumentBlock
|
|
1846
|
+
| BetaManagedAgentsRedactedBlock
|
|
1847
|
+
>;
|
|
1093
1848
|
|
|
1094
1849
|
type: 'user.message';
|
|
1095
1850
|
}
|
|
@@ -1128,6 +1883,13 @@ export interface BetaManagedAgentsUserToolConfirmationEvent {
|
|
|
1128
1883
|
* A timestamp in RFC 3339 format
|
|
1129
1884
|
*/
|
|
1130
1885
|
processed_at?: string | null;
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* When set, the confirmation routes to this subagent's thread rather than the
|
|
1889
|
+
* primary. Echo this from the `session_thread_id` on the `agent.tool_use` or
|
|
1890
|
+
* `agent.mcp_tool_use` event that prompted the approval.
|
|
1891
|
+
*/
|
|
1892
|
+
session_thread_id?: string | null;
|
|
1131
1893
|
}
|
|
1132
1894
|
|
|
1133
1895
|
/**
|
|
@@ -1156,13 +1918,76 @@ export interface BetaManagedAgentsUserToolConfirmationEventParams {
|
|
|
1156
1918
|
deny_message?: string | null;
|
|
1157
1919
|
}
|
|
1158
1920
|
|
|
1921
|
+
/**
|
|
1922
|
+
* Parameters for providing the result of an agent-toolset tool execution. Only
|
|
1923
|
+
* valid on `self_hosted` environments, where sandbox-routed tools are executed by
|
|
1924
|
+
* the client rather than the server.
|
|
1925
|
+
*/
|
|
1926
|
+
export interface BetaManagedAgentsUserToolResultEventParams {
|
|
1927
|
+
/**
|
|
1928
|
+
* The id of the `agent.tool_use` event this result corresponds to, which can be
|
|
1929
|
+
* found in the last `session.status_idle`
|
|
1930
|
+
* [event's](https://platform.claude.com/docs/en/api/beta/sessions/events/list#beta_managed_agents_session_requires_action.event_ids)
|
|
1931
|
+
* `stop_reason.event_ids` field.
|
|
1932
|
+
*/
|
|
1933
|
+
tool_use_id: string;
|
|
1934
|
+
|
|
1935
|
+
type: 'user.tool_result';
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* The result content returned by the tool.
|
|
1939
|
+
*/
|
|
1940
|
+
content?: Array<
|
|
1941
|
+
| BetaManagedAgentsTextBlock
|
|
1942
|
+
| BetaManagedAgentsImageBlock
|
|
1943
|
+
| BetaManagedAgentsDocumentBlock
|
|
1944
|
+
| BetaManagedAgentsSearchResultBlock
|
|
1945
|
+
>;
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* Whether the tool execution resulted in an error.
|
|
1949
|
+
*/
|
|
1950
|
+
is_error?: boolean | null;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1159
1953
|
export interface EventListParams extends PageCursorParams {
|
|
1160
1954
|
/**
|
|
1161
|
-
* Query param:
|
|
1162
|
-
*
|
|
1955
|
+
* Query param: Return events created after this time (exclusive). Compared against
|
|
1956
|
+
* the event's `processed_at` value.
|
|
1957
|
+
*/
|
|
1958
|
+
'created_at[gt]'?: string;
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* Query param: Return events created at or after this time (inclusive). Compared
|
|
1962
|
+
* against the event's `processed_at` value.
|
|
1963
|
+
*/
|
|
1964
|
+
'created_at[gte]'?: string;
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* Query param: Return events created before this time (exclusive). Compared
|
|
1968
|
+
* against the event's `processed_at` value.
|
|
1969
|
+
*/
|
|
1970
|
+
'created_at[lt]'?: string;
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Query param: Return events created at or before this time (inclusive). Compared
|
|
1974
|
+
* against the event's `processed_at` value.
|
|
1975
|
+
*/
|
|
1976
|
+
'created_at[lte]'?: string;
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* Query param: Sort direction for results, ordered by the event's `processed_at`.
|
|
1980
|
+
* Defaults to asc (chronological).
|
|
1163
1981
|
*/
|
|
1164
1982
|
order?: 'asc' | 'desc';
|
|
1165
1983
|
|
|
1984
|
+
/**
|
|
1985
|
+
* Query param: Filter by event type. Values match the `type` field on returned
|
|
1986
|
+
* events (for example, `user.message` or `agent.tool_use`). Omit to return all
|
|
1987
|
+
* event types.
|
|
1988
|
+
*/
|
|
1989
|
+
types?: Array<string>;
|
|
1990
|
+
|
|
1166
1991
|
/**
|
|
1167
1992
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1168
1993
|
*/
|
|
@@ -1183,12 +2008,32 @@ export interface EventSendParams {
|
|
|
1183
2008
|
|
|
1184
2009
|
export interface EventStreamParams {
|
|
1185
2010
|
/**
|
|
1186
|
-
*
|
|
2011
|
+
* Query param: When set, this connection also receives streaming deltas
|
|
2012
|
+
* (`event_start`, `event_delta`) while an event is being produced, before the
|
|
2013
|
+
* event itself arrives. Deltas are best-effort; when the final event is produced
|
|
2014
|
+
* it carries the complete content. A model request that ends early (an error or
|
|
2015
|
+
* interrupt) produces no final event — its terminal `span.model_request_end`
|
|
2016
|
+
* closes the preview. Accepts one or more event types to preview and may be
|
|
2017
|
+
* repeated: `agent.message` streams `content_delta` fragments; `agent.thinking` is
|
|
2018
|
+
* start-only — a signal that the agent has begun extended thinking, concluded by
|
|
2019
|
+
* the `agent.thinking` event itself. Only previews of the requested event types
|
|
2020
|
+
* are sent.
|
|
2021
|
+
*/
|
|
2022
|
+
event_deltas?: Array<SessionsAPI.BetaManagedAgentsDeltaType>;
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1187
2026
|
*/
|
|
1188
2027
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1189
2028
|
}
|
|
1190
2029
|
|
|
2030
|
+
export { SessionToolRunner, type SessionToolRunnerOptions } from '../../../lib/tools/SessionToolRunner';
|
|
2031
|
+
|
|
2032
|
+
Events.SessionToolRunner = SessionToolRunner;
|
|
2033
|
+
|
|
1191
2034
|
export declare namespace Events {
|
|
2035
|
+
export { SessionToolRunner };
|
|
2036
|
+
|
|
1192
2037
|
export {
|
|
1193
2038
|
type BetaManagedAgentsAgentCustomToolUseEvent as BetaManagedAgentsAgentCustomToolUseEvent,
|
|
1194
2039
|
type BetaManagedAgentsAgentMCPToolResultEvent as BetaManagedAgentsAgentMCPToolResultEvent,
|
|
@@ -1196,15 +2041,20 @@ export declare namespace Events {
|
|
|
1196
2041
|
type BetaManagedAgentsAgentMessageEvent as BetaManagedAgentsAgentMessageEvent,
|
|
1197
2042
|
type BetaManagedAgentsAgentThinkingEvent as BetaManagedAgentsAgentThinkingEvent,
|
|
1198
2043
|
type BetaManagedAgentsAgentThreadContextCompactedEvent as BetaManagedAgentsAgentThreadContextCompactedEvent,
|
|
2044
|
+
type BetaManagedAgentsAgentThreadMessageReceivedEvent as BetaManagedAgentsAgentThreadMessageReceivedEvent,
|
|
2045
|
+
type BetaManagedAgentsAgentThreadMessageSentEvent as BetaManagedAgentsAgentThreadMessageSentEvent,
|
|
1199
2046
|
type BetaManagedAgentsAgentToolResultEvent as BetaManagedAgentsAgentToolResultEvent,
|
|
1200
2047
|
type BetaManagedAgentsAgentToolUseEvent as BetaManagedAgentsAgentToolUseEvent,
|
|
1201
2048
|
type BetaManagedAgentsBase64DocumentSource as BetaManagedAgentsBase64DocumentSource,
|
|
1202
2049
|
type BetaManagedAgentsBase64ImageSource as BetaManagedAgentsBase64ImageSource,
|
|
1203
2050
|
type BetaManagedAgentsBillingError as BetaManagedAgentsBillingError,
|
|
2051
|
+
type BetaManagedAgentsCredentialHostUnreachableError as BetaManagedAgentsCredentialHostUnreachableError,
|
|
1204
2052
|
type BetaManagedAgentsDocumentBlock as BetaManagedAgentsDocumentBlock,
|
|
1205
2053
|
type BetaManagedAgentsEventParams as BetaManagedAgentsEventParams,
|
|
1206
2054
|
type BetaManagedAgentsFileDocumentSource as BetaManagedAgentsFileDocumentSource,
|
|
1207
2055
|
type BetaManagedAgentsFileImageSource as BetaManagedAgentsFileImageSource,
|
|
2056
|
+
type BetaManagedAgentsFileRubric as BetaManagedAgentsFileRubric,
|
|
2057
|
+
type BetaManagedAgentsFileRubricParams as BetaManagedAgentsFileRubricParams,
|
|
1208
2058
|
type BetaManagedAgentsImageBlock as BetaManagedAgentsImageBlock,
|
|
1209
2059
|
type BetaManagedAgentsMCPAuthenticationFailedError as BetaManagedAgentsMCPAuthenticationFailedError,
|
|
1210
2060
|
type BetaManagedAgentsMCPConnectionFailedError as BetaManagedAgentsMCPConnectionFailedError,
|
|
@@ -1212,10 +2062,15 @@ export declare namespace Events {
|
|
|
1212
2062
|
type BetaManagedAgentsModelRateLimitedError as BetaManagedAgentsModelRateLimitedError,
|
|
1213
2063
|
type BetaManagedAgentsModelRequestFailedError as BetaManagedAgentsModelRequestFailedError,
|
|
1214
2064
|
type BetaManagedAgentsPlainTextDocumentSource as BetaManagedAgentsPlainTextDocumentSource,
|
|
2065
|
+
type BetaManagedAgentsRedactedBlock as BetaManagedAgentsRedactedBlock,
|
|
1215
2066
|
type BetaManagedAgentsRetryStatusExhausted as BetaManagedAgentsRetryStatusExhausted,
|
|
1216
2067
|
type BetaManagedAgentsRetryStatusRetrying as BetaManagedAgentsRetryStatusRetrying,
|
|
1217
2068
|
type BetaManagedAgentsRetryStatusTerminal as BetaManagedAgentsRetryStatusTerminal,
|
|
2069
|
+
type BetaManagedAgentsSearchResultBlock as BetaManagedAgentsSearchResultBlock,
|
|
2070
|
+
type BetaManagedAgentsSearchResultCitations as BetaManagedAgentsSearchResultCitations,
|
|
2071
|
+
type BetaManagedAgentsSearchResultContent as BetaManagedAgentsSearchResultContent,
|
|
1218
2072
|
type BetaManagedAgentsSendSessionEvents as BetaManagedAgentsSendSessionEvents,
|
|
2073
|
+
type BetaManagedAgentsSessionBudgetReached as BetaManagedAgentsSessionBudgetReached,
|
|
1219
2074
|
type BetaManagedAgentsSessionDeletedEvent as BetaManagedAgentsSessionDeletedEvent,
|
|
1220
2075
|
type BetaManagedAgentsSessionEndTurn as BetaManagedAgentsSessionEndTurn,
|
|
1221
2076
|
type BetaManagedAgentsSessionErrorEvent as BetaManagedAgentsSessionErrorEvent,
|
|
@@ -1226,22 +2081,37 @@ export declare namespace Events {
|
|
|
1226
2081
|
type BetaManagedAgentsSessionStatusRescheduledEvent as BetaManagedAgentsSessionStatusRescheduledEvent,
|
|
1227
2082
|
type BetaManagedAgentsSessionStatusRunningEvent as BetaManagedAgentsSessionStatusRunningEvent,
|
|
1228
2083
|
type BetaManagedAgentsSessionStatusTerminatedEvent as BetaManagedAgentsSessionStatusTerminatedEvent,
|
|
2084
|
+
type BetaManagedAgentsSessionThreadCreatedEvent as BetaManagedAgentsSessionThreadCreatedEvent,
|
|
2085
|
+
type BetaManagedAgentsSessionThreadStatusIdleEvent as BetaManagedAgentsSessionThreadStatusIdleEvent,
|
|
2086
|
+
type BetaManagedAgentsSessionThreadStatusRescheduledEvent as BetaManagedAgentsSessionThreadStatusRescheduledEvent,
|
|
2087
|
+
type BetaManagedAgentsSessionThreadStatusRunningEvent as BetaManagedAgentsSessionThreadStatusRunningEvent,
|
|
2088
|
+
type BetaManagedAgentsSessionThreadStatusTerminatedEvent as BetaManagedAgentsSessionThreadStatusTerminatedEvent,
|
|
2089
|
+
type BetaManagedAgentsSessionUsageSnapshot as BetaManagedAgentsSessionUsageSnapshot,
|
|
1229
2090
|
type BetaManagedAgentsSpanModelRequestEndEvent as BetaManagedAgentsSpanModelRequestEndEvent,
|
|
1230
2091
|
type BetaManagedAgentsSpanModelRequestStartEvent as BetaManagedAgentsSpanModelRequestStartEvent,
|
|
1231
2092
|
type BetaManagedAgentsSpanModelUsage as BetaManagedAgentsSpanModelUsage,
|
|
2093
|
+
type BetaManagedAgentsSpanOutcomeEvaluationEndEvent as BetaManagedAgentsSpanOutcomeEvaluationEndEvent,
|
|
2094
|
+
type BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent as BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent,
|
|
2095
|
+
type BetaManagedAgentsSpanOutcomeEvaluationStartEvent as BetaManagedAgentsSpanOutcomeEvaluationStartEvent,
|
|
1232
2096
|
type BetaManagedAgentsStreamSessionEvents as BetaManagedAgentsStreamSessionEvents,
|
|
2097
|
+
type BetaManagedAgentsSystemMessageEventParams as BetaManagedAgentsSystemMessageEventParams,
|
|
1233
2098
|
type BetaManagedAgentsTextBlock as BetaManagedAgentsTextBlock,
|
|
2099
|
+
type BetaManagedAgentsTextRubric as BetaManagedAgentsTextRubric,
|
|
2100
|
+
type BetaManagedAgentsTextRubricParams as BetaManagedAgentsTextRubricParams,
|
|
1234
2101
|
type BetaManagedAgentsUnknownError as BetaManagedAgentsUnknownError,
|
|
1235
2102
|
type BetaManagedAgentsURLDocumentSource as BetaManagedAgentsURLDocumentSource,
|
|
1236
2103
|
type BetaManagedAgentsURLImageSource as BetaManagedAgentsURLImageSource,
|
|
1237
2104
|
type BetaManagedAgentsUserCustomToolResultEvent as BetaManagedAgentsUserCustomToolResultEvent,
|
|
1238
2105
|
type BetaManagedAgentsUserCustomToolResultEventParams as BetaManagedAgentsUserCustomToolResultEventParams,
|
|
2106
|
+
type BetaManagedAgentsUserDefineOutcomeEvent as BetaManagedAgentsUserDefineOutcomeEvent,
|
|
2107
|
+
type BetaManagedAgentsUserDefineOutcomeEventParams as BetaManagedAgentsUserDefineOutcomeEventParams,
|
|
1239
2108
|
type BetaManagedAgentsUserInterruptEvent as BetaManagedAgentsUserInterruptEvent,
|
|
1240
2109
|
type BetaManagedAgentsUserInterruptEventParams as BetaManagedAgentsUserInterruptEventParams,
|
|
1241
2110
|
type BetaManagedAgentsUserMessageEvent as BetaManagedAgentsUserMessageEvent,
|
|
1242
2111
|
type BetaManagedAgentsUserMessageEventParams as BetaManagedAgentsUserMessageEventParams,
|
|
1243
2112
|
type BetaManagedAgentsUserToolConfirmationEvent as BetaManagedAgentsUserToolConfirmationEvent,
|
|
1244
2113
|
type BetaManagedAgentsUserToolConfirmationEventParams as BetaManagedAgentsUserToolConfirmationEventParams,
|
|
2114
|
+
type BetaManagedAgentsUserToolResultEventParams as BetaManagedAgentsUserToolResultEventParams,
|
|
1245
2115
|
type BetaManagedAgentsSessionEventsPageCursor as BetaManagedAgentsSessionEventsPageCursor,
|
|
1246
2116
|
type EventListParams as EventListParams,
|
|
1247
2117
|
type EventSendParams as EventSendParams,
|