@anthropic-ai/sdk 0.60.0 → 0.61.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 +24 -0
- package/client.d.mts +2 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -1
- package/client.d.ts.map +1 -1
- package/client.js +8 -7
- package/client.js.map +1 -1
- package/client.mjs +7 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +3 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +3 -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 +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 +131 -56
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +131 -56
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/messages/messages.d.mts +2 -48
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +2 -48
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/shared.d.mts +1 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +10 -6
- package/src/resources/beta/beta.ts +40 -0
- package/src/resources/beta/index.ts +19 -0
- package/src/resources/beta/messages/index.ts +19 -0
- package/src/resources/beta/messages/messages.ts +249 -50
- package/src/resources/messages/messages.ts +2 -48
- package/src/resources/shared.ts +2 -0
- 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
|
@@ -168,6 +168,85 @@ export interface BetaBase64PDFSource {
|
|
|
168
168
|
type: 'base64';
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
export interface BetaBashCodeExecutionOutputBlock {
|
|
172
|
+
file_id: string;
|
|
173
|
+
|
|
174
|
+
type: 'bash_code_execution_output';
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface BetaBashCodeExecutionOutputBlockParam {
|
|
178
|
+
file_id: string;
|
|
179
|
+
|
|
180
|
+
type: 'bash_code_execution_output';
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface BetaBashCodeExecutionResultBlock {
|
|
184
|
+
content: Array<BetaBashCodeExecutionOutputBlock>;
|
|
185
|
+
|
|
186
|
+
return_code: number;
|
|
187
|
+
|
|
188
|
+
stderr: string;
|
|
189
|
+
|
|
190
|
+
stdout: string;
|
|
191
|
+
|
|
192
|
+
type: 'bash_code_execution_result';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface BetaBashCodeExecutionResultBlockParam {
|
|
196
|
+
content: Array<BetaBashCodeExecutionOutputBlockParam>;
|
|
197
|
+
|
|
198
|
+
return_code: number;
|
|
199
|
+
|
|
200
|
+
stderr: string;
|
|
201
|
+
|
|
202
|
+
stdout: string;
|
|
203
|
+
|
|
204
|
+
type: 'bash_code_execution_result';
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface BetaBashCodeExecutionToolResultBlock {
|
|
208
|
+
content: BetaBashCodeExecutionToolResultError | BetaBashCodeExecutionResultBlock;
|
|
209
|
+
|
|
210
|
+
tool_use_id: string;
|
|
211
|
+
|
|
212
|
+
type: 'bash_code_execution_tool_result';
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface BetaBashCodeExecutionToolResultBlockParam {
|
|
216
|
+
content: BetaBashCodeExecutionToolResultErrorParam | BetaBashCodeExecutionResultBlockParam;
|
|
217
|
+
|
|
218
|
+
tool_use_id: string;
|
|
219
|
+
|
|
220
|
+
type: 'bash_code_execution_tool_result';
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Create a cache control breakpoint at this content block.
|
|
224
|
+
*/
|
|
225
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface BetaBashCodeExecutionToolResultError {
|
|
229
|
+
error_code:
|
|
230
|
+
| 'invalid_tool_input'
|
|
231
|
+
| 'unavailable'
|
|
232
|
+
| 'too_many_requests'
|
|
233
|
+
| 'execution_time_exceeded'
|
|
234
|
+
| 'output_file_too_large';
|
|
235
|
+
|
|
236
|
+
type: 'bash_code_execution_tool_result_error';
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface BetaBashCodeExecutionToolResultErrorParam {
|
|
240
|
+
error_code:
|
|
241
|
+
| 'invalid_tool_input'
|
|
242
|
+
| 'unavailable'
|
|
243
|
+
| 'too_many_requests'
|
|
244
|
+
| 'execution_time_exceeded'
|
|
245
|
+
| 'output_file_too_large';
|
|
246
|
+
|
|
247
|
+
type: 'bash_code_execution_tool_result_error';
|
|
248
|
+
}
|
|
249
|
+
|
|
171
250
|
export interface BetaCacheControlEphemeral {
|
|
172
251
|
type: 'ephemeral';
|
|
173
252
|
|
|
@@ -409,6 +488,22 @@ export interface BetaCodeExecutionTool20250522 {
|
|
|
409
488
|
cache_control?: BetaCacheControlEphemeral | null;
|
|
410
489
|
}
|
|
411
490
|
|
|
491
|
+
export interface BetaCodeExecutionTool20250825 {
|
|
492
|
+
/**
|
|
493
|
+
* Name of the tool.
|
|
494
|
+
*
|
|
495
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
496
|
+
*/
|
|
497
|
+
name: 'code_execution';
|
|
498
|
+
|
|
499
|
+
type: 'code_execution_20250825';
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Create a cache control breakpoint at this content block.
|
|
503
|
+
*/
|
|
504
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
505
|
+
}
|
|
506
|
+
|
|
412
507
|
export interface BetaCodeExecutionToolResultBlock {
|
|
413
508
|
content: BetaCodeExecutionToolResultBlockContent;
|
|
414
509
|
|
|
@@ -507,6 +602,8 @@ export type BetaContentBlock =
|
|
|
507
602
|
| BetaServerToolUseBlock
|
|
508
603
|
| BetaWebSearchToolResultBlock
|
|
509
604
|
| BetaCodeExecutionToolResultBlock
|
|
605
|
+
| BetaBashCodeExecutionToolResultBlock
|
|
606
|
+
| BetaTextEditorCodeExecutionToolResultBlock
|
|
510
607
|
| BetaMCPToolUseBlock
|
|
511
608
|
| BetaMCPToolResultBlock
|
|
512
609
|
| BetaContainerUploadBlock;
|
|
@@ -526,6 +623,8 @@ export type BetaContentBlockParam =
|
|
|
526
623
|
| BetaServerToolUseBlockParam
|
|
527
624
|
| BetaWebSearchToolResultBlockParam
|
|
528
625
|
| BetaCodeExecutionToolResultBlockParam
|
|
626
|
+
| BetaBashCodeExecutionToolResultBlockParam
|
|
627
|
+
| BetaTextEditorCodeExecutionToolResultBlockParam
|
|
529
628
|
| BetaMCPToolUseBlockParam
|
|
530
629
|
| BetaRequestMCPToolResultBlockParam
|
|
531
630
|
| BetaContainerUploadBlockParam;
|
|
@@ -820,6 +919,8 @@ export interface BetaRawContentBlockStartEvent {
|
|
|
820
919
|
| BetaServerToolUseBlock
|
|
821
920
|
| BetaWebSearchToolResultBlock
|
|
822
921
|
| BetaCodeExecutionToolResultBlock
|
|
922
|
+
| BetaBashCodeExecutionToolResultBlock
|
|
923
|
+
| BetaTextEditorCodeExecutionToolResultBlock
|
|
823
924
|
| BetaMCPToolUseBlock
|
|
824
925
|
| BetaMCPToolResultBlock
|
|
825
926
|
| BetaContainerUploadBlock;
|
|
@@ -988,7 +1089,7 @@ export interface BetaServerToolUseBlock {
|
|
|
988
1089
|
|
|
989
1090
|
input: unknown;
|
|
990
1091
|
|
|
991
|
-
name: 'web_search' | 'code_execution';
|
|
1092
|
+
name: 'web_search' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
|
|
992
1093
|
|
|
993
1094
|
type: 'server_tool_use';
|
|
994
1095
|
}
|
|
@@ -998,7 +1099,7 @@ export interface BetaServerToolUseBlockParam {
|
|
|
998
1099
|
|
|
999
1100
|
input: unknown;
|
|
1000
1101
|
|
|
1001
|
-
name: 'web_search' | 'code_execution';
|
|
1102
|
+
name: 'web_search' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
|
|
1002
1103
|
|
|
1003
1104
|
type: 'server_tool_use';
|
|
1004
1105
|
|
|
@@ -1070,6 +1171,129 @@ export interface BetaTextDelta {
|
|
|
1070
1171
|
type: 'text_delta';
|
|
1071
1172
|
}
|
|
1072
1173
|
|
|
1174
|
+
export interface BetaTextEditorCodeExecutionCreateResultBlock {
|
|
1175
|
+
is_file_update: boolean;
|
|
1176
|
+
|
|
1177
|
+
type: 'text_editor_code_execution_create_result';
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export interface BetaTextEditorCodeExecutionCreateResultBlockParam {
|
|
1181
|
+
is_file_update: boolean;
|
|
1182
|
+
|
|
1183
|
+
type: 'text_editor_code_execution_create_result';
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
export interface BetaTextEditorCodeExecutionStrReplaceResultBlock {
|
|
1187
|
+
lines: Array<string> | null;
|
|
1188
|
+
|
|
1189
|
+
new_lines: number | null;
|
|
1190
|
+
|
|
1191
|
+
new_start: number | null;
|
|
1192
|
+
|
|
1193
|
+
old_lines: number | null;
|
|
1194
|
+
|
|
1195
|
+
old_start: number | null;
|
|
1196
|
+
|
|
1197
|
+
type: 'text_editor_code_execution_str_replace_result';
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export interface BetaTextEditorCodeExecutionStrReplaceResultBlockParam {
|
|
1201
|
+
type: 'text_editor_code_execution_str_replace_result';
|
|
1202
|
+
|
|
1203
|
+
lines?: Array<string> | null;
|
|
1204
|
+
|
|
1205
|
+
new_lines?: number | null;
|
|
1206
|
+
|
|
1207
|
+
new_start?: number | null;
|
|
1208
|
+
|
|
1209
|
+
old_lines?: number | null;
|
|
1210
|
+
|
|
1211
|
+
old_start?: number | null;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
export interface BetaTextEditorCodeExecutionToolResultBlock {
|
|
1215
|
+
content:
|
|
1216
|
+
| BetaTextEditorCodeExecutionToolResultError
|
|
1217
|
+
| BetaTextEditorCodeExecutionViewResultBlock
|
|
1218
|
+
| BetaTextEditorCodeExecutionCreateResultBlock
|
|
1219
|
+
| BetaTextEditorCodeExecutionStrReplaceResultBlock;
|
|
1220
|
+
|
|
1221
|
+
tool_use_id: string;
|
|
1222
|
+
|
|
1223
|
+
type: 'text_editor_code_execution_tool_result';
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
export interface BetaTextEditorCodeExecutionToolResultBlockParam {
|
|
1227
|
+
content:
|
|
1228
|
+
| BetaTextEditorCodeExecutionToolResultErrorParam
|
|
1229
|
+
| BetaTextEditorCodeExecutionViewResultBlockParam
|
|
1230
|
+
| BetaTextEditorCodeExecutionCreateResultBlockParam
|
|
1231
|
+
| BetaTextEditorCodeExecutionStrReplaceResultBlockParam;
|
|
1232
|
+
|
|
1233
|
+
tool_use_id: string;
|
|
1234
|
+
|
|
1235
|
+
type: 'text_editor_code_execution_tool_result';
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Create a cache control breakpoint at this content block.
|
|
1239
|
+
*/
|
|
1240
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
export interface BetaTextEditorCodeExecutionToolResultError {
|
|
1244
|
+
error_code:
|
|
1245
|
+
| 'invalid_tool_input'
|
|
1246
|
+
| 'unavailable'
|
|
1247
|
+
| 'too_many_requests'
|
|
1248
|
+
| 'execution_time_exceeded'
|
|
1249
|
+
| 'file_not_found';
|
|
1250
|
+
|
|
1251
|
+
error_message: string | null;
|
|
1252
|
+
|
|
1253
|
+
type: 'text_editor_code_execution_tool_result_error';
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
export interface BetaTextEditorCodeExecutionToolResultErrorParam {
|
|
1257
|
+
error_code:
|
|
1258
|
+
| 'invalid_tool_input'
|
|
1259
|
+
| 'unavailable'
|
|
1260
|
+
| 'too_many_requests'
|
|
1261
|
+
| 'execution_time_exceeded'
|
|
1262
|
+
| 'file_not_found';
|
|
1263
|
+
|
|
1264
|
+
type: 'text_editor_code_execution_tool_result_error';
|
|
1265
|
+
|
|
1266
|
+
error_message?: string | null;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export interface BetaTextEditorCodeExecutionViewResultBlock {
|
|
1270
|
+
content: string;
|
|
1271
|
+
|
|
1272
|
+
file_type: 'text' | 'image' | 'pdf';
|
|
1273
|
+
|
|
1274
|
+
num_lines: number | null;
|
|
1275
|
+
|
|
1276
|
+
start_line: number | null;
|
|
1277
|
+
|
|
1278
|
+
total_lines: number | null;
|
|
1279
|
+
|
|
1280
|
+
type: 'text_editor_code_execution_view_result';
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export interface BetaTextEditorCodeExecutionViewResultBlockParam {
|
|
1284
|
+
content: string;
|
|
1285
|
+
|
|
1286
|
+
file_type: 'text' | 'image' | 'pdf';
|
|
1287
|
+
|
|
1288
|
+
type: 'text_editor_code_execution_view_result';
|
|
1289
|
+
|
|
1290
|
+
num_lines?: number | null;
|
|
1291
|
+
|
|
1292
|
+
start_line?: number | null;
|
|
1293
|
+
|
|
1294
|
+
total_lines?: number | null;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1073
1297
|
export interface BetaThinkingBlock {
|
|
1074
1298
|
signature: string;
|
|
1075
1299
|
|
|
@@ -1425,6 +1649,7 @@ export type BetaToolUnion =
|
|
|
1425
1649
|
| BetaToolBash20241022
|
|
1426
1650
|
| BetaToolBash20250124
|
|
1427
1651
|
| BetaCodeExecutionTool20250522
|
|
1652
|
+
| BetaCodeExecutionTool20250825
|
|
1428
1653
|
| BetaToolComputerUse20241022
|
|
1429
1654
|
| BetaToolComputerUse20250124
|
|
1430
1655
|
| BetaToolTextEditor20241022
|
|
@@ -1727,30 +1952,7 @@ export interface MessageCreateParamsBase {
|
|
|
1727
1952
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
1728
1953
|
* ```
|
|
1729
1954
|
*
|
|
1730
|
-
*
|
|
1731
|
-
*
|
|
1732
|
-
* ```json
|
|
1733
|
-
* {
|
|
1734
|
-
* "role": "user",
|
|
1735
|
-
* "content": [
|
|
1736
|
-
* {
|
|
1737
|
-
* "type": "image",
|
|
1738
|
-
* "source": {
|
|
1739
|
-
* "type": "base64",
|
|
1740
|
-
* "media_type": "image/jpeg",
|
|
1741
|
-
* "data": "/9j/4AAQSkZJRg..."
|
|
1742
|
-
* }
|
|
1743
|
-
* },
|
|
1744
|
-
* { "type": "text", "text": "What is in this image?" }
|
|
1745
|
-
* ]
|
|
1746
|
-
* }
|
|
1747
|
-
* ```
|
|
1748
|
-
*
|
|
1749
|
-
* We currently support the `base64` source type for images, and the `image/jpeg`,
|
|
1750
|
-
* `image/png`, `image/gif`, and `image/webp` media types.
|
|
1751
|
-
*
|
|
1752
|
-
* See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for
|
|
1753
|
-
* more input examples.
|
|
1955
|
+
* See [input examples](https://docs.anthropic.com/en/api/messages-examples).
|
|
1754
1956
|
*
|
|
1755
1957
|
* Note that if you want to include a
|
|
1756
1958
|
* [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
|
|
@@ -2049,30 +2251,7 @@ export interface MessageCountTokensParams {
|
|
|
2049
2251
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
2050
2252
|
* ```
|
|
2051
2253
|
*
|
|
2052
|
-
*
|
|
2053
|
-
*
|
|
2054
|
-
* ```json
|
|
2055
|
-
* {
|
|
2056
|
-
* "role": "user",
|
|
2057
|
-
* "content": [
|
|
2058
|
-
* {
|
|
2059
|
-
* "type": "image",
|
|
2060
|
-
* "source": {
|
|
2061
|
-
* "type": "base64",
|
|
2062
|
-
* "media_type": "image/jpeg",
|
|
2063
|
-
* "data": "/9j/4AAQSkZJRg..."
|
|
2064
|
-
* }
|
|
2065
|
-
* },
|
|
2066
|
-
* { "type": "text", "text": "What is in this image?" }
|
|
2067
|
-
* ]
|
|
2068
|
-
* }
|
|
2069
|
-
* ```
|
|
2070
|
-
*
|
|
2071
|
-
* We currently support the `base64` source type for images, and the `image/jpeg`,
|
|
2072
|
-
* `image/png`, `image/gif`, and `image/webp` media types.
|
|
2073
|
-
*
|
|
2074
|
-
* See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for
|
|
2075
|
-
* more input examples.
|
|
2254
|
+
* See [input examples](https://docs.anthropic.com/en/api/messages-examples).
|
|
2076
2255
|
*
|
|
2077
2256
|
* Note that if you want to include a
|
|
2078
2257
|
* [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
|
|
@@ -2205,6 +2384,7 @@ export interface MessageCountTokensParams {
|
|
|
2205
2384
|
| BetaToolBash20241022
|
|
2206
2385
|
| BetaToolBash20250124
|
|
2207
2386
|
| BetaCodeExecutionTool20250522
|
|
2387
|
+
| BetaCodeExecutionTool20250825
|
|
2208
2388
|
| BetaToolComputerUse20241022
|
|
2209
2389
|
| BetaToolComputerUse20250124
|
|
2210
2390
|
| BetaToolTextEditor20241022
|
|
@@ -2226,6 +2406,14 @@ export declare namespace Messages {
|
|
|
2226
2406
|
export {
|
|
2227
2407
|
type BetaBase64ImageSource as BetaBase64ImageSource,
|
|
2228
2408
|
type BetaBase64PDFSource as BetaBase64PDFSource,
|
|
2409
|
+
type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock,
|
|
2410
|
+
type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam,
|
|
2411
|
+
type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock,
|
|
2412
|
+
type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam,
|
|
2413
|
+
type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock,
|
|
2414
|
+
type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam,
|
|
2415
|
+
type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError,
|
|
2416
|
+
type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam,
|
|
2229
2417
|
type BetaCacheControlEphemeral as BetaCacheControlEphemeral,
|
|
2230
2418
|
type BetaCacheCreation as BetaCacheCreation,
|
|
2231
2419
|
type BetaCitationCharLocation as BetaCitationCharLocation,
|
|
@@ -2245,6 +2433,7 @@ export declare namespace Messages {
|
|
|
2245
2433
|
type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock,
|
|
2246
2434
|
type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam,
|
|
2247
2435
|
type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522,
|
|
2436
|
+
type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825,
|
|
2248
2437
|
type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock,
|
|
2249
2438
|
type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent,
|
|
2250
2439
|
type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam,
|
|
@@ -2297,6 +2486,16 @@ export declare namespace Messages {
|
|
|
2297
2486
|
type BetaTextCitation as BetaTextCitation,
|
|
2298
2487
|
type BetaTextCitationParam as BetaTextCitationParam,
|
|
2299
2488
|
type BetaTextDelta as BetaTextDelta,
|
|
2489
|
+
type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock,
|
|
2490
|
+
type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam,
|
|
2491
|
+
type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock,
|
|
2492
|
+
type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam,
|
|
2493
|
+
type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock,
|
|
2494
|
+
type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam,
|
|
2495
|
+
type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError,
|
|
2496
|
+
type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam,
|
|
2497
|
+
type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock,
|
|
2498
|
+
type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam,
|
|
2300
2499
|
type BetaThinkingBlock as BetaThinkingBlock,
|
|
2301
2500
|
type BetaThinkingBlockParam as BetaThinkingBlockParam,
|
|
2302
2501
|
type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled,
|
|
@@ -1371,30 +1371,7 @@ export interface MessageCreateParamsBase {
|
|
|
1371
1371
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
1372
1372
|
* ```
|
|
1373
1373
|
*
|
|
1374
|
-
*
|
|
1375
|
-
*
|
|
1376
|
-
* ```json
|
|
1377
|
-
* {
|
|
1378
|
-
* "role": "user",
|
|
1379
|
-
* "content": [
|
|
1380
|
-
* {
|
|
1381
|
-
* "type": "image",
|
|
1382
|
-
* "source": {
|
|
1383
|
-
* "type": "base64",
|
|
1384
|
-
* "media_type": "image/jpeg",
|
|
1385
|
-
* "data": "/9j/4AAQSkZJRg..."
|
|
1386
|
-
* }
|
|
1387
|
-
* },
|
|
1388
|
-
* { "type": "text", "text": "What is in this image?" }
|
|
1389
|
-
* ]
|
|
1390
|
-
* }
|
|
1391
|
-
* ```
|
|
1392
|
-
*
|
|
1393
|
-
* We currently support the `base64` source type for images, and the `image/jpeg`,
|
|
1394
|
-
* `image/png`, `image/gif`, and `image/webp` media types.
|
|
1395
|
-
*
|
|
1396
|
-
* See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for
|
|
1397
|
-
* more input examples.
|
|
1374
|
+
* See [input examples](https://docs.anthropic.com/en/api/messages-examples).
|
|
1398
1375
|
*
|
|
1399
1376
|
* Note that if you want to include a
|
|
1400
1377
|
* [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
|
|
@@ -1677,30 +1654,7 @@ export interface MessageCountTokensParams {
|
|
|
1677
1654
|
* { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
1678
1655
|
* ```
|
|
1679
1656
|
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1682
|
-
* ```json
|
|
1683
|
-
* {
|
|
1684
|
-
* "role": "user",
|
|
1685
|
-
* "content": [
|
|
1686
|
-
* {
|
|
1687
|
-
* "type": "image",
|
|
1688
|
-
* "source": {
|
|
1689
|
-
* "type": "base64",
|
|
1690
|
-
* "media_type": "image/jpeg",
|
|
1691
|
-
* "data": "/9j/4AAQSkZJRg..."
|
|
1692
|
-
* }
|
|
1693
|
-
* },
|
|
1694
|
-
* { "type": "text", "text": "What is in this image?" }
|
|
1695
|
-
* ]
|
|
1696
|
-
* }
|
|
1697
|
-
* ```
|
|
1698
|
-
*
|
|
1699
|
-
* We currently support the `base64` source type for images, and the `image/jpeg`,
|
|
1700
|
-
* `image/png`, `image/gif`, and `image/webp` media types.
|
|
1701
|
-
*
|
|
1702
|
-
* See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for
|
|
1703
|
-
* more input examples.
|
|
1657
|
+
* See [input examples](https://docs.anthropic.com/en/api/messages-examples).
|
|
1704
1658
|
*
|
|
1705
1659
|
* Note that if you want to include a
|
|
1706
1660
|
* [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
|
package/src/resources/shared.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.61.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.61.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.61.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.61.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|