@langchain/anthropic 1.5.11 → 1.5.13
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 +16 -0
- package/dist/chat_models.cjs +24 -13
- package/dist/chat_models.cjs.map +1 -1
- package/dist/chat_models.d.cts +12 -8
- package/dist/chat_models.d.cts.map +1 -1
- package/dist/chat_models.d.ts +12 -8
- package/dist/chat_models.d.ts.map +1 -1
- package/dist/chat_models.js +25 -14
- package/dist/chat_models.js.map +1 -1
- package/dist/profiles.cjs +87 -36
- package/dist/profiles.cjs.map +1 -1
- package/dist/profiles.js +87 -36
- package/dist/profiles.js.map +1 -1
- package/dist/tools/bash.d.cts +2 -3
- package/dist/tools/bash.d.cts.map +1 -1
- package/dist/tools/bash.d.ts +2 -3
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/codeExecution.d.cts +2 -3
- package/dist/tools/codeExecution.d.cts.map +1 -1
- package/dist/tools/codeExecution.d.ts +2 -3
- package/dist/tools/codeExecution.d.ts.map +1 -1
- package/dist/tools/computer.d.cts +5 -6
- package/dist/tools/computer.d.cts.map +1 -1
- package/dist/tools/computer.d.ts +5 -6
- package/dist/tools/computer.d.ts.map +1 -1
- package/dist/tools/index.d.cts +2 -2
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/mcpToolset.d.cts +4 -5
- package/dist/tools/mcpToolset.d.cts.map +1 -1
- package/dist/tools/mcpToolset.d.ts +4 -5
- package/dist/tools/mcpToolset.d.ts.map +1 -1
- package/dist/tools/memory.d.cts +1 -2
- package/dist/tools/memory.d.cts.map +1 -1
- package/dist/tools/memory.d.ts +1 -2
- package/dist/tools/memory.d.ts.map +1 -1
- package/dist/tools/textEditor.d.cts +2 -3
- package/dist/tools/textEditor.d.cts.map +1 -1
- package/dist/tools/textEditor.d.ts +2 -3
- package/dist/tools/textEditor.d.ts.map +1 -1
- package/dist/tools/toolSearch.d.cts +3 -4
- package/dist/tools/toolSearch.d.cts.map +1 -1
- package/dist/tools/toolSearch.d.ts +3 -4
- package/dist/tools/toolSearch.d.ts.map +1 -1
- package/dist/tools/types.d.cts +68 -69
- package/dist/tools/types.d.cts.map +1 -1
- package/dist/tools/types.d.ts +68 -69
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/webFetch.d.cts +2 -3
- package/dist/tools/webFetch.d.cts.map +1 -1
- package/dist/tools/webFetch.d.ts +2 -3
- package/dist/tools/webFetch.d.ts.map +1 -1
- package/dist/tools/webSearch.d.cts +2 -3
- package/dist/tools/webSearch.d.cts.map +1 -1
- package/dist/tools/webSearch.d.ts +2 -3
- package/dist/tools/webSearch.d.ts.map +1 -1
- package/dist/types.d.cts +27 -28
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +27 -28
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/message_inputs.cjs +47 -10
- package/dist/utils/message_inputs.cjs.map +1 -1
- package/dist/utils/message_inputs.js +47 -11
- package/dist/utils/message_inputs.js.map +1 -1
- package/dist/utils/prompts.d.cts +1 -2
- package/dist/utils/prompts.d.cts.map +1 -1
- package/dist/utils/prompts.d.ts +1 -2
- package/dist/utils/prompts.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/tools/types.d.cts
CHANGED
|
@@ -6,37 +6,37 @@ import { z } from "zod/v4";
|
|
|
6
6
|
* @beta
|
|
7
7
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/memory-tool
|
|
8
8
|
*/
|
|
9
|
-
declare const Memory20250818ViewCommandSchema: z.ZodObject<{
|
|
9
|
+
export declare const Memory20250818ViewCommandSchema: z.ZodObject<{
|
|
10
10
|
command: z.ZodLiteral<"view">;
|
|
11
11
|
path: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
declare const Memory20250818CreateCommandSchema: z.ZodObject<{
|
|
13
|
+
export declare const Memory20250818CreateCommandSchema: z.ZodObject<{
|
|
14
14
|
command: z.ZodLiteral<"create">;
|
|
15
15
|
path: z.ZodString;
|
|
16
16
|
file_text: z.ZodString;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
declare const Memory20250818StrReplaceCommandSchema: z.ZodObject<{
|
|
18
|
+
export declare const Memory20250818StrReplaceCommandSchema: z.ZodObject<{
|
|
19
19
|
command: z.ZodLiteral<"str_replace">;
|
|
20
20
|
path: z.ZodString;
|
|
21
21
|
old_str: z.ZodString;
|
|
22
22
|
new_str: z.ZodString;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
|
-
declare const Memory20250818InsertCommandSchema: z.ZodObject<{
|
|
24
|
+
export declare const Memory20250818InsertCommandSchema: z.ZodObject<{
|
|
25
25
|
command: z.ZodLiteral<"insert">;
|
|
26
26
|
path: z.ZodString;
|
|
27
27
|
insert_line: z.ZodNumber;
|
|
28
28
|
insert_text: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
-
declare const Memory20250818DeleteCommandSchema: z.ZodObject<{
|
|
30
|
+
export declare const Memory20250818DeleteCommandSchema: z.ZodObject<{
|
|
31
31
|
command: z.ZodLiteral<"delete">;
|
|
32
32
|
path: z.ZodString;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
|
-
declare const Memory20250818RenameCommandSchema: z.ZodObject<{
|
|
34
|
+
export declare const Memory20250818RenameCommandSchema: z.ZodObject<{
|
|
35
35
|
command: z.ZodLiteral<"rename">;
|
|
36
36
|
old_path: z.ZodString;
|
|
37
37
|
new_path: z.ZodString;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
|
-
declare const Memory20250818CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
export declare const Memory20250818CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
40
|
command: z.ZodLiteral<"view">;
|
|
41
41
|
path: z.ZodString;
|
|
42
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -61,17 +61,17 @@ declare const Memory20250818CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
61
61
|
old_path: z.ZodString;
|
|
62
62
|
new_path: z.ZodString;
|
|
63
63
|
}, z.core.$strip>], "command">;
|
|
64
|
-
type Memory20250818ViewCommand = z.infer<typeof Memory20250818ViewCommandSchema>;
|
|
65
|
-
type Memory20250818CreateCommand = z.infer<typeof Memory20250818CreateCommandSchema>;
|
|
66
|
-
type Memory20250818StrReplaceCommand = z.infer<typeof Memory20250818StrReplaceCommandSchema>;
|
|
67
|
-
type Memory20250818InsertCommand = z.infer<typeof Memory20250818InsertCommandSchema>;
|
|
68
|
-
type Memory20250818DeleteCommand = z.infer<typeof Memory20250818DeleteCommandSchema>;
|
|
69
|
-
type Memory20250818RenameCommand = z.infer<typeof Memory20250818RenameCommandSchema>;
|
|
70
|
-
type Memory20250818Command = z.infer<typeof Memory20250818CommandSchema>;
|
|
64
|
+
export type Memory20250818ViewCommand = z.infer<typeof Memory20250818ViewCommandSchema>;
|
|
65
|
+
export type Memory20250818CreateCommand = z.infer<typeof Memory20250818CreateCommandSchema>;
|
|
66
|
+
export type Memory20250818StrReplaceCommand = z.infer<typeof Memory20250818StrReplaceCommandSchema>;
|
|
67
|
+
export type Memory20250818InsertCommand = z.infer<typeof Memory20250818InsertCommandSchema>;
|
|
68
|
+
export type Memory20250818DeleteCommand = z.infer<typeof Memory20250818DeleteCommandSchema>;
|
|
69
|
+
export type Memory20250818RenameCommand = z.infer<typeof Memory20250818RenameCommandSchema>;
|
|
70
|
+
export type Memory20250818Command = z.infer<typeof Memory20250818CommandSchema>;
|
|
71
71
|
/**
|
|
72
72
|
* Options for creating a memory tool.
|
|
73
73
|
*/
|
|
74
|
-
interface MemoryTool20250818Options {
|
|
74
|
+
export interface MemoryTool20250818Options {
|
|
75
75
|
/**
|
|
76
76
|
* Optional execute function that handles memory command execution.
|
|
77
77
|
* In LangChain, this is typically handled separately when processing tool calls,
|
|
@@ -83,34 +83,34 @@ interface MemoryTool20250818Options {
|
|
|
83
83
|
/**
|
|
84
84
|
* Memory tool type definition.
|
|
85
85
|
*/
|
|
86
|
-
type MemoryTool20250818 = Anthropic$1.Beta.BetaMemoryTool20250818;
|
|
86
|
+
export type MemoryTool20250818 = Anthropic$1.Beta.BetaMemoryTool20250818;
|
|
87
87
|
/**
|
|
88
88
|
* Text editor tool command types for Claude 4.x models.
|
|
89
89
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool
|
|
90
90
|
*/
|
|
91
|
-
declare const TextEditor20250728ViewCommandSchema: z.ZodObject<{
|
|
91
|
+
export declare const TextEditor20250728ViewCommandSchema: z.ZodObject<{
|
|
92
92
|
command: z.ZodLiteral<"view">;
|
|
93
93
|
path: z.ZodString;
|
|
94
94
|
view_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
|
-
declare const TextEditor20250728StrReplaceCommandSchema: z.ZodObject<{
|
|
96
|
+
export declare const TextEditor20250728StrReplaceCommandSchema: z.ZodObject<{
|
|
97
97
|
command: z.ZodLiteral<"str_replace">;
|
|
98
98
|
path: z.ZodString;
|
|
99
99
|
old_str: z.ZodString;
|
|
100
100
|
new_str: z.ZodString;
|
|
101
101
|
}, z.core.$strip>;
|
|
102
|
-
declare const TextEditor20250728CreateCommandSchema: z.ZodObject<{
|
|
102
|
+
export declare const TextEditor20250728CreateCommandSchema: z.ZodObject<{
|
|
103
103
|
command: z.ZodLiteral<"create">;
|
|
104
104
|
path: z.ZodString;
|
|
105
105
|
file_text: z.ZodString;
|
|
106
106
|
}, z.core.$strip>;
|
|
107
|
-
declare const TextEditor20250728InsertCommandSchema: z.ZodObject<{
|
|
107
|
+
export declare const TextEditor20250728InsertCommandSchema: z.ZodObject<{
|
|
108
108
|
command: z.ZodLiteral<"insert">;
|
|
109
109
|
path: z.ZodString;
|
|
110
110
|
insert_line: z.ZodNumber;
|
|
111
111
|
new_str: z.ZodString;
|
|
112
112
|
}, z.core.$strip>;
|
|
113
|
-
declare const TextEditor20250728CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
export declare const TextEditor20250728CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
114
114
|
command: z.ZodLiteral<"view">;
|
|
115
115
|
path: z.ZodString;
|
|
116
116
|
view_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
@@ -129,59 +129,59 @@ declare const TextEditor20250728CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
129
129
|
insert_line: z.ZodNumber;
|
|
130
130
|
new_str: z.ZodString;
|
|
131
131
|
}, z.core.$strip>], "command">;
|
|
132
|
-
type TextEditor20250728ViewCommand = z.infer<typeof TextEditor20250728ViewCommandSchema>;
|
|
133
|
-
type TextEditor20250728StrReplaceCommand = z.infer<typeof TextEditor20250728StrReplaceCommandSchema>;
|
|
134
|
-
type TextEditor20250728CreateCommand = z.infer<typeof TextEditor20250728CreateCommandSchema>;
|
|
135
|
-
type TextEditor20250728InsertCommand = z.infer<typeof TextEditor20250728InsertCommandSchema>;
|
|
136
|
-
type TextEditor20250728Command = z.infer<typeof TextEditor20250728CommandSchema>;
|
|
132
|
+
export type TextEditor20250728ViewCommand = z.infer<typeof TextEditor20250728ViewCommandSchema>;
|
|
133
|
+
export type TextEditor20250728StrReplaceCommand = z.infer<typeof TextEditor20250728StrReplaceCommandSchema>;
|
|
134
|
+
export type TextEditor20250728CreateCommand = z.infer<typeof TextEditor20250728CreateCommandSchema>;
|
|
135
|
+
export type TextEditor20250728InsertCommand = z.infer<typeof TextEditor20250728InsertCommandSchema>;
|
|
136
|
+
export type TextEditor20250728Command = z.infer<typeof TextEditor20250728CommandSchema>;
|
|
137
137
|
/**
|
|
138
138
|
* Computer use tool action types for Claude Opus 4.5.
|
|
139
139
|
* Includes zoom action which is not available in earlier versions.
|
|
140
140
|
* @see https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool
|
|
141
141
|
*/
|
|
142
|
-
type Computer20251124Action = Computer20250124Action | ComputerZoomAction;
|
|
142
|
+
export type Computer20251124Action = Computer20250124Action | ComputerZoomAction;
|
|
143
143
|
/**
|
|
144
144
|
* Computer use tool action types for Claude Sonnet 4.5, Haiku 4.5, Opus 4.1, Sonnet 4, Opus 4, and Sonnet 3.7 versions.
|
|
145
145
|
* @see https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool
|
|
146
146
|
*/
|
|
147
|
-
type Computer20250124Action = ComputerScreenshotAction | ComputerLeftClickAction | ComputerRightClickAction | ComputerMiddleClickAction | ComputerDoubleClickAction | ComputerTripleClickAction | ComputerLeftClickDragAction | ComputerLeftMouseDownAction | ComputerLeftMouseUpAction | ComputerScrollAction | ComputerTypeAction | ComputerKeyAction | ComputerMouseMoveAction | ComputerHoldKeyAction | ComputerWaitAction;
|
|
148
|
-
declare const ComputerScreenshotActionSchema: z.ZodObject<{
|
|
147
|
+
export type Computer20250124Action = ComputerScreenshotAction | ComputerLeftClickAction | ComputerRightClickAction | ComputerMiddleClickAction | ComputerDoubleClickAction | ComputerTripleClickAction | ComputerLeftClickDragAction | ComputerLeftMouseDownAction | ComputerLeftMouseUpAction | ComputerScrollAction | ComputerTypeAction | ComputerKeyAction | ComputerMouseMoveAction | ComputerHoldKeyAction | ComputerWaitAction;
|
|
148
|
+
export declare const ComputerScreenshotActionSchema: z.ZodObject<{
|
|
149
149
|
action: z.ZodLiteral<"screenshot">;
|
|
150
150
|
}, z.core.$strip>;
|
|
151
|
-
declare const ComputerLeftClickActionSchema: z.ZodObject<{
|
|
151
|
+
export declare const ComputerLeftClickActionSchema: z.ZodObject<{
|
|
152
152
|
action: z.ZodLiteral<"left_click">;
|
|
153
153
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
154
154
|
}, z.core.$strip>;
|
|
155
|
-
declare const ComputerRightClickActionSchema: z.ZodObject<{
|
|
155
|
+
export declare const ComputerRightClickActionSchema: z.ZodObject<{
|
|
156
156
|
action: z.ZodLiteral<"right_click">;
|
|
157
157
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
158
158
|
}, z.core.$strip>;
|
|
159
|
-
declare const ComputerMiddleClickActionSchema: z.ZodObject<{
|
|
159
|
+
export declare const ComputerMiddleClickActionSchema: z.ZodObject<{
|
|
160
160
|
action: z.ZodLiteral<"middle_click">;
|
|
161
161
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
162
162
|
}, z.core.$strip>;
|
|
163
|
-
declare const ComputerDoubleClickActionSchema: z.ZodObject<{
|
|
163
|
+
export declare const ComputerDoubleClickActionSchema: z.ZodObject<{
|
|
164
164
|
action: z.ZodLiteral<"double_click">;
|
|
165
165
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
166
166
|
}, z.core.$strip>;
|
|
167
|
-
declare const ComputerTripleClickActionSchema: z.ZodObject<{
|
|
167
|
+
export declare const ComputerTripleClickActionSchema: z.ZodObject<{
|
|
168
168
|
action: z.ZodLiteral<"triple_click">;
|
|
169
169
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
170
170
|
}, z.core.$strip>;
|
|
171
|
-
declare const ComputerLeftClickDragActionSchema: z.ZodObject<{
|
|
171
|
+
export declare const ComputerLeftClickDragActionSchema: z.ZodObject<{
|
|
172
172
|
action: z.ZodLiteral<"left_click_drag">;
|
|
173
173
|
start_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
174
174
|
end_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
175
175
|
}, z.core.$strip>;
|
|
176
|
-
declare const ComputerLeftMouseDownActionSchema: z.ZodObject<{
|
|
176
|
+
export declare const ComputerLeftMouseDownActionSchema: z.ZodObject<{
|
|
177
177
|
action: z.ZodLiteral<"left_mouse_down">;
|
|
178
178
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
179
179
|
}, z.core.$strip>;
|
|
180
|
-
declare const ComputerLeftMouseUpActionSchema: z.ZodObject<{
|
|
180
|
+
export declare const ComputerLeftMouseUpActionSchema: z.ZodObject<{
|
|
181
181
|
action: z.ZodLiteral<"left_mouse_up">;
|
|
182
182
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
183
183
|
}, z.core.$strip>;
|
|
184
|
-
declare const ComputerScrollActionSchema: z.ZodObject<{
|
|
184
|
+
export declare const ComputerScrollActionSchema: z.ZodObject<{
|
|
185
185
|
action: z.ZodLiteral<"scroll">;
|
|
186
186
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
187
187
|
scroll_direction: z.ZodEnum<{
|
|
@@ -192,31 +192,31 @@ declare const ComputerScrollActionSchema: z.ZodObject<{
|
|
|
192
192
|
}>;
|
|
193
193
|
scroll_amount: z.ZodNumber;
|
|
194
194
|
}, z.core.$strip>;
|
|
195
|
-
declare const ComputerTypeActionSchema: z.ZodObject<{
|
|
195
|
+
export declare const ComputerTypeActionSchema: z.ZodObject<{
|
|
196
196
|
action: z.ZodLiteral<"type">;
|
|
197
197
|
text: z.ZodString;
|
|
198
198
|
}, z.core.$strip>;
|
|
199
|
-
declare const ComputerKeyActionSchema: z.ZodObject<{
|
|
199
|
+
export declare const ComputerKeyActionSchema: z.ZodObject<{
|
|
200
200
|
action: z.ZodLiteral<"key">;
|
|
201
201
|
key: z.ZodString;
|
|
202
202
|
}, z.core.$strip>;
|
|
203
|
-
declare const ComputerMouseMoveActionSchema: z.ZodObject<{
|
|
203
|
+
export declare const ComputerMouseMoveActionSchema: z.ZodObject<{
|
|
204
204
|
action: z.ZodLiteral<"mouse_move">;
|
|
205
205
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
206
206
|
}, z.core.$strip>;
|
|
207
|
-
declare const ComputerHoldKeyActionSchema: z.ZodObject<{
|
|
207
|
+
export declare const ComputerHoldKeyActionSchema: z.ZodObject<{
|
|
208
208
|
action: z.ZodLiteral<"hold_key">;
|
|
209
209
|
key: z.ZodString;
|
|
210
210
|
}, z.core.$strip>;
|
|
211
|
-
declare const ComputerWaitActionSchema: z.ZodObject<{
|
|
211
|
+
export declare const ComputerWaitActionSchema: z.ZodObject<{
|
|
212
212
|
action: z.ZodLiteral<"wait">;
|
|
213
213
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
214
214
|
}, z.core.$strip>;
|
|
215
|
-
declare const ComputerZoomActionSchema: z.ZodObject<{
|
|
215
|
+
export declare const ComputerZoomActionSchema: z.ZodObject<{
|
|
216
216
|
action: z.ZodLiteral<"zoom">;
|
|
217
217
|
region: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
218
218
|
}, z.core.$strip>;
|
|
219
|
-
declare const Computer20250124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
219
|
+
export declare const Computer20250124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
220
220
|
action: z.ZodLiteral<"screenshot">;
|
|
221
221
|
}, z.core.$strip>, z.ZodObject<{
|
|
222
222
|
action: z.ZodLiteral<"left_click">;
|
|
@@ -269,7 +269,7 @@ declare const Computer20250124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
269
269
|
action: z.ZodLiteral<"wait">;
|
|
270
270
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
271
271
|
}, z.core.$strip>], "action">;
|
|
272
|
-
declare const Computer20251124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
272
|
+
export declare const Computer20251124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
273
273
|
action: z.ZodLiteral<"screenshot">;
|
|
274
274
|
}, z.core.$strip>, z.ZodObject<{
|
|
275
275
|
action: z.ZodLiteral<"left_click">;
|
|
@@ -325,40 +325,39 @@ declare const Computer20251124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
325
325
|
action: z.ZodLiteral<"zoom">;
|
|
326
326
|
region: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
327
327
|
}, z.core.$strip>], "action">;
|
|
328
|
-
type ComputerScreenshotAction = z.infer<typeof ComputerScreenshotActionSchema>;
|
|
329
|
-
type ComputerLeftClickAction = z.infer<typeof ComputerLeftClickActionSchema>;
|
|
330
|
-
type ComputerRightClickAction = z.infer<typeof ComputerRightClickActionSchema>;
|
|
331
|
-
type ComputerMiddleClickAction = z.infer<typeof ComputerMiddleClickActionSchema>;
|
|
332
|
-
type ComputerDoubleClickAction = z.infer<typeof ComputerDoubleClickActionSchema>;
|
|
333
|
-
type ComputerTripleClickAction = z.infer<typeof ComputerTripleClickActionSchema>;
|
|
334
|
-
type ComputerLeftClickDragAction = z.infer<typeof ComputerLeftClickDragActionSchema>;
|
|
335
|
-
type ComputerLeftMouseDownAction = z.infer<typeof ComputerLeftMouseDownActionSchema>;
|
|
336
|
-
type ComputerLeftMouseUpAction = z.infer<typeof ComputerLeftMouseUpActionSchema>;
|
|
337
|
-
type ComputerScrollAction = z.infer<typeof ComputerScrollActionSchema>;
|
|
338
|
-
type ComputerTypeAction = z.infer<typeof ComputerTypeActionSchema>;
|
|
339
|
-
type ComputerKeyAction = z.infer<typeof ComputerKeyActionSchema>;
|
|
340
|
-
type ComputerMouseMoveAction = z.infer<typeof ComputerMouseMoveActionSchema>;
|
|
341
|
-
type ComputerHoldKeyAction = z.infer<typeof ComputerHoldKeyActionSchema>;
|
|
342
|
-
type ComputerWaitAction = z.infer<typeof ComputerWaitActionSchema>;
|
|
343
|
-
type ComputerZoomAction = z.infer<typeof ComputerZoomActionSchema>;
|
|
328
|
+
export type ComputerScreenshotAction = z.infer<typeof ComputerScreenshotActionSchema>;
|
|
329
|
+
export type ComputerLeftClickAction = z.infer<typeof ComputerLeftClickActionSchema>;
|
|
330
|
+
export type ComputerRightClickAction = z.infer<typeof ComputerRightClickActionSchema>;
|
|
331
|
+
export type ComputerMiddleClickAction = z.infer<typeof ComputerMiddleClickActionSchema>;
|
|
332
|
+
export type ComputerDoubleClickAction = z.infer<typeof ComputerDoubleClickActionSchema>;
|
|
333
|
+
export type ComputerTripleClickAction = z.infer<typeof ComputerTripleClickActionSchema>;
|
|
334
|
+
export type ComputerLeftClickDragAction = z.infer<typeof ComputerLeftClickDragActionSchema>;
|
|
335
|
+
export type ComputerLeftMouseDownAction = z.infer<typeof ComputerLeftMouseDownActionSchema>;
|
|
336
|
+
export type ComputerLeftMouseUpAction = z.infer<typeof ComputerLeftMouseUpActionSchema>;
|
|
337
|
+
export type ComputerScrollAction = z.infer<typeof ComputerScrollActionSchema>;
|
|
338
|
+
export type ComputerTypeAction = z.infer<typeof ComputerTypeActionSchema>;
|
|
339
|
+
export type ComputerKeyAction = z.infer<typeof ComputerKeyActionSchema>;
|
|
340
|
+
export type ComputerMouseMoveAction = z.infer<typeof ComputerMouseMoveActionSchema>;
|
|
341
|
+
export type ComputerHoldKeyAction = z.infer<typeof ComputerHoldKeyActionSchema>;
|
|
342
|
+
export type ComputerWaitAction = z.infer<typeof ComputerWaitActionSchema>;
|
|
343
|
+
export type ComputerZoomAction = z.infer<typeof ComputerZoomActionSchema>;
|
|
344
344
|
/**
|
|
345
345
|
* Bash tool command types for Claude 4 models and Claude 3.7.
|
|
346
346
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/bash-tool
|
|
347
347
|
*/
|
|
348
|
-
declare const Bash20250124ExecuteCommandSchema: z.ZodObject<{
|
|
348
|
+
export declare const Bash20250124ExecuteCommandSchema: z.ZodObject<{
|
|
349
349
|
command: z.ZodString;
|
|
350
350
|
}, z.core.$strip>;
|
|
351
|
-
declare const Bash20250124RestartCommandSchema: z.ZodObject<{
|
|
351
|
+
export declare const Bash20250124RestartCommandSchema: z.ZodObject<{
|
|
352
352
|
restart: z.ZodLiteral<true>;
|
|
353
353
|
}, z.core.$strip>;
|
|
354
|
-
declare const Bash20250124CommandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
354
|
+
export declare const Bash20250124CommandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
355
355
|
command: z.ZodString;
|
|
356
356
|
}, z.core.$strip>, z.ZodObject<{
|
|
357
357
|
restart: z.ZodLiteral<true>;
|
|
358
358
|
}, z.core.$strip>]>;
|
|
359
|
-
type Bash20250124ExecuteCommand = z.infer<typeof Bash20250124ExecuteCommandSchema>;
|
|
360
|
-
type Bash20250124RestartCommand = z.infer<typeof Bash20250124RestartCommandSchema>;
|
|
361
|
-
type Bash20250124Command = z.infer<typeof Bash20250124CommandSchema>;
|
|
359
|
+
export type Bash20250124ExecuteCommand = z.infer<typeof Bash20250124ExecuteCommandSchema>;
|
|
360
|
+
export type Bash20250124RestartCommand = z.infer<typeof Bash20250124RestartCommandSchema>;
|
|
361
|
+
export type Bash20250124Command = z.infer<typeof Bash20250124CommandSchema>;
|
|
362
362
|
//#endregion
|
|
363
|
-
export { Bash20250124Command, Bash20250124CommandSchema, Bash20250124ExecuteCommand, Bash20250124ExecuteCommandSchema, Bash20250124RestartCommand, Bash20250124RestartCommandSchema, Computer20250124Action, Computer20250124ActionSchema, Computer20251124Action, Computer20251124ActionSchema, ComputerDoubleClickAction, ComputerDoubleClickActionSchema, ComputerHoldKeyAction, ComputerHoldKeyActionSchema, ComputerKeyAction, ComputerKeyActionSchema, ComputerLeftClickAction, ComputerLeftClickActionSchema, ComputerLeftClickDragAction, ComputerLeftClickDragActionSchema, ComputerLeftMouseDownAction, ComputerLeftMouseDownActionSchema, ComputerLeftMouseUpAction, ComputerLeftMouseUpActionSchema, ComputerMiddleClickAction, ComputerMiddleClickActionSchema, ComputerMouseMoveAction, ComputerMouseMoveActionSchema, ComputerRightClickAction, ComputerRightClickActionSchema, ComputerScreenshotAction, ComputerScreenshotActionSchema, ComputerScrollAction, ComputerScrollActionSchema, ComputerTripleClickAction, ComputerTripleClickActionSchema, ComputerTypeAction, ComputerTypeActionSchema, ComputerWaitAction, ComputerWaitActionSchema, ComputerZoomAction, ComputerZoomActionSchema, Memory20250818Command, Memory20250818CommandSchema, Memory20250818CreateCommand, Memory20250818CreateCommandSchema, Memory20250818DeleteCommand, Memory20250818DeleteCommandSchema, Memory20250818InsertCommand, Memory20250818InsertCommandSchema, Memory20250818RenameCommand, Memory20250818RenameCommandSchema, Memory20250818StrReplaceCommand, Memory20250818StrReplaceCommandSchema, Memory20250818ViewCommand, Memory20250818ViewCommandSchema, MemoryTool20250818, MemoryTool20250818Options, TextEditor20250728Command, TextEditor20250728CommandSchema, TextEditor20250728CreateCommand, TextEditor20250728CreateCommandSchema, TextEditor20250728InsertCommand, TextEditor20250728InsertCommandSchema, TextEditor20250728StrReplaceCommand, TextEditor20250728StrReplaceCommandSchema, TextEditor20250728ViewCommand, TextEditor20250728ViewCommandSchema };
|
|
364
363
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/tools/types.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":["Anthropic"],"sources":["../../src/tools/types.ts"],"mappings":"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"}
|
package/dist/tools/types.d.ts
CHANGED
|
@@ -6,37 +6,37 @@ import { z } from "zod/v4";
|
|
|
6
6
|
* @beta
|
|
7
7
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/memory-tool
|
|
8
8
|
*/
|
|
9
|
-
declare const Memory20250818ViewCommandSchema: z.ZodObject<{
|
|
9
|
+
export declare const Memory20250818ViewCommandSchema: z.ZodObject<{
|
|
10
10
|
command: z.ZodLiteral<"view">;
|
|
11
11
|
path: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
declare const Memory20250818CreateCommandSchema: z.ZodObject<{
|
|
13
|
+
export declare const Memory20250818CreateCommandSchema: z.ZodObject<{
|
|
14
14
|
command: z.ZodLiteral<"create">;
|
|
15
15
|
path: z.ZodString;
|
|
16
16
|
file_text: z.ZodString;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
declare const Memory20250818StrReplaceCommandSchema: z.ZodObject<{
|
|
18
|
+
export declare const Memory20250818StrReplaceCommandSchema: z.ZodObject<{
|
|
19
19
|
command: z.ZodLiteral<"str_replace">;
|
|
20
20
|
path: z.ZodString;
|
|
21
21
|
old_str: z.ZodString;
|
|
22
22
|
new_str: z.ZodString;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
|
-
declare const Memory20250818InsertCommandSchema: z.ZodObject<{
|
|
24
|
+
export declare const Memory20250818InsertCommandSchema: z.ZodObject<{
|
|
25
25
|
command: z.ZodLiteral<"insert">;
|
|
26
26
|
path: z.ZodString;
|
|
27
27
|
insert_line: z.ZodNumber;
|
|
28
28
|
insert_text: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
-
declare const Memory20250818DeleteCommandSchema: z.ZodObject<{
|
|
30
|
+
export declare const Memory20250818DeleteCommandSchema: z.ZodObject<{
|
|
31
31
|
command: z.ZodLiteral<"delete">;
|
|
32
32
|
path: z.ZodString;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
|
-
declare const Memory20250818RenameCommandSchema: z.ZodObject<{
|
|
34
|
+
export declare const Memory20250818RenameCommandSchema: z.ZodObject<{
|
|
35
35
|
command: z.ZodLiteral<"rename">;
|
|
36
36
|
old_path: z.ZodString;
|
|
37
37
|
new_path: z.ZodString;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
|
-
declare const Memory20250818CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
export declare const Memory20250818CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
40
|
command: z.ZodLiteral<"view">;
|
|
41
41
|
path: z.ZodString;
|
|
42
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -61,17 +61,17 @@ declare const Memory20250818CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
61
61
|
old_path: z.ZodString;
|
|
62
62
|
new_path: z.ZodString;
|
|
63
63
|
}, z.core.$strip>], "command">;
|
|
64
|
-
type Memory20250818ViewCommand = z.infer<typeof Memory20250818ViewCommandSchema>;
|
|
65
|
-
type Memory20250818CreateCommand = z.infer<typeof Memory20250818CreateCommandSchema>;
|
|
66
|
-
type Memory20250818StrReplaceCommand = z.infer<typeof Memory20250818StrReplaceCommandSchema>;
|
|
67
|
-
type Memory20250818InsertCommand = z.infer<typeof Memory20250818InsertCommandSchema>;
|
|
68
|
-
type Memory20250818DeleteCommand = z.infer<typeof Memory20250818DeleteCommandSchema>;
|
|
69
|
-
type Memory20250818RenameCommand = z.infer<typeof Memory20250818RenameCommandSchema>;
|
|
70
|
-
type Memory20250818Command = z.infer<typeof Memory20250818CommandSchema>;
|
|
64
|
+
export type Memory20250818ViewCommand = z.infer<typeof Memory20250818ViewCommandSchema>;
|
|
65
|
+
export type Memory20250818CreateCommand = z.infer<typeof Memory20250818CreateCommandSchema>;
|
|
66
|
+
export type Memory20250818StrReplaceCommand = z.infer<typeof Memory20250818StrReplaceCommandSchema>;
|
|
67
|
+
export type Memory20250818InsertCommand = z.infer<typeof Memory20250818InsertCommandSchema>;
|
|
68
|
+
export type Memory20250818DeleteCommand = z.infer<typeof Memory20250818DeleteCommandSchema>;
|
|
69
|
+
export type Memory20250818RenameCommand = z.infer<typeof Memory20250818RenameCommandSchema>;
|
|
70
|
+
export type Memory20250818Command = z.infer<typeof Memory20250818CommandSchema>;
|
|
71
71
|
/**
|
|
72
72
|
* Options for creating a memory tool.
|
|
73
73
|
*/
|
|
74
|
-
interface MemoryTool20250818Options {
|
|
74
|
+
export interface MemoryTool20250818Options {
|
|
75
75
|
/**
|
|
76
76
|
* Optional execute function that handles memory command execution.
|
|
77
77
|
* In LangChain, this is typically handled separately when processing tool calls,
|
|
@@ -83,34 +83,34 @@ interface MemoryTool20250818Options {
|
|
|
83
83
|
/**
|
|
84
84
|
* Memory tool type definition.
|
|
85
85
|
*/
|
|
86
|
-
type MemoryTool20250818 = Anthropic$1.Beta.BetaMemoryTool20250818;
|
|
86
|
+
export type MemoryTool20250818 = Anthropic$1.Beta.BetaMemoryTool20250818;
|
|
87
87
|
/**
|
|
88
88
|
* Text editor tool command types for Claude 4.x models.
|
|
89
89
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool
|
|
90
90
|
*/
|
|
91
|
-
declare const TextEditor20250728ViewCommandSchema: z.ZodObject<{
|
|
91
|
+
export declare const TextEditor20250728ViewCommandSchema: z.ZodObject<{
|
|
92
92
|
command: z.ZodLiteral<"view">;
|
|
93
93
|
path: z.ZodString;
|
|
94
94
|
view_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
|
-
declare const TextEditor20250728StrReplaceCommandSchema: z.ZodObject<{
|
|
96
|
+
export declare const TextEditor20250728StrReplaceCommandSchema: z.ZodObject<{
|
|
97
97
|
command: z.ZodLiteral<"str_replace">;
|
|
98
98
|
path: z.ZodString;
|
|
99
99
|
old_str: z.ZodString;
|
|
100
100
|
new_str: z.ZodString;
|
|
101
101
|
}, z.core.$strip>;
|
|
102
|
-
declare const TextEditor20250728CreateCommandSchema: z.ZodObject<{
|
|
102
|
+
export declare const TextEditor20250728CreateCommandSchema: z.ZodObject<{
|
|
103
103
|
command: z.ZodLiteral<"create">;
|
|
104
104
|
path: z.ZodString;
|
|
105
105
|
file_text: z.ZodString;
|
|
106
106
|
}, z.core.$strip>;
|
|
107
|
-
declare const TextEditor20250728InsertCommandSchema: z.ZodObject<{
|
|
107
|
+
export declare const TextEditor20250728InsertCommandSchema: z.ZodObject<{
|
|
108
108
|
command: z.ZodLiteral<"insert">;
|
|
109
109
|
path: z.ZodString;
|
|
110
110
|
insert_line: z.ZodNumber;
|
|
111
111
|
new_str: z.ZodString;
|
|
112
112
|
}, z.core.$strip>;
|
|
113
|
-
declare const TextEditor20250728CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
export declare const TextEditor20250728CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
114
114
|
command: z.ZodLiteral<"view">;
|
|
115
115
|
path: z.ZodString;
|
|
116
116
|
view_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
@@ -129,59 +129,59 @@ declare const TextEditor20250728CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
129
129
|
insert_line: z.ZodNumber;
|
|
130
130
|
new_str: z.ZodString;
|
|
131
131
|
}, z.core.$strip>], "command">;
|
|
132
|
-
type TextEditor20250728ViewCommand = z.infer<typeof TextEditor20250728ViewCommandSchema>;
|
|
133
|
-
type TextEditor20250728StrReplaceCommand = z.infer<typeof TextEditor20250728StrReplaceCommandSchema>;
|
|
134
|
-
type TextEditor20250728CreateCommand = z.infer<typeof TextEditor20250728CreateCommandSchema>;
|
|
135
|
-
type TextEditor20250728InsertCommand = z.infer<typeof TextEditor20250728InsertCommandSchema>;
|
|
136
|
-
type TextEditor20250728Command = z.infer<typeof TextEditor20250728CommandSchema>;
|
|
132
|
+
export type TextEditor20250728ViewCommand = z.infer<typeof TextEditor20250728ViewCommandSchema>;
|
|
133
|
+
export type TextEditor20250728StrReplaceCommand = z.infer<typeof TextEditor20250728StrReplaceCommandSchema>;
|
|
134
|
+
export type TextEditor20250728CreateCommand = z.infer<typeof TextEditor20250728CreateCommandSchema>;
|
|
135
|
+
export type TextEditor20250728InsertCommand = z.infer<typeof TextEditor20250728InsertCommandSchema>;
|
|
136
|
+
export type TextEditor20250728Command = z.infer<typeof TextEditor20250728CommandSchema>;
|
|
137
137
|
/**
|
|
138
138
|
* Computer use tool action types for Claude Opus 4.5.
|
|
139
139
|
* Includes zoom action which is not available in earlier versions.
|
|
140
140
|
* @see https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool
|
|
141
141
|
*/
|
|
142
|
-
type Computer20251124Action = Computer20250124Action | ComputerZoomAction;
|
|
142
|
+
export type Computer20251124Action = Computer20250124Action | ComputerZoomAction;
|
|
143
143
|
/**
|
|
144
144
|
* Computer use tool action types for Claude Sonnet 4.5, Haiku 4.5, Opus 4.1, Sonnet 4, Opus 4, and Sonnet 3.7 versions.
|
|
145
145
|
* @see https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool
|
|
146
146
|
*/
|
|
147
|
-
type Computer20250124Action = ComputerScreenshotAction | ComputerLeftClickAction | ComputerRightClickAction | ComputerMiddleClickAction | ComputerDoubleClickAction | ComputerTripleClickAction | ComputerLeftClickDragAction | ComputerLeftMouseDownAction | ComputerLeftMouseUpAction | ComputerScrollAction | ComputerTypeAction | ComputerKeyAction | ComputerMouseMoveAction | ComputerHoldKeyAction | ComputerWaitAction;
|
|
148
|
-
declare const ComputerScreenshotActionSchema: z.ZodObject<{
|
|
147
|
+
export type Computer20250124Action = ComputerScreenshotAction | ComputerLeftClickAction | ComputerRightClickAction | ComputerMiddleClickAction | ComputerDoubleClickAction | ComputerTripleClickAction | ComputerLeftClickDragAction | ComputerLeftMouseDownAction | ComputerLeftMouseUpAction | ComputerScrollAction | ComputerTypeAction | ComputerKeyAction | ComputerMouseMoveAction | ComputerHoldKeyAction | ComputerWaitAction;
|
|
148
|
+
export declare const ComputerScreenshotActionSchema: z.ZodObject<{
|
|
149
149
|
action: z.ZodLiteral<"screenshot">;
|
|
150
150
|
}, z.core.$strip>;
|
|
151
|
-
declare const ComputerLeftClickActionSchema: z.ZodObject<{
|
|
151
|
+
export declare const ComputerLeftClickActionSchema: z.ZodObject<{
|
|
152
152
|
action: z.ZodLiteral<"left_click">;
|
|
153
153
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
154
154
|
}, z.core.$strip>;
|
|
155
|
-
declare const ComputerRightClickActionSchema: z.ZodObject<{
|
|
155
|
+
export declare const ComputerRightClickActionSchema: z.ZodObject<{
|
|
156
156
|
action: z.ZodLiteral<"right_click">;
|
|
157
157
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
158
158
|
}, z.core.$strip>;
|
|
159
|
-
declare const ComputerMiddleClickActionSchema: z.ZodObject<{
|
|
159
|
+
export declare const ComputerMiddleClickActionSchema: z.ZodObject<{
|
|
160
160
|
action: z.ZodLiteral<"middle_click">;
|
|
161
161
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
162
162
|
}, z.core.$strip>;
|
|
163
|
-
declare const ComputerDoubleClickActionSchema: z.ZodObject<{
|
|
163
|
+
export declare const ComputerDoubleClickActionSchema: z.ZodObject<{
|
|
164
164
|
action: z.ZodLiteral<"double_click">;
|
|
165
165
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
166
166
|
}, z.core.$strip>;
|
|
167
|
-
declare const ComputerTripleClickActionSchema: z.ZodObject<{
|
|
167
|
+
export declare const ComputerTripleClickActionSchema: z.ZodObject<{
|
|
168
168
|
action: z.ZodLiteral<"triple_click">;
|
|
169
169
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
170
170
|
}, z.core.$strip>;
|
|
171
|
-
declare const ComputerLeftClickDragActionSchema: z.ZodObject<{
|
|
171
|
+
export declare const ComputerLeftClickDragActionSchema: z.ZodObject<{
|
|
172
172
|
action: z.ZodLiteral<"left_click_drag">;
|
|
173
173
|
start_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
174
174
|
end_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
175
175
|
}, z.core.$strip>;
|
|
176
|
-
declare const ComputerLeftMouseDownActionSchema: z.ZodObject<{
|
|
176
|
+
export declare const ComputerLeftMouseDownActionSchema: z.ZodObject<{
|
|
177
177
|
action: z.ZodLiteral<"left_mouse_down">;
|
|
178
178
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
179
179
|
}, z.core.$strip>;
|
|
180
|
-
declare const ComputerLeftMouseUpActionSchema: z.ZodObject<{
|
|
180
|
+
export declare const ComputerLeftMouseUpActionSchema: z.ZodObject<{
|
|
181
181
|
action: z.ZodLiteral<"left_mouse_up">;
|
|
182
182
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
183
183
|
}, z.core.$strip>;
|
|
184
|
-
declare const ComputerScrollActionSchema: z.ZodObject<{
|
|
184
|
+
export declare const ComputerScrollActionSchema: z.ZodObject<{
|
|
185
185
|
action: z.ZodLiteral<"scroll">;
|
|
186
186
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
187
187
|
scroll_direction: z.ZodEnum<{
|
|
@@ -192,31 +192,31 @@ declare const ComputerScrollActionSchema: z.ZodObject<{
|
|
|
192
192
|
}>;
|
|
193
193
|
scroll_amount: z.ZodNumber;
|
|
194
194
|
}, z.core.$strip>;
|
|
195
|
-
declare const ComputerTypeActionSchema: z.ZodObject<{
|
|
195
|
+
export declare const ComputerTypeActionSchema: z.ZodObject<{
|
|
196
196
|
action: z.ZodLiteral<"type">;
|
|
197
197
|
text: z.ZodString;
|
|
198
198
|
}, z.core.$strip>;
|
|
199
|
-
declare const ComputerKeyActionSchema: z.ZodObject<{
|
|
199
|
+
export declare const ComputerKeyActionSchema: z.ZodObject<{
|
|
200
200
|
action: z.ZodLiteral<"key">;
|
|
201
201
|
key: z.ZodString;
|
|
202
202
|
}, z.core.$strip>;
|
|
203
|
-
declare const ComputerMouseMoveActionSchema: z.ZodObject<{
|
|
203
|
+
export declare const ComputerMouseMoveActionSchema: z.ZodObject<{
|
|
204
204
|
action: z.ZodLiteral<"mouse_move">;
|
|
205
205
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
206
206
|
}, z.core.$strip>;
|
|
207
|
-
declare const ComputerHoldKeyActionSchema: z.ZodObject<{
|
|
207
|
+
export declare const ComputerHoldKeyActionSchema: z.ZodObject<{
|
|
208
208
|
action: z.ZodLiteral<"hold_key">;
|
|
209
209
|
key: z.ZodString;
|
|
210
210
|
}, z.core.$strip>;
|
|
211
|
-
declare const ComputerWaitActionSchema: z.ZodObject<{
|
|
211
|
+
export declare const ComputerWaitActionSchema: z.ZodObject<{
|
|
212
212
|
action: z.ZodLiteral<"wait">;
|
|
213
213
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
214
214
|
}, z.core.$strip>;
|
|
215
|
-
declare const ComputerZoomActionSchema: z.ZodObject<{
|
|
215
|
+
export declare const ComputerZoomActionSchema: z.ZodObject<{
|
|
216
216
|
action: z.ZodLiteral<"zoom">;
|
|
217
217
|
region: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
218
218
|
}, z.core.$strip>;
|
|
219
|
-
declare const Computer20250124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
219
|
+
export declare const Computer20250124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
220
220
|
action: z.ZodLiteral<"screenshot">;
|
|
221
221
|
}, z.core.$strip>, z.ZodObject<{
|
|
222
222
|
action: z.ZodLiteral<"left_click">;
|
|
@@ -269,7 +269,7 @@ declare const Computer20250124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
269
269
|
action: z.ZodLiteral<"wait">;
|
|
270
270
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
271
271
|
}, z.core.$strip>], "action">;
|
|
272
|
-
declare const Computer20251124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
272
|
+
export declare const Computer20251124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
273
273
|
action: z.ZodLiteral<"screenshot">;
|
|
274
274
|
}, z.core.$strip>, z.ZodObject<{
|
|
275
275
|
action: z.ZodLiteral<"left_click">;
|
|
@@ -325,40 +325,39 @@ declare const Computer20251124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
325
325
|
action: z.ZodLiteral<"zoom">;
|
|
326
326
|
region: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
327
327
|
}, z.core.$strip>], "action">;
|
|
328
|
-
type ComputerScreenshotAction = z.infer<typeof ComputerScreenshotActionSchema>;
|
|
329
|
-
type ComputerLeftClickAction = z.infer<typeof ComputerLeftClickActionSchema>;
|
|
330
|
-
type ComputerRightClickAction = z.infer<typeof ComputerRightClickActionSchema>;
|
|
331
|
-
type ComputerMiddleClickAction = z.infer<typeof ComputerMiddleClickActionSchema>;
|
|
332
|
-
type ComputerDoubleClickAction = z.infer<typeof ComputerDoubleClickActionSchema>;
|
|
333
|
-
type ComputerTripleClickAction = z.infer<typeof ComputerTripleClickActionSchema>;
|
|
334
|
-
type ComputerLeftClickDragAction = z.infer<typeof ComputerLeftClickDragActionSchema>;
|
|
335
|
-
type ComputerLeftMouseDownAction = z.infer<typeof ComputerLeftMouseDownActionSchema>;
|
|
336
|
-
type ComputerLeftMouseUpAction = z.infer<typeof ComputerLeftMouseUpActionSchema>;
|
|
337
|
-
type ComputerScrollAction = z.infer<typeof ComputerScrollActionSchema>;
|
|
338
|
-
type ComputerTypeAction = z.infer<typeof ComputerTypeActionSchema>;
|
|
339
|
-
type ComputerKeyAction = z.infer<typeof ComputerKeyActionSchema>;
|
|
340
|
-
type ComputerMouseMoveAction = z.infer<typeof ComputerMouseMoveActionSchema>;
|
|
341
|
-
type ComputerHoldKeyAction = z.infer<typeof ComputerHoldKeyActionSchema>;
|
|
342
|
-
type ComputerWaitAction = z.infer<typeof ComputerWaitActionSchema>;
|
|
343
|
-
type ComputerZoomAction = z.infer<typeof ComputerZoomActionSchema>;
|
|
328
|
+
export type ComputerScreenshotAction = z.infer<typeof ComputerScreenshotActionSchema>;
|
|
329
|
+
export type ComputerLeftClickAction = z.infer<typeof ComputerLeftClickActionSchema>;
|
|
330
|
+
export type ComputerRightClickAction = z.infer<typeof ComputerRightClickActionSchema>;
|
|
331
|
+
export type ComputerMiddleClickAction = z.infer<typeof ComputerMiddleClickActionSchema>;
|
|
332
|
+
export type ComputerDoubleClickAction = z.infer<typeof ComputerDoubleClickActionSchema>;
|
|
333
|
+
export type ComputerTripleClickAction = z.infer<typeof ComputerTripleClickActionSchema>;
|
|
334
|
+
export type ComputerLeftClickDragAction = z.infer<typeof ComputerLeftClickDragActionSchema>;
|
|
335
|
+
export type ComputerLeftMouseDownAction = z.infer<typeof ComputerLeftMouseDownActionSchema>;
|
|
336
|
+
export type ComputerLeftMouseUpAction = z.infer<typeof ComputerLeftMouseUpActionSchema>;
|
|
337
|
+
export type ComputerScrollAction = z.infer<typeof ComputerScrollActionSchema>;
|
|
338
|
+
export type ComputerTypeAction = z.infer<typeof ComputerTypeActionSchema>;
|
|
339
|
+
export type ComputerKeyAction = z.infer<typeof ComputerKeyActionSchema>;
|
|
340
|
+
export type ComputerMouseMoveAction = z.infer<typeof ComputerMouseMoveActionSchema>;
|
|
341
|
+
export type ComputerHoldKeyAction = z.infer<typeof ComputerHoldKeyActionSchema>;
|
|
342
|
+
export type ComputerWaitAction = z.infer<typeof ComputerWaitActionSchema>;
|
|
343
|
+
export type ComputerZoomAction = z.infer<typeof ComputerZoomActionSchema>;
|
|
344
344
|
/**
|
|
345
345
|
* Bash tool command types for Claude 4 models and Claude 3.7.
|
|
346
346
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/bash-tool
|
|
347
347
|
*/
|
|
348
|
-
declare const Bash20250124ExecuteCommandSchema: z.ZodObject<{
|
|
348
|
+
export declare const Bash20250124ExecuteCommandSchema: z.ZodObject<{
|
|
349
349
|
command: z.ZodString;
|
|
350
350
|
}, z.core.$strip>;
|
|
351
|
-
declare const Bash20250124RestartCommandSchema: z.ZodObject<{
|
|
351
|
+
export declare const Bash20250124RestartCommandSchema: z.ZodObject<{
|
|
352
352
|
restart: z.ZodLiteral<true>;
|
|
353
353
|
}, z.core.$strip>;
|
|
354
|
-
declare const Bash20250124CommandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
354
|
+
export declare const Bash20250124CommandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
355
355
|
command: z.ZodString;
|
|
356
356
|
}, z.core.$strip>, z.ZodObject<{
|
|
357
357
|
restart: z.ZodLiteral<true>;
|
|
358
358
|
}, z.core.$strip>]>;
|
|
359
|
-
type Bash20250124ExecuteCommand = z.infer<typeof Bash20250124ExecuteCommandSchema>;
|
|
360
|
-
type Bash20250124RestartCommand = z.infer<typeof Bash20250124RestartCommandSchema>;
|
|
361
|
-
type Bash20250124Command = z.infer<typeof Bash20250124CommandSchema>;
|
|
359
|
+
export type Bash20250124ExecuteCommand = z.infer<typeof Bash20250124ExecuteCommandSchema>;
|
|
360
|
+
export type Bash20250124RestartCommand = z.infer<typeof Bash20250124RestartCommandSchema>;
|
|
361
|
+
export type Bash20250124Command = z.infer<typeof Bash20250124CommandSchema>;
|
|
362
362
|
//#endregion
|
|
363
|
-
export { Bash20250124Command, Bash20250124CommandSchema, Bash20250124ExecuteCommand, Bash20250124ExecuteCommandSchema, Bash20250124RestartCommand, Bash20250124RestartCommandSchema, Computer20250124Action, Computer20250124ActionSchema, Computer20251124Action, Computer20251124ActionSchema, ComputerDoubleClickAction, ComputerDoubleClickActionSchema, ComputerHoldKeyAction, ComputerHoldKeyActionSchema, ComputerKeyAction, ComputerKeyActionSchema, ComputerLeftClickAction, ComputerLeftClickActionSchema, ComputerLeftClickDragAction, ComputerLeftClickDragActionSchema, ComputerLeftMouseDownAction, ComputerLeftMouseDownActionSchema, ComputerLeftMouseUpAction, ComputerLeftMouseUpActionSchema, ComputerMiddleClickAction, ComputerMiddleClickActionSchema, ComputerMouseMoveAction, ComputerMouseMoveActionSchema, ComputerRightClickAction, ComputerRightClickActionSchema, ComputerScreenshotAction, ComputerScreenshotActionSchema, ComputerScrollAction, ComputerScrollActionSchema, ComputerTripleClickAction, ComputerTripleClickActionSchema, ComputerTypeAction, ComputerTypeActionSchema, ComputerWaitAction, ComputerWaitActionSchema, ComputerZoomAction, ComputerZoomActionSchema, Memory20250818Command, Memory20250818CommandSchema, Memory20250818CreateCommand, Memory20250818CreateCommandSchema, Memory20250818DeleteCommand, Memory20250818DeleteCommandSchema, Memory20250818InsertCommand, Memory20250818InsertCommandSchema, Memory20250818RenameCommand, Memory20250818RenameCommandSchema, Memory20250818StrReplaceCommand, Memory20250818StrReplaceCommandSchema, Memory20250818ViewCommand, Memory20250818ViewCommandSchema, MemoryTool20250818, MemoryTool20250818Options, TextEditor20250728Command, TextEditor20250728CommandSchema, TextEditor20250728CreateCommand, TextEditor20250728CreateCommandSchema, TextEditor20250728InsertCommand, TextEditor20250728InsertCommandSchema, TextEditor20250728StrReplaceCommand, TextEditor20250728StrReplaceCommandSchema, TextEditor20250728ViewCommand, TextEditor20250728ViewCommandSchema };
|
|
364
363
|
//# sourceMappingURL=types.d.ts.map
|