@effect/ai-anthropic 4.0.0-beta.7 → 4.0.0-beta.70
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/dist/AnthropicClient.d.ts +40 -66
- package/dist/AnthropicClient.d.ts.map +1 -1
- package/dist/AnthropicClient.js +12 -14
- package/dist/AnthropicClient.js.map +1 -1
- package/dist/AnthropicConfig.d.ts +46 -10
- package/dist/AnthropicConfig.d.ts.map +1 -1
- package/dist/AnthropicConfig.js +31 -7
- package/dist/AnthropicConfig.js.map +1 -1
- package/dist/AnthropicError.d.ts +128 -37
- package/dist/AnthropicError.d.ts.map +1 -1
- package/dist/AnthropicError.js +1 -1
- package/dist/AnthropicLanguageModel.d.ts +281 -66
- package/dist/AnthropicLanguageModel.d.ts.map +1 -1
- package/dist/AnthropicLanguageModel.js +50 -14
- package/dist/AnthropicLanguageModel.js.map +1 -1
- package/dist/AnthropicTelemetry.d.ts +23 -16
- package/dist/AnthropicTelemetry.d.ts.map +1 -1
- package/dist/AnthropicTelemetry.js +6 -4
- package/dist/AnthropicTelemetry.js.map +1 -1
- package/dist/AnthropicTool.d.ts +298 -138
- package/dist/AnthropicTool.d.ts.map +1 -1
- package/dist/AnthropicTool.js +141 -87
- package/dist/AnthropicTool.js.map +1 -1
- package/dist/Generated.d.ts +11661 -5260
- package/dist/Generated.d.ts.map +1 -1
- package/dist/Generated.js +2318 -915
- package/dist/Generated.js.map +1 -1
- package/dist/index.d.ts +52 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -8
- package/dist/index.js.map +1 -1
- package/dist/internal/errors.js +7 -7
- package/dist/internal/errors.js.map +1 -1
- package/package.json +3 -3
- package/src/AnthropicClient.ts +41 -67
- package/src/AnthropicConfig.ts +47 -11
- package/src/AnthropicError.ts +130 -37
- package/src/AnthropicLanguageModel.ts +274 -33
- package/src/AnthropicTelemetry.ts +24 -17
- package/src/AnthropicTool.ts +293 -133
- package/src/Generated.ts +3751 -1815
- package/src/index.ts +52 -8
- package/src/internal/errors.ts +9 -7
package/dist/AnthropicTool.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides tools that are natively supported by Anthropic's API, including
|
|
5
5
|
* Bash, Code Execution, Computer Use, Memory, and Text Editor functionality.
|
|
6
6
|
*
|
|
7
|
-
* @since
|
|
7
|
+
* @since 4.0.0
|
|
8
8
|
*/
|
|
9
9
|
import * as Schema from "effect/Schema";
|
|
10
10
|
import * as Tool from "effect/unstable/ai/Tool";
|
|
@@ -15,11 +15,13 @@ import * as Generated from "./Generated.js";
|
|
|
15
15
|
/**
|
|
16
16
|
* Anthropic Bash tool (2024-10-22 version).
|
|
17
17
|
*
|
|
18
|
+
* **Details**
|
|
19
|
+
*
|
|
18
20
|
* Allows the model to execute bash commands in a sandboxed environment.
|
|
19
21
|
* Requires the "computer-use-2024-10-22" beta header.
|
|
20
22
|
*
|
|
21
|
-
* @since 1.0.0
|
|
22
23
|
* @category Bash
|
|
24
|
+
* @since 4.0.0
|
|
23
25
|
*/
|
|
24
26
|
export const Bash_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
25
27
|
id: "anthropic.bash_20241022",
|
|
@@ -35,11 +37,13 @@ export const Bash_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
|
35
37
|
/**
|
|
36
38
|
* Anthropic Bash tool (2025-01-24 version).
|
|
37
39
|
*
|
|
40
|
+
* **Details**
|
|
41
|
+
*
|
|
38
42
|
* Allows the model to execute bash commands in a sandboxed environment.
|
|
39
43
|
* Requires the "computer-use-2025-01-24" beta header.
|
|
40
44
|
*
|
|
41
|
-
* @since 1.0.0
|
|
42
45
|
* @category Bash
|
|
46
|
+
* @since 4.0.0
|
|
43
47
|
*/
|
|
44
48
|
export const Bash_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
45
49
|
id: "anthropic.bash_20250124",
|
|
@@ -59,10 +63,10 @@ export const Bash_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
59
63
|
// Code Execution 20250522 Parameters
|
|
60
64
|
// -----------------------------------------------------------------------------
|
|
61
65
|
/**
|
|
62
|
-
*
|
|
66
|
+
* Schema for a code execution request that asks Anthropic to run source code as a programmatic tool call.
|
|
63
67
|
*
|
|
64
|
-
* @since 1.0.0
|
|
65
68
|
* @category Code Execution
|
|
69
|
+
* @since 4.0.0
|
|
66
70
|
*/
|
|
67
71
|
export const CodeExecutionProgrammaticToolCall = /*#__PURE__*/Schema.Struct({
|
|
68
72
|
type: /*#__PURE__*/Schema.Literal("programmatic-tool-call"),
|
|
@@ -72,10 +76,10 @@ export const CodeExecutionProgrammaticToolCall = /*#__PURE__*/Schema.Struct({
|
|
|
72
76
|
code: Schema.String
|
|
73
77
|
});
|
|
74
78
|
/**
|
|
75
|
-
*
|
|
79
|
+
* Schema for a code execution request that runs a bash command.
|
|
76
80
|
*
|
|
77
|
-
* @since 1.0.0
|
|
78
81
|
* @category Code Execution
|
|
82
|
+
* @since 4.0.0
|
|
79
83
|
*/
|
|
80
84
|
export const CodeExecutionBashCommand = /*#__PURE__*/Schema.Struct({
|
|
81
85
|
type: /*#__PURE__*/Schema.Literal("bash_code_execution"),
|
|
@@ -87,8 +91,8 @@ export const CodeExecutionBashCommand = /*#__PURE__*/Schema.Struct({
|
|
|
87
91
|
/**
|
|
88
92
|
* Text editor view command for code execution.
|
|
89
93
|
*
|
|
90
|
-
* @since 1.0.0
|
|
91
94
|
* @category Code Execution
|
|
95
|
+
* @since 4.0.0
|
|
92
96
|
*/
|
|
93
97
|
export const CodeExecutionTextEditorView = /*#__PURE__*/Schema.Struct({
|
|
94
98
|
type: /*#__PURE__*/Schema.Literal("text_editor_code_execution"),
|
|
@@ -101,8 +105,8 @@ export const CodeExecutionTextEditorView = /*#__PURE__*/Schema.Struct({
|
|
|
101
105
|
/**
|
|
102
106
|
* Text editor create command for code execution.
|
|
103
107
|
*
|
|
104
|
-
* @since 1.0.0
|
|
105
108
|
* @category Code Execution
|
|
109
|
+
* @since 4.0.0
|
|
106
110
|
*/
|
|
107
111
|
export const CodeExecutionTextEditorCreate = /*#__PURE__*/Schema.Struct({
|
|
108
112
|
type: /*#__PURE__*/Schema.Literal("text_editor_code_execution"),
|
|
@@ -119,8 +123,8 @@ export const CodeExecutionTextEditorCreate = /*#__PURE__*/Schema.Struct({
|
|
|
119
123
|
/**
|
|
120
124
|
* Text editor str_replace command for code execution.
|
|
121
125
|
*
|
|
122
|
-
* @since 1.0.0
|
|
123
126
|
* @category Code Execution
|
|
127
|
+
* @since 4.0.0
|
|
124
128
|
*/
|
|
125
129
|
export const CodeExecutionTextEditorStrReplace = /*#__PURE__*/Schema.Struct({
|
|
126
130
|
type: /*#__PURE__*/Schema.Literal("text_editor_code_execution"),
|
|
@@ -143,10 +147,10 @@ const CodeExecution_20250522_Parameters = /*#__PURE__*/Schema.Union([CodeExecuti
|
|
|
143
147
|
// Code Execution 20250825 Parameters
|
|
144
148
|
// -----------------------------------------------------------------------------
|
|
145
149
|
/**
|
|
146
|
-
*
|
|
150
|
+
* Schema for the 2025-08-25 code execution tool input, containing the code to execute.
|
|
147
151
|
*
|
|
148
|
-
* @since 1.0.0
|
|
149
152
|
* @category Code Execution
|
|
153
|
+
* @since 4.0.0
|
|
150
154
|
*/
|
|
151
155
|
export const CodeExecution_20250825_Parameters = /*#__PURE__*/Schema.Struct({
|
|
152
156
|
/**
|
|
@@ -160,12 +164,14 @@ export const CodeExecution_20250825_Parameters = /*#__PURE__*/Schema.Struct({
|
|
|
160
164
|
/**
|
|
161
165
|
* Anthropic Code Execution tool (2025-05-22 version).
|
|
162
166
|
*
|
|
167
|
+
* **Details**
|
|
168
|
+
*
|
|
163
169
|
* Allows the model to execute code in a sandboxed environment with support
|
|
164
170
|
* for multiple execution types including programmatic tool calls, bash
|
|
165
171
|
* execution, and text editor operations.
|
|
166
172
|
*
|
|
167
|
-
* @since 1.0.0
|
|
168
173
|
* @category Code Execution
|
|
174
|
+
* @since 4.0.0
|
|
169
175
|
*/
|
|
170
176
|
export const CodeExecution_20250522 = /*#__PURE__*/Tool.providerDefined({
|
|
171
177
|
id: "anthropic.code_execution_20250522",
|
|
@@ -178,10 +184,12 @@ export const CodeExecution_20250522 = /*#__PURE__*/Tool.providerDefined({
|
|
|
178
184
|
/**
|
|
179
185
|
* Anthropic Code Execution tool (2025-08-25 version).
|
|
180
186
|
*
|
|
187
|
+
* **Details**
|
|
188
|
+
*
|
|
181
189
|
* Allows the model to execute code in a sandboxed environment.
|
|
182
190
|
*
|
|
183
|
-
* @since 1.0.0
|
|
184
191
|
* @category Code Execution
|
|
192
|
+
* @since 4.0.0
|
|
185
193
|
*/
|
|
186
194
|
export const CodeExecution_20250825 = /*#__PURE__*/Tool.providerDefined({
|
|
187
195
|
id: "anthropic.code_execution_20250825",
|
|
@@ -200,29 +208,29 @@ export const CodeExecution_20250825 = /*#__PURE__*/Tool.providerDefined({
|
|
|
200
208
|
/**
|
|
201
209
|
* An `[x, y]` pixel position.
|
|
202
210
|
*
|
|
203
|
-
* @since 1.0.0
|
|
204
211
|
* @category Computer Use
|
|
212
|
+
* @since 4.0.0
|
|
205
213
|
*/
|
|
206
214
|
export const Coordinate = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number]);
|
|
207
215
|
/**
|
|
208
216
|
* A `[x1, y1, x2, y2]` position defining top-left and bottom-right corners.
|
|
209
217
|
*
|
|
210
|
-
* @since 1.0.0
|
|
211
218
|
* @category Computer Use
|
|
219
|
+
* @since 4.0.0
|
|
212
220
|
*/
|
|
213
221
|
export const Region = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number, Schema.Number, Schema.Number]);
|
|
214
222
|
/**
|
|
215
223
|
* The direction of the scroll for scroll actions.
|
|
216
224
|
*
|
|
217
|
-
* @since 1.0.0
|
|
218
225
|
* @category Computer Use
|
|
226
|
+
* @since 4.0.0
|
|
219
227
|
*/
|
|
220
228
|
export const ScrollDirection = /*#__PURE__*/Schema.Literals(["up", "down", "left", "right"]);
|
|
221
229
|
/**
|
|
222
230
|
* Modifier keys that can be held during click/scroll actions.
|
|
223
231
|
*
|
|
224
|
-
* @since 1.0.0
|
|
225
232
|
* @category Computer Use
|
|
233
|
+
* @since 4.0.0
|
|
226
234
|
*/
|
|
227
235
|
export const ModifierKey = /*#__PURE__*/Schema.Literals(["alt", "ctrl", "meta", "shift"]);
|
|
228
236
|
// -----------------------------------------------------------------------------
|
|
@@ -254,8 +262,8 @@ const ComputerUse_20251124_Args = /*#__PURE__*/Schema.Struct({
|
|
|
254
262
|
/**
|
|
255
263
|
* Press a key or key combination (e.g. `"Return"`, `"ctrl+c"`, `"ctrl+s"`).
|
|
256
264
|
*
|
|
257
|
-
* @since 1.0.0
|
|
258
265
|
* @category Computer Use
|
|
266
|
+
* @since 4.0.0
|
|
259
267
|
*/
|
|
260
268
|
export const ComputerUseKeyAction = /*#__PURE__*/Schema.Struct({
|
|
261
269
|
action: /*#__PURE__*/Schema.Literal("key"),
|
|
@@ -267,8 +275,8 @@ export const ComputerUseKeyAction = /*#__PURE__*/Schema.Struct({
|
|
|
267
275
|
/**
|
|
268
276
|
* Perform a left click at the current mouse position or the specified coordinates.
|
|
269
277
|
*
|
|
270
|
-
* @since 1.0.0
|
|
271
278
|
* @category Computer Use
|
|
279
|
+
* @since 4.0.0
|
|
272
280
|
*/
|
|
273
281
|
export const ComputerUseLeftClickAction = /*#__PURE__*/Schema.Struct({
|
|
274
282
|
action: /*#__PURE__*/Schema.Literal("left_click"),
|
|
@@ -281,8 +289,8 @@ export const ComputerUseLeftClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
281
289
|
/**
|
|
282
290
|
* Move the mouse cursor to the specified coordinates.
|
|
283
291
|
*
|
|
284
|
-
* @since 1.0.0
|
|
285
292
|
* @category Computer Use
|
|
293
|
+
* @since 4.0.0
|
|
286
294
|
*/
|
|
287
295
|
export const ComputerUseMouseMoveAction = /*#__PURE__*/Schema.Struct({
|
|
288
296
|
action: /*#__PURE__*/Schema.Literal("mouse_move"),
|
|
@@ -294,8 +302,8 @@ export const ComputerUseMouseMoveAction = /*#__PURE__*/Schema.Struct({
|
|
|
294
302
|
/**
|
|
295
303
|
* Capture the current display.
|
|
296
304
|
*
|
|
297
|
-
* @since 1.0.0
|
|
298
305
|
* @category Computer Use
|
|
306
|
+
* @since 4.0.0
|
|
299
307
|
*/
|
|
300
308
|
export const ComputerUseScreenshotAction = /*#__PURE__*/Schema.Struct({
|
|
301
309
|
action: /*#__PURE__*/Schema.Literal("screenshot")
|
|
@@ -303,8 +311,8 @@ export const ComputerUseScreenshotAction = /*#__PURE__*/Schema.Struct({
|
|
|
303
311
|
/**
|
|
304
312
|
* Type a text string.
|
|
305
313
|
*
|
|
306
|
-
* @since 1.0.0
|
|
307
314
|
* @category Computer Use
|
|
315
|
+
* @since 4.0.0
|
|
308
316
|
*/
|
|
309
317
|
export const TypeAction = /*#__PURE__*/Schema.Struct({
|
|
310
318
|
action: /*#__PURE__*/Schema.Literal("type"),
|
|
@@ -320,8 +328,8 @@ const ComputerUse_20241022_Actions = /*#__PURE__*/Schema.Union([ComputerUseKeyAc
|
|
|
320
328
|
/**
|
|
321
329
|
* Perform a double click.
|
|
322
330
|
*
|
|
323
|
-
* @since 1.0.0
|
|
324
331
|
* @category Computer Use
|
|
332
|
+
* @since 4.0.0
|
|
325
333
|
*/
|
|
326
334
|
export const ComputerUseDoubleClickAction = /*#__PURE__*/Schema.Struct({
|
|
327
335
|
action: /*#__PURE__*/Schema.Literal("double_click"),
|
|
@@ -332,10 +340,10 @@ export const ComputerUseDoubleClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
332
340
|
coordinate: /*#__PURE__*/Schema.optional(Coordinate)
|
|
333
341
|
});
|
|
334
342
|
/**
|
|
335
|
-
*
|
|
343
|
+
* Hold a key for a specified duration during computer-use execution.
|
|
336
344
|
*
|
|
337
|
-
* @since 1.0.0
|
|
338
345
|
* @category Computer Use
|
|
346
|
+
* @since 4.0.0
|
|
339
347
|
*/
|
|
340
348
|
export const ComputerUseHoldKeyAction = /*#__PURE__*/Schema.Struct({
|
|
341
349
|
action: /*#__PURE__*/Schema.Literal("hold_key"),
|
|
@@ -351,8 +359,8 @@ export const ComputerUseHoldKeyAction = /*#__PURE__*/Schema.Struct({
|
|
|
351
359
|
/**
|
|
352
360
|
* Click and drag from start coordinate to end coordinate.
|
|
353
361
|
*
|
|
354
|
-
* @since 1.0.0
|
|
355
362
|
* @category Computer Use
|
|
363
|
+
* @since 4.0.0
|
|
356
364
|
*/
|
|
357
365
|
export const ComputerUseLeftClickDragAction = /*#__PURE__*/Schema.Struct({
|
|
358
366
|
action: /*#__PURE__*/Schema.Literal("left_click_drag"),
|
|
@@ -368,10 +376,12 @@ export const ComputerUseLeftClickDragAction = /*#__PURE__*/Schema.Struct({
|
|
|
368
376
|
/**
|
|
369
377
|
* Press the left mouse button down (without releasing).
|
|
370
378
|
*
|
|
371
|
-
*
|
|
379
|
+
* **When to use**
|
|
380
|
+
*
|
|
381
|
+
* Use this for fine-grained click control.
|
|
372
382
|
*
|
|
373
|
-
* @since 1.0.0
|
|
374
383
|
* @category Computer Use
|
|
384
|
+
* @since 4.0.0
|
|
375
385
|
*/
|
|
376
386
|
export const ComputerUseLeftMouseDownAction = /*#__PURE__*/Schema.Struct({
|
|
377
387
|
action: /*#__PURE__*/Schema.Literal("left_mouse_down"),
|
|
@@ -384,10 +394,12 @@ export const ComputerUseLeftMouseDownAction = /*#__PURE__*/Schema.Struct({
|
|
|
384
394
|
/**
|
|
385
395
|
* Release the left mouse button.
|
|
386
396
|
*
|
|
387
|
-
*
|
|
397
|
+
* **When to use**
|
|
398
|
+
*
|
|
399
|
+
* Use this for fine-grained click control.
|
|
388
400
|
*
|
|
389
|
-
* @since 1.0.0
|
|
390
401
|
* @category Computer Use
|
|
402
|
+
* @since 4.0.0
|
|
391
403
|
*/
|
|
392
404
|
export const ComputerUseLeftMouseUpAction = /*#__PURE__*/Schema.Struct({
|
|
393
405
|
action: /*#__PURE__*/Schema.Literal("left_mouse_up"),
|
|
@@ -400,8 +412,8 @@ export const ComputerUseLeftMouseUpAction = /*#__PURE__*/Schema.Struct({
|
|
|
400
412
|
/**
|
|
401
413
|
* Perform a middle click.
|
|
402
414
|
*
|
|
403
|
-
* @since 1.0.0
|
|
404
415
|
* @category Computer Use
|
|
416
|
+
* @since 4.0.0
|
|
405
417
|
*/
|
|
406
418
|
export const ComputerUseMiddleClickAction = /*#__PURE__*/Schema.Struct({
|
|
407
419
|
action: /*#__PURE__*/Schema.Literal("middle_click"),
|
|
@@ -414,8 +426,8 @@ export const ComputerUseMiddleClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
414
426
|
/**
|
|
415
427
|
* Perform a right click.
|
|
416
428
|
*
|
|
417
|
-
* @since 1.0.0
|
|
418
429
|
* @category Computer Use
|
|
430
|
+
* @since 4.0.0
|
|
419
431
|
*/
|
|
420
432
|
export const ComputerUseRightClickAction = /*#__PURE__*/Schema.Struct({
|
|
421
433
|
action: /*#__PURE__*/Schema.Literal("right_click"),
|
|
@@ -428,8 +440,8 @@ export const ComputerUseRightClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
428
440
|
/**
|
|
429
441
|
* Scroll a given amount in a specified direction.
|
|
430
442
|
*
|
|
431
|
-
* @since 1.0.0
|
|
432
443
|
* @category Computer Use
|
|
444
|
+
* @since 4.0.0
|
|
433
445
|
*/
|
|
434
446
|
export const ComputerUseScrollAction = /*#__PURE__*/Schema.Struct({
|
|
435
447
|
action: /*#__PURE__*/Schema.Literal("scroll"),
|
|
@@ -450,8 +462,8 @@ export const ComputerUseScrollAction = /*#__PURE__*/Schema.Struct({
|
|
|
450
462
|
/**
|
|
451
463
|
* Perform a triple click.
|
|
452
464
|
*
|
|
453
|
-
* @since 1.0.0
|
|
454
465
|
* @category Computer Use
|
|
466
|
+
* @since 4.0.0
|
|
455
467
|
*/
|
|
456
468
|
export const ComputerUseTripleClickAction = /*#__PURE__*/Schema.Struct({
|
|
457
469
|
action: /*#__PURE__*/Schema.Literal("triple_click"),
|
|
@@ -464,8 +476,8 @@ export const ComputerUseTripleClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
464
476
|
/**
|
|
465
477
|
* Pause between performing actions.
|
|
466
478
|
*
|
|
467
|
-
* @since 1.0.0
|
|
468
479
|
* @category Computer Use
|
|
480
|
+
* @since 4.0.0
|
|
469
481
|
*/
|
|
470
482
|
export const ComputerUseWaitAction = /*#__PURE__*/Schema.Struct({
|
|
471
483
|
action: /*#__PURE__*/Schema.Literal("wait"),
|
|
@@ -481,10 +493,12 @@ const ComputerUse_20250124_Actions = /*#__PURE__*/Schema.Union([...ComputerUse_2
|
|
|
481
493
|
/**
|
|
482
494
|
* Zoom into a specific region of the screen at full resolution.
|
|
483
495
|
*
|
|
496
|
+
* **Details**
|
|
497
|
+
*
|
|
484
498
|
* Requires `enableZoom: true` in the tool definition.
|
|
485
499
|
*
|
|
486
|
-
* @since 1.0.0
|
|
487
500
|
* @category Computer Use
|
|
501
|
+
* @since 4.0.0
|
|
488
502
|
*/
|
|
489
503
|
export const ComputerUseZoomAction = /*#__PURE__*/Schema.Struct({
|
|
490
504
|
action: /*#__PURE__*/Schema.Literal("zoom"),
|
|
@@ -501,12 +515,13 @@ const ComputerUse_20251124_Actions = /*#__PURE__*/Schema.Union([...ComputerUse_2
|
|
|
501
515
|
/**
|
|
502
516
|
* Computer use tool for Claude 3.5 Sonnet v2 (deprecated).
|
|
503
517
|
*
|
|
504
|
-
*
|
|
518
|
+
* **Details**
|
|
505
519
|
*
|
|
520
|
+
* Requires the "computer-use-2024-10-22" beta header.
|
|
506
521
|
* Basic actions only: screenshot, left_click, type, key, mouse_move.
|
|
507
522
|
*
|
|
508
|
-
* @since 1.0.0
|
|
509
523
|
* @category Computer Use
|
|
524
|
+
* @since 4.0.0
|
|
510
525
|
*/
|
|
511
526
|
export const ComputerUse_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
512
527
|
id: "anthropic.computer_use_20241022",
|
|
@@ -520,14 +535,15 @@ export const ComputerUse_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
|
520
535
|
/**
|
|
521
536
|
* Computer use tool for Claude 4 models and Claude Sonnet 3.7.
|
|
522
537
|
*
|
|
523
|
-
*
|
|
538
|
+
* **Details**
|
|
524
539
|
*
|
|
540
|
+
* Requires the "computer-use-2025-01-24" beta header.
|
|
525
541
|
* Includes basic actions plus enhanced actions: scroll, left_click_drag,
|
|
526
542
|
* right_click, middle_click, double_click, triple_click, left_mouse_down,
|
|
527
543
|
* left_mouse_up, hold_key, wait.
|
|
528
544
|
*
|
|
529
|
-
* @since 1.0.0
|
|
530
545
|
* @category Computer Use
|
|
546
|
+
* @since 4.0.0
|
|
531
547
|
*/
|
|
532
548
|
export const ComputerUse_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
533
549
|
id: "anthropic.computer_20250124",
|
|
@@ -541,13 +557,14 @@ export const ComputerUse_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
541
557
|
/**
|
|
542
558
|
* Computer use tool for Claude Opus 4.5 only.
|
|
543
559
|
*
|
|
544
|
-
*
|
|
560
|
+
* **Details**
|
|
545
561
|
*
|
|
562
|
+
* Requires the "computer-use-2025-11-24" beta header.
|
|
546
563
|
* Includes all actions from computer_20250124 plus the zoom action for
|
|
547
564
|
* detailed screen region inspection. Requires `enableZoom: true` in args.
|
|
548
565
|
*
|
|
549
|
-
* @since 1.0.0
|
|
550
566
|
* @category Computer Use
|
|
567
|
+
* @since 4.0.0
|
|
551
568
|
*/
|
|
552
569
|
export const ComputerUse_20251124 = /*#__PURE__*/Tool.providerDefined({
|
|
553
570
|
id: "anthropic.computer_20251124",
|
|
@@ -567,13 +584,14 @@ export const ComputerUse_20251124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
567
584
|
/**
|
|
568
585
|
* A `[start, end]` line range for viewing file contents.
|
|
569
586
|
*
|
|
570
|
-
*
|
|
587
|
+
* **Details**
|
|
571
588
|
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
589
|
+
* Lines are 1-indexed. Use -1 for end to read to the end of the file. For
|
|
590
|
+
* example, `[1, 50]` views lines 1-50 and `[100, -1]` views from line 100 to
|
|
591
|
+
* the end of the file.
|
|
574
592
|
*
|
|
575
|
-
* @since 1.0.0
|
|
576
593
|
* @category Memory
|
|
594
|
+
* @since 4.0.0
|
|
577
595
|
*/
|
|
578
596
|
export const ViewRange = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number]);
|
|
579
597
|
// -----------------------------------------------------------------------------
|
|
@@ -582,8 +600,8 @@ export const ViewRange = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number
|
|
|
582
600
|
/**
|
|
583
601
|
* Creates a new file.
|
|
584
602
|
*
|
|
585
|
-
* @since 1.0.0
|
|
586
603
|
* @category Memory
|
|
604
|
+
* @since 4.0.0
|
|
587
605
|
*/
|
|
588
606
|
export const MemoryCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
589
607
|
command: /*#__PURE__*/Schema.Literal("create"),
|
|
@@ -595,8 +613,8 @@ export const MemoryCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
|
595
613
|
/**
|
|
596
614
|
* Delete a file or directory.
|
|
597
615
|
*
|
|
598
|
-
* @since 1.0.0
|
|
599
616
|
* @category Memory
|
|
617
|
+
* @since 4.0.0
|
|
600
618
|
*/
|
|
601
619
|
export const MemoryDeleteCommand = /*#__PURE__*/Schema.Struct({
|
|
602
620
|
command: /*#__PURE__*/Schema.Literal("delete"),
|
|
@@ -608,8 +626,8 @@ export const MemoryDeleteCommand = /*#__PURE__*/Schema.Struct({
|
|
|
608
626
|
/**
|
|
609
627
|
* Insert text at a specific line.
|
|
610
628
|
*
|
|
611
|
-
* @since 1.0.0
|
|
612
629
|
* @category Memory
|
|
630
|
+
* @since 4.0.0
|
|
613
631
|
*/
|
|
614
632
|
export const MemoryInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
615
633
|
command: /*#__PURE__*/Schema.Literal("insert"),
|
|
@@ -629,8 +647,8 @@ export const MemoryInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
|
629
647
|
/**
|
|
630
648
|
* Rename or move a file or directory.
|
|
631
649
|
*
|
|
632
|
-
* @since 1.0.0
|
|
633
650
|
* @category Memory
|
|
651
|
+
* @since 4.0.0
|
|
634
652
|
*/
|
|
635
653
|
export const MemoryRenameCommand = /*#__PURE__*/Schema.Struct({
|
|
636
654
|
command: /*#__PURE__*/Schema.Literal("rename"),
|
|
@@ -646,8 +664,8 @@ export const MemoryRenameCommand = /*#__PURE__*/Schema.Struct({
|
|
|
646
664
|
/**
|
|
647
665
|
* Replace text in a file.
|
|
648
666
|
*
|
|
649
|
-
* @since 1.0.0
|
|
650
667
|
* @category Memory
|
|
668
|
+
* @since 4.0.0
|
|
651
669
|
*/
|
|
652
670
|
export const MemoryStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
653
671
|
command: /*#__PURE__*/Schema.Literal("str_replace"),
|
|
@@ -667,8 +685,8 @@ export const MemoryStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
|
667
685
|
/**
|
|
668
686
|
* Shows directory contents or file contents with optional line ranges.
|
|
669
687
|
*
|
|
670
|
-
* @since 1.0.0
|
|
671
688
|
* @category Memory
|
|
689
|
+
* @since 4.0.0
|
|
672
690
|
*/
|
|
673
691
|
export const MemoryViewCommand = /*#__PURE__*/Schema.Struct({
|
|
674
692
|
command: /*#__PURE__*/Schema.Literal("view"),
|
|
@@ -688,11 +706,13 @@ const Memory_20250818_Commands = /*#__PURE__*/Schema.Union([MemoryCreateCommand,
|
|
|
688
706
|
/**
|
|
689
707
|
* Memory tool for persistent file operations across conversations.
|
|
690
708
|
*
|
|
709
|
+
* **Details**
|
|
710
|
+
*
|
|
691
711
|
* Provides commands for creating, viewing, editing, renaming, and deleting
|
|
692
712
|
* files within the model's memory space.
|
|
693
713
|
*
|
|
694
|
-
* @since 1.0.0
|
|
695
714
|
* @category Memory
|
|
715
|
+
* @since 4.0.0
|
|
696
716
|
*/
|
|
697
717
|
export const Memory_20250818 = /*#__PURE__*/Tool.providerDefined({
|
|
698
718
|
id: "anthropic.memory_20250818",
|
|
@@ -710,11 +730,13 @@ export const Memory_20250818 = /*#__PURE__*/Tool.providerDefined({
|
|
|
710
730
|
/**
|
|
711
731
|
* View the contents of a file or list directory contents.
|
|
712
732
|
*
|
|
713
|
-
*
|
|
714
|
-
*
|
|
733
|
+
* **Details**
|
|
734
|
+
*
|
|
735
|
+
* When used on a file, returns the file contents, optionally limited to a line
|
|
736
|
+
* range. When used on a directory, lists all files and subdirectories.
|
|
715
737
|
*
|
|
716
|
-
* @since 1.0.0
|
|
717
738
|
* @category Text Editor
|
|
739
|
+
* @since 4.0.0
|
|
718
740
|
*/
|
|
719
741
|
export const TextEditorViewCommand = /*#__PURE__*/Schema.Struct({
|
|
720
742
|
command: /*#__PURE__*/Schema.Literal("view"),
|
|
@@ -731,10 +753,12 @@ export const TextEditorViewCommand = /*#__PURE__*/Schema.Struct({
|
|
|
731
753
|
/**
|
|
732
754
|
* Create a new file with specified content.
|
|
733
755
|
*
|
|
734
|
-
*
|
|
756
|
+
* **Gotchas**
|
|
757
|
+
*
|
|
758
|
+
* Fails if the file already exists. Parent directories must exist.
|
|
735
759
|
*
|
|
736
|
-
* @since 1.0.0
|
|
737
760
|
* @category Text Editor
|
|
761
|
+
* @since 4.0.0
|
|
738
762
|
*/
|
|
739
763
|
export const TextEditorCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
740
764
|
command: /*#__PURE__*/Schema.Literal("create"),
|
|
@@ -750,11 +774,13 @@ export const TextEditorCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
|
750
774
|
/**
|
|
751
775
|
* Replace a specific string in a file with a new string.
|
|
752
776
|
*
|
|
777
|
+
* **Gotchas**
|
|
778
|
+
*
|
|
753
779
|
* The `old_str` must match exactly (including whitespace and indentation)
|
|
754
780
|
* and must be unique in the file.
|
|
755
781
|
*
|
|
756
|
-
* @since 1.0.0
|
|
757
782
|
* @category Text Editor
|
|
783
|
+
* @since 4.0.0
|
|
758
784
|
*/
|
|
759
785
|
export const TextEditorStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
760
786
|
command: /*#__PURE__*/Schema.Literal("str_replace"),
|
|
@@ -774,10 +800,12 @@ export const TextEditorStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
|
774
800
|
/**
|
|
775
801
|
* Insert text at a specific line number in a file.
|
|
776
802
|
*
|
|
803
|
+
* **Details**
|
|
804
|
+
*
|
|
777
805
|
* Inserts the new text AFTER the specified line number.
|
|
778
806
|
*
|
|
779
|
-
* @since 1.0.0
|
|
780
807
|
* @category Text Editor
|
|
808
|
+
* @since 4.0.0
|
|
781
809
|
*/
|
|
782
810
|
export const TextEditorInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
783
811
|
command: /*#__PURE__*/Schema.Literal("insert"),
|
|
@@ -797,13 +825,17 @@ export const TextEditorInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
|
797
825
|
/**
|
|
798
826
|
* Undo the last edit made to a file.
|
|
799
827
|
*
|
|
828
|
+
* **Details**
|
|
829
|
+
*
|
|
800
830
|
* Reverts the most recent str_replace, insert, or create operation on the file.
|
|
801
831
|
*
|
|
802
|
-
*
|
|
803
|
-
*
|
|
832
|
+
* **Gotchas**
|
|
833
|
+
*
|
|
834
|
+
* This command is available in text_editor_20241022 and text_editor_20250124,
|
|
835
|
+
* but not in text_editor_20250728 (Claude 4 models).
|
|
804
836
|
*
|
|
805
|
-
* @since 1.0.0
|
|
806
837
|
* @category Text Editor
|
|
838
|
+
* @since 4.0.0
|
|
807
839
|
*/
|
|
808
840
|
export const TextEditorUndoEditCommand = /*#__PURE__*/Schema.Struct({
|
|
809
841
|
command: /*#__PURE__*/Schema.Literal("undo_edit"),
|
|
@@ -830,10 +862,12 @@ const TextEditor_StrReplaceBasedEdit_Args = /*#__PURE__*/Schema.Struct({
|
|
|
830
862
|
/**
|
|
831
863
|
* Text editor tool for Claude 3.5 Sonnet (deprecated).
|
|
832
864
|
*
|
|
865
|
+
* **Details**
|
|
866
|
+
*
|
|
833
867
|
* Requires the "computer-use-2024-10-22" beta header.
|
|
834
868
|
*
|
|
835
|
-
* @since 1.0.0
|
|
836
869
|
* @category Text Editor
|
|
870
|
+
* @since 4.0.0
|
|
837
871
|
*/
|
|
838
872
|
export const TextEditor_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
839
873
|
id: "anthropic.text_editor_20241022",
|
|
@@ -846,8 +880,12 @@ export const TextEditor_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
|
846
880
|
/**
|
|
847
881
|
* Text editor tool for Claude Sonnet 3.7 (deprecated model).
|
|
848
882
|
*
|
|
849
|
-
*
|
|
883
|
+
* **Details**
|
|
884
|
+
*
|
|
885
|
+
* Requires the "computer-use-2025-01-24" beta header.
|
|
886
|
+
*
|
|
850
887
|
* @category Text Editor
|
|
888
|
+
* @since 4.0.0
|
|
851
889
|
*/
|
|
852
890
|
export const TextEditor_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
853
891
|
id: "anthropic.text_editor_20250124",
|
|
@@ -858,12 +896,18 @@ export const TextEditor_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
858
896
|
success: Schema.String
|
|
859
897
|
});
|
|
860
898
|
/**
|
|
861
|
-
* Text editor tool for Claude 4 models
|
|
899
|
+
* Text editor tool for Claude 4 models using Anthropic's `str_replace_based_edit_tool`.
|
|
862
900
|
*
|
|
863
|
-
*
|
|
901
|
+
* **Details**
|
|
902
|
+
*
|
|
903
|
+
* Requires the "computer-use-2025-01-24" beta header.
|
|
904
|
+
*
|
|
905
|
+
* **Gotchas**
|
|
906
|
+
*
|
|
907
|
+
* This version does not support the `undo_edit` command.
|
|
864
908
|
*
|
|
865
|
-
* @since 1.0.0
|
|
866
909
|
* @category Text Editor
|
|
910
|
+
* @since 4.0.0
|
|
867
911
|
*/
|
|
868
912
|
export const TextEditor_20250429 = /*#__PURE__*/Tool.providerDefined({
|
|
869
913
|
id: "anthropic.text_editor_20250429",
|
|
@@ -877,10 +921,12 @@ export const TextEditor_20250429 = /*#__PURE__*/Tool.providerDefined({
|
|
|
877
921
|
/**
|
|
878
922
|
* Text editor tool for Claude 4 models.
|
|
879
923
|
*
|
|
880
|
-
*
|
|
924
|
+
* **Gotchas**
|
|
925
|
+
*
|
|
926
|
+
* This version does not support the `undo_edit` command.
|
|
881
927
|
*
|
|
882
|
-
* @since 1.0.0
|
|
883
928
|
* @category Text Editor
|
|
929
|
+
* @since 4.0.0
|
|
884
930
|
*/
|
|
885
931
|
export const TextEditor_20250728 = /*#__PURE__*/Tool.providerDefined({
|
|
886
932
|
id: "anthropic.text_editor_20250728",
|
|
@@ -900,11 +946,13 @@ export const TextEditor_20250728 = /*#__PURE__*/Tool.providerDefined({
|
|
|
900
946
|
/**
|
|
901
947
|
* User location for localizing search results.
|
|
902
948
|
*
|
|
949
|
+
* **When to use**
|
|
950
|
+
*
|
|
903
951
|
* Providing location helps return more relevant results for location-dependent
|
|
904
952
|
* queries like weather, local businesses, events, etc.
|
|
905
953
|
*
|
|
906
|
-
* @since 1.0.0
|
|
907
954
|
* @category Web Search
|
|
955
|
+
* @since 4.0.0
|
|
908
956
|
*/
|
|
909
957
|
export const WebSearchUserLocation = /*#__PURE__*/Schema.Struct({
|
|
910
958
|
/**
|
|
@@ -934,8 +982,8 @@ export const WebSearchUserLocation = /*#__PURE__*/Schema.Struct({
|
|
|
934
982
|
/**
|
|
935
983
|
* Configuration arguments for the web search tool.
|
|
936
984
|
*
|
|
937
|
-
* @since 1.0.0
|
|
938
985
|
* @category Web Search
|
|
986
|
+
* @since 4.0.0
|
|
939
987
|
*/
|
|
940
988
|
export const WebSearch_20250305_Args = /*#__PURE__*/Schema.Struct({
|
|
941
989
|
/**
|
|
@@ -965,8 +1013,8 @@ export const WebSearch_20250305_Args = /*#__PURE__*/Schema.Struct({
|
|
|
965
1013
|
/**
|
|
966
1014
|
* Input parameters for a web search.
|
|
967
1015
|
*
|
|
968
|
-
* @since 1.0.0
|
|
969
1016
|
* @category Web Search
|
|
1017
|
+
* @since 4.0.0
|
|
970
1018
|
*/
|
|
971
1019
|
export const WebSearchParameters = /*#__PURE__*/Schema.Struct({
|
|
972
1020
|
/**
|
|
@@ -980,13 +1028,14 @@ export const WebSearchParameters = /*#__PURE__*/Schema.Struct({
|
|
|
980
1028
|
/**
|
|
981
1029
|
* Web search tool for Claude models.
|
|
982
1030
|
*
|
|
1031
|
+
* **Details**
|
|
1032
|
+
*
|
|
983
1033
|
* Enables Claude to search the web for real-time information. This is a
|
|
984
1034
|
* server-side tool executed by Anthropic's infrastructure.
|
|
985
|
-
*
|
|
986
1035
|
* Generally available (no beta header required).
|
|
987
1036
|
*
|
|
988
|
-
* @since 1.0.0
|
|
989
1037
|
* @category Web Search
|
|
1038
|
+
* @since 4.0.0
|
|
990
1039
|
*/
|
|
991
1040
|
export const WebSearch_20250305 = /*#__PURE__*/Tool.providerDefined({
|
|
992
1041
|
id: "anthropic.web_search_20250305",
|
|
@@ -1006,8 +1055,8 @@ export const WebSearch_20250305 = /*#__PURE__*/Tool.providerDefined({
|
|
|
1006
1055
|
/**
|
|
1007
1056
|
* Citation configuration for web fetch.
|
|
1008
1057
|
*
|
|
1009
|
-
* @since 1.0.0
|
|
1010
1058
|
* @category Web Fetch
|
|
1059
|
+
* @since 4.0.0
|
|
1011
1060
|
*/
|
|
1012
1061
|
export const WebFetchCitationsConfig = /*#__PURE__*/Schema.Struct({
|
|
1013
1062
|
/**
|
|
@@ -1021,8 +1070,8 @@ export const WebFetchCitationsConfig = /*#__PURE__*/Schema.Struct({
|
|
|
1021
1070
|
/**
|
|
1022
1071
|
* Configuration arguments for the web fetch tool.
|
|
1023
1072
|
*
|
|
1024
|
-
* @since 1.0.0
|
|
1025
1073
|
* @category Web Fetch
|
|
1074
|
+
* @since 4.0.0
|
|
1026
1075
|
*/
|
|
1027
1076
|
export const WebFetch_20250910_Args = /*#__PURE__*/Schema.Struct({
|
|
1028
1077
|
/**
|
|
@@ -1056,8 +1105,8 @@ export const WebFetch_20250910_Args = /*#__PURE__*/Schema.Struct({
|
|
|
1056
1105
|
/**
|
|
1057
1106
|
* Input parameters for a web fetch.
|
|
1058
1107
|
*
|
|
1059
|
-
* @since 1.0.0
|
|
1060
1108
|
* @category Web Fetch
|
|
1109
|
+
* @since 4.0.0
|
|
1061
1110
|
*/
|
|
1062
1111
|
export const WebFetchParameters = /*#__PURE__*/Schema.Struct({
|
|
1063
1112
|
/**
|
|
@@ -1072,13 +1121,14 @@ export const WebFetchParameters = /*#__PURE__*/Schema.Struct({
|
|
|
1072
1121
|
/**
|
|
1073
1122
|
* Web fetch tool for Claude models.
|
|
1074
1123
|
*
|
|
1124
|
+
* **Details**
|
|
1125
|
+
*
|
|
1075
1126
|
* Allows Claude to retrieve full content from web pages and PDF documents.
|
|
1076
1127
|
* This is a server-side tool executed by Anthropic's infrastructure.
|
|
1077
|
-
*
|
|
1078
1128
|
* Requires the "web-fetch-2025-09-10" beta header.
|
|
1079
1129
|
*
|
|
1080
|
-
* @since 1.0.0
|
|
1081
1130
|
* @category Web Fetch
|
|
1131
|
+
* @since 4.0.0
|
|
1082
1132
|
*/
|
|
1083
1133
|
export const WebFetch_20250910 = /*#__PURE__*/Tool.providerDefined({
|
|
1084
1134
|
id: "anthropic.web_fetch_20250910",
|
|
@@ -1098,11 +1148,13 @@ export const WebFetch_20250910 = /*#__PURE__*/Tool.providerDefined({
|
|
|
1098
1148
|
/**
|
|
1099
1149
|
* Input parameters for regex-based tool search.
|
|
1100
1150
|
*
|
|
1151
|
+
* **Details**
|
|
1152
|
+
*
|
|
1101
1153
|
* Claude constructs regex patterns using Python's `re.search()` syntax.
|
|
1102
1154
|
* Maximum query length: 200 characters.
|
|
1103
1155
|
*
|
|
1104
|
-
* @since 1.0.0
|
|
1105
1156
|
* @category Tool Search
|
|
1157
|
+
* @since 4.0.0
|
|
1106
1158
|
*/
|
|
1107
1159
|
export const ToolSearchRegexParameters = /*#__PURE__*/Schema.Struct({
|
|
1108
1160
|
/**
|
|
@@ -1113,8 +1165,8 @@ export const ToolSearchRegexParameters = /*#__PURE__*/Schema.Struct({
|
|
|
1113
1165
|
/**
|
|
1114
1166
|
* Input parameters for BM25/natural language tool search.
|
|
1115
1167
|
*
|
|
1116
|
-
* @since 1.0.0
|
|
1117
1168
|
* @category Tool Search
|
|
1169
|
+
* @since 4.0.0
|
|
1118
1170
|
*/
|
|
1119
1171
|
export const ToolSearchBM25Parameters = /*#__PURE__*/Schema.Struct({
|
|
1120
1172
|
/**
|
|
@@ -1128,14 +1180,15 @@ export const ToolSearchBM25Parameters = /*#__PURE__*/Schema.Struct({
|
|
|
1128
1180
|
/**
|
|
1129
1181
|
* Regex-based tool search for Claude models.
|
|
1130
1182
|
*
|
|
1183
|
+
* **Details**
|
|
1184
|
+
*
|
|
1131
1185
|
* Claude constructs regex patterns using Python's `re.search()` syntax to
|
|
1132
1186
|
* find tools. The regex is matched against tool names, descriptions,
|
|
1133
1187
|
* argument names, and argument descriptions.
|
|
1134
|
-
*
|
|
1135
1188
|
* Requires the "advanced-tool-use-2025-11-20" beta header.
|
|
1136
1189
|
*
|
|
1137
|
-
* @since 1.0.0
|
|
1138
1190
|
* @category Tool Search
|
|
1191
|
+
* @since 4.0.0
|
|
1139
1192
|
*/
|
|
1140
1193
|
export const ToolSearchRegex_20251119 = /*#__PURE__*/Tool.providerDefined({
|
|
1141
1194
|
id: "anthropic.tool_search_tool_regex_20251119",
|
|
@@ -1148,14 +1201,15 @@ export const ToolSearchRegex_20251119 = /*#__PURE__*/Tool.providerDefined({
|
|
|
1148
1201
|
/**
|
|
1149
1202
|
* BM25/natural language tool search for Claude models.
|
|
1150
1203
|
*
|
|
1204
|
+
* **Details**
|
|
1205
|
+
*
|
|
1151
1206
|
* Claude uses natural language queries to search for tools using the
|
|
1152
1207
|
* BM25 algorithm. The search is performed against tool names, descriptions,
|
|
1153
1208
|
* argument names, and argument descriptions.
|
|
1154
|
-
*
|
|
1155
1209
|
* Requires the "advanced-tool-use-2025-11-20" beta header.
|
|
1156
1210
|
*
|
|
1157
|
-
* @since 1.0.0
|
|
1158
1211
|
* @category Tool Search
|
|
1212
|
+
* @since 4.0.0
|
|
1159
1213
|
*/
|
|
1160
1214
|
export const ToolSearchBM25_20251119 = /*#__PURE__*/Tool.providerDefined({
|
|
1161
1215
|
id: "anthropic.tool_search_tool_bm25_20251119",
|