@effect/ai-anthropic 4.0.0-beta.66 → 4.0.0-beta.67
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 +7 -7
- package/dist/AnthropicClient.js +5 -5
- package/dist/AnthropicConfig.d.ts +43 -8
- package/dist/AnthropicConfig.d.ts.map +1 -1
- package/dist/AnthropicConfig.js +28 -4
- package/dist/AnthropicConfig.js.map +1 -1
- package/dist/AnthropicError.d.ts +93 -3
- package/dist/AnthropicError.d.ts.map +1 -1
- package/dist/AnthropicError.js +1 -1
- package/dist/AnthropicLanguageModel.d.ts +121 -10
- package/dist/AnthropicLanguageModel.d.ts.map +1 -1
- package/dist/AnthropicLanguageModel.js +32 -6
- package/dist/AnthropicLanguageModel.js.map +1 -1
- package/dist/AnthropicTelemetry.d.ts +10 -8
- package/dist/AnthropicTelemetry.d.ts.map +1 -1
- package/dist/AnthropicTelemetry.js +2 -2
- package/dist/AnthropicTelemetry.js.map +1 -1
- package/dist/AnthropicTool.d.ts +224 -118
- package/dist/AnthropicTool.d.ts.map +1 -1
- package/dist/AnthropicTool.js +76 -72
- package/dist/AnthropicTool.js.map +1 -1
- package/dist/Generated.d.ts +1 -1
- package/dist/Generated.js +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +8 -8
- package/package.json +3 -3
- package/src/AnthropicClient.ts +8 -8
- package/src/AnthropicConfig.ts +43 -8
- package/src/AnthropicError.ts +93 -3
- package/src/AnthropicLanguageModel.ts +150 -13
- package/src/AnthropicTelemetry.ts +11 -9
- package/src/AnthropicTool.ts +224 -118
- package/src/Generated.ts +1 -1
- package/src/index.ts +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicTool.d.ts","sourceRoot":"","sources":["../src/AnthropicTool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAA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G;;EAEH,CAAA;AACF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAA;AAM3E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;;;QAjDnC;;WAEG;;;;;;;;;;;;;;;;;SAsDH,CAAA;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;;QAlDlC;;WAEG;;;;;;;;;;;;;;;;;SAuDH,CAAA"}
|
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";
|
|
@@ -18,8 +18,8 @@ import * as Generated from "./Generated.js";
|
|
|
18
18
|
* Allows the model to execute bash commands in a sandboxed environment.
|
|
19
19
|
* Requires the "computer-use-2024-10-22" beta header.
|
|
20
20
|
*
|
|
21
|
-
* @since 1.0.0
|
|
22
21
|
* @category Bash
|
|
22
|
+
* @since 4.0.0
|
|
23
23
|
*/
|
|
24
24
|
export const Bash_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
25
25
|
id: "anthropic.bash_20241022",
|
|
@@ -38,8 +38,8 @@ export const Bash_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
|
38
38
|
* Allows the model to execute bash commands in a sandboxed environment.
|
|
39
39
|
* Requires the "computer-use-2025-01-24" beta header.
|
|
40
40
|
*
|
|
41
|
-
* @since 1.0.0
|
|
42
41
|
* @category Bash
|
|
42
|
+
* @since 4.0.0
|
|
43
43
|
*/
|
|
44
44
|
export const Bash_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
45
45
|
id: "anthropic.bash_20250124",
|
|
@@ -59,10 +59,10 @@ export const Bash_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
59
59
|
// Code Execution 20250522 Parameters
|
|
60
60
|
// -----------------------------------------------------------------------------
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Schema for a code execution request that asks Anthropic to run source code as a programmatic tool call.
|
|
63
63
|
*
|
|
64
|
-
* @since 1.0.0
|
|
65
64
|
* @category Code Execution
|
|
65
|
+
* @since 4.0.0
|
|
66
66
|
*/
|
|
67
67
|
export const CodeExecutionProgrammaticToolCall = /*#__PURE__*/Schema.Struct({
|
|
68
68
|
type: /*#__PURE__*/Schema.Literal("programmatic-tool-call"),
|
|
@@ -72,10 +72,10 @@ export const CodeExecutionProgrammaticToolCall = /*#__PURE__*/Schema.Struct({
|
|
|
72
72
|
code: Schema.String
|
|
73
73
|
});
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Schema for a code execution request that runs a bash command.
|
|
76
76
|
*
|
|
77
|
-
* @since 1.0.0
|
|
78
77
|
* @category Code Execution
|
|
78
|
+
* @since 4.0.0
|
|
79
79
|
*/
|
|
80
80
|
export const CodeExecutionBashCommand = /*#__PURE__*/Schema.Struct({
|
|
81
81
|
type: /*#__PURE__*/Schema.Literal("bash_code_execution"),
|
|
@@ -87,8 +87,8 @@ export const CodeExecutionBashCommand = /*#__PURE__*/Schema.Struct({
|
|
|
87
87
|
/**
|
|
88
88
|
* Text editor view command for code execution.
|
|
89
89
|
*
|
|
90
|
-
* @since 1.0.0
|
|
91
90
|
* @category Code Execution
|
|
91
|
+
* @since 4.0.0
|
|
92
92
|
*/
|
|
93
93
|
export const CodeExecutionTextEditorView = /*#__PURE__*/Schema.Struct({
|
|
94
94
|
type: /*#__PURE__*/Schema.Literal("text_editor_code_execution"),
|
|
@@ -101,8 +101,8 @@ export const CodeExecutionTextEditorView = /*#__PURE__*/Schema.Struct({
|
|
|
101
101
|
/**
|
|
102
102
|
* Text editor create command for code execution.
|
|
103
103
|
*
|
|
104
|
-
* @since 1.0.0
|
|
105
104
|
* @category Code Execution
|
|
105
|
+
* @since 4.0.0
|
|
106
106
|
*/
|
|
107
107
|
export const CodeExecutionTextEditorCreate = /*#__PURE__*/Schema.Struct({
|
|
108
108
|
type: /*#__PURE__*/Schema.Literal("text_editor_code_execution"),
|
|
@@ -119,8 +119,8 @@ export const CodeExecutionTextEditorCreate = /*#__PURE__*/Schema.Struct({
|
|
|
119
119
|
/**
|
|
120
120
|
* Text editor str_replace command for code execution.
|
|
121
121
|
*
|
|
122
|
-
* @since 1.0.0
|
|
123
122
|
* @category Code Execution
|
|
123
|
+
* @since 4.0.0
|
|
124
124
|
*/
|
|
125
125
|
export const CodeExecutionTextEditorStrReplace = /*#__PURE__*/Schema.Struct({
|
|
126
126
|
type: /*#__PURE__*/Schema.Literal("text_editor_code_execution"),
|
|
@@ -143,10 +143,10 @@ const CodeExecution_20250522_Parameters = /*#__PURE__*/Schema.Union([CodeExecuti
|
|
|
143
143
|
// Code Execution 20250825 Parameters
|
|
144
144
|
// -----------------------------------------------------------------------------
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Schema for the 2025-08-25 code execution tool input, containing the code to execute.
|
|
147
147
|
*
|
|
148
|
-
* @since 1.0.0
|
|
149
148
|
* @category Code Execution
|
|
149
|
+
* @since 4.0.0
|
|
150
150
|
*/
|
|
151
151
|
export const CodeExecution_20250825_Parameters = /*#__PURE__*/Schema.Struct({
|
|
152
152
|
/**
|
|
@@ -164,8 +164,8 @@ export const CodeExecution_20250825_Parameters = /*#__PURE__*/Schema.Struct({
|
|
|
164
164
|
* for multiple execution types including programmatic tool calls, bash
|
|
165
165
|
* execution, and text editor operations.
|
|
166
166
|
*
|
|
167
|
-
* @since 1.0.0
|
|
168
167
|
* @category Code Execution
|
|
168
|
+
* @since 4.0.0
|
|
169
169
|
*/
|
|
170
170
|
export const CodeExecution_20250522 = /*#__PURE__*/Tool.providerDefined({
|
|
171
171
|
id: "anthropic.code_execution_20250522",
|
|
@@ -180,8 +180,8 @@ export const CodeExecution_20250522 = /*#__PURE__*/Tool.providerDefined({
|
|
|
180
180
|
*
|
|
181
181
|
* Allows the model to execute code in a sandboxed environment.
|
|
182
182
|
*
|
|
183
|
-
* @since 1.0.0
|
|
184
183
|
* @category Code Execution
|
|
184
|
+
* @since 4.0.0
|
|
185
185
|
*/
|
|
186
186
|
export const CodeExecution_20250825 = /*#__PURE__*/Tool.providerDefined({
|
|
187
187
|
id: "anthropic.code_execution_20250825",
|
|
@@ -200,29 +200,29 @@ export const CodeExecution_20250825 = /*#__PURE__*/Tool.providerDefined({
|
|
|
200
200
|
/**
|
|
201
201
|
* An `[x, y]` pixel position.
|
|
202
202
|
*
|
|
203
|
-
* @since 1.0.0
|
|
204
203
|
* @category Computer Use
|
|
204
|
+
* @since 4.0.0
|
|
205
205
|
*/
|
|
206
206
|
export const Coordinate = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number]);
|
|
207
207
|
/**
|
|
208
208
|
* A `[x1, y1, x2, y2]` position defining top-left and bottom-right corners.
|
|
209
209
|
*
|
|
210
|
-
* @since 1.0.0
|
|
211
210
|
* @category Computer Use
|
|
211
|
+
* @since 4.0.0
|
|
212
212
|
*/
|
|
213
213
|
export const Region = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number, Schema.Number, Schema.Number]);
|
|
214
214
|
/**
|
|
215
215
|
* The direction of the scroll for scroll actions.
|
|
216
216
|
*
|
|
217
|
-
* @since 1.0.0
|
|
218
217
|
* @category Computer Use
|
|
218
|
+
* @since 4.0.0
|
|
219
219
|
*/
|
|
220
220
|
export const ScrollDirection = /*#__PURE__*/Schema.Literals(["up", "down", "left", "right"]);
|
|
221
221
|
/**
|
|
222
222
|
* Modifier keys that can be held during click/scroll actions.
|
|
223
223
|
*
|
|
224
|
-
* @since 1.0.0
|
|
225
224
|
* @category Computer Use
|
|
225
|
+
* @since 4.0.0
|
|
226
226
|
*/
|
|
227
227
|
export const ModifierKey = /*#__PURE__*/Schema.Literals(["alt", "ctrl", "meta", "shift"]);
|
|
228
228
|
// -----------------------------------------------------------------------------
|
|
@@ -254,8 +254,8 @@ const ComputerUse_20251124_Args = /*#__PURE__*/Schema.Struct({
|
|
|
254
254
|
/**
|
|
255
255
|
* Press a key or key combination (e.g. `"Return"`, `"ctrl+c"`, `"ctrl+s"`).
|
|
256
256
|
*
|
|
257
|
-
* @since 1.0.0
|
|
258
257
|
* @category Computer Use
|
|
258
|
+
* @since 4.0.0
|
|
259
259
|
*/
|
|
260
260
|
export const ComputerUseKeyAction = /*#__PURE__*/Schema.Struct({
|
|
261
261
|
action: /*#__PURE__*/Schema.Literal("key"),
|
|
@@ -267,8 +267,8 @@ export const ComputerUseKeyAction = /*#__PURE__*/Schema.Struct({
|
|
|
267
267
|
/**
|
|
268
268
|
* Perform a left click at the current mouse position or the specified coordinates.
|
|
269
269
|
*
|
|
270
|
-
* @since 1.0.0
|
|
271
270
|
* @category Computer Use
|
|
271
|
+
* @since 4.0.0
|
|
272
272
|
*/
|
|
273
273
|
export const ComputerUseLeftClickAction = /*#__PURE__*/Schema.Struct({
|
|
274
274
|
action: /*#__PURE__*/Schema.Literal("left_click"),
|
|
@@ -281,8 +281,8 @@ export const ComputerUseLeftClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
281
281
|
/**
|
|
282
282
|
* Move the mouse cursor to the specified coordinates.
|
|
283
283
|
*
|
|
284
|
-
* @since 1.0.0
|
|
285
284
|
* @category Computer Use
|
|
285
|
+
* @since 4.0.0
|
|
286
286
|
*/
|
|
287
287
|
export const ComputerUseMouseMoveAction = /*#__PURE__*/Schema.Struct({
|
|
288
288
|
action: /*#__PURE__*/Schema.Literal("mouse_move"),
|
|
@@ -294,8 +294,8 @@ export const ComputerUseMouseMoveAction = /*#__PURE__*/Schema.Struct({
|
|
|
294
294
|
/**
|
|
295
295
|
* Capture the current display.
|
|
296
296
|
*
|
|
297
|
-
* @since 1.0.0
|
|
298
297
|
* @category Computer Use
|
|
298
|
+
* @since 4.0.0
|
|
299
299
|
*/
|
|
300
300
|
export const ComputerUseScreenshotAction = /*#__PURE__*/Schema.Struct({
|
|
301
301
|
action: /*#__PURE__*/Schema.Literal("screenshot")
|
|
@@ -303,8 +303,8 @@ export const ComputerUseScreenshotAction = /*#__PURE__*/Schema.Struct({
|
|
|
303
303
|
/**
|
|
304
304
|
* Type a text string.
|
|
305
305
|
*
|
|
306
|
-
* @since 1.0.0
|
|
307
306
|
* @category Computer Use
|
|
307
|
+
* @since 4.0.0
|
|
308
308
|
*/
|
|
309
309
|
export const TypeAction = /*#__PURE__*/Schema.Struct({
|
|
310
310
|
action: /*#__PURE__*/Schema.Literal("type"),
|
|
@@ -320,8 +320,8 @@ const ComputerUse_20241022_Actions = /*#__PURE__*/Schema.Union([ComputerUseKeyAc
|
|
|
320
320
|
/**
|
|
321
321
|
* Perform a double click.
|
|
322
322
|
*
|
|
323
|
-
* @since 1.0.0
|
|
324
323
|
* @category Computer Use
|
|
324
|
+
* @since 4.0.0
|
|
325
325
|
*/
|
|
326
326
|
export const ComputerUseDoubleClickAction = /*#__PURE__*/Schema.Struct({
|
|
327
327
|
action: /*#__PURE__*/Schema.Literal("double_click"),
|
|
@@ -332,10 +332,10 @@ export const ComputerUseDoubleClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
332
332
|
coordinate: /*#__PURE__*/Schema.optional(Coordinate)
|
|
333
333
|
});
|
|
334
334
|
/**
|
|
335
|
-
*
|
|
335
|
+
* Hold a key for a specified duration during computer-use execution.
|
|
336
336
|
*
|
|
337
|
-
* @since 1.0.0
|
|
338
337
|
* @category Computer Use
|
|
338
|
+
* @since 4.0.0
|
|
339
339
|
*/
|
|
340
340
|
export const ComputerUseHoldKeyAction = /*#__PURE__*/Schema.Struct({
|
|
341
341
|
action: /*#__PURE__*/Schema.Literal("hold_key"),
|
|
@@ -351,8 +351,8 @@ export const ComputerUseHoldKeyAction = /*#__PURE__*/Schema.Struct({
|
|
|
351
351
|
/**
|
|
352
352
|
* Click and drag from start coordinate to end coordinate.
|
|
353
353
|
*
|
|
354
|
-
* @since 1.0.0
|
|
355
354
|
* @category Computer Use
|
|
355
|
+
* @since 4.0.0
|
|
356
356
|
*/
|
|
357
357
|
export const ComputerUseLeftClickDragAction = /*#__PURE__*/Schema.Struct({
|
|
358
358
|
action: /*#__PURE__*/Schema.Literal("left_click_drag"),
|
|
@@ -370,8 +370,8 @@ export const ComputerUseLeftClickDragAction = /*#__PURE__*/Schema.Struct({
|
|
|
370
370
|
*
|
|
371
371
|
* Used for fine-grained click control.
|
|
372
372
|
*
|
|
373
|
-
* @since 1.0.0
|
|
374
373
|
* @category Computer Use
|
|
374
|
+
* @since 4.0.0
|
|
375
375
|
*/
|
|
376
376
|
export const ComputerUseLeftMouseDownAction = /*#__PURE__*/Schema.Struct({
|
|
377
377
|
action: /*#__PURE__*/Schema.Literal("left_mouse_down"),
|
|
@@ -386,8 +386,8 @@ export const ComputerUseLeftMouseDownAction = /*#__PURE__*/Schema.Struct({
|
|
|
386
386
|
*
|
|
387
387
|
* Used for fine-grained click control.
|
|
388
388
|
*
|
|
389
|
-
* @since 1.0.0
|
|
390
389
|
* @category Computer Use
|
|
390
|
+
* @since 4.0.0
|
|
391
391
|
*/
|
|
392
392
|
export const ComputerUseLeftMouseUpAction = /*#__PURE__*/Schema.Struct({
|
|
393
393
|
action: /*#__PURE__*/Schema.Literal("left_mouse_up"),
|
|
@@ -400,8 +400,8 @@ export const ComputerUseLeftMouseUpAction = /*#__PURE__*/Schema.Struct({
|
|
|
400
400
|
/**
|
|
401
401
|
* Perform a middle click.
|
|
402
402
|
*
|
|
403
|
-
* @since 1.0.0
|
|
404
403
|
* @category Computer Use
|
|
404
|
+
* @since 4.0.0
|
|
405
405
|
*/
|
|
406
406
|
export const ComputerUseMiddleClickAction = /*#__PURE__*/Schema.Struct({
|
|
407
407
|
action: /*#__PURE__*/Schema.Literal("middle_click"),
|
|
@@ -414,8 +414,8 @@ export const ComputerUseMiddleClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
414
414
|
/**
|
|
415
415
|
* Perform a right click.
|
|
416
416
|
*
|
|
417
|
-
* @since 1.0.0
|
|
418
417
|
* @category Computer Use
|
|
418
|
+
* @since 4.0.0
|
|
419
419
|
*/
|
|
420
420
|
export const ComputerUseRightClickAction = /*#__PURE__*/Schema.Struct({
|
|
421
421
|
action: /*#__PURE__*/Schema.Literal("right_click"),
|
|
@@ -428,8 +428,8 @@ export const ComputerUseRightClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
428
428
|
/**
|
|
429
429
|
* Scroll a given amount in a specified direction.
|
|
430
430
|
*
|
|
431
|
-
* @since 1.0.0
|
|
432
431
|
* @category Computer Use
|
|
432
|
+
* @since 4.0.0
|
|
433
433
|
*/
|
|
434
434
|
export const ComputerUseScrollAction = /*#__PURE__*/Schema.Struct({
|
|
435
435
|
action: /*#__PURE__*/Schema.Literal("scroll"),
|
|
@@ -450,8 +450,8 @@ export const ComputerUseScrollAction = /*#__PURE__*/Schema.Struct({
|
|
|
450
450
|
/**
|
|
451
451
|
* Perform a triple click.
|
|
452
452
|
*
|
|
453
|
-
* @since 1.0.0
|
|
454
453
|
* @category Computer Use
|
|
454
|
+
* @since 4.0.0
|
|
455
455
|
*/
|
|
456
456
|
export const ComputerUseTripleClickAction = /*#__PURE__*/Schema.Struct({
|
|
457
457
|
action: /*#__PURE__*/Schema.Literal("triple_click"),
|
|
@@ -464,8 +464,8 @@ export const ComputerUseTripleClickAction = /*#__PURE__*/Schema.Struct({
|
|
|
464
464
|
/**
|
|
465
465
|
* Pause between performing actions.
|
|
466
466
|
*
|
|
467
|
-
* @since 1.0.0
|
|
468
467
|
* @category Computer Use
|
|
468
|
+
* @since 4.0.0
|
|
469
469
|
*/
|
|
470
470
|
export const ComputerUseWaitAction = /*#__PURE__*/Schema.Struct({
|
|
471
471
|
action: /*#__PURE__*/Schema.Literal("wait"),
|
|
@@ -483,8 +483,8 @@ const ComputerUse_20250124_Actions = /*#__PURE__*/Schema.Union([...ComputerUse_2
|
|
|
483
483
|
*
|
|
484
484
|
* Requires `enableZoom: true` in the tool definition.
|
|
485
485
|
*
|
|
486
|
-
* @since 1.0.0
|
|
487
486
|
* @category Computer Use
|
|
487
|
+
* @since 4.0.0
|
|
488
488
|
*/
|
|
489
489
|
export const ComputerUseZoomAction = /*#__PURE__*/Schema.Struct({
|
|
490
490
|
action: /*#__PURE__*/Schema.Literal("zoom"),
|
|
@@ -505,8 +505,8 @@ const ComputerUse_20251124_Actions = /*#__PURE__*/Schema.Union([...ComputerUse_2
|
|
|
505
505
|
*
|
|
506
506
|
* Basic actions only: screenshot, left_click, type, key, mouse_move.
|
|
507
507
|
*
|
|
508
|
-
* @since 1.0.0
|
|
509
508
|
* @category Computer Use
|
|
509
|
+
* @since 4.0.0
|
|
510
510
|
*/
|
|
511
511
|
export const ComputerUse_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
512
512
|
id: "anthropic.computer_use_20241022",
|
|
@@ -526,8 +526,8 @@ export const ComputerUse_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
|
526
526
|
* right_click, middle_click, double_click, triple_click, left_mouse_down,
|
|
527
527
|
* left_mouse_up, hold_key, wait.
|
|
528
528
|
*
|
|
529
|
-
* @since 1.0.0
|
|
530
529
|
* @category Computer Use
|
|
530
|
+
* @since 4.0.0
|
|
531
531
|
*/
|
|
532
532
|
export const ComputerUse_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
533
533
|
id: "anthropic.computer_20250124",
|
|
@@ -546,8 +546,8 @@ export const ComputerUse_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
546
546
|
* Includes all actions from computer_20250124 plus the zoom action for
|
|
547
547
|
* detailed screen region inspection. Requires `enableZoom: true` in args.
|
|
548
548
|
*
|
|
549
|
-
* @since 1.0.0
|
|
550
549
|
* @category Computer Use
|
|
550
|
+
* @since 4.0.0
|
|
551
551
|
*/
|
|
552
552
|
export const ComputerUse_20251124 = /*#__PURE__*/Tool.providerDefined({
|
|
553
553
|
id: "anthropic.computer_20251124",
|
|
@@ -567,13 +567,13 @@ export const ComputerUse_20251124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
567
567
|
/**
|
|
568
568
|
* A `[start, end]` line range for viewing file contents.
|
|
569
569
|
*
|
|
570
|
-
* Lines are 1-indexed. Use -1 for end to read to end of file
|
|
570
|
+
* Lines are 1-indexed. Use -1 for end to read to end of file:
|
|
571
571
|
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
572
|
+
* - `[1, 50]`: View lines 1-50
|
|
573
|
+
* - `[100, -1]`: View from line 100 to end of file
|
|
574
574
|
*
|
|
575
|
-
* @since 1.0.0
|
|
576
575
|
* @category Memory
|
|
576
|
+
* @since 4.0.0
|
|
577
577
|
*/
|
|
578
578
|
export const ViewRange = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number]);
|
|
579
579
|
// -----------------------------------------------------------------------------
|
|
@@ -582,8 +582,8 @@ export const ViewRange = /*#__PURE__*/Schema.Tuple([Schema.Number, Schema.Number
|
|
|
582
582
|
/**
|
|
583
583
|
* Creates a new file.
|
|
584
584
|
*
|
|
585
|
-
* @since 1.0.0
|
|
586
585
|
* @category Memory
|
|
586
|
+
* @since 4.0.0
|
|
587
587
|
*/
|
|
588
588
|
export const MemoryCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
589
589
|
command: /*#__PURE__*/Schema.Literal("create"),
|
|
@@ -595,8 +595,8 @@ export const MemoryCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
|
595
595
|
/**
|
|
596
596
|
* Delete a file or directory.
|
|
597
597
|
*
|
|
598
|
-
* @since 1.0.0
|
|
599
598
|
* @category Memory
|
|
599
|
+
* @since 4.0.0
|
|
600
600
|
*/
|
|
601
601
|
export const MemoryDeleteCommand = /*#__PURE__*/Schema.Struct({
|
|
602
602
|
command: /*#__PURE__*/Schema.Literal("delete"),
|
|
@@ -608,8 +608,8 @@ export const MemoryDeleteCommand = /*#__PURE__*/Schema.Struct({
|
|
|
608
608
|
/**
|
|
609
609
|
* Insert text at a specific line.
|
|
610
610
|
*
|
|
611
|
-
* @since 1.0.0
|
|
612
611
|
* @category Memory
|
|
612
|
+
* @since 4.0.0
|
|
613
613
|
*/
|
|
614
614
|
export const MemoryInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
615
615
|
command: /*#__PURE__*/Schema.Literal("insert"),
|
|
@@ -629,8 +629,8 @@ export const MemoryInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
|
629
629
|
/**
|
|
630
630
|
* Rename or move a file or directory.
|
|
631
631
|
*
|
|
632
|
-
* @since 1.0.0
|
|
633
632
|
* @category Memory
|
|
633
|
+
* @since 4.0.0
|
|
634
634
|
*/
|
|
635
635
|
export const MemoryRenameCommand = /*#__PURE__*/Schema.Struct({
|
|
636
636
|
command: /*#__PURE__*/Schema.Literal("rename"),
|
|
@@ -646,8 +646,8 @@ export const MemoryRenameCommand = /*#__PURE__*/Schema.Struct({
|
|
|
646
646
|
/**
|
|
647
647
|
* Replace text in a file.
|
|
648
648
|
*
|
|
649
|
-
* @since 1.0.0
|
|
650
649
|
* @category Memory
|
|
650
|
+
* @since 4.0.0
|
|
651
651
|
*/
|
|
652
652
|
export const MemoryStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
653
653
|
command: /*#__PURE__*/Schema.Literal("str_replace"),
|
|
@@ -667,8 +667,8 @@ export const MemoryStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
|
667
667
|
/**
|
|
668
668
|
* Shows directory contents or file contents with optional line ranges.
|
|
669
669
|
*
|
|
670
|
-
* @since 1.0.0
|
|
671
670
|
* @category Memory
|
|
671
|
+
* @since 4.0.0
|
|
672
672
|
*/
|
|
673
673
|
export const MemoryViewCommand = /*#__PURE__*/Schema.Struct({
|
|
674
674
|
command: /*#__PURE__*/Schema.Literal("view"),
|
|
@@ -691,8 +691,8 @@ const Memory_20250818_Commands = /*#__PURE__*/Schema.Union([MemoryCreateCommand,
|
|
|
691
691
|
* Provides commands for creating, viewing, editing, renaming, and deleting
|
|
692
692
|
* files within the model's memory space.
|
|
693
693
|
*
|
|
694
|
-
* @since 1.0.0
|
|
695
694
|
* @category Memory
|
|
695
|
+
* @since 4.0.0
|
|
696
696
|
*/
|
|
697
697
|
export const Memory_20250818 = /*#__PURE__*/Tool.providerDefined({
|
|
698
698
|
id: "anthropic.memory_20250818",
|
|
@@ -713,8 +713,8 @@ export const Memory_20250818 = /*#__PURE__*/Tool.providerDefined({
|
|
|
713
713
|
* When used on a file: Returns the file contents, optionally limited to a line range.
|
|
714
714
|
* When used on a directory: Lists all files and subdirectories.
|
|
715
715
|
*
|
|
716
|
-
* @since 1.0.0
|
|
717
716
|
* @category Text Editor
|
|
717
|
+
* @since 4.0.0
|
|
718
718
|
*/
|
|
719
719
|
export const TextEditorViewCommand = /*#__PURE__*/Schema.Struct({
|
|
720
720
|
command: /*#__PURE__*/Schema.Literal("view"),
|
|
@@ -733,8 +733,8 @@ export const TextEditorViewCommand = /*#__PURE__*/Schema.Struct({
|
|
|
733
733
|
*
|
|
734
734
|
* Will fail if the file already exists. Parent directories must exist.
|
|
735
735
|
*
|
|
736
|
-
* @since 1.0.0
|
|
737
736
|
* @category Text Editor
|
|
737
|
+
* @since 4.0.0
|
|
738
738
|
*/
|
|
739
739
|
export const TextEditorCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
740
740
|
command: /*#__PURE__*/Schema.Literal("create"),
|
|
@@ -753,8 +753,8 @@ export const TextEditorCreateCommand = /*#__PURE__*/Schema.Struct({
|
|
|
753
753
|
* The `old_str` must match exactly (including whitespace and indentation)
|
|
754
754
|
* and must be unique in the file.
|
|
755
755
|
*
|
|
756
|
-
* @since 1.0.0
|
|
757
756
|
* @category Text Editor
|
|
757
|
+
* @since 4.0.0
|
|
758
758
|
*/
|
|
759
759
|
export const TextEditorStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
760
760
|
command: /*#__PURE__*/Schema.Literal("str_replace"),
|
|
@@ -776,8 +776,8 @@ export const TextEditorStrReplaceCommand = /*#__PURE__*/Schema.Struct({
|
|
|
776
776
|
*
|
|
777
777
|
* Inserts the new text AFTER the specified line number.
|
|
778
778
|
*
|
|
779
|
-
* @since 1.0.0
|
|
780
779
|
* @category Text Editor
|
|
780
|
+
* @since 4.0.0
|
|
781
781
|
*/
|
|
782
782
|
export const TextEditorInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
783
783
|
command: /*#__PURE__*/Schema.Literal("insert"),
|
|
@@ -802,8 +802,8 @@ export const TextEditorInsertCommand = /*#__PURE__*/Schema.Struct({
|
|
|
802
802
|
* NOTE: This command is available in text_editor_20241022 and text_editor_20250124,
|
|
803
803
|
* but NOT in text_editor_20250728 (Claude 4 models).
|
|
804
804
|
*
|
|
805
|
-
* @since 1.0.0
|
|
806
805
|
* @category Text Editor
|
|
806
|
+
* @since 4.0.0
|
|
807
807
|
*/
|
|
808
808
|
export const TextEditorUndoEditCommand = /*#__PURE__*/Schema.Struct({
|
|
809
809
|
command: /*#__PURE__*/Schema.Literal("undo_edit"),
|
|
@@ -832,8 +832,8 @@ const TextEditor_StrReplaceBasedEdit_Args = /*#__PURE__*/Schema.Struct({
|
|
|
832
832
|
*
|
|
833
833
|
* Requires the "computer-use-2024-10-22" beta header.
|
|
834
834
|
*
|
|
835
|
-
* @since 1.0.0
|
|
836
835
|
* @category Text Editor
|
|
836
|
+
* @since 4.0.0
|
|
837
837
|
*/
|
|
838
838
|
export const TextEditor_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
839
839
|
id: "anthropic.text_editor_20241022",
|
|
@@ -846,8 +846,11 @@ export const TextEditor_20241022 = /*#__PURE__*/Tool.providerDefined({
|
|
|
846
846
|
/**
|
|
847
847
|
* Text editor tool for Claude Sonnet 3.7 (deprecated model).
|
|
848
848
|
*
|
|
849
|
-
*
|
|
849
|
+
* **Notes**
|
|
850
|
+
* Requires the "computer-use-2025-01-24" beta header.
|
|
851
|
+
*
|
|
850
852
|
* @category Text Editor
|
|
853
|
+
* @since 4.0.0
|
|
851
854
|
*/
|
|
852
855
|
export const TextEditor_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
853
856
|
id: "anthropic.text_editor_20250124",
|
|
@@ -858,12 +861,13 @@ export const TextEditor_20250124 = /*#__PURE__*/Tool.providerDefined({
|
|
|
858
861
|
success: Schema.String
|
|
859
862
|
});
|
|
860
863
|
/**
|
|
861
|
-
* Text editor tool for Claude 4 models
|
|
864
|
+
* Text editor tool for Claude 4 models using Anthropic's `str_replace_based_edit_tool`.
|
|
862
865
|
*
|
|
863
|
-
*
|
|
866
|
+
* **Notes**
|
|
867
|
+
* Requires the "computer-use-2025-01-24" beta header. This version does not support the `undo_edit` command.
|
|
864
868
|
*
|
|
865
|
-
* @since 1.0.0
|
|
866
869
|
* @category Text Editor
|
|
870
|
+
* @since 4.0.0
|
|
867
871
|
*/
|
|
868
872
|
export const TextEditor_20250429 = /*#__PURE__*/Tool.providerDefined({
|
|
869
873
|
id: "anthropic.text_editor_20250429",
|
|
@@ -879,8 +883,8 @@ export const TextEditor_20250429 = /*#__PURE__*/Tool.providerDefined({
|
|
|
879
883
|
*
|
|
880
884
|
* NOTE: This version does NOT support the `undo_edit` command.
|
|
881
885
|
*
|
|
882
|
-
* @since 1.0.0
|
|
883
886
|
* @category Text Editor
|
|
887
|
+
* @since 4.0.0
|
|
884
888
|
*/
|
|
885
889
|
export const TextEditor_20250728 = /*#__PURE__*/Tool.providerDefined({
|
|
886
890
|
id: "anthropic.text_editor_20250728",
|
|
@@ -903,8 +907,8 @@ export const TextEditor_20250728 = /*#__PURE__*/Tool.providerDefined({
|
|
|
903
907
|
* Providing location helps return more relevant results for location-dependent
|
|
904
908
|
* queries like weather, local businesses, events, etc.
|
|
905
909
|
*
|
|
906
|
-
* @since 1.0.0
|
|
907
910
|
* @category Web Search
|
|
911
|
+
* @since 4.0.0
|
|
908
912
|
*/
|
|
909
913
|
export const WebSearchUserLocation = /*#__PURE__*/Schema.Struct({
|
|
910
914
|
/**
|
|
@@ -934,8 +938,8 @@ export const WebSearchUserLocation = /*#__PURE__*/Schema.Struct({
|
|
|
934
938
|
/**
|
|
935
939
|
* Configuration arguments for the web search tool.
|
|
936
940
|
*
|
|
937
|
-
* @since 1.0.0
|
|
938
941
|
* @category Web Search
|
|
942
|
+
* @since 4.0.0
|
|
939
943
|
*/
|
|
940
944
|
export const WebSearch_20250305_Args = /*#__PURE__*/Schema.Struct({
|
|
941
945
|
/**
|
|
@@ -965,8 +969,8 @@ export const WebSearch_20250305_Args = /*#__PURE__*/Schema.Struct({
|
|
|
965
969
|
/**
|
|
966
970
|
* Input parameters for a web search.
|
|
967
971
|
*
|
|
968
|
-
* @since 1.0.0
|
|
969
972
|
* @category Web Search
|
|
973
|
+
* @since 4.0.0
|
|
970
974
|
*/
|
|
971
975
|
export const WebSearchParameters = /*#__PURE__*/Schema.Struct({
|
|
972
976
|
/**
|
|
@@ -985,8 +989,8 @@ export const WebSearchParameters = /*#__PURE__*/Schema.Struct({
|
|
|
985
989
|
*
|
|
986
990
|
* Generally available (no beta header required).
|
|
987
991
|
*
|
|
988
|
-
* @since 1.0.0
|
|
989
992
|
* @category Web Search
|
|
993
|
+
* @since 4.0.0
|
|
990
994
|
*/
|
|
991
995
|
export const WebSearch_20250305 = /*#__PURE__*/Tool.providerDefined({
|
|
992
996
|
id: "anthropic.web_search_20250305",
|
|
@@ -1006,8 +1010,8 @@ export const WebSearch_20250305 = /*#__PURE__*/Tool.providerDefined({
|
|
|
1006
1010
|
/**
|
|
1007
1011
|
* Citation configuration for web fetch.
|
|
1008
1012
|
*
|
|
1009
|
-
* @since 1.0.0
|
|
1010
1013
|
* @category Web Fetch
|
|
1014
|
+
* @since 4.0.0
|
|
1011
1015
|
*/
|
|
1012
1016
|
export const WebFetchCitationsConfig = /*#__PURE__*/Schema.Struct({
|
|
1013
1017
|
/**
|
|
@@ -1021,8 +1025,8 @@ export const WebFetchCitationsConfig = /*#__PURE__*/Schema.Struct({
|
|
|
1021
1025
|
/**
|
|
1022
1026
|
* Configuration arguments for the web fetch tool.
|
|
1023
1027
|
*
|
|
1024
|
-
* @since 1.0.0
|
|
1025
1028
|
* @category Web Fetch
|
|
1029
|
+
* @since 4.0.0
|
|
1026
1030
|
*/
|
|
1027
1031
|
export const WebFetch_20250910_Args = /*#__PURE__*/Schema.Struct({
|
|
1028
1032
|
/**
|
|
@@ -1056,8 +1060,8 @@ export const WebFetch_20250910_Args = /*#__PURE__*/Schema.Struct({
|
|
|
1056
1060
|
/**
|
|
1057
1061
|
* Input parameters for a web fetch.
|
|
1058
1062
|
*
|
|
1059
|
-
* @since 1.0.0
|
|
1060
1063
|
* @category Web Fetch
|
|
1064
|
+
* @since 4.0.0
|
|
1061
1065
|
*/
|
|
1062
1066
|
export const WebFetchParameters = /*#__PURE__*/Schema.Struct({
|
|
1063
1067
|
/**
|
|
@@ -1077,8 +1081,8 @@ export const WebFetchParameters = /*#__PURE__*/Schema.Struct({
|
|
|
1077
1081
|
*
|
|
1078
1082
|
* Requires the "web-fetch-2025-09-10" beta header.
|
|
1079
1083
|
*
|
|
1080
|
-
* @since 1.0.0
|
|
1081
1084
|
* @category Web Fetch
|
|
1085
|
+
* @since 4.0.0
|
|
1082
1086
|
*/
|
|
1083
1087
|
export const WebFetch_20250910 = /*#__PURE__*/Tool.providerDefined({
|
|
1084
1088
|
id: "anthropic.web_fetch_20250910",
|
|
@@ -1101,8 +1105,8 @@ export const WebFetch_20250910 = /*#__PURE__*/Tool.providerDefined({
|
|
|
1101
1105
|
* Claude constructs regex patterns using Python's `re.search()` syntax.
|
|
1102
1106
|
* Maximum query length: 200 characters.
|
|
1103
1107
|
*
|
|
1104
|
-
* @since 1.0.0
|
|
1105
1108
|
* @category Tool Search
|
|
1109
|
+
* @since 4.0.0
|
|
1106
1110
|
*/
|
|
1107
1111
|
export const ToolSearchRegexParameters = /*#__PURE__*/Schema.Struct({
|
|
1108
1112
|
/**
|
|
@@ -1113,8 +1117,8 @@ export const ToolSearchRegexParameters = /*#__PURE__*/Schema.Struct({
|
|
|
1113
1117
|
/**
|
|
1114
1118
|
* Input parameters for BM25/natural language tool search.
|
|
1115
1119
|
*
|
|
1116
|
-
* @since 1.0.0
|
|
1117
1120
|
* @category Tool Search
|
|
1121
|
+
* @since 4.0.0
|
|
1118
1122
|
*/
|
|
1119
1123
|
export const ToolSearchBM25Parameters = /*#__PURE__*/Schema.Struct({
|
|
1120
1124
|
/**
|
|
@@ -1134,8 +1138,8 @@ export const ToolSearchBM25Parameters = /*#__PURE__*/Schema.Struct({
|
|
|
1134
1138
|
*
|
|
1135
1139
|
* Requires the "advanced-tool-use-2025-11-20" beta header.
|
|
1136
1140
|
*
|
|
1137
|
-
* @since 1.0.0
|
|
1138
1141
|
* @category Tool Search
|
|
1142
|
+
* @since 4.0.0
|
|
1139
1143
|
*/
|
|
1140
1144
|
export const ToolSearchRegex_20251119 = /*#__PURE__*/Tool.providerDefined({
|
|
1141
1145
|
id: "anthropic.tool_search_tool_regex_20251119",
|
|
@@ -1154,8 +1158,8 @@ export const ToolSearchRegex_20251119 = /*#__PURE__*/Tool.providerDefined({
|
|
|
1154
1158
|
*
|
|
1155
1159
|
* Requires the "advanced-tool-use-2025-11-20" beta header.
|
|
1156
1160
|
*
|
|
1157
|
-
* @since 1.0.0
|
|
1158
1161
|
* @category Tool Search
|
|
1162
|
+
* @since 4.0.0
|
|
1159
1163
|
*/
|
|
1160
1164
|
export const ToolSearchBM25_20251119 = /*#__PURE__*/Tool.providerDefined({
|
|
1161
1165
|
id: "anthropic.tool_search_tool_bm25_20251119",
|