@anthropic-ai/sdk 0.105.0 → 0.107.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 +44 -0
- package/README.md +16 -1
- 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.map +1 -1
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +2 -1
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +2 -1
- package/core/streaming.mjs.map +1 -1
- package/helpers/beta/mcp.d.mts +1 -1
- package/helpers/beta/mcp.d.mts.map +1 -1
- package/helpers/beta/mcp.d.ts +1 -1
- package/helpers/beta/mcp.d.ts.map +1 -1
- package/helpers/beta/mcp.js +1 -1
- package/helpers/beta/mcp.js.map +1 -1
- package/helpers/beta/mcp.mjs +1 -1
- package/helpers/beta/mcp.mjs.map +1 -1
- package/internal/headers.d.mts +7 -0
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +7 -0
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +45 -4
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +43 -3
- package/internal/headers.mjs.map +1 -1
- package/internal/stainless-helper-header.d.mts +60 -0
- package/internal/stainless-helper-header.d.mts.map +1 -0
- package/internal/stainless-helper-header.d.ts +60 -0
- package/internal/stainless-helper-header.d.ts.map +1 -0
- package/{lib → internal}/stainless-helper-header.js +27 -6
- package/internal/stainless-helper-header.js.map +1 -0
- package/{lib → internal}/stainless-helper-header.mjs +25 -5
- package/internal/stainless-helper-header.mjs.map +1 -0
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +2 -1
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +2 -1
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/MessageStream.d.mts.map +1 -1
- package/lib/MessageStream.d.ts.map +1 -1
- package/lib/MessageStream.js +2 -1
- package/lib/MessageStream.js.map +1 -1
- package/lib/MessageStream.mjs +2 -1
- package/lib/MessageStream.mjs.map +1 -1
- package/lib/helper-client.d.mts +2 -20
- package/lib/helper-client.d.mts.map +1 -1
- package/lib/helper-client.d.ts +2 -20
- package/lib/helper-client.d.ts.map +1 -1
- package/lib/helper-client.js +2 -1
- package/lib/helper-client.js.map +1 -1
- package/lib/helper-client.mjs +2 -1
- package/lib/helper-client.mjs.map +1 -1
- package/lib/middleware.d.mts.map +1 -1
- package/lib/middleware.d.ts.map +1 -1
- package/lib/middleware.js +7 -5
- package/lib/middleware.js.map +1 -1
- package/lib/middleware.mjs +7 -5
- package/lib/middleware.mjs.map +1 -1
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +11 -5
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +11 -5
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/lib/tools/SessionToolRunner.d.mts.map +1 -1
- package/lib/tools/SessionToolRunner.d.ts.map +1 -1
- package/lib/tools/SessionToolRunner.js +2 -3
- package/lib/tools/SessionToolRunner.js.map +1 -1
- package/lib/tools/SessionToolRunner.mjs +2 -3
- package/lib/tools/SessionToolRunner.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +7 -2
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +7 -2
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/deployments.d.mts +18 -6
- package/resources/beta/deployments.d.mts.map +1 -1
- package/resources/beta/deployments.d.ts +18 -6
- package/resources/beta/deployments.d.ts.map +1 -1
- package/resources/beta/deployments.js +18 -6
- package/resources/beta/deployments.js.map +1 -1
- package/resources/beta/deployments.mjs +18 -6
- package/resources/beta/deployments.mjs.map +1 -1
- package/resources/beta/files.js +1 -1
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +1 -1
- package/resources/beta/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/messages/batches.d.mts +37 -26
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +37 -26
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/batches.js +11 -8
- package/resources/beta/messages/batches.js.map +1 -1
- package/resources/beta/messages/batches.mjs +11 -8
- package/resources/beta/messages/batches.mjs.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +170 -39
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +170 -39
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +12 -6
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +12 -6
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/completions.d.mts +12 -7
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +12 -7
- package/resources/completions.d.ts.map +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/batches.d.mts +19 -10
- package/resources/messages/batches.d.mts.map +1 -1
- package/resources/messages/batches.d.ts +19 -10
- package/resources/messages/batches.d.ts.map +1 -1
- package/resources/messages/batches.js +16 -8
- package/resources/messages/batches.js.map +1 -1
- package/resources/messages/batches.mjs +16 -8
- package/resources/messages/batches.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 +209 -68
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +209 -68
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +20 -7
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +20 -7
- package/resources/messages/messages.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/core/streaming.ts +2 -1
- package/src/helpers/beta/mcp.ts +1 -1
- package/src/internal/headers.ts +47 -4
- package/src/internal/stainless-helper-header.ts +122 -0
- package/src/lib/BetaMessageStream.ts +2 -1
- package/src/lib/MessageStream.ts +2 -1
- package/src/lib/helper-client.ts +6 -9
- package/src/lib/middleware.ts +10 -4
- package/src/lib/tools/BetaToolRunner.ts +15 -6
- package/src/lib/tools/SessionToolRunner.ts +2 -4
- package/src/resources/beta/agents/agents.ts +7 -2
- package/src/resources/beta/beta.ts +4 -0
- package/src/resources/beta/deployments.ts +18 -6
- package/src/resources/beta/files.ts +1 -1
- package/src/resources/beta/index.ts +2 -0
- package/src/resources/beta/messages/batches.ts +43 -29
- package/src/resources/beta/messages/index.ts +2 -0
- package/src/resources/beta/messages/messages.ts +213 -41
- package/src/resources/completions.ts +12 -7
- package/src/resources/index.ts +2 -0
- package/src/resources/messages/batches.ts +29 -11
- package/src/resources/messages/index.ts +2 -0
- package/src/resources/messages/messages.ts +260 -71
- package/src/tools/agent-toolset/fs-util.ts +7 -1
- package/src/tools/agent-toolset/node.ts +19 -3
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.d.mts.map +1 -1
- package/tools/agent-toolset/fs-util.d.ts.map +1 -1
- package/tools/agent-toolset/fs-util.js +7 -1
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +7 -1
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/node.d.mts.map +1 -1
- package/tools/agent-toolset/node.d.ts.map +1 -1
- package/tools/agent-toolset/node.js +21 -4
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +21 -4
- package/tools/agent-toolset/node.mjs.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
- package/lib/stainless-helper-header.d.mts +0 -34
- package/lib/stainless-helper-header.d.mts.map +0 -1
- package/lib/stainless-helper-header.d.ts +0 -34
- package/lib/stainless-helper-header.d.ts.map +0 -1
- package/lib/stainless-helper-header.js.map +0 -1
- package/lib/stainless-helper-header.mjs.map +0 -1
- package/src/lib/stainless-helper-header.ts +0 -80
|
@@ -21,7 +21,7 @@ export declare class Messages extends APIResource {
|
|
|
21
21
|
* conversations.
|
|
22
22
|
*
|
|
23
23
|
* Learn more about the Messages API in our
|
|
24
|
-
* [user guide](https://
|
|
24
|
+
* [user guide](https://platform.claude.com/docs/en/get-started)
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```ts
|
|
@@ -63,7 +63,7 @@ export declare class Messages extends APIResource {
|
|
|
63
63
|
* including tools, images, and documents, without creating it.
|
|
64
64
|
*
|
|
65
65
|
* Learn more about token counting in our
|
|
66
|
-
* [user guide](https://
|
|
66
|
+
* [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* ```ts
|
|
@@ -295,7 +295,9 @@ export interface BetaCacheControlEphemeral {
|
|
|
295
295
|
* - `5m`: 5 minutes
|
|
296
296
|
* - `1h`: 1 hour
|
|
297
297
|
*
|
|
298
|
-
* Defaults to `5m`.
|
|
298
|
+
* Defaults to `5m`. See
|
|
299
|
+
* [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)
|
|
300
|
+
* for details.
|
|
299
301
|
*/
|
|
300
302
|
ttl?: '5m' | '1h';
|
|
301
303
|
}
|
|
@@ -1146,7 +1148,7 @@ export interface BetaFallbackRefusalTrigger {
|
|
|
1146
1148
|
/**
|
|
1147
1149
|
* The policy category that triggered a refusal.
|
|
1148
1150
|
*/
|
|
1149
|
-
category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | null;
|
|
1151
|
+
category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'military_weapons' | null;
|
|
1150
1152
|
type: 'refusal';
|
|
1151
1153
|
}
|
|
1152
1154
|
export interface BetaFileDocumentSource {
|
|
@@ -1747,7 +1749,7 @@ export interface BetaRefusalStopDetails {
|
|
|
1747
1749
|
/**
|
|
1748
1750
|
* The policy category that triggered a refusal.
|
|
1749
1751
|
*/
|
|
1750
|
-
category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | null;
|
|
1752
|
+
category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'military_weapons' | null;
|
|
1751
1753
|
/**
|
|
1752
1754
|
* Human-readable explanation of the refusal.
|
|
1753
1755
|
*
|
|
@@ -2059,7 +2061,7 @@ export interface BetaThinkingConfigEnabled {
|
|
|
2059
2061
|
* Must be ≥1024 and less than `max_tokens`.
|
|
2060
2062
|
*
|
|
2061
2063
|
* See
|
|
2062
|
-
* [extended thinking](https://
|
|
2064
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
2063
2065
|
* for details.
|
|
2064
2066
|
*/
|
|
2065
2067
|
budget_tokens: number;
|
|
@@ -2080,7 +2082,7 @@ export interface BetaThinkingConfigEnabled {
|
|
|
2080
2082
|
* tokens and counts towards your `max_tokens` limit.
|
|
2081
2083
|
*
|
|
2082
2084
|
* See
|
|
2083
|
-
* [extended thinking](https://
|
|
2085
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
2084
2086
|
* for details.
|
|
2085
2087
|
*/
|
|
2086
2088
|
export type BetaThinkingConfigParam = BetaThinkingConfigEnabled | BetaThinkingConfigDisabled | BetaThinkingConfigAdaptive;
|
|
@@ -2626,7 +2628,7 @@ export interface BetaToolTextEditor20250728 {
|
|
|
2626
2628
|
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
2627
2629
|
* checkpoint).
|
|
2628
2630
|
*/
|
|
2629
|
-
export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
|
|
2631
|
+
export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
|
|
2630
2632
|
export interface BetaToolUseBlock {
|
|
2631
2633
|
id: string;
|
|
2632
2634
|
input: unknown;
|
|
@@ -2914,6 +2916,66 @@ export interface BetaWebFetchTool20260309 {
|
|
|
2914
2916
|
*/
|
|
2915
2917
|
use_cache?: boolean;
|
|
2916
2918
|
}
|
|
2919
|
+
export interface BetaWebFetchTool20260318 {
|
|
2920
|
+
/**
|
|
2921
|
+
* Name of the tool.
|
|
2922
|
+
*
|
|
2923
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
2924
|
+
*/
|
|
2925
|
+
name: 'web_fetch';
|
|
2926
|
+
type: 'web_fetch_20260318';
|
|
2927
|
+
allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
|
|
2928
|
+
/**
|
|
2929
|
+
* List of domains to allow fetching from
|
|
2930
|
+
*/
|
|
2931
|
+
allowed_domains?: Array<string> | null;
|
|
2932
|
+
/**
|
|
2933
|
+
* List of domains to block fetching from
|
|
2934
|
+
*/
|
|
2935
|
+
blocked_domains?: Array<string> | null;
|
|
2936
|
+
/**
|
|
2937
|
+
* Create a cache control breakpoint at this content block.
|
|
2938
|
+
*/
|
|
2939
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
2940
|
+
/**
|
|
2941
|
+
* Citations configuration for fetched documents. Citations are disabled by
|
|
2942
|
+
* default.
|
|
2943
|
+
*/
|
|
2944
|
+
citations?: BetaCitationsConfigParam | null;
|
|
2945
|
+
/**
|
|
2946
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
2947
|
+
* returned via tool_reference from tool search.
|
|
2948
|
+
*/
|
|
2949
|
+
defer_loading?: boolean;
|
|
2950
|
+
/**
|
|
2951
|
+
* Maximum number of tokens used by including web page text content in the context.
|
|
2952
|
+
* The limit is approximate and does not apply to binary content such as PDFs.
|
|
2953
|
+
*/
|
|
2954
|
+
max_content_tokens?: number | null;
|
|
2955
|
+
/**
|
|
2956
|
+
* Maximum number of times the tool can be used in the API request.
|
|
2957
|
+
*/
|
|
2958
|
+
max_uses?: number | null;
|
|
2959
|
+
/**
|
|
2960
|
+
* How this tool's result blocks appear in the API response when the result was
|
|
2961
|
+
* consumed by a completed code_execution call in the same turn. 'full' returns the
|
|
2962
|
+
* complete content (default). 'excluded' drops the nested server_tool_use and
|
|
2963
|
+
* result block pair entirely. Results from direct calls, or from code_execution
|
|
2964
|
+
* calls that paused before completing, are always returned in full so they can be
|
|
2965
|
+
* sent back on the next turn.
|
|
2966
|
+
*/
|
|
2967
|
+
response_inclusion?: 'full' | 'excluded';
|
|
2968
|
+
/**
|
|
2969
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
2970
|
+
*/
|
|
2971
|
+
strict?: boolean;
|
|
2972
|
+
/**
|
|
2973
|
+
* Whether to use cached content. Set to false to bypass the cache and fetch fresh
|
|
2974
|
+
* content. Only set to false when the user explicitly requests fresh content or
|
|
2975
|
+
* when fetching rapidly-changing sources.
|
|
2976
|
+
*/
|
|
2977
|
+
use_cache?: boolean;
|
|
2978
|
+
}
|
|
2917
2979
|
export interface BetaWebFetchToolResultBlock {
|
|
2918
2980
|
content: BetaWebFetchToolResultErrorBlock | BetaWebFetchBlock;
|
|
2919
2981
|
tool_use_id: string;
|
|
@@ -3043,6 +3105,57 @@ export interface BetaWebSearchTool20260209 {
|
|
|
3043
3105
|
*/
|
|
3044
3106
|
user_location?: BetaUserLocation | null;
|
|
3045
3107
|
}
|
|
3108
|
+
export interface BetaWebSearchTool20260318 {
|
|
3109
|
+
/**
|
|
3110
|
+
* Name of the tool.
|
|
3111
|
+
*
|
|
3112
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
3113
|
+
*/
|
|
3114
|
+
name: 'web_search';
|
|
3115
|
+
type: 'web_search_20260318';
|
|
3116
|
+
allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
|
|
3117
|
+
/**
|
|
3118
|
+
* If provided, only these domains will be included in results. Cannot be used
|
|
3119
|
+
* alongside `blocked_domains`.
|
|
3120
|
+
*/
|
|
3121
|
+
allowed_domains?: Array<string> | null;
|
|
3122
|
+
/**
|
|
3123
|
+
* If provided, these domains will never appear in results. Cannot be used
|
|
3124
|
+
* alongside `allowed_domains`.
|
|
3125
|
+
*/
|
|
3126
|
+
blocked_domains?: Array<string> | null;
|
|
3127
|
+
/**
|
|
3128
|
+
* Create a cache control breakpoint at this content block.
|
|
3129
|
+
*/
|
|
3130
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
3131
|
+
/**
|
|
3132
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
3133
|
+
* returned via tool_reference from tool search.
|
|
3134
|
+
*/
|
|
3135
|
+
defer_loading?: boolean;
|
|
3136
|
+
/**
|
|
3137
|
+
* Maximum number of times the tool can be used in the API request.
|
|
3138
|
+
*/
|
|
3139
|
+
max_uses?: number | null;
|
|
3140
|
+
/**
|
|
3141
|
+
* How this tool's result blocks appear in the API response when the result was
|
|
3142
|
+
* consumed by a completed code_execution call in the same turn. 'full' returns the
|
|
3143
|
+
* complete content (default). 'excluded' drops the nested server_tool_use and
|
|
3144
|
+
* result block pair entirely. Results from direct calls, or from code_execution
|
|
3145
|
+
* calls that paused before completing, are always returned in full so they can be
|
|
3146
|
+
* sent back on the next turn.
|
|
3147
|
+
*/
|
|
3148
|
+
response_inclusion?: 'full' | 'excluded';
|
|
3149
|
+
/**
|
|
3150
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
3151
|
+
*/
|
|
3152
|
+
strict?: boolean;
|
|
3153
|
+
/**
|
|
3154
|
+
* Parameters for the user's location. Used to provide more relevant search
|
|
3155
|
+
* results.
|
|
3156
|
+
*/
|
|
3157
|
+
user_location?: BetaUserLocation | null;
|
|
3158
|
+
}
|
|
3046
3159
|
export interface BetaWebSearchToolRequestError {
|
|
3047
3160
|
error_code: BetaWebSearchToolResultErrorCode;
|
|
3048
3161
|
type: 'web_search_tool_result_error';
|
|
@@ -3089,11 +3202,12 @@ export interface MessageCreateParamsBase {
|
|
|
3089
3202
|
* only specifies the absolute maximum number of tokens to generate.
|
|
3090
3203
|
*
|
|
3091
3204
|
* Set to `0` to populate the
|
|
3092
|
-
* [prompt cache](https://
|
|
3205
|
+
* [prompt cache](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#pre-warming-the-cache)
|
|
3093
3206
|
* without generating a response.
|
|
3094
3207
|
*
|
|
3095
3208
|
* Different models have different maximum values for this parameter. See
|
|
3096
|
-
* [models](https://
|
|
3209
|
+
* [models](https://platform.claude.com/docs/en/about-claude/models/overview) for
|
|
3210
|
+
* details.
|
|
3097
3211
|
*/
|
|
3098
3212
|
max_tokens: number;
|
|
3099
3213
|
/**
|
|
@@ -3154,12 +3268,13 @@ export interface MessageCreateParamsBase {
|
|
|
3154
3268
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
3155
3269
|
* ```
|
|
3156
3270
|
*
|
|
3157
|
-
* See
|
|
3271
|
+
* See
|
|
3272
|
+
* [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
|
|
3158
3273
|
*
|
|
3159
3274
|
* Note that if you want to include a
|
|
3160
|
-
* [system prompt](https://
|
|
3161
|
-
* top-level `system` parameter — there is no `"system"` role for
|
|
3162
|
-
* the Messages API.
|
|
3275
|
+
* [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
3276
|
+
* you can use the top-level `system` parameter — there is no `"system"` role for
|
|
3277
|
+
* input messages in the Messages API.
|
|
3163
3278
|
*
|
|
3164
3279
|
* There is a limit of 100,000 messages in a single request.
|
|
3165
3280
|
*/
|
|
@@ -3251,7 +3366,8 @@ export interface MessageCreateParamsBase {
|
|
|
3251
3366
|
* standard capacity for this request.
|
|
3252
3367
|
*
|
|
3253
3368
|
* Anthropic offers different levels of service for your API requests. See
|
|
3254
|
-
* [service-tiers](https://
|
|
3369
|
+
* [service-tiers](https://platform.claude.com/docs/en/api/service-tiers) for
|
|
3370
|
+
* details.
|
|
3255
3371
|
*/
|
|
3256
3372
|
service_tier?: 'auto' | 'standard_only';
|
|
3257
3373
|
/**
|
|
@@ -3275,7 +3391,8 @@ export interface MessageCreateParamsBase {
|
|
|
3275
3391
|
* Body param: Whether to incrementally stream the response using server-sent
|
|
3276
3392
|
* events.
|
|
3277
3393
|
*
|
|
3278
|
-
* See [streaming](https://
|
|
3394
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
3395
|
+
* for details.
|
|
3279
3396
|
*/
|
|
3280
3397
|
stream?: boolean;
|
|
3281
3398
|
/**
|
|
@@ -3283,7 +3400,7 @@ export interface MessageCreateParamsBase {
|
|
|
3283
3400
|
*
|
|
3284
3401
|
* A system prompt is a way of providing context and instructions to Claude, such
|
|
3285
3402
|
* as specifying a particular goal or role. See our
|
|
3286
|
-
* [guide to system prompts](https://
|
|
3403
|
+
* [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
3287
3404
|
*/
|
|
3288
3405
|
system?: string | Array<BetaTextBlockParam>;
|
|
3289
3406
|
/**
|
|
@@ -3300,7 +3417,7 @@ export interface MessageCreateParamsBase {
|
|
|
3300
3417
|
* tokens and counts towards your `max_tokens` limit.
|
|
3301
3418
|
*
|
|
3302
3419
|
* See
|
|
3303
|
-
* [extended thinking](https://
|
|
3420
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
3304
3421
|
* for details.
|
|
3305
3422
|
*/
|
|
3306
3423
|
thinking?: BetaThinkingConfigParam;
|
|
@@ -3319,9 +3436,9 @@ export interface MessageCreateParamsBase {
|
|
|
3319
3436
|
*
|
|
3320
3437
|
* There are two types of tools: **client tools** and **server tools**. The
|
|
3321
3438
|
* behavior described below applies to client tools. For
|
|
3322
|
-
* [server tools](https://
|
|
3439
|
+
* [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
|
|
3323
3440
|
* see their individual documentation as each has its own behavior (e.g., the
|
|
3324
|
-
* [web search tool](https://
|
|
3441
|
+
* [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
|
|
3325
3442
|
*
|
|
3326
3443
|
* Each tool definition includes:
|
|
3327
3444
|
*
|
|
@@ -3384,7 +3501,9 @@ export interface MessageCreateParamsBase {
|
|
|
3384
3501
|
* functions, or more generally whenever you want the model to produce a particular
|
|
3385
3502
|
* JSON structure of output.
|
|
3386
3503
|
*
|
|
3387
|
-
* See our
|
|
3504
|
+
* See our
|
|
3505
|
+
* [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
3506
|
+
* for more details.
|
|
3388
3507
|
*/
|
|
3389
3508
|
tools?: Array<BetaToolUnion>;
|
|
3390
3509
|
/**
|
|
@@ -3398,15 +3517,16 @@ export interface MessageCreateParamsBase {
|
|
|
3398
3517
|
* other values will be rejected with a 400 error.
|
|
3399
3518
|
*/
|
|
3400
3519
|
top_p?: number;
|
|
3401
|
-
/**
|
|
3402
|
-
* Body param: The user profile ID to attribute this request to. Use when acting on
|
|
3403
|
-
* behalf of a party other than your organization.
|
|
3404
|
-
*/
|
|
3405
|
-
user_profile_id?: string | null;
|
|
3406
3520
|
/**
|
|
3407
3521
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
3408
3522
|
*/
|
|
3409
3523
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
3524
|
+
/**
|
|
3525
|
+
* Header param: The user profile ID to attribute this request to. Use when acting
|
|
3526
|
+
* on behalf of a party other than your organization. Requires the `user-profiles`
|
|
3527
|
+
* beta header.
|
|
3528
|
+
*/
|
|
3529
|
+
user_profile_id?: string;
|
|
3410
3530
|
}
|
|
3411
3531
|
export declare namespace MessageCreateParams {
|
|
3412
3532
|
type MessageCreateParamsNonStreaming = BetaMessagesAPI.MessageCreateParamsNonStreaming;
|
|
@@ -3417,7 +3537,8 @@ export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase
|
|
|
3417
3537
|
* Body param: Whether to incrementally stream the response using server-sent
|
|
3418
3538
|
* events.
|
|
3419
3539
|
*
|
|
3420
|
-
* See [streaming](https://
|
|
3540
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
3541
|
+
* for details.
|
|
3421
3542
|
*/
|
|
3422
3543
|
stream?: false;
|
|
3423
3544
|
}
|
|
@@ -3426,7 +3547,8 @@ export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
|
|
|
3426
3547
|
* Body param: Whether to incrementally stream the response using server-sent
|
|
3427
3548
|
* events.
|
|
3428
3549
|
*
|
|
3429
|
-
* See [streaming](https://
|
|
3550
|
+
* See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
3551
|
+
* for details.
|
|
3430
3552
|
*/
|
|
3431
3553
|
stream: true;
|
|
3432
3554
|
}
|
|
@@ -3489,12 +3611,13 @@ export interface MessageCountTokensParams {
|
|
|
3489
3611
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
3490
3612
|
* ```
|
|
3491
3613
|
*
|
|
3492
|
-
* See
|
|
3614
|
+
* See
|
|
3615
|
+
* [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
|
|
3493
3616
|
*
|
|
3494
3617
|
* Note that if you want to include a
|
|
3495
|
-
* [system prompt](https://
|
|
3496
|
-
* top-level `system` parameter — there is no `"system"` role for
|
|
3497
|
-
* the Messages API.
|
|
3618
|
+
* [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
3619
|
+
* you can use the top-level `system` parameter — there is no `"system"` role for
|
|
3620
|
+
* input messages in the Messages API.
|
|
3498
3621
|
*
|
|
3499
3622
|
* There is a limit of 100,000 messages in a single request.
|
|
3500
3623
|
*/
|
|
@@ -3545,7 +3668,7 @@ export interface MessageCountTokensParams {
|
|
|
3545
3668
|
*
|
|
3546
3669
|
* A system prompt is a way of providing context and instructions to Claude, such
|
|
3547
3670
|
* as specifying a particular goal or role. See our
|
|
3548
|
-
* [guide to system prompts](https://
|
|
3671
|
+
* [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
3549
3672
|
*/
|
|
3550
3673
|
system?: string | Array<BetaTextBlockParam>;
|
|
3551
3674
|
/**
|
|
@@ -3556,7 +3679,7 @@ export interface MessageCountTokensParams {
|
|
|
3556
3679
|
* tokens and counts towards your `max_tokens` limit.
|
|
3557
3680
|
*
|
|
3558
3681
|
* See
|
|
3559
|
-
* [extended thinking](https://
|
|
3682
|
+
* [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
3560
3683
|
* for details.
|
|
3561
3684
|
*/
|
|
3562
3685
|
thinking?: BetaThinkingConfigParam;
|
|
@@ -3575,9 +3698,9 @@ export interface MessageCountTokensParams {
|
|
|
3575
3698
|
*
|
|
3576
3699
|
* There are two types of tools: **client tools** and **server tools**. The
|
|
3577
3700
|
* behavior described below applies to client tools. For
|
|
3578
|
-
* [server tools](https://
|
|
3701
|
+
* [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
|
|
3579
3702
|
* see their individual documentation as each has its own behavior (e.g., the
|
|
3580
|
-
* [web search tool](https://
|
|
3703
|
+
* [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
|
|
3581
3704
|
*
|
|
3582
3705
|
* Each tool definition includes:
|
|
3583
3706
|
*
|
|
@@ -3640,18 +3763,26 @@ export interface MessageCountTokensParams {
|
|
|
3640
3763
|
* functions, or more generally whenever you want the model to produce a particular
|
|
3641
3764
|
* JSON structure of output.
|
|
3642
3765
|
*
|
|
3643
|
-
* See our
|
|
3766
|
+
* See our
|
|
3767
|
+
* [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
3768
|
+
* for more details.
|
|
3644
3769
|
*/
|
|
3645
|
-
tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
|
|
3770
|
+
tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
|
|
3646
3771
|
/**
|
|
3647
3772
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
3648
3773
|
*/
|
|
3649
3774
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
3775
|
+
/**
|
|
3776
|
+
* Header param: The user profile ID to attribute this request to. Use when acting
|
|
3777
|
+
* on behalf of a party other than your organization. Requires the `user-profiles`
|
|
3778
|
+
* beta header.
|
|
3779
|
+
*/
|
|
3780
|
+
user_profile_id?: string;
|
|
3650
3781
|
}
|
|
3651
3782
|
export { BetaToolRunner, type BetaToolRunnerParams } from "../../../lib/tools/BetaToolRunner.js";
|
|
3652
3783
|
export { ToolError } from "../../../lib/tools/ToolError.js";
|
|
3653
3784
|
export declare namespace Messages {
|
|
3654
|
-
export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaMidConversationSystemBlockParam as BetaMidConversationSystemBlockParam, 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 BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type 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 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 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, };
|
|
3785
|
+
export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaMidConversationSystemBlockParam as BetaMidConversationSystemBlockParam, 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 BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type 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, };
|
|
3655
3786
|
export { type BetaToolRunnerParams, BetaToolRunner };
|
|
3656
3787
|
export { ToolError };
|
|
3657
3788
|
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, };
|