@ai-sdk/anthropic 0.0.50 → 0.0.53

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 CHANGED
@@ -1,5 +1,38 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 0.0.53
4
+
5
+ ### Patch Changes
6
+
7
+ - 3b1b69a: feat (provider/anthropic): add computer use tools
8
+ - 3b1b69a: feat: provider-defined tools
9
+ - 8c222cd: feat (provider/anthropic): update model ids
10
+ - 811a317: feat (ai/core): multi-part tool results (incl. images)
11
+ - Updated dependencies [aa98cdb]
12
+ - Updated dependencies [1486128]
13
+ - Updated dependencies [7b937c5]
14
+ - Updated dependencies [3b1b69a]
15
+ - Updated dependencies [811a317]
16
+ - @ai-sdk/provider-utils@1.0.22
17
+ - @ai-sdk/provider@0.0.26
18
+
19
+ ## 0.0.52
20
+
21
+ ### Patch Changes
22
+
23
+ - b9b0d7b: feat (ai): access raw request body
24
+ - Updated dependencies [b9b0d7b]
25
+ - @ai-sdk/provider@0.0.25
26
+ - @ai-sdk/provider-utils@1.0.21
27
+
28
+ ## 0.0.51
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [d595d0d]
33
+ - @ai-sdk/provider@0.0.24
34
+ - @ai-sdk/provider-utils@1.0.20
35
+
3
36
  ## 0.0.50
4
37
 
5
38
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Vercel AI SDK - Anthropic Provider
1
+ # AI SDK - Anthropic Provider
2
2
 
3
- The **[Anthropic provider](https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic)** for the [Vercel AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).
3
+ The **[Anthropic provider](https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).
4
4
 
5
5
  ## Setup
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { LanguageModelV1, ProviderV1 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
+ import { z } from 'zod';
3
4
 
4
- type AnthropicMessagesModelId = 'claude-3-5-sonnet-20240620' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
5
+ type AnthropicMessagesModelId = 'claude-3-5-sonnet-latest' | 'claude-3-5-sonnet-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-opus-latest' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
5
6
  interface AnthropicMessagesSettings {
6
7
  /**
7
8
  Only sample from the top K options for each subsequent token.
@@ -40,6 +41,194 @@ declare class AnthropicMessagesLanguageModel implements LanguageModelV1 {
40
41
  doStream(options: Parameters<LanguageModelV1['doStream']>[0]): Promise<Awaited<ReturnType<LanguageModelV1['doStream']>>>;
41
42
  }
42
43
 
44
+ type ExecuteFunction<PARAMETERS, RESULT> = undefined | ((args: PARAMETERS, options: {
45
+ abortSignal?: AbortSignal;
46
+ }) => Promise<RESULT>);
47
+ type ToolResultContent = Array<{
48
+ type: 'text';
49
+ text: string;
50
+ } | {
51
+ type: 'image';
52
+ data: string;
53
+ mimeType?: string;
54
+ }>;
55
+ declare const Bash20241022Parameters: z.ZodObject<{
56
+ command: z.ZodString;
57
+ restart: z.ZodOptional<z.ZodBoolean>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ command: string;
60
+ restart?: boolean | undefined;
61
+ }, {
62
+ command: string;
63
+ restart?: boolean | undefined;
64
+ }>;
65
+ /**
66
+ * Creates a tool for running a bash command. Must have name "bash".
67
+ *
68
+ * Image results are supported.
69
+ *
70
+ * @param execute - The function to execute the tool. Optional.
71
+ */
72
+ declare function bashTool_20241022<RESULT>(options?: {
73
+ execute?: ExecuteFunction<{
74
+ /**
75
+ * The bash command to run. Required unless the tool is being restarted.
76
+ */
77
+ command: string;
78
+ /**
79
+ * Specifying true will restart this tool. Otherwise, leave this unspecified.
80
+ */
81
+ restart?: boolean;
82
+ }, RESULT>;
83
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
84
+ }): {
85
+ type: 'provider-defined';
86
+ id: 'anthropic.bash_20241022';
87
+ args: {};
88
+ parameters: typeof Bash20241022Parameters;
89
+ execute: ExecuteFunction<z.infer<typeof Bash20241022Parameters>, RESULT>;
90
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
91
+ };
92
+ declare const TextEditor20241022Parameters: z.ZodObject<{
93
+ command: z.ZodEnum<["view", "create", "str_replace", "insert", "undo_edit"]>;
94
+ path: z.ZodString;
95
+ file_text: z.ZodOptional<z.ZodString>;
96
+ insert_line: z.ZodOptional<z.ZodNumber>;
97
+ new_str: z.ZodOptional<z.ZodString>;
98
+ old_str: z.ZodOptional<z.ZodString>;
99
+ view_range: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ path: string;
102
+ command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
103
+ file_text?: string | undefined;
104
+ insert_line?: number | undefined;
105
+ new_str?: string | undefined;
106
+ old_str?: string | undefined;
107
+ view_range?: number[] | undefined;
108
+ }, {
109
+ path: string;
110
+ command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
111
+ file_text?: string | undefined;
112
+ insert_line?: number | undefined;
113
+ new_str?: string | undefined;
114
+ old_str?: string | undefined;
115
+ view_range?: number[] | undefined;
116
+ }>;
117
+ /**
118
+ * Creates a tool for editing text. Must have name "str_replace_editor".
119
+ *
120
+ * Image results are supported.
121
+ *
122
+ * @param execute - The function to execute the tool. Optional.
123
+ */
124
+ declare function textEditorTool_20241022<RESULT>(options?: {
125
+ execute?: ExecuteFunction<{
126
+ /**
127
+ * The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`, `undo_edit`.
128
+ */
129
+ command: 'view' | 'create' | 'str_replace' | 'insert' | 'undo_edit';
130
+ /**
131
+ * Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`.
132
+ */
133
+ path: string;
134
+ /**
135
+ * Required parameter of `create` command, with the content of the file to be created.
136
+ */
137
+ file_text?: string;
138
+ /**
139
+ * Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`.
140
+ */
141
+ insert_line?: number;
142
+ /**
143
+ * Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert.
144
+ */
145
+ new_str?: string;
146
+ /**
147
+ * Required parameter of `str_replace` command containing the string in `path` to replace.
148
+ */
149
+ old_str?: string;
150
+ /**
151
+ * Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.
152
+ */
153
+ view_range?: number[];
154
+ }, RESULT>;
155
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
156
+ }): {
157
+ type: 'provider-defined';
158
+ id: 'anthropic.text_editor_20241022';
159
+ args: {};
160
+ parameters: typeof TextEditor20241022Parameters;
161
+ execute: ExecuteFunction<z.infer<typeof TextEditor20241022Parameters>, RESULT>;
162
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
163
+ };
164
+ declare const Computer20241022Parameters: z.ZodObject<{
165
+ action: z.ZodEnum<["key", "type", "mouse_move", "left_click", "left_click_drag", "right_click", "middle_click", "double_click", "screenshot", "cursor_position"]>;
166
+ coordinate: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
167
+ text: z.ZodOptional<z.ZodString>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ action: "type" | "key" | "mouse_move" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "screenshot" | "cursor_position";
170
+ text?: string | undefined;
171
+ coordinate?: number[] | undefined;
172
+ }, {
173
+ action: "type" | "key" | "mouse_move" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "screenshot" | "cursor_position";
174
+ text?: string | undefined;
175
+ coordinate?: number[] | undefined;
176
+ }>;
177
+ /**
178
+ * Creates a tool for executing actions on a computer. Must have name "computer".
179
+ *
180
+ * Image results are supported.
181
+ *
182
+ * @param displayWidthPx - The width of the display being controlled by the model in pixels.
183
+ * @param displayHeightPx - The height of the display being controlled by the model in pixels.
184
+ * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
185
+ * @param execute - The function to execute the tool. Optional.
186
+ */
187
+ declare function computerTool_20241022<RESULT>(options: {
188
+ displayWidthPx: number;
189
+ displayHeightPx: number;
190
+ displayNumber?: number;
191
+ execute?: ExecuteFunction<{
192
+ /**
193
+ * The action to perform. The available actions are:
194
+ * - `key`: Press a key or key-combination on the keyboard.
195
+ * - This supports xdotool's `key` syntax.
196
+ * - Examples: "a", "Return", "alt+Tab", "ctrl+s", "Up", "KP_0" (for the numpad 0 key).
197
+ * - `type`: Type a string of text on the keyboard.
198
+ * - `cursor_position`: Get the current (x, y) pixel coordinate of the cursor on the screen.
199
+ * - `mouse_move`: Move the cursor to a specified (x, y) pixel coordinate on the screen.
200
+ * - `left_click`: Click the left mouse button.
201
+ * - `left_click_drag`: Click and drag the cursor to a specified (x, y) pixel coordinate on the screen.
202
+ * - `right_click`: Click the right mouse button.
203
+ * - `middle_click`: Click the middle mouse button.
204
+ * - `double_click`: Double-click the left mouse button.
205
+ * - `screenshot`: Take a screenshot of the screen.
206
+ */
207
+ action: 'key' | 'type' | 'mouse_move' | 'left_click' | 'left_click_drag' | 'right_click' | 'middle_click' | 'double_click' | 'screenshot' | 'cursor_position';
208
+ /**
209
+ * (x, y): The x (pixels from the left edge) and y (pixels from the top edge) coordinates to move the mouse to. Required only by `action=mouse_move` and `action=left_click_drag`.
210
+ */
211
+ coordinate?: number[];
212
+ /**
213
+ * Required only by `action=type` and `action=key`.
214
+ */
215
+ text?: string;
216
+ }, RESULT>;
217
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
218
+ }): {
219
+ type: 'provider-defined';
220
+ id: 'anthropic.computer_20241022';
221
+ args: {};
222
+ parameters: typeof Computer20241022Parameters;
223
+ execute: ExecuteFunction<z.infer<typeof Computer20241022Parameters>, RESULT>;
224
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
225
+ };
226
+ declare const anthropicTools: {
227
+ bash_20241022: typeof bashTool_20241022;
228
+ textEditor_20241022: typeof textEditorTool_20241022;
229
+ computer_20241022: typeof computerTool_20241022;
230
+ };
231
+
43
232
  interface AnthropicProvider extends ProviderV1 {
44
233
  /**
45
234
  Creates a model for text generation.
@@ -57,6 +246,10 @@ interface AnthropicProvider extends ProviderV1 {
57
246
  @deprecated Use `.languageModel()` instead.
58
247
  */
59
248
  messages(modelId: AnthropicMessagesModelId, settings?: AnthropicMessagesSettings): LanguageModelV1;
249
+ /**
250
+ Anthropic-specific computer use tool.
251
+ */
252
+ tools: typeof anthropicTools;
60
253
  }
61
254
  interface AnthropicProviderSettings {
62
255
  /**
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { LanguageModelV1, ProviderV1 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
+ import { z } from 'zod';
3
4
 
4
- type AnthropicMessagesModelId = 'claude-3-5-sonnet-20240620' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
5
+ type AnthropicMessagesModelId = 'claude-3-5-sonnet-latest' | 'claude-3-5-sonnet-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-opus-latest' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | (string & {});
5
6
  interface AnthropicMessagesSettings {
6
7
  /**
7
8
  Only sample from the top K options for each subsequent token.
@@ -40,6 +41,194 @@ declare class AnthropicMessagesLanguageModel implements LanguageModelV1 {
40
41
  doStream(options: Parameters<LanguageModelV1['doStream']>[0]): Promise<Awaited<ReturnType<LanguageModelV1['doStream']>>>;
41
42
  }
42
43
 
44
+ type ExecuteFunction<PARAMETERS, RESULT> = undefined | ((args: PARAMETERS, options: {
45
+ abortSignal?: AbortSignal;
46
+ }) => Promise<RESULT>);
47
+ type ToolResultContent = Array<{
48
+ type: 'text';
49
+ text: string;
50
+ } | {
51
+ type: 'image';
52
+ data: string;
53
+ mimeType?: string;
54
+ }>;
55
+ declare const Bash20241022Parameters: z.ZodObject<{
56
+ command: z.ZodString;
57
+ restart: z.ZodOptional<z.ZodBoolean>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ command: string;
60
+ restart?: boolean | undefined;
61
+ }, {
62
+ command: string;
63
+ restart?: boolean | undefined;
64
+ }>;
65
+ /**
66
+ * Creates a tool for running a bash command. Must have name "bash".
67
+ *
68
+ * Image results are supported.
69
+ *
70
+ * @param execute - The function to execute the tool. Optional.
71
+ */
72
+ declare function bashTool_20241022<RESULT>(options?: {
73
+ execute?: ExecuteFunction<{
74
+ /**
75
+ * The bash command to run. Required unless the tool is being restarted.
76
+ */
77
+ command: string;
78
+ /**
79
+ * Specifying true will restart this tool. Otherwise, leave this unspecified.
80
+ */
81
+ restart?: boolean;
82
+ }, RESULT>;
83
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
84
+ }): {
85
+ type: 'provider-defined';
86
+ id: 'anthropic.bash_20241022';
87
+ args: {};
88
+ parameters: typeof Bash20241022Parameters;
89
+ execute: ExecuteFunction<z.infer<typeof Bash20241022Parameters>, RESULT>;
90
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
91
+ };
92
+ declare const TextEditor20241022Parameters: z.ZodObject<{
93
+ command: z.ZodEnum<["view", "create", "str_replace", "insert", "undo_edit"]>;
94
+ path: z.ZodString;
95
+ file_text: z.ZodOptional<z.ZodString>;
96
+ insert_line: z.ZodOptional<z.ZodNumber>;
97
+ new_str: z.ZodOptional<z.ZodString>;
98
+ old_str: z.ZodOptional<z.ZodString>;
99
+ view_range: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ path: string;
102
+ command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
103
+ file_text?: string | undefined;
104
+ insert_line?: number | undefined;
105
+ new_str?: string | undefined;
106
+ old_str?: string | undefined;
107
+ view_range?: number[] | undefined;
108
+ }, {
109
+ path: string;
110
+ command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
111
+ file_text?: string | undefined;
112
+ insert_line?: number | undefined;
113
+ new_str?: string | undefined;
114
+ old_str?: string | undefined;
115
+ view_range?: number[] | undefined;
116
+ }>;
117
+ /**
118
+ * Creates a tool for editing text. Must have name "str_replace_editor".
119
+ *
120
+ * Image results are supported.
121
+ *
122
+ * @param execute - The function to execute the tool. Optional.
123
+ */
124
+ declare function textEditorTool_20241022<RESULT>(options?: {
125
+ execute?: ExecuteFunction<{
126
+ /**
127
+ * The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`, `undo_edit`.
128
+ */
129
+ command: 'view' | 'create' | 'str_replace' | 'insert' | 'undo_edit';
130
+ /**
131
+ * Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`.
132
+ */
133
+ path: string;
134
+ /**
135
+ * Required parameter of `create` command, with the content of the file to be created.
136
+ */
137
+ file_text?: string;
138
+ /**
139
+ * Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`.
140
+ */
141
+ insert_line?: number;
142
+ /**
143
+ * Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert.
144
+ */
145
+ new_str?: string;
146
+ /**
147
+ * Required parameter of `str_replace` command containing the string in `path` to replace.
148
+ */
149
+ old_str?: string;
150
+ /**
151
+ * Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.
152
+ */
153
+ view_range?: number[];
154
+ }, RESULT>;
155
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
156
+ }): {
157
+ type: 'provider-defined';
158
+ id: 'anthropic.text_editor_20241022';
159
+ args: {};
160
+ parameters: typeof TextEditor20241022Parameters;
161
+ execute: ExecuteFunction<z.infer<typeof TextEditor20241022Parameters>, RESULT>;
162
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
163
+ };
164
+ declare const Computer20241022Parameters: z.ZodObject<{
165
+ action: z.ZodEnum<["key", "type", "mouse_move", "left_click", "left_click_drag", "right_click", "middle_click", "double_click", "screenshot", "cursor_position"]>;
166
+ coordinate: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
167
+ text: z.ZodOptional<z.ZodString>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ action: "type" | "key" | "mouse_move" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "screenshot" | "cursor_position";
170
+ text?: string | undefined;
171
+ coordinate?: number[] | undefined;
172
+ }, {
173
+ action: "type" | "key" | "mouse_move" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "screenshot" | "cursor_position";
174
+ text?: string | undefined;
175
+ coordinate?: number[] | undefined;
176
+ }>;
177
+ /**
178
+ * Creates a tool for executing actions on a computer. Must have name "computer".
179
+ *
180
+ * Image results are supported.
181
+ *
182
+ * @param displayWidthPx - The width of the display being controlled by the model in pixels.
183
+ * @param displayHeightPx - The height of the display being controlled by the model in pixels.
184
+ * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
185
+ * @param execute - The function to execute the tool. Optional.
186
+ */
187
+ declare function computerTool_20241022<RESULT>(options: {
188
+ displayWidthPx: number;
189
+ displayHeightPx: number;
190
+ displayNumber?: number;
191
+ execute?: ExecuteFunction<{
192
+ /**
193
+ * The action to perform. The available actions are:
194
+ * - `key`: Press a key or key-combination on the keyboard.
195
+ * - This supports xdotool's `key` syntax.
196
+ * - Examples: "a", "Return", "alt+Tab", "ctrl+s", "Up", "KP_0" (for the numpad 0 key).
197
+ * - `type`: Type a string of text on the keyboard.
198
+ * - `cursor_position`: Get the current (x, y) pixel coordinate of the cursor on the screen.
199
+ * - `mouse_move`: Move the cursor to a specified (x, y) pixel coordinate on the screen.
200
+ * - `left_click`: Click the left mouse button.
201
+ * - `left_click_drag`: Click and drag the cursor to a specified (x, y) pixel coordinate on the screen.
202
+ * - `right_click`: Click the right mouse button.
203
+ * - `middle_click`: Click the middle mouse button.
204
+ * - `double_click`: Double-click the left mouse button.
205
+ * - `screenshot`: Take a screenshot of the screen.
206
+ */
207
+ action: 'key' | 'type' | 'mouse_move' | 'left_click' | 'left_click_drag' | 'right_click' | 'middle_click' | 'double_click' | 'screenshot' | 'cursor_position';
208
+ /**
209
+ * (x, y): The x (pixels from the left edge) and y (pixels from the top edge) coordinates to move the mouse to. Required only by `action=mouse_move` and `action=left_click_drag`.
210
+ */
211
+ coordinate?: number[];
212
+ /**
213
+ * Required only by `action=type` and `action=key`.
214
+ */
215
+ text?: string;
216
+ }, RESULT>;
217
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
218
+ }): {
219
+ type: 'provider-defined';
220
+ id: 'anthropic.computer_20241022';
221
+ args: {};
222
+ parameters: typeof Computer20241022Parameters;
223
+ execute: ExecuteFunction<z.infer<typeof Computer20241022Parameters>, RESULT>;
224
+ experimental_toToolResultContent?: (result: RESULT) => ToolResultContent;
225
+ };
226
+ declare const anthropicTools: {
227
+ bash_20241022: typeof bashTool_20241022;
228
+ textEditor_20241022: typeof textEditorTool_20241022;
229
+ computer_20241022: typeof computerTool_20241022;
230
+ };
231
+
43
232
  interface AnthropicProvider extends ProviderV1 {
44
233
  /**
45
234
  Creates a model for text generation.
@@ -57,6 +246,10 @@ interface AnthropicProvider extends ProviderV1 {
57
246
  @deprecated Use `.languageModel()` instead.
58
247
  */
59
248
  messages(modelId: AnthropicMessagesModelId, settings?: AnthropicMessagesSettings): LanguageModelV1;
249
+ /**
250
+ Anthropic-specific computer use tool.
251
+ */
252
+ tools: typeof anthropicTools;
60
253
  }
61
254
  interface AnthropicProviderSettings {
62
255
  /**