@anthropic-ai/sdk 0.61.0 → 0.63.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 +23 -0
- package/README.md +47 -12
- package/helpers/beta/json-schema.d.mts +19 -0
- package/helpers/beta/json-schema.d.mts.map +1 -0
- package/helpers/beta/json-schema.d.ts +19 -0
- package/helpers/beta/json-schema.d.ts.map +1 -0
- package/helpers/beta/json-schema.js +22 -0
- package/helpers/beta/json-schema.js.map +1 -0
- package/helpers/beta/json-schema.mjs +19 -0
- package/helpers/beta/json-schema.mjs.map +1 -0
- package/helpers/beta/zod.d.mts +16 -0
- package/helpers/beta/zod.d.mts.map +1 -0
- package/helpers/beta/zod.d.ts +16 -0
- package/helpers/beta/zod.d.ts.map +1 -0
- package/helpers/beta/zod.js +28 -0
- package/helpers/beta/zod.js.map +1 -0
- package/helpers/beta/zod.mjs +24 -0
- package/helpers/beta/zod.mjs.map +1 -0
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/lib/tools/BetaRunnableTool.d.mts +7 -0
- package/lib/tools/BetaRunnableTool.d.mts.map +1 -0
- package/lib/tools/BetaRunnableTool.d.ts +7 -0
- package/lib/tools/BetaRunnableTool.d.ts.map +1 -0
- package/lib/tools/BetaRunnableTool.js +3 -0
- package/lib/tools/BetaRunnableTool.js.map +1 -0
- package/lib/tools/BetaRunnableTool.mjs +2 -0
- package/lib/tools/BetaRunnableTool.mjs.map +1 -0
- package/lib/tools/BetaToolRunner.d.mts +132 -0
- package/lib/tools/BetaToolRunner.d.mts.map +1 -0
- package/lib/tools/BetaToolRunner.d.ts +132 -0
- package/lib/tools/BetaToolRunner.d.ts.map +1 -0
- package/lib/tools/BetaToolRunner.js +288 -0
- package/lib/tools/BetaToolRunner.js.map +1 -0
- package/lib/tools/BetaToolRunner.mjs +284 -0
- package/lib/tools/BetaToolRunner.mjs.map +1 -0
- package/lib/tools/ToolRunner.d.mts +132 -0
- package/lib/tools/ToolRunner.d.mts.map +1 -0
- package/lib/tools/ToolRunner.d.ts +132 -0
- package/lib/tools/ToolRunner.d.ts.map +1 -0
- package/lib/tools/ToolRunner.js +288 -0
- package/lib/tools/ToolRunner.js.map +1 -0
- package/lib/tools/ToolRunner.mjs +284 -0
- package/lib/tools/ToolRunner.mjs.map +1 -0
- package/package.json +22 -2
- 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/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/index.d.mts +2 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +2 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js +3 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs +1 -0
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +123 -11
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +123 -11
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +9 -2
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +7 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/messages/messages.d.mts +2 -2
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +2 -2
- package/resources/messages/messages.d.ts.map +1 -1
- package/src/helpers/beta/json-schema.ts +32 -0
- package/src/helpers/beta/zod.ts +35 -0
- package/src/internal/utils/values.ts +3 -3
- package/src/lib/tools/BetaRunnableTool.ts +10 -0
- package/src/lib/tools/BetaToolRunner.ts +374 -0
- package/src/lib/tools/ToolRunner.ts +374 -0
- package/src/resources/beta/beta.ts +22 -0
- package/src/resources/beta/index.ts +11 -0
- package/src/resources/beta/messages/index.ts +12 -0
- package/src/resources/beta/messages/messages.ts +185 -7
- package/src/resources/messages/messages.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -30,6 +30,9 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
30
30
|
import { RequestOptions } from '../../../internal/request-options';
|
|
31
31
|
import type { Model } from '../../messages/messages';
|
|
32
32
|
import { BetaMessageStream } from '../../../lib/BetaMessageStream';
|
|
33
|
+
import { MODEL_NONSTREAMING_TOKENS } from '../../../internal/constants';
|
|
34
|
+
import { BetaToolRunner, BetaToolRunnerParams } from '../../../lib/tools/BetaToolRunner';
|
|
35
|
+
import { Anthropic } from '../../../client';
|
|
33
36
|
|
|
34
37
|
const DEPRECATED_MODELS: {
|
|
35
38
|
[K in Model]?: string;
|
|
@@ -46,7 +49,6 @@ const DEPRECATED_MODELS: {
|
|
|
46
49
|
'claude-3-5-sonnet-20241022': 'October 22, 2025',
|
|
47
50
|
'claude-3-5-sonnet-20240620': 'October 22, 2025',
|
|
48
51
|
};
|
|
49
|
-
import { MODEL_NONSTREAMING_TOKENS } from '../../../internal/constants';
|
|
50
52
|
|
|
51
53
|
export class Messages extends APIResource {
|
|
52
54
|
batches: BatchesAPI.Batches = new BatchesAPI.Batches(this._client);
|
|
@@ -148,6 +150,13 @@ export class Messages extends APIResource {
|
|
|
148
150
|
]),
|
|
149
151
|
});
|
|
150
152
|
}
|
|
153
|
+
|
|
154
|
+
toolRunner(body: BetaToolRunnerParams & { stream?: false }): BetaToolRunner<false>;
|
|
155
|
+
toolRunner(body: BetaToolRunnerParams & { stream: true }): BetaToolRunner<true>;
|
|
156
|
+
toolRunner(body: BetaToolRunnerParams): BetaToolRunner<boolean>;
|
|
157
|
+
toolRunner(body: BetaToolRunnerParams): BetaToolRunner<boolean> {
|
|
158
|
+
return new BetaToolRunner(this._client as Anthropic, body);
|
|
159
|
+
}
|
|
151
160
|
}
|
|
152
161
|
|
|
153
162
|
export type BetaMessageStreamParams = MessageCreateParamsBase;
|
|
@@ -305,6 +314,10 @@ export interface BetaCitationCharLocationParam {
|
|
|
305
314
|
type: 'char_location';
|
|
306
315
|
}
|
|
307
316
|
|
|
317
|
+
export interface BetaCitationConfig {
|
|
318
|
+
enabled: boolean;
|
|
319
|
+
}
|
|
320
|
+
|
|
308
321
|
export interface BetaCitationContentBlockLocation {
|
|
309
322
|
cited_text: string;
|
|
310
323
|
|
|
@@ -601,6 +614,7 @@ export type BetaContentBlock =
|
|
|
601
614
|
| BetaToolUseBlock
|
|
602
615
|
| BetaServerToolUseBlock
|
|
603
616
|
| BetaWebSearchToolResultBlock
|
|
617
|
+
| BetaWebFetchToolResultBlock
|
|
604
618
|
| BetaCodeExecutionToolResultBlock
|
|
605
619
|
| BetaBashCodeExecutionToolResultBlock
|
|
606
620
|
| BetaTextEditorCodeExecutionToolResultBlock
|
|
@@ -622,6 +636,7 @@ export type BetaContentBlockParam =
|
|
|
622
636
|
| BetaToolResultBlockParam
|
|
623
637
|
| BetaServerToolUseBlockParam
|
|
624
638
|
| BetaWebSearchToolResultBlockParam
|
|
639
|
+
| BetaWebFetchToolResultBlockParam
|
|
625
640
|
| BetaCodeExecutionToolResultBlockParam
|
|
626
641
|
| BetaBashCodeExecutionToolResultBlockParam
|
|
627
642
|
| BetaTextEditorCodeExecutionToolResultBlockParam
|
|
@@ -637,6 +652,22 @@ export interface BetaContentBlockSource {
|
|
|
637
652
|
|
|
638
653
|
export type BetaContentBlockSourceContent = BetaTextBlockParam | BetaImageBlockParam;
|
|
639
654
|
|
|
655
|
+
export interface BetaDocumentBlock {
|
|
656
|
+
/**
|
|
657
|
+
* Citation configuration for the document
|
|
658
|
+
*/
|
|
659
|
+
citations: BetaCitationConfig | null;
|
|
660
|
+
|
|
661
|
+
source: BetaBase64PDFSource | BetaPlainTextSource;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* The title of the document
|
|
665
|
+
*/
|
|
666
|
+
title: string | null;
|
|
667
|
+
|
|
668
|
+
type: 'document';
|
|
669
|
+
}
|
|
670
|
+
|
|
640
671
|
export interface BetaFileDocumentSource {
|
|
641
672
|
file_id: string;
|
|
642
673
|
|
|
@@ -918,6 +949,7 @@ export interface BetaRawContentBlockStartEvent {
|
|
|
918
949
|
| BetaToolUseBlock
|
|
919
950
|
| BetaServerToolUseBlock
|
|
920
951
|
| BetaWebSearchToolResultBlock
|
|
952
|
+
| BetaWebFetchToolResultBlock
|
|
921
953
|
| BetaCodeExecutionToolResultBlock
|
|
922
954
|
| BetaBashCodeExecutionToolResultBlock
|
|
923
955
|
| BetaTextEditorCodeExecutionToolResultBlock
|
|
@@ -1020,7 +1052,7 @@ export interface BetaRequestDocumentBlock {
|
|
|
1020
1052
|
*/
|
|
1021
1053
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
1022
1054
|
|
|
1023
|
-
citations?: BetaCitationsConfigParam;
|
|
1055
|
+
citations?: BetaCitationsConfigParam | null;
|
|
1024
1056
|
|
|
1025
1057
|
context?: string | null;
|
|
1026
1058
|
|
|
@@ -1078,6 +1110,11 @@ export interface BetaSearchResultBlockParam {
|
|
|
1078
1110
|
}
|
|
1079
1111
|
|
|
1080
1112
|
export interface BetaServerToolUsage {
|
|
1113
|
+
/**
|
|
1114
|
+
* The number of web fetch tool requests.
|
|
1115
|
+
*/
|
|
1116
|
+
web_fetch_requests: number;
|
|
1117
|
+
|
|
1081
1118
|
/**
|
|
1082
1119
|
* The number of web search tool requests.
|
|
1083
1120
|
*/
|
|
@@ -1089,7 +1126,7 @@ export interface BetaServerToolUseBlock {
|
|
|
1089
1126
|
|
|
1090
1127
|
input: unknown;
|
|
1091
1128
|
|
|
1092
|
-
name: 'web_search' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
|
|
1129
|
+
name: 'web_search' | 'web_fetch' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
|
|
1093
1130
|
|
|
1094
1131
|
type: 'server_tool_use';
|
|
1095
1132
|
}
|
|
@@ -1099,7 +1136,7 @@ export interface BetaServerToolUseBlockParam {
|
|
|
1099
1136
|
|
|
1100
1137
|
input: unknown;
|
|
1101
1138
|
|
|
1102
|
-
name: 'web_search' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
|
|
1139
|
+
name: 'web_search' | 'web_fetch' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
|
|
1103
1140
|
|
|
1104
1141
|
type: 'server_tool_use';
|
|
1105
1142
|
|
|
@@ -1396,7 +1433,7 @@ export namespace BetaTool {
|
|
|
1396
1433
|
|
|
1397
1434
|
properties?: unknown | null;
|
|
1398
1435
|
|
|
1399
|
-
required?:
|
|
1436
|
+
required?: string[] | readonly string[] | null;
|
|
1400
1437
|
|
|
1401
1438
|
[k: string]: unknown;
|
|
1402
1439
|
}
|
|
@@ -1569,11 +1606,15 @@ export interface BetaToolResultBlockParam {
|
|
|
1569
1606
|
*/
|
|
1570
1607
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
1571
1608
|
|
|
1572
|
-
content?:
|
|
1609
|
+
content?:
|
|
1610
|
+
| string
|
|
1611
|
+
| Array<BetaTextBlockParam | BetaImageBlockParam | BetaSearchResultBlockParam | BetaRequestDocumentBlock>;
|
|
1573
1612
|
|
|
1574
1613
|
is_error?: boolean;
|
|
1575
1614
|
}
|
|
1576
1615
|
|
|
1616
|
+
export type BetaToolResultContentBlockParam = Extract<BetaToolResultBlockParam['content'], any[]>[number];
|
|
1617
|
+
|
|
1577
1618
|
export interface BetaToolTextEditor20241022 {
|
|
1578
1619
|
/**
|
|
1579
1620
|
* Name of the tool.
|
|
@@ -1656,7 +1697,8 @@ export type BetaToolUnion =
|
|
|
1656
1697
|
| BetaToolTextEditor20250124
|
|
1657
1698
|
| BetaToolTextEditor20250429
|
|
1658
1699
|
| BetaToolTextEditor20250728
|
|
1659
|
-
| BetaWebSearchTool20250305
|
|
1700
|
+
| BetaWebSearchTool20250305
|
|
1701
|
+
| BetaWebFetchTool20250910;
|
|
1660
1702
|
|
|
1661
1703
|
export interface BetaToolUseBlock {
|
|
1662
1704
|
id: string;
|
|
@@ -1732,6 +1774,124 @@ export interface BetaUsage {
|
|
|
1732
1774
|
service_tier: 'standard' | 'priority' | 'batch' | null;
|
|
1733
1775
|
}
|
|
1734
1776
|
|
|
1777
|
+
export interface BetaWebFetchBlock {
|
|
1778
|
+
content: BetaDocumentBlock;
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* ISO 8601 timestamp when the content was retrieved
|
|
1782
|
+
*/
|
|
1783
|
+
retrieved_at: string | null;
|
|
1784
|
+
|
|
1785
|
+
type: 'web_fetch_result';
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* Fetched content URL
|
|
1789
|
+
*/
|
|
1790
|
+
url: string;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
export interface BetaWebFetchBlockParam {
|
|
1794
|
+
content: BetaRequestDocumentBlock;
|
|
1795
|
+
|
|
1796
|
+
type: 'web_fetch_result';
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* Fetched content URL
|
|
1800
|
+
*/
|
|
1801
|
+
url: string;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* ISO 8601 timestamp when the content was retrieved
|
|
1805
|
+
*/
|
|
1806
|
+
retrieved_at?: string | null;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
export interface BetaWebFetchTool20250910 {
|
|
1810
|
+
/**
|
|
1811
|
+
* Name of the tool.
|
|
1812
|
+
*
|
|
1813
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1814
|
+
*/
|
|
1815
|
+
name: 'web_fetch';
|
|
1816
|
+
|
|
1817
|
+
type: 'web_fetch_20250910';
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* List of domains to allow fetching from
|
|
1821
|
+
*/
|
|
1822
|
+
allowed_domains?: Array<string> | null;
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* List of domains to block fetching from
|
|
1826
|
+
*/
|
|
1827
|
+
blocked_domains?: Array<string> | null;
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Create a cache control breakpoint at this content block.
|
|
1831
|
+
*/
|
|
1832
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Citations configuration for fetched documents. Citations are disabled by
|
|
1836
|
+
* default.
|
|
1837
|
+
*/
|
|
1838
|
+
citations?: BetaCitationsConfigParam | null;
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Maximum number of tokens used by including web page text content in the context.
|
|
1842
|
+
* The limit is approximate and does not apply to binary content such as PDFs.
|
|
1843
|
+
*/
|
|
1844
|
+
max_content_tokens?: number | null;
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Maximum number of times the tool can be used in the API request.
|
|
1848
|
+
*/
|
|
1849
|
+
max_uses?: number | null;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
export interface BetaWebFetchToolResultBlock {
|
|
1853
|
+
content: BetaWebFetchToolResultErrorBlock | BetaWebFetchBlock;
|
|
1854
|
+
|
|
1855
|
+
tool_use_id: string;
|
|
1856
|
+
|
|
1857
|
+
type: 'web_fetch_tool_result';
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
export interface BetaWebFetchToolResultBlockParam {
|
|
1861
|
+
content: BetaWebFetchToolResultErrorBlockParam | BetaWebFetchBlockParam;
|
|
1862
|
+
|
|
1863
|
+
tool_use_id: string;
|
|
1864
|
+
|
|
1865
|
+
type: 'web_fetch_tool_result';
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Create a cache control breakpoint at this content block.
|
|
1869
|
+
*/
|
|
1870
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
export interface BetaWebFetchToolResultErrorBlock {
|
|
1874
|
+
error_code: BetaWebFetchToolResultErrorCode;
|
|
1875
|
+
|
|
1876
|
+
type: 'web_fetch_tool_result_error';
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export interface BetaWebFetchToolResultErrorBlockParam {
|
|
1880
|
+
error_code: BetaWebFetchToolResultErrorCode;
|
|
1881
|
+
|
|
1882
|
+
type: 'web_fetch_tool_result_error';
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
export type BetaWebFetchToolResultErrorCode =
|
|
1886
|
+
| 'invalid_tool_input'
|
|
1887
|
+
| 'url_too_long'
|
|
1888
|
+
| 'url_not_allowed'
|
|
1889
|
+
| 'url_not_accessible'
|
|
1890
|
+
| 'unsupported_content_type'
|
|
1891
|
+
| 'too_many_requests'
|
|
1892
|
+
| 'max_uses_exceeded'
|
|
1893
|
+
| 'unavailable';
|
|
1894
|
+
|
|
1735
1895
|
export interface BetaWebSearchResultBlock {
|
|
1736
1896
|
encrypted_content: string;
|
|
1737
1897
|
|
|
@@ -2392,6 +2552,7 @@ export interface MessageCountTokensParams {
|
|
|
2392
2552
|
| BetaToolTextEditor20250429
|
|
2393
2553
|
| BetaToolTextEditor20250728
|
|
2394
2554
|
| BetaWebSearchTool20250305
|
|
2555
|
+
| BetaWebFetchTool20250910
|
|
2395
2556
|
>;
|
|
2396
2557
|
|
|
2397
2558
|
/**
|
|
@@ -2400,8 +2561,12 @@ export interface MessageCountTokensParams {
|
|
|
2400
2561
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
2401
2562
|
}
|
|
2402
2563
|
|
|
2564
|
+
export { BetaToolRunner, type BetaToolRunnerParams } from '../../../lib/tools/BetaToolRunner';
|
|
2565
|
+
|
|
2403
2566
|
Messages.Batches = Batches;
|
|
2404
2567
|
|
|
2568
|
+
Messages.BetaToolRunner = BetaToolRunner;
|
|
2569
|
+
|
|
2405
2570
|
export declare namespace Messages {
|
|
2406
2571
|
export {
|
|
2407
2572
|
type BetaBase64ImageSource as BetaBase64ImageSource,
|
|
@@ -2418,6 +2583,7 @@ export declare namespace Messages {
|
|
|
2418
2583
|
type BetaCacheCreation as BetaCacheCreation,
|
|
2419
2584
|
type BetaCitationCharLocation as BetaCitationCharLocation,
|
|
2420
2585
|
type BetaCitationCharLocationParam as BetaCitationCharLocationParam,
|
|
2586
|
+
type BetaCitationConfig as BetaCitationConfig,
|
|
2421
2587
|
type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation,
|
|
2422
2588
|
type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam,
|
|
2423
2589
|
type BetaCitationPageLocation as BetaCitationPageLocation,
|
|
@@ -2448,6 +2614,7 @@ export declare namespace Messages {
|
|
|
2448
2614
|
type BetaContentBlockParam as BetaContentBlockParam,
|
|
2449
2615
|
type BetaContentBlockSource as BetaContentBlockSource,
|
|
2450
2616
|
type BetaContentBlockSourceContent as BetaContentBlockSourceContent,
|
|
2617
|
+
type BetaDocumentBlock as BetaDocumentBlock,
|
|
2451
2618
|
type BetaFileDocumentSource as BetaFileDocumentSource,
|
|
2452
2619
|
type BetaFileImageSource as BetaFileImageSource,
|
|
2453
2620
|
type BetaImageBlockParam as BetaImageBlockParam,
|
|
@@ -2513,6 +2680,7 @@ export declare namespace Messages {
|
|
|
2513
2680
|
type BetaToolComputerUse20241022 as BetaToolComputerUse20241022,
|
|
2514
2681
|
type BetaToolComputerUse20250124 as BetaToolComputerUse20250124,
|
|
2515
2682
|
type BetaToolResultBlockParam as BetaToolResultBlockParam,
|
|
2683
|
+
type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam,
|
|
2516
2684
|
type BetaToolTextEditor20241022 as BetaToolTextEditor20241022,
|
|
2517
2685
|
type BetaToolTextEditor20250124 as BetaToolTextEditor20250124,
|
|
2518
2686
|
type BetaToolTextEditor20250429 as BetaToolTextEditor20250429,
|
|
@@ -2523,6 +2691,14 @@ export declare namespace Messages {
|
|
|
2523
2691
|
type BetaURLImageSource as BetaURLImageSource,
|
|
2524
2692
|
type BetaURLPDFSource as BetaURLPDFSource,
|
|
2525
2693
|
type BetaUsage as BetaUsage,
|
|
2694
|
+
type BetaWebFetchBlock as BetaWebFetchBlock,
|
|
2695
|
+
type BetaWebFetchBlockParam as BetaWebFetchBlockParam,
|
|
2696
|
+
type BetaWebFetchTool20250910 as BetaWebFetchTool20250910,
|
|
2697
|
+
type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock,
|
|
2698
|
+
type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam,
|
|
2699
|
+
type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock,
|
|
2700
|
+
type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam,
|
|
2701
|
+
type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode,
|
|
2526
2702
|
type BetaWebSearchResultBlock as BetaWebSearchResultBlock,
|
|
2527
2703
|
type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam,
|
|
2528
2704
|
type BetaWebSearchTool20250305 as BetaWebSearchTool20250305,
|
|
@@ -2540,6 +2716,8 @@ export declare namespace Messages {
|
|
|
2540
2716
|
type MessageCountTokensParams as MessageCountTokensParams,
|
|
2541
2717
|
};
|
|
2542
2718
|
|
|
2719
|
+
export { type BetaToolRunnerParams, BetaToolRunner };
|
|
2720
|
+
|
|
2543
2721
|
export {
|
|
2544
2722
|
Batches as Batches,
|
|
2545
2723
|
type BetaDeletedMessageBatch as BetaDeletedMessageBatch,
|
|
@@ -355,7 +355,7 @@ export interface DocumentBlockParam {
|
|
|
355
355
|
*/
|
|
356
356
|
cache_control?: CacheControlEphemeral | null;
|
|
357
357
|
|
|
358
|
-
citations?: CitationsConfigParam;
|
|
358
|
+
citations?: CitationsConfigParam | null;
|
|
359
359
|
|
|
360
360
|
context?: string | null;
|
|
361
361
|
|
|
@@ -1000,7 +1000,7 @@ export interface ToolResultBlockParam {
|
|
|
1000
1000
|
*/
|
|
1001
1001
|
cache_control?: CacheControlEphemeral | null;
|
|
1002
1002
|
|
|
1003
|
-
content?: string | Array<TextBlockParam | ImageBlockParam | SearchResultBlockParam>;
|
|
1003
|
+
content?: string | Array<TextBlockParam | ImageBlockParam | SearchResultBlockParam | DocumentBlockParam>;
|
|
1004
1004
|
|
|
1005
1005
|
is_error?: boolean;
|
|
1006
1006
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.63.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.63.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.63.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.63.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|