@anthropic-ai/sdk 0.125.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js +846 -840
- package/client.js.map +1 -1
- package/client.mjs +846 -834
- package/client.mjs.map +1 -1
- package/core/api-promise.js +71 -68
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +71 -64
- package/core/api-promise.mjs.map +1 -1
- package/core/error.js +5 -2
- package/core/error.js.map +1 -1
- package/core/error.mjs +5 -2
- package/core/error.mjs.map +1 -1
- package/core/pagination.js +56 -50
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +56 -41
- package/core/pagination.mjs.map +1 -1
- package/core/streaming.js +212 -209
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +212 -209
- package/core/streaming.mjs.map +1 -1
- package/helpers/beta/mcp.js +14 -19
- package/helpers/beta/mcp.js.map +1 -1
- package/helpers/beta/mcp.mjs +14 -13
- package/helpers/beta/mcp.mjs.map +1 -1
- package/internal/constants.js +1 -1
- package/internal/constants.js.map +1 -1
- package/internal/decoders/jsonl.js +27 -24
- package/internal/decoders/jsonl.js.map +1 -1
- package/internal/decoders/jsonl.mjs +27 -24
- package/internal/decoders/jsonl.mjs.map +1 -1
- package/internal/decoders/line.js +52 -49
- package/internal/decoders/line.js.map +1 -1
- package/internal/decoders/line.mjs +52 -43
- package/internal/decoders/line.mjs.map +1 -1
- package/internal/file-store.js +256 -258
- package/internal/file-store.js.map +1 -1
- package/internal/file-store.mjs +256 -243
- package/internal/file-store.mjs.map +1 -1
- package/internal/node.browser.d.mts.map +1 -1
- package/internal/node.browser.d.ts.map +1 -1
- package/internal/node.browser.js.map +1 -1
- package/internal/node.browser.mjs +7 -7
- package/internal/node.browser.mjs.map +1 -1
- package/internal/shim-types.js +0 -6
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +0 -6
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.js +0 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +0 -6
- package/internal/shims.mjs.map +1 -1
- package/internal/stainless-helper-header.js +6 -6
- package/internal/stainless-helper-header.js.map +1 -1
- package/internal/utils/async-queue.js +66 -63
- package/internal/utils/async-queue.js.map +1 -1
- package/internal/utils/async-queue.mjs +66 -56
- package/internal/utils/async-queue.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +1 -1
- package/internal/utils/bytes.d.mts.map +1 -1
- package/internal/utils/bytes.d.ts +1 -1
- package/internal/utils/bytes.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +593 -590
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +593 -590
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/MessageStream.js +544 -541
- package/lib/MessageStream.js.map +1 -1
- package/lib/MessageStream.mjs +544 -541
- package/lib/MessageStream.mjs.map +1 -1
- package/lib/environments/poller.js +180 -174
- package/lib/environments/poller.js.map +1 -1
- package/lib/environments/poller.mjs +180 -153
- package/lib/environments/poller.mjs.map +1 -1
- package/lib/environments/worker.js +375 -369
- package/lib/environments/worker.js.map +1 -1
- package/lib/environments/worker.mjs +374 -329
- package/lib/environments/worker.mjs.map +1 -1
- package/lib/tools/BetaToolRunner.js +316 -313
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +315 -306
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/lib/tools/SessionToolRunner.js +241 -235
- package/lib/tools/SessionToolRunner.js.map +1 -1
- package/lib/tools/SessionToolRunner.mjs +241 -192
- package/lib/tools/SessionToolRunner.mjs.map +1 -1
- package/lib/tools/ToolError.js +39 -36
- package/lib/tools/ToolError.js.map +1 -1
- package/lib/tools/ToolError.mjs +39 -13
- package/lib/tools/ToolError.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/beta/agents/agents.js +135 -132
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +135 -132
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/beta.d.mts +5 -5
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +5 -5
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +39 -36
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +39 -36
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/dreams.d.mts +2 -28
- package/resources/beta/dreams.d.mts.map +1 -1
- package/resources/beta/dreams.d.ts +2 -28
- package/resources/beta/dreams.d.ts.map +1 -1
- package/resources/beta/environments/environments.js +157 -154
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs +157 -154
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/environments/work.js +255 -252
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs +255 -252
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/index.d.mts +2 -2
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +2 -2
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-stores.js +150 -147
- package/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores/memory-stores.mjs +150 -147
- package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/resources/beta/messages/batches.d.mts +12 -1
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +12 -1
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +238 -100
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +238 -100
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +113 -110
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +113 -110
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/models.d.mts +22 -1
- package/resources/beta/models.d.mts.map +1 -1
- package/resources/beta/models.d.ts +22 -1
- package/resources/beta/models.d.ts.map +1 -1
- package/resources/beta/organization/federation/federation.js +11 -8
- package/resources/beta/organization/federation/federation.js.map +1 -1
- package/resources/beta/organization/federation/federation.mjs +11 -8
- package/resources/beta/organization/federation/federation.mjs.map +1 -1
- package/resources/beta/organization/federation/rules/rules.js +187 -184
- package/resources/beta/organization/federation/rules/rules.js.map +1 -1
- package/resources/beta/organization/federation/rules/rules.mjs +187 -184
- package/resources/beta/organization/federation/rules/rules.mjs.map +1 -1
- package/resources/beta/organization/organization.js +38 -35
- package/resources/beta/organization/organization.js.map +1 -1
- package/resources/beta/organization/organization.mjs +38 -35
- package/resources/beta/organization/organization.mjs.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.js +163 -160
- package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.mjs +163 -160
- package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.mts +3 -3
- package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.ts +3 -3
- package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.js +97 -94
- package/resources/beta/organization/workspaces/workspaces.js.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.mjs +97 -94
- package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +12 -21
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +12 -21
- package/resources/beta/sessions/events.d.ts.map +1 -1
- package/resources/beta/sessions/events.js +118 -115
- package/resources/beta/sessions/events.js.map +1 -1
- package/resources/beta/sessions/events.mjs +118 -115
- package/resources/beta/sessions/events.mjs.map +1 -1
- package/resources/beta/sessions/resources.d.mts +0 -3
- package/resources/beta/sessions/resources.d.mts.map +1 -1
- package/resources/beta/sessions/resources.d.ts +0 -3
- package/resources/beta/sessions/resources.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +2 -2
- package/resources/beta/sessions/sessions.d.ts +2 -2
- package/resources/beta/sessions/sessions.js +161 -158
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs +161 -158
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/resources/beta/sessions/threads/threads.js +86 -83
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs +86 -83
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/resources/beta/skills/skills.js +104 -101
- package/resources/beta/skills/skills.js.map +1 -1
- package/resources/beta/skills/skills.mjs +104 -101
- package/resources/beta/skills/skills.mjs.map +1 -1
- package/resources/beta/tunnels/tunnels.js +188 -185
- package/resources/beta/tunnels/tunnels.js.map +1 -1
- package/resources/beta/tunnels/tunnels.mjs +188 -185
- package/resources/beta/tunnels/tunnels.mjs.map +1 -1
- package/resources/beta/user-profiles.d.mts +45 -0
- package/resources/beta/user-profiles.d.mts.map +1 -1
- package/resources/beta/user-profiles.d.ts +45 -0
- package/resources/beta/user-profiles.d.ts.map +1 -1
- package/resources/beta/user-profiles.js +25 -10
- package/resources/beta/user-profiles.js.map +1 -1
- package/resources/beta/user-profiles.mjs +25 -10
- package/resources/beta/user-profiles.mjs.map +1 -1
- package/resources/beta/vaults/credentials.d.mts +0 -14
- package/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/vaults/credentials.d.ts +0 -14
- package/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/vaults/vaults.js +156 -153
- package/resources/beta/vaults/vaults.js.map +1 -1
- package/resources/beta/vaults/vaults.mjs +156 -153
- package/resources/beta/vaults/vaults.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +100 -63
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +100 -63
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +115 -112
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +115 -112
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/skills/skills.js +88 -85
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +88 -85
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/top-level.js +0 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +0 -1
- package/resources/top-level.mjs.map +1 -1
- package/src/client.ts +13 -1
- package/src/internal/node.browser.ts +7 -7
- package/src/internal/utils/bytes.ts +1 -1
- package/src/resources/beta/beta.ts +24 -1
- package/src/resources/beta/dreams.ts +2 -28
- package/src/resources/beta/index.ts +11 -0
- package/src/resources/beta/messages/batches.ts +13 -1
- package/src/resources/beta/messages/index.ts +10 -0
- package/src/resources/beta/messages/messages.ts +288 -99
- package/src/resources/beta/models.ts +25 -0
- package/src/resources/beta/organization/workspaces/workspaces.ts +3 -3
- package/src/resources/beta/sessions/events.ts +12 -21
- package/src/resources/beta/sessions/resources.ts +0 -3
- package/src/resources/beta/sessions/sessions.ts +2 -2
- package/src/resources/beta/user-profiles.ts +75 -10
- package/src/resources/beta/vaults/credentials.ts +0 -14
- package/src/resources/completions.ts +1 -1
- package/src/resources/index.ts +6 -0
- package/src/resources/messages/index.ts +6 -0
- package/src/resources/messages/messages.ts +128 -62
- package/src/tsconfig.json +13 -3
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.js +0 -6
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +0 -6
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/memories.js +4 -4
- package/tools/agent-toolset/memories.js.map +1 -1
- package/tools/agent-toolset/memories.mjs +2 -2
- package/tools/agent-toolset/memories.mjs.map +1 -1
- package/tools/agent-toolset/node.browser.js +12 -12
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.js +142 -139
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +132 -125
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/tools/agent-toolset/skills.js +5 -5
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/sync-interval.js +3 -3
- package/tools/agent-toolset/sync-interval.js.map +1 -1
- package/tools/memory/node.browser.js +2 -2
- package/tools/memory/node.browser.js.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -727,14 +727,6 @@ export interface BetaBrowserStateBlockParam {
|
|
|
727
727
|
*/
|
|
728
728
|
state_changes?: Array<BetaBrowserStateChange> | null;
|
|
729
729
|
}
|
|
730
|
-
/**
|
|
731
|
-
* A tab this call's execution opened that remains open at its end — the creation
|
|
732
|
-
* delta of the `tabs` inventory, not an event log.
|
|
733
|
-
*
|
|
734
|
-
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
735
|
-
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
736
|
-
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
737
|
-
*/
|
|
738
730
|
export type BetaBrowserStateChange = BetaBrowserStateChangeTabOpened | BetaBrowserStateChangeDownloadStarted | BetaBrowserStateChangeDownloadCompleted | BetaBrowserStateChangeDownloadFailed;
|
|
739
731
|
/**
|
|
740
732
|
* A file download that finished during this call, reported with the same
|
|
@@ -1499,21 +1491,12 @@ export interface BetaCodeExecutionTool20260521 {
|
|
|
1499
1491
|
strict?: boolean;
|
|
1500
1492
|
}
|
|
1501
1493
|
export interface BetaCodeExecutionToolResultBlock {
|
|
1502
|
-
/**
|
|
1503
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1504
|
-
*/
|
|
1505
1494
|
content: BetaCodeExecutionToolResultBlockContent;
|
|
1506
1495
|
tool_use_id: string;
|
|
1507
1496
|
type: 'code_execution_tool_result';
|
|
1508
1497
|
}
|
|
1509
|
-
/**
|
|
1510
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1511
|
-
*/
|
|
1512
1498
|
export type BetaCodeExecutionToolResultBlockContent = BetaCodeExecutionToolResultError | BetaCodeExecutionResultBlock | BetaEncryptedCodeExecutionResultBlock;
|
|
1513
1499
|
export interface BetaCodeExecutionToolResultBlockParam {
|
|
1514
|
-
/**
|
|
1515
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1516
|
-
*/
|
|
1517
1500
|
content: BetaCodeExecutionToolResultBlockParamContent;
|
|
1518
1501
|
tool_use_id: string;
|
|
1519
1502
|
type: 'code_execution_tool_result';
|
|
@@ -1522,9 +1505,6 @@ export interface BetaCodeExecutionToolResultBlockParam {
|
|
|
1522
1505
|
*/
|
|
1523
1506
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
1524
1507
|
}
|
|
1525
|
-
/**
|
|
1526
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1527
|
-
*/
|
|
1528
1508
|
export type BetaCodeExecutionToolResultBlockParamContent = BetaCodeExecutionToolResultErrorParam | BetaCodeExecutionResultBlockParam | BetaEncryptedCodeExecutionResultBlockParam;
|
|
1529
1509
|
export interface BetaCodeExecutionToolResultError {
|
|
1530
1510
|
error_code: BetaCodeExecutionToolResultErrorCode;
|
|
@@ -1571,6 +1551,10 @@ export interface BetaCompactionBlock {
|
|
|
1571
1551
|
*/
|
|
1572
1552
|
encrypted_content: string | null;
|
|
1573
1553
|
type: 'compaction';
|
|
1554
|
+
/**
|
|
1555
|
+
* Signature over the summary, to be sent back with the block verbatim
|
|
1556
|
+
*/
|
|
1557
|
+
signature?: string | null;
|
|
1574
1558
|
}
|
|
1575
1559
|
/**
|
|
1576
1560
|
* A compaction block containing summary of previous context.
|
|
@@ -1595,6 +1579,28 @@ export interface BetaCompactionBlockParam {
|
|
|
1595
1579
|
* Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
1596
1580
|
*/
|
|
1597
1581
|
encrypted_content?: string | null;
|
|
1582
|
+
/**
|
|
1583
|
+
* The block's signature as returned, to be sent back verbatim
|
|
1584
|
+
*/
|
|
1585
|
+
signature?: string | null;
|
|
1586
|
+
}
|
|
1587
|
+
/**
|
|
1588
|
+
* Compact the whole conversation and return a signed `compaction` block, alone,
|
|
1589
|
+
* that a later request sends back first in `messages`, in place of the messages it
|
|
1590
|
+
* summarizes. There is no trigger and no pause flag: sending the parameter
|
|
1591
|
+
* compacts, and nothing is sampled after the block.
|
|
1592
|
+
*
|
|
1593
|
+
* The summarization prompt is the server's own unless `instructions` are given,
|
|
1594
|
+
* which then replace it for this request; a value that is empty or only whitespace
|
|
1595
|
+
* counts as absent.
|
|
1596
|
+
*/
|
|
1597
|
+
export interface BetaCompactionConfig {
|
|
1598
|
+
type: 'summarize';
|
|
1599
|
+
/**
|
|
1600
|
+
* Replaces the server's default summarization prompt for this request. An empty or
|
|
1601
|
+
* whitespace-only value counts as absent.
|
|
1602
|
+
*/
|
|
1603
|
+
instructions?: string | null;
|
|
1598
1604
|
}
|
|
1599
1605
|
export interface BetaCompactionContentBlockDelta {
|
|
1600
1606
|
content: string | null;
|
|
@@ -2072,13 +2078,7 @@ export interface BetaContainerUploadBlockParam {
|
|
|
2072
2078
|
*/
|
|
2073
2079
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
2074
2080
|
}
|
|
2075
|
-
/**
|
|
2076
|
-
* Response model for a file uploaded to the container.
|
|
2077
|
-
*/
|
|
2078
2081
|
export type BetaContentBlock = BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaAdvisorToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock | BetaCompactionBlock | BetaFallbackBlock;
|
|
2079
|
-
/**
|
|
2080
|
-
* Regular text content.
|
|
2081
|
-
*/
|
|
2082
2082
|
export type BetaContentBlockParam = BetaTextBlockParam | BetaImageBlockParam | BetaRequestDocumentBlock | BetaSearchResultBlockParam | BetaThinkingBlockParam | BetaRedactedThinkingBlockParam | BetaToolUseBlockParam | BetaToolResultBlockParam | BetaServerToolUseBlockParam | BetaWebSearchToolResultBlockParam | BetaWebFetchToolResultBlockParam | BetaAdvisorToolResultBlockParam | BetaCodeExecutionToolResultBlockParam | BetaBashCodeExecutionToolResultBlockParam | BetaTextEditorCodeExecutionToolResultBlockParam | BetaToolSearchToolResultBlockParam | BetaMCPToolUseBlockParam | BetaRequestMCPToolResultBlockParam | BetaContainerUploadBlockParam | BetaCompactionBlockParam | BetaRequestToolAdditionBlock | BetaRequestToolRemovalBlock | BetaFallbackBlockParam;
|
|
2083
2083
|
export interface BetaContentBlockSource {
|
|
2084
2084
|
content: string | Array<BetaContentBlockSourceContent>;
|
|
@@ -2326,10 +2326,11 @@ export interface BetaFallbackInfoParam {
|
|
|
2326
2326
|
/**
|
|
2327
2327
|
* Token usage for the fallback-model attempt of a server-side fallback request.
|
|
2328
2328
|
*
|
|
2329
|
-
*
|
|
2330
|
-
*
|
|
2331
|
-
*
|
|
2332
|
-
* `
|
|
2329
|
+
* The terminal entry of a fallback-served turn: when a fallback hop's output is
|
|
2330
|
+
* the returned message, the entry for the iteration that completed it carries this
|
|
2331
|
+
* type in place of `message`. A declined hop and the serving hop's earlier
|
|
2332
|
+
* tool-loop iterations produce `message` entries. Whether a fallback model served
|
|
2333
|
+
* the response is signalled by the presence of this entry in `usage.iterations`.
|
|
2333
2334
|
*/
|
|
2334
2335
|
export interface BetaFallbackMessageIterationUsage {
|
|
2335
2336
|
/**
|
|
@@ -2475,6 +2476,12 @@ export interface BetaInputTokensTrigger {
|
|
|
2475
2476
|
type: 'input_tokens';
|
|
2476
2477
|
value: number;
|
|
2477
2478
|
}
|
|
2479
|
+
/**
|
|
2480
|
+
* One entry of `input_transformations`: either a change the API made to the
|
|
2481
|
+
* request's input before showing it to the model, or a block that failed a binding
|
|
2482
|
+
* check and was still shown to the model unchanged. The `type` field says which.
|
|
2483
|
+
*/
|
|
2484
|
+
export type BetaInputTransformation = BetaThinkingDroppedInputTransformation | BetaThinkingMismatchAllowedInputTransformation;
|
|
2478
2485
|
/**
|
|
2479
2486
|
* Per-iteration token usage breakdown.
|
|
2480
2487
|
*
|
|
@@ -2824,23 +2831,28 @@ export interface BetaMessage {
|
|
|
2824
2831
|
*/
|
|
2825
2832
|
usage: BetaUsage;
|
|
2826
2833
|
/**
|
|
2827
|
-
* Changes the API made to the request's input before showing it to the model
|
|
2828
|
-
*
|
|
2829
|
-
* `thinking_dropped` — a `thinking`,
|
|
2830
|
-
* from the request's `messages` that
|
|
2831
|
-
*
|
|
2832
|
-
*
|
|
2834
|
+
* Changes the API made to the request's input before showing it to the model, and
|
|
2835
|
+
* blocks that failed a binding check but were left unchanged: one entry per block,
|
|
2836
|
+
* in request order. Two entry types today. `thinking_dropped` — a `thinking`,
|
|
2837
|
+
* `redacted_thinking` or `connector_text` block from the request's `messages` that
|
|
2838
|
+
* was removed from the prompt instead of being shown to the model because it
|
|
2839
|
+
* failed a binding check. `thinking_mismatch_allowed` — a `thinking` or
|
|
2840
|
+
* `redacted_thinking` block that failed the conversation check (the conversation
|
|
2841
|
+
* before it differs from the one it was created in, or it carries no record of one
|
|
2842
|
+
* on a model that requires it) and was shown to the model all the same, because
|
|
2843
|
+
* that check is not enforced for this request. More entry types may be added over
|
|
2844
|
+
* time; ignore types you do not recognize.
|
|
2833
2845
|
*
|
|
2834
2846
|
* Requires `anthropic-beta: thinking-binding-controls-2026-08-01`. Present on
|
|
2835
2847
|
* every such response from a model that supports extended thinking, as `[]` when
|
|
2836
|
-
*
|
|
2837
|
-
* nothing is reported. Removed blocks contribute nothing to
|
|
2838
|
-
*
|
|
2839
|
-
*
|
|
2840
|
-
*
|
|
2841
|
-
* `message_start`.
|
|
2848
|
+
* there is no entry to report; without the beta, blocks are removed or left in
|
|
2849
|
+
* place all the same but nothing is reported. Removed blocks contribute nothing to
|
|
2850
|
+
* `usage.input_tokens`; blocks left in place count as sent. When streaming, the
|
|
2851
|
+
* array is final in `message_start`; the final `message_delta` event carries it
|
|
2852
|
+
* only when a server-side model fallback happened mid-stream, in which case it
|
|
2853
|
+
* holds the serving model's entries and replaces the one in `message_start`.
|
|
2842
2854
|
*/
|
|
2843
|
-
input_transformations?: Array<
|
|
2855
|
+
input_transformations?: Array<BetaInputTransformation> | null;
|
|
2844
2856
|
}
|
|
2845
2857
|
export interface BetaMessageDeltaUsage {
|
|
2846
2858
|
/**
|
|
@@ -2928,7 +2940,7 @@ export interface BetaMessageIterationUsage {
|
|
|
2928
2940
|
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
2929
2941
|
* details and options.
|
|
2930
2942
|
*/
|
|
2931
|
-
model: MessagesAPI.Model;
|
|
2943
|
+
model: MessagesAPI.Model | null;
|
|
2932
2944
|
/**
|
|
2933
2945
|
* The number of output tokens which were used.
|
|
2934
2946
|
*/
|
|
@@ -3020,9 +3032,6 @@ export interface BetaRawContentBlockDeltaEvent {
|
|
|
3020
3032
|
type: 'content_block_delta';
|
|
3021
3033
|
}
|
|
3022
3034
|
export interface BetaRawContentBlockStartEvent {
|
|
3023
|
-
/**
|
|
3024
|
-
* Response model for a file uploaded to the container.
|
|
3025
|
-
*/
|
|
3026
3035
|
content_block: BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaAdvisorToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock | BetaCompactionBlock | BetaFallbackBlock;
|
|
3027
3036
|
index: number;
|
|
3028
3037
|
type: 'content_block_start';
|
|
@@ -3057,23 +3066,28 @@ export interface BetaRawMessageDeltaEvent {
|
|
|
3057
3066
|
*/
|
|
3058
3067
|
usage: BetaMessageDeltaUsage;
|
|
3059
3068
|
/**
|
|
3060
|
-
* Changes the API made to the request's input before showing it to the model
|
|
3061
|
-
*
|
|
3062
|
-
* `thinking_dropped` — a `thinking`,
|
|
3063
|
-
* from the request's `messages` that
|
|
3064
|
-
*
|
|
3065
|
-
*
|
|
3069
|
+
* Changes the API made to the request's input before showing it to the model, and
|
|
3070
|
+
* blocks that failed a binding check but were left unchanged: one entry per block,
|
|
3071
|
+
* in request order. Two entry types today. `thinking_dropped` — a `thinking`,
|
|
3072
|
+
* `redacted_thinking` or `connector_text` block from the request's `messages` that
|
|
3073
|
+
* was removed from the prompt instead of being shown to the model because it
|
|
3074
|
+
* failed a binding check. `thinking_mismatch_allowed` — a `thinking` or
|
|
3075
|
+
* `redacted_thinking` block that failed the conversation check (the conversation
|
|
3076
|
+
* before it differs from the one it was created in, or it carries no record of one
|
|
3077
|
+
* on a model that requires it) and was shown to the model all the same, because
|
|
3078
|
+
* that check is not enforced for this request. More entry types may be added over
|
|
3079
|
+
* time; ignore types you do not recognize.
|
|
3066
3080
|
*
|
|
3067
3081
|
* Requires `anthropic-beta: thinking-binding-controls-2026-08-01`. Present on
|
|
3068
3082
|
* every such response from a model that supports extended thinking, as `[]` when
|
|
3069
|
-
*
|
|
3070
|
-
* nothing is reported. Removed blocks contribute nothing to
|
|
3071
|
-
*
|
|
3072
|
-
*
|
|
3073
|
-
*
|
|
3074
|
-
* `message_start`.
|
|
3083
|
+
* there is no entry to report; without the beta, blocks are removed or left in
|
|
3084
|
+
* place all the same but nothing is reported. Removed blocks contribute nothing to
|
|
3085
|
+
* `usage.input_tokens`; blocks left in place count as sent. When streaming, the
|
|
3086
|
+
* array is final in `message_start`; the final `message_delta` event carries it
|
|
3087
|
+
* only when a server-side model fallback happened mid-stream, in which case it
|
|
3088
|
+
* holds the serving model's entries and replaces the one in `message_start`.
|
|
3075
3089
|
*/
|
|
3076
|
-
input_transformations?: Array<
|
|
3090
|
+
input_transformations?: Array<BetaInputTransformation> | null;
|
|
3077
3091
|
}
|
|
3078
3092
|
export declare namespace BetaRawMessageDeltaEvent {
|
|
3079
3093
|
interface Delta {
|
|
@@ -3243,11 +3257,6 @@ export interface BetaRequestMCPToolResultBlockParam {
|
|
|
3243
3257
|
* is offered to the model from this point in the conversation onward.
|
|
3244
3258
|
*/
|
|
3245
3259
|
export interface BetaRequestToolAdditionBlock {
|
|
3246
|
-
/**
|
|
3247
|
-
* Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
3248
|
-
* accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
3249
|
-
* tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
3250
|
-
*/
|
|
3251
3260
|
tool: BetaToolChangeToolReference | BetaToolChangeMCPToolReference | BetaToolChangeMCPToolsetReference;
|
|
3252
3261
|
type: 'tool_addition';
|
|
3253
3262
|
/**
|
|
@@ -3262,11 +3271,6 @@ export interface BetaRequestToolAdditionBlock {
|
|
|
3262
3271
|
* is no longer offered to the model from this point in the conversation onward.
|
|
3263
3272
|
*/
|
|
3264
3273
|
export interface BetaRequestToolRemovalBlock {
|
|
3265
|
-
/**
|
|
3266
|
-
* Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
3267
|
-
* accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
3268
|
-
* tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
3269
|
-
*/
|
|
3270
3274
|
tool: BetaToolChangeToolReference | BetaToolChangeMCPToolReference | BetaToolChangeMCPToolsetReference;
|
|
3271
3275
|
type: 'tool_removal';
|
|
3272
3276
|
/**
|
|
@@ -3313,9 +3317,6 @@ export interface BetaServerToolUseBlock {
|
|
|
3313
3317
|
};
|
|
3314
3318
|
name: 'advisor' | 'web_search' | 'web_fetch' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution' | 'tool_search_tool_regex' | 'tool_search_tool_bm25';
|
|
3315
3319
|
type: 'server_tool_use';
|
|
3316
|
-
/**
|
|
3317
|
-
* Tool invocation directly from the model.
|
|
3318
|
-
*/
|
|
3319
3320
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
3320
3321
|
}
|
|
3321
3322
|
export interface BetaServerToolUseBlockParam {
|
|
@@ -3327,9 +3328,6 @@ export interface BetaServerToolUseBlockParam {
|
|
|
3327
3328
|
* Create a cache control breakpoint at this content block.
|
|
3328
3329
|
*/
|
|
3329
3330
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
3330
|
-
/**
|
|
3331
|
-
* Tool invocation directly from the model.
|
|
3332
|
-
*/
|
|
3333
3331
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
3334
3332
|
}
|
|
3335
3333
|
export interface BetaSignatureDelta {
|
|
@@ -3359,6 +3357,24 @@ export interface BetaSkillParams {
|
|
|
3359
3357
|
version?: string;
|
|
3360
3358
|
}
|
|
3361
3359
|
export type BetaStopReason = 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use' | 'pause_turn' | 'compaction' | 'refusal' | 'model_context_window_exceeded';
|
|
3360
|
+
/**
|
|
3361
|
+
* Compact the whole conversation and return a signed `compaction` block, alone,
|
|
3362
|
+
* that a later request sends back first in `messages`, in place of the messages it
|
|
3363
|
+
* summarizes. There is no trigger and no pause flag: sending the parameter
|
|
3364
|
+
* compacts, and nothing is sampled after the block.
|
|
3365
|
+
*
|
|
3366
|
+
* The summarization prompt is the server's own unless `instructions` are given,
|
|
3367
|
+
* which then replace it for this request; a value that is empty or only whitespace
|
|
3368
|
+
* counts as absent.
|
|
3369
|
+
*/
|
|
3370
|
+
export interface BetaSummarizeCompaction {
|
|
3371
|
+
type: 'summarize';
|
|
3372
|
+
/**
|
|
3373
|
+
* Replaces the server's default summarization prompt for this request. An empty or
|
|
3374
|
+
* whitespace-only value counts as absent.
|
|
3375
|
+
*/
|
|
3376
|
+
instructions?: string | null;
|
|
3377
|
+
}
|
|
3362
3378
|
/**
|
|
3363
3379
|
* Per-message output configuration on a role:"system" input message.
|
|
3364
3380
|
*
|
|
@@ -3620,6 +3636,30 @@ export interface BetaThinkingDroppedInputTransformation {
|
|
|
3620
3636
|
*/
|
|
3621
3637
|
type: 'thinking_dropped';
|
|
3622
3638
|
}
|
|
3639
|
+
export interface BetaThinkingMismatchAllowedInputTransformation {
|
|
3640
|
+
/**
|
|
3641
|
+
* Where the block is in your request, as `messages.{i}.content.{j}`: `i` indexes
|
|
3642
|
+
* the `messages` array you sent and `j` that message's `content` array — the same
|
|
3643
|
+
* form error messages use.
|
|
3644
|
+
*/
|
|
3645
|
+
path: string;
|
|
3646
|
+
/**
|
|
3647
|
+
* Which binding check the block failed; the block was shown to the model all the
|
|
3648
|
+
* same. Always `prefix_binding_mismatch` today — the conversation before the block
|
|
3649
|
+
* differs from the conversation it was created in, or the block carries no record
|
|
3650
|
+
* of one on a model that requires it. Were the check enforced for this request,
|
|
3651
|
+
* the block would have been removed or the request rejected
|
|
3652
|
+
* (`thinking.block_binding.prefix_mismatch_behavior`). A removal also takes the
|
|
3653
|
+
* rest of that turn's consecutive thinking blocks, whereas here each block is
|
|
3654
|
+
* checked on its own, so `thinking_mismatch_allowed` entries are a lower bound on
|
|
3655
|
+
* what enforcement would remove.
|
|
3656
|
+
*/
|
|
3657
|
+
reason: 'model_binding_mismatch' | 'prefix_binding_mismatch' | 'organization_binding_mismatch' | 'end_user_binding_mismatch';
|
|
3658
|
+
/**
|
|
3659
|
+
* Always `thinking_mismatch_allowed` for this entry type.
|
|
3660
|
+
*/
|
|
3661
|
+
type: 'thinking_mismatch_allowed';
|
|
3662
|
+
}
|
|
3623
3663
|
/**
|
|
3624
3664
|
* What happens when a thinking block in `messages` fails the conversation check:
|
|
3625
3665
|
* it was created in a different conversation, or the messages before it have
|
|
@@ -4180,19 +4220,12 @@ export interface BetaToolTextEditor20250728 {
|
|
|
4180
4220
|
*/
|
|
4181
4221
|
strict?: boolean;
|
|
4182
4222
|
}
|
|
4183
|
-
/**
|
|
4184
|
-
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
4185
|
-
* checkpoint).
|
|
4186
|
-
*/
|
|
4187
4223
|
export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaBrowserToolset20260801 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaComputerToolset20260801 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
|
|
4188
4224
|
export interface BetaToolUseBlock {
|
|
4189
4225
|
id: string;
|
|
4190
4226
|
input: unknown;
|
|
4191
4227
|
name: string;
|
|
4192
4228
|
type: 'tool_use';
|
|
4193
|
-
/**
|
|
4194
|
-
* Tool invocation directly from the model.
|
|
4195
|
-
*/
|
|
4196
4229
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4197
4230
|
/**
|
|
4198
4231
|
* For a toolset member tool_use, the toolset family.
|
|
@@ -4208,9 +4241,6 @@ export interface BetaToolUseBlockParam {
|
|
|
4208
4241
|
* Create a cache control breakpoint at this content block.
|
|
4209
4242
|
*/
|
|
4210
4243
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
4211
|
-
/**
|
|
4212
|
-
* Tool invocation directly from the model.
|
|
4213
|
-
*/
|
|
4214
4244
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4215
4245
|
/**
|
|
4216
4246
|
* For a toolset member tool_use, the toolset family this member belongs to.
|
|
@@ -4400,6 +4430,15 @@ export interface BetaWebFetchTool20250910 {
|
|
|
4400
4430
|
* When true, guarantees schema validation on tool names and inputs
|
|
4401
4431
|
*/
|
|
4402
4432
|
strict?: boolean;
|
|
4433
|
+
/**
|
|
4434
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4435
|
+
*
|
|
4436
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4437
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4438
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4439
|
+
* request's `tools[]`.
|
|
4440
|
+
*/
|
|
4441
|
+
url_sources?: BetaWebFetchURLSources | null;
|
|
4403
4442
|
}
|
|
4404
4443
|
export interface BetaWebFetchTool20260209 {
|
|
4405
4444
|
/**
|
|
@@ -4445,6 +4484,15 @@ export interface BetaWebFetchTool20260209 {
|
|
|
4445
4484
|
* When true, guarantees schema validation on tool names and inputs
|
|
4446
4485
|
*/
|
|
4447
4486
|
strict?: boolean;
|
|
4487
|
+
/**
|
|
4488
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4489
|
+
*
|
|
4490
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4491
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4492
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4493
|
+
* request's `tools[]`.
|
|
4494
|
+
*/
|
|
4495
|
+
url_sources?: BetaWebFetchURLSources | null;
|
|
4448
4496
|
}
|
|
4449
4497
|
/**
|
|
4450
4498
|
* Web fetch tool with use_cache parameter for bypassing cached content.
|
|
@@ -4493,6 +4541,15 @@ export interface BetaWebFetchTool20260309 {
|
|
|
4493
4541
|
* When true, guarantees schema validation on tool names and inputs
|
|
4494
4542
|
*/
|
|
4495
4543
|
strict?: boolean;
|
|
4544
|
+
/**
|
|
4545
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4546
|
+
*
|
|
4547
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4548
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4549
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4550
|
+
* request's `tools[]`.
|
|
4551
|
+
*/
|
|
4552
|
+
url_sources?: BetaWebFetchURLSources | null;
|
|
4496
4553
|
/**
|
|
4497
4554
|
* Whether to use cached content. Set to false to bypass the cache and fetch fresh
|
|
4498
4555
|
* content. Only set to false when the user explicitly requests fresh content or
|
|
@@ -4553,6 +4610,15 @@ export interface BetaWebFetchTool20260318 {
|
|
|
4553
4610
|
* When true, guarantees schema validation on tool names and inputs
|
|
4554
4611
|
*/
|
|
4555
4612
|
strict?: boolean;
|
|
4613
|
+
/**
|
|
4614
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4615
|
+
*
|
|
4616
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4617
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4618
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4619
|
+
* request's `tools[]`.
|
|
4620
|
+
*/
|
|
4621
|
+
url_sources?: BetaWebFetchURLSources | null;
|
|
4556
4622
|
/**
|
|
4557
4623
|
* Whether to use cached content. Set to false to bypass the cache and fetch fresh
|
|
4558
4624
|
* content. Only set to false when the user explicitly requests fresh content or
|
|
@@ -4564,9 +4630,6 @@ export interface BetaWebFetchToolResultBlock {
|
|
|
4564
4630
|
content: BetaWebFetchToolResultErrorBlock | BetaWebFetchBlock;
|
|
4565
4631
|
tool_use_id: string;
|
|
4566
4632
|
type: 'web_fetch_tool_result';
|
|
4567
|
-
/**
|
|
4568
|
-
* Tool invocation directly from the model.
|
|
4569
|
-
*/
|
|
4570
4633
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4571
4634
|
}
|
|
4572
4635
|
export interface BetaWebFetchToolResultBlockParam {
|
|
@@ -4577,9 +4640,6 @@ export interface BetaWebFetchToolResultBlockParam {
|
|
|
4577
4640
|
* Create a cache control breakpoint at this content block.
|
|
4578
4641
|
*/
|
|
4579
4642
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
4580
|
-
/**
|
|
4581
|
-
* Tool invocation directly from the model.
|
|
4582
|
-
*/
|
|
4583
4643
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4584
4644
|
}
|
|
4585
4645
|
export interface BetaWebFetchToolResultErrorBlock {
|
|
@@ -4591,6 +4651,68 @@ export interface BetaWebFetchToolResultErrorBlockParam {
|
|
|
4591
4651
|
type: 'web_fetch_tool_result_error';
|
|
4592
4652
|
}
|
|
4593
4653
|
export type BetaWebFetchToolResultErrorCode = 'invalid_tool_input' | 'url_too_long' | 'url_not_allowed' | 'url_not_in_prior_context' | 'url_not_accessible' | 'unsupported_content_type' | 'too_many_requests' | 'max_uses_exceeded' | 'unavailable' | 'content_too_large';
|
|
4654
|
+
/**
|
|
4655
|
+
* The `url_sources` variant under which a source contributes in full: every result
|
|
4656
|
+
* of the tool filter's source, or all user input.
|
|
4657
|
+
*/
|
|
4658
|
+
export interface BetaWebFetchURLSourceAll {
|
|
4659
|
+
type: 'all';
|
|
4660
|
+
}
|
|
4661
|
+
/**
|
|
4662
|
+
* The tool filter variant under which every result but the named tools'
|
|
4663
|
+
* contributes.
|
|
4664
|
+
*/
|
|
4665
|
+
export interface BetaWebFetchURLSourceExcept {
|
|
4666
|
+
tools: Array<BetaWebFetchURLSourceToolReference>;
|
|
4667
|
+
type: 'except';
|
|
4668
|
+
}
|
|
4669
|
+
/**
|
|
4670
|
+
* The `url_sources` variant under which a source contributes nothing: no result of
|
|
4671
|
+
* the tool filter's source, or no user input.
|
|
4672
|
+
*/
|
|
4673
|
+
export interface BetaWebFetchURLSourceNone {
|
|
4674
|
+
type: 'none';
|
|
4675
|
+
}
|
|
4676
|
+
/**
|
|
4677
|
+
* The tool filter variant under which only the named tools' results contribute.
|
|
4678
|
+
*/
|
|
4679
|
+
export interface BetaWebFetchURLSourceOnly {
|
|
4680
|
+
tools: Array<BetaWebFetchURLSourceToolReference>;
|
|
4681
|
+
type: 'only';
|
|
4682
|
+
}
|
|
4683
|
+
/**
|
|
4684
|
+
* One entry of a tool filter's `tools`: it must name a tool declared in this
|
|
4685
|
+
* request's `tools[]`.
|
|
4686
|
+
*/
|
|
4687
|
+
export interface BetaWebFetchURLSourceToolReference {
|
|
4688
|
+
name: string;
|
|
4689
|
+
type: 'tool_reference';
|
|
4690
|
+
}
|
|
4691
|
+
/**
|
|
4692
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4693
|
+
*
|
|
4694
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4695
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4696
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4697
|
+
* request's `tools[]`.
|
|
4698
|
+
*/
|
|
4699
|
+
export interface BetaWebFetchURLSources {
|
|
4700
|
+
/**
|
|
4701
|
+
* Which client tools' results contribute fetchable URLs: "all", "none", or an only
|
|
4702
|
+
* or except list of client tool names from tools[].
|
|
4703
|
+
*/
|
|
4704
|
+
client_tool_results?: BetaWebFetchURLSourceAll | BetaWebFetchURLSourceNone | BetaWebFetchURLSourceOnly | BetaWebFetchURLSourceExcept;
|
|
4705
|
+
/**
|
|
4706
|
+
* Which server tools' results contribute fetchable URLs: "all", "none", or an only
|
|
4707
|
+
* or except list of server tool names from tools[]; only web_search and web_fetch
|
|
4708
|
+
* results ever contribute.
|
|
4709
|
+
*/
|
|
4710
|
+
server_tool_results?: BetaWebFetchURLSourceAll | BetaWebFetchURLSourceNone | BetaWebFetchURLSourceOnly | BetaWebFetchURLSourceExcept;
|
|
4711
|
+
/**
|
|
4712
|
+
* Whether URLs in user messages are fetchable: "all" or "none".
|
|
4713
|
+
*/
|
|
4714
|
+
user_input?: BetaWebFetchURLSourceAll | BetaWebFetchURLSourceNone;
|
|
4715
|
+
}
|
|
4594
4716
|
export interface BetaWebSearchResultBlock {
|
|
4595
4717
|
encrypted_content: string;
|
|
4596
4718
|
page_age: string | null;
|
|
@@ -4748,9 +4870,6 @@ export interface BetaWebSearchToolResultBlock {
|
|
|
4748
4870
|
content: BetaWebSearchToolResultBlockContent;
|
|
4749
4871
|
tool_use_id: string;
|
|
4750
4872
|
type: 'web_search_tool_result';
|
|
4751
|
-
/**
|
|
4752
|
-
* Tool invocation directly from the model.
|
|
4753
|
-
*/
|
|
4754
4873
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4755
4874
|
}
|
|
4756
4875
|
export type BetaWebSearchToolResultBlockContent = BetaWebSearchToolResultError | Array<BetaWebSearchResultBlock>;
|
|
@@ -4762,9 +4881,6 @@ export interface BetaWebSearchToolResultBlockParam {
|
|
|
4762
4881
|
* Create a cache control breakpoint at this content block.
|
|
4763
4882
|
*/
|
|
4764
4883
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
4765
|
-
/**
|
|
4766
|
-
* Tool invocation directly from the model.
|
|
4767
|
-
*/
|
|
4768
4884
|
caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
|
|
4769
4885
|
}
|
|
4770
4886
|
export type BetaWebSearchToolResultBlockParamContent = Array<BetaWebSearchResultBlockParam> | BetaWebSearchToolRequestError;
|
|
@@ -4875,6 +4991,17 @@ export interface MessageCreateParamsBase {
|
|
|
4875
4991
|
* to the last cacheable block in the request.
|
|
4876
4992
|
*/
|
|
4877
4993
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
4994
|
+
/**
|
|
4995
|
+
* Body param: Compact the whole conversation and return a signed `compaction`
|
|
4996
|
+
* block, alone, that a later request sends back first in `messages`, in place of
|
|
4997
|
+
* the messages it summarizes. There is no trigger and no pause flag: sending the
|
|
4998
|
+
* parameter compacts, and nothing is sampled after the block.
|
|
4999
|
+
*
|
|
5000
|
+
* The summarization prompt is the server's own unless `instructions` are given,
|
|
5001
|
+
* which then replace it for this request; a value that is empty or only whitespace
|
|
5002
|
+
* counts as absent.
|
|
5003
|
+
*/
|
|
5004
|
+
compaction?: BetaCompactionConfig | null;
|
|
4878
5005
|
/**
|
|
4879
5006
|
* Body param: Container identifier for reuse across requests.
|
|
4880
5007
|
*/
|
|
@@ -4991,7 +5118,7 @@ export interface MessageCreateParamsBase {
|
|
|
4991
5118
|
system?: string | Array<BetaTextBlockParam>;
|
|
4992
5119
|
/**
|
|
4993
5120
|
* @deprecated Deprecated. Models released after Claude Opus 4.6 do not support
|
|
4994
|
-
* setting temperature. A value of 1.0
|
|
5121
|
+
* setting temperature. A value of 1.0 will be accepted for backwards
|
|
4995
5122
|
* compatibility, all other values will be rejected with a 400 error.
|
|
4996
5123
|
*/
|
|
4997
5124
|
temperature?: number;
|
|
@@ -5229,6 +5356,17 @@ export interface MessageCountTokensParams {
|
|
|
5229
5356
|
* to the last cacheable block in the request.
|
|
5230
5357
|
*/
|
|
5231
5358
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
5359
|
+
/**
|
|
5360
|
+
* Body param: Compact the whole conversation and return a signed `compaction`
|
|
5361
|
+
* block, alone, that a later request sends back first in `messages`, in place of
|
|
5362
|
+
* the messages it summarizes. There is no trigger and no pause flag: sending the
|
|
5363
|
+
* parameter compacts, and nothing is sampled after the block.
|
|
5364
|
+
*
|
|
5365
|
+
* The summarization prompt is the server's own unless `instructions` are given,
|
|
5366
|
+
* which then replace it for this request; a value that is empty or only whitespace
|
|
5367
|
+
* counts as absent.
|
|
5368
|
+
*/
|
|
5369
|
+
compaction?: BetaCompactionConfig | null;
|
|
5232
5370
|
/**
|
|
5233
5371
|
* Body param: Context management configuration.
|
|
5234
5372
|
*
|
|
@@ -5387,7 +5525,7 @@ export interface MessageCountTokensParams {
|
|
|
5387
5525
|
export { BetaToolRunner, type BetaToolRunnerParams } from "../../../lib/tools/BetaToolRunner.mjs";
|
|
5388
5526
|
export { ToolError } from "../../../lib/tools/ToolError.mjs";
|
|
5389
5527
|
export declare namespace Messages {
|
|
5390
|
-
export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaBrowserCloseTabConfig as BetaBrowserCloseTabConfig, type BetaBrowserDoubleClickConfig as BetaBrowserDoubleClickConfig, type BetaBrowserFileUploadConfig as BetaBrowserFileUploadConfig, type BetaBrowserFindConfig as BetaBrowserFindConfig, type BetaBrowserFormInputConfig as BetaBrowserFormInputConfig, type BetaBrowserGetPageTextConfig as BetaBrowserGetPageTextConfig, type BetaBrowserHoldKeyConfig as BetaBrowserHoldKeyConfig, type BetaBrowserHoverConfig as BetaBrowserHoverConfig, type BetaBrowserJavascriptExecConfig as BetaBrowserJavascriptExecConfig, type BetaBrowserKeyConfig as BetaBrowserKeyConfig, type BetaBrowserLeftClickConfig as BetaBrowserLeftClickConfig, type BetaBrowserLeftClickDragConfig as BetaBrowserLeftClickDragConfig, type BetaBrowserLeftMouseDownConfig as BetaBrowserLeftMouseDownConfig, type BetaBrowserLeftMouseUpConfig as BetaBrowserLeftMouseUpConfig, type BetaBrowserListTabsConfig as BetaBrowserListTabsConfig, type BetaBrowserMiddleClickConfig as BetaBrowserMiddleClickConfig, type BetaBrowserMouseMoveConfig as BetaBrowserMouseMoveConfig, type BetaBrowserNavigateConfig as BetaBrowserNavigateConfig, type BetaBrowserNewTabConfig as BetaBrowserNewTabConfig, type BetaBrowserReadConsoleConfig as BetaBrowserReadConsoleConfig, type BetaBrowserReadNetworkConfig as BetaBrowserReadNetworkConfig, type BetaBrowserReadPageConfig as BetaBrowserReadPageConfig, type BetaBrowserRightClickConfig as BetaBrowserRightClickConfig, type BetaBrowserScreenshotConfig as BetaBrowserScreenshotConfig, type BetaBrowserScrollConfig as BetaBrowserScrollConfig, type BetaBrowserScrollToConfig as BetaBrowserScrollToConfig, type BetaBrowserStateBlockParam as BetaBrowserStateBlockParam, type BetaBrowserStateChange as BetaBrowserStateChange, type BetaBrowserStateChangeDownloadCompleted as BetaBrowserStateChangeDownloadCompleted, type BetaBrowserStateChangeDownloadFailed as BetaBrowserStateChangeDownloadFailed, type BetaBrowserStateChangeDownloadStarted as BetaBrowserStateChangeDownloadStarted, type BetaBrowserStateChangeTabOpened as BetaBrowserStateChangeTabOpened, type BetaBrowserStateTabEntry as BetaBrowserStateTabEntry, type BetaBrowserSwitchTabConfig as BetaBrowserSwitchTabConfig, type BetaBrowserToolset20260801 as BetaBrowserToolset20260801, type BetaBrowserToolsetConfigs as BetaBrowserToolsetConfigs, type BetaBrowserTripleClickConfig as BetaBrowserTripleClickConfig, type BetaBrowserTypeConfig as BetaBrowserTypeConfig, type BetaBrowserWaitConfig as BetaBrowserWaitConfig, type BetaBrowserZoomConfig as BetaBrowserZoomConfig, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaComputerCursorPositionConfig as BetaComputerCursorPositionConfig, type BetaComputerDoubleClickConfig as BetaComputerDoubleClickConfig, type BetaComputerHoldKeyConfig as BetaComputerHoldKeyConfig, type BetaComputerKeyConfig as BetaComputerKeyConfig, type BetaComputerLeftClickConfig as BetaComputerLeftClickConfig, type BetaComputerLeftClickDragConfig as BetaComputerLeftClickDragConfig, type BetaComputerLeftMouseDownConfig as BetaComputerLeftMouseDownConfig, type BetaComputerLeftMouseUpConfig as BetaComputerLeftMouseUpConfig, type BetaComputerMiddleClickConfig as BetaComputerMiddleClickConfig, type BetaComputerMouseMoveConfig as BetaComputerMouseMoveConfig, type BetaComputerRightClickConfig as BetaComputerRightClickConfig, type BetaComputerScreenshotConfig as BetaComputerScreenshotConfig, type BetaComputerScrollConfig as BetaComputerScrollConfig, type BetaComputerToolset20260801 as BetaComputerToolset20260801, type BetaComputerToolsetConfigs as BetaComputerToolsetConfigs, type BetaComputerTripleClickConfig as BetaComputerTripleClickConfig, type BetaComputerTypeConfig as BetaComputerTypeConfig, type BetaComputerWaitConfig as BetaComputerWaitConfig, type BetaComputerZoomConfig as BetaComputerZoomConfig, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerSkill as BetaContainerSkill, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackCreditNotApplied as BetaFallbackCreditNotApplied, type BetaFallbackCreditRedeemed as BetaFallbackCreditRedeemed, type BetaFallbackCreditTokenParam as BetaFallbackCreditTokenParam, type BetaFallbackCreditUsage as BetaFallbackCreditUsage, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFallbacksParam as BetaFallbacksParam, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaImageTransformationsParam as BetaImageTransformationsParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaOutputConfig as BetaOutputConfig, type BetaOutputTokensDetails as BetaOutputTokensDetails, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent as BetaRawMessageStartEvent, type BetaRawMessageStopEvent as BetaRawMessageStopEvent, type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaRequestToolAdditionBlock as BetaRequestToolAdditionBlock, type BetaRequestToolRemovalBlock as BetaRequestToolRemovalBlock, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaSystemMessageOutputConfig as BetaSystemMessageOutputConfig, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockBinding as BetaThinkingBlockBinding, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingDroppedInputTransformation as BetaThinkingDroppedInputTransformation, type BetaThinkingPrefixMismatchBehavior as BetaThinkingPrefixMismatchBehavior, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChangeMCPToolReference as BetaToolChangeMCPToolReference, type BetaToolChangeMCPToolsetReference as BetaToolChangeMCPToolsetReference, type BetaToolChangeToolReference as BetaToolChangeToolReference, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchTool20260318 as BetaWebFetchTool20260318, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchTool20260318 as BetaWebSearchTool20260318, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
|
|
5528
|
+
export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaBrowserCloseTabConfig as BetaBrowserCloseTabConfig, type BetaBrowserDoubleClickConfig as BetaBrowserDoubleClickConfig, type BetaBrowserFileUploadConfig as BetaBrowserFileUploadConfig, type BetaBrowserFindConfig as BetaBrowserFindConfig, type BetaBrowserFormInputConfig as BetaBrowserFormInputConfig, type BetaBrowserGetPageTextConfig as BetaBrowserGetPageTextConfig, type BetaBrowserHoldKeyConfig as BetaBrowserHoldKeyConfig, type BetaBrowserHoverConfig as BetaBrowserHoverConfig, type BetaBrowserJavascriptExecConfig as BetaBrowserJavascriptExecConfig, type BetaBrowserKeyConfig as BetaBrowserKeyConfig, type BetaBrowserLeftClickConfig as BetaBrowserLeftClickConfig, type BetaBrowserLeftClickDragConfig as BetaBrowserLeftClickDragConfig, type BetaBrowserLeftMouseDownConfig as BetaBrowserLeftMouseDownConfig, type BetaBrowserLeftMouseUpConfig as BetaBrowserLeftMouseUpConfig, type BetaBrowserListTabsConfig as BetaBrowserListTabsConfig, type BetaBrowserMiddleClickConfig as BetaBrowserMiddleClickConfig, type BetaBrowserMouseMoveConfig as BetaBrowserMouseMoveConfig, type BetaBrowserNavigateConfig as BetaBrowserNavigateConfig, type BetaBrowserNewTabConfig as BetaBrowserNewTabConfig, type BetaBrowserReadConsoleConfig as BetaBrowserReadConsoleConfig, type BetaBrowserReadNetworkConfig as BetaBrowserReadNetworkConfig, type BetaBrowserReadPageConfig as BetaBrowserReadPageConfig, type BetaBrowserRightClickConfig as BetaBrowserRightClickConfig, type BetaBrowserScreenshotConfig as BetaBrowserScreenshotConfig, type BetaBrowserScrollConfig as BetaBrowserScrollConfig, type BetaBrowserScrollToConfig as BetaBrowserScrollToConfig, type BetaBrowserStateBlockParam as BetaBrowserStateBlockParam, type BetaBrowserStateChange as BetaBrowserStateChange, type BetaBrowserStateChangeDownloadCompleted as BetaBrowserStateChangeDownloadCompleted, type BetaBrowserStateChangeDownloadFailed as BetaBrowserStateChangeDownloadFailed, type BetaBrowserStateChangeDownloadStarted as BetaBrowserStateChangeDownloadStarted, type BetaBrowserStateChangeTabOpened as BetaBrowserStateChangeTabOpened, type BetaBrowserStateTabEntry as BetaBrowserStateTabEntry, type BetaBrowserSwitchTabConfig as BetaBrowserSwitchTabConfig, type BetaBrowserToolset20260801 as BetaBrowserToolset20260801, type BetaBrowserToolsetConfigs as BetaBrowserToolsetConfigs, type BetaBrowserTripleClickConfig as BetaBrowserTripleClickConfig, type BetaBrowserTypeConfig as BetaBrowserTypeConfig, type BetaBrowserWaitConfig as BetaBrowserWaitConfig, type BetaBrowserZoomConfig as BetaBrowserZoomConfig, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionConfig as BetaCompactionConfig, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaComputerCursorPositionConfig as BetaComputerCursorPositionConfig, type BetaComputerDoubleClickConfig as BetaComputerDoubleClickConfig, type BetaComputerHoldKeyConfig as BetaComputerHoldKeyConfig, type BetaComputerKeyConfig as BetaComputerKeyConfig, type BetaComputerLeftClickConfig as BetaComputerLeftClickConfig, type BetaComputerLeftClickDragConfig as BetaComputerLeftClickDragConfig, type BetaComputerLeftMouseDownConfig as BetaComputerLeftMouseDownConfig, type BetaComputerLeftMouseUpConfig as BetaComputerLeftMouseUpConfig, type BetaComputerMiddleClickConfig as BetaComputerMiddleClickConfig, type BetaComputerMouseMoveConfig as BetaComputerMouseMoveConfig, type BetaComputerRightClickConfig as BetaComputerRightClickConfig, type BetaComputerScreenshotConfig as BetaComputerScreenshotConfig, type BetaComputerScrollConfig as BetaComputerScrollConfig, type BetaComputerToolset20260801 as BetaComputerToolset20260801, type BetaComputerToolsetConfigs as BetaComputerToolsetConfigs, type BetaComputerTripleClickConfig as BetaComputerTripleClickConfig, type BetaComputerTypeConfig as BetaComputerTypeConfig, type BetaComputerWaitConfig as BetaComputerWaitConfig, type BetaComputerZoomConfig as BetaComputerZoomConfig, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerSkill as BetaContainerSkill, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackCreditNotApplied as BetaFallbackCreditNotApplied, type BetaFallbackCreditRedeemed as BetaFallbackCreditRedeemed, type BetaFallbackCreditTokenParam as BetaFallbackCreditTokenParam, type BetaFallbackCreditUsage as BetaFallbackCreditUsage, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFallbacksParam as BetaFallbacksParam, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaImageTransformationsParam as BetaImageTransformationsParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaInputTransformation as BetaInputTransformation, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaOutputConfig as BetaOutputConfig, type BetaOutputTokensDetails as BetaOutputTokensDetails, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent as BetaRawMessageStartEvent, type BetaRawMessageStopEvent as BetaRawMessageStopEvent, type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaRequestToolAdditionBlock as BetaRequestToolAdditionBlock, type BetaRequestToolRemovalBlock as BetaRequestToolRemovalBlock, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaSummarizeCompaction as BetaSummarizeCompaction, type BetaSystemMessageOutputConfig as BetaSystemMessageOutputConfig, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockBinding as BetaThinkingBlockBinding, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingDroppedInputTransformation as BetaThinkingDroppedInputTransformation, type BetaThinkingMismatchAllowedInputTransformation as BetaThinkingMismatchAllowedInputTransformation, type BetaThinkingPrefixMismatchBehavior as BetaThinkingPrefixMismatchBehavior, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChangeMCPToolReference as BetaToolChangeMCPToolReference, type BetaToolChangeMCPToolsetReference as BetaToolChangeMCPToolsetReference, type BetaToolChangeToolReference as BetaToolChangeToolReference, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchTool20260318 as BetaWebFetchTool20260318, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebFetchURLSourceAll as BetaWebFetchURLSourceAll, type BetaWebFetchURLSourceExcept as BetaWebFetchURLSourceExcept, type BetaWebFetchURLSourceNone as BetaWebFetchURLSourceNone, type BetaWebFetchURLSourceOnly as BetaWebFetchURLSourceOnly, type BetaWebFetchURLSourceToolReference as BetaWebFetchURLSourceToolReference, type BetaWebFetchURLSources as BetaWebFetchURLSources, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchTool20260318 as BetaWebSearchTool20260318, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
|
|
5391
5529
|
export { type BetaToolRunnerParams, BetaToolRunner };
|
|
5392
5530
|
export { ToolError };
|
|
5393
5531
|
export { Batches as Batches, type BetaDeletedMessageBatch as BetaDeletedMessageBatch, type BetaMessageBatch as BetaMessageBatch, type BetaMessageBatchCanceledResult as BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult as BetaMessageBatchErroredResult, type BetaMessageBatchExpiredResult as BetaMessageBatchExpiredResult, type BetaMessageBatchIndividualResponse as BetaMessageBatchIndividualResponse, type BetaMessageBatchRequestCounts as BetaMessageBatchRequestCounts, type BetaMessageBatchResult as BetaMessageBatchResult, type BetaMessageBatchSucceededResult as BetaMessageBatchSucceededResult, type BetaMessageBatchesPage as BetaMessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, };
|