@ririnto/amazon-bedrock-anthropic 0.0.1

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/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # @ririnto/amazon-bedrock-anthropic
2
+
3
+ Amazon Bedrock Anthropic InvokeModel API provider - drop-in replacement for `@ai-sdk/amazon-bedrock`.
4
+
5
+ ## Features
6
+
7
+ - Uses InvokeModel API via `@ai-sdk/amazon-bedrock/anthropic` (not Converse API)
8
+ - Transforms `bedrock.cachePoint` → `anthropic.cacheControl` automatically
9
+ - Drop-in replacement for `createAmazonBedrock` from `@ai-sdk/amazon-bedrock`
10
+
11
+ ## Usage
12
+
13
+ Add to OpenCode's `package.json` overrides:
14
+
15
+ ```json
16
+ {
17
+ "overrides": {
18
+ "@ai-sdk/amazon-bedrock": "npm:@ririnto/amazon-bedrock-anthropic@latest"
19
+ }
20
+ }
21
+ ```
22
+
23
+ For local development (package directory):
24
+
25
+ ```json
26
+ {
27
+ "overrides": {
28
+ "@ai-sdk/amazon-bedrock": "file:../amazon-bedrock-invokemodel"
29
+ }
30
+ }
31
+ ```
32
+
33
+ For local development (single file):
34
+
35
+ ```json
36
+ {
37
+ "overrides": {
38
+ "@ai-sdk/amazon-bedrock": "../amazon-bedrock-invokemodel/dist/index.js"
39
+ }
40
+ }
41
+ ```
42
+
43
+ ## License
44
+
45
+ MIT
@@ -0,0 +1,655 @@
1
+ import type { BedrockAnthropicProvider, BedrockAnthropicProviderSettings } from "@ai-sdk/amazon-bedrock/anthropic";
2
+ import type { LanguageModelV3, LanguageModelV3Message } from "@ai-sdk/provider";
3
+ type ProviderFactory = (opts: BedrockAnthropicProviderSettings) => BedrockAnthropicProvider;
4
+ /**
5
+ * Transforms a single message's cache metadata from Converse API format to InvokeModel API format.
6
+ *
7
+ * Converse API (OpenCode default): `{ bedrock: { cachePoint: { type: "default" } } }`
8
+ * InvokeModel API (Anthropic native): `{ anthropic: { cacheControl: { type: "ephemeral" } } }`
9
+ *
10
+ * @param msg - The message to transform.
11
+ * @returns The message with `anthropic.cacheControl` if `bedrock.cachePoint` was present, otherwise unchanged.
12
+ */
13
+ export declare const transformMessage: (msg: LanguageModelV3Message) => LanguageModelV3Message;
14
+ /**
15
+ * Wraps a {@link LanguageModelV3} to intercept `doGenerate` and `doStream`,
16
+ * transforming `bedrock.cachePoint` → `anthropic.cacheControl` in every prompt message.
17
+ *
18
+ * @param model - The original language model from `@ai-sdk/amazon-bedrock/anthropic`.
19
+ * @returns A wrapped model with identical interface but transformed cache metadata.
20
+ */
21
+ export declare function wrapLanguageModel(model: LanguageModelV3): LanguageModelV3;
22
+ /**
23
+ * Creates an Amazon Bedrock provider that uses the InvokeModel API instead of the Converse API.
24
+ *
25
+ * Drop-in replacement for `createAmazonBedrock` from `@ai-sdk/amazon-bedrock`.
26
+ * All language models returned by this provider automatically transform
27
+ * `bedrock.cachePoint` → `anthropic.cacheControl` in prompt messages.
28
+ *
29
+ * @param options - Provider settings passed to `createBedrockAnthropic`.
30
+ * @param factory - Provider factory function. Defaults to `createBedrockAnthropic`. Overridable for testing.
31
+ * @returns A callable provider with `languageModel(modelId)` that returns wrapped models.
32
+ *
33
+ * @example OpenCode `package.json` overrides:
34
+ * ```json
35
+ * {
36
+ * "overrides": {
37
+ * "@ai-sdk/amazon-bedrock": "npm:@ririnto/amazon-bedrock-anthropic@latest"
38
+ * }
39
+ * }
40
+ * ```
41
+ */
42
+ export declare function createAmazonBedrock(options?: BedrockAnthropicProviderSettings, factory?: ProviderFactory): ((modelId: string) => LanguageModelV3) & {
43
+ languageModel: (modelId: string) => LanguageModelV3;
44
+ tools: {
45
+ bash_20241022: import("@ai-sdk/provider-utils").ProviderToolFactory<{
46
+ command: string;
47
+ restart?: boolean;
48
+ }, {}>;
49
+ bash_20250124: import("@ai-sdk/provider-utils").ProviderToolFactory<{
50
+ command: string;
51
+ restart?: boolean;
52
+ }, {}>;
53
+ codeExecution_20250522: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
54
+ code: string;
55
+ }, {
56
+ type: "code_execution_result";
57
+ stdout: string;
58
+ stderr: string;
59
+ return_code: number;
60
+ content: Array<{
61
+ type: "code_execution_output";
62
+ file_id: string;
63
+ }>;
64
+ }, {}>>[0]) => import("@ai-sdk/provider-utils").Tool<{
65
+ code: string;
66
+ }, {
67
+ type: "code_execution_result";
68
+ stdout: string;
69
+ stderr: string;
70
+ return_code: number;
71
+ content: Array<{
72
+ type: "code_execution_output";
73
+ file_id: string;
74
+ }>;
75
+ }>;
76
+ codeExecution_20250825: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
77
+ type: "programmatic-tool-call";
78
+ code: string;
79
+ } | {
80
+ type: "bash_code_execution";
81
+ command: string;
82
+ } | {
83
+ type: "text_editor_code_execution";
84
+ command: "view";
85
+ path: string;
86
+ } | {
87
+ type: "text_editor_code_execution";
88
+ command: "create";
89
+ path: string;
90
+ file_text?: string | null;
91
+ } | {
92
+ type: "text_editor_code_execution";
93
+ command: "str_replace";
94
+ path: string;
95
+ old_str: string;
96
+ new_str: string;
97
+ }, {
98
+ type: "code_execution_result";
99
+ stdout: string;
100
+ stderr: string;
101
+ return_code: number;
102
+ content: Array<{
103
+ type: "code_execution_output";
104
+ file_id: string;
105
+ }>;
106
+ } | {
107
+ type: "bash_code_execution_result";
108
+ content: Array<{
109
+ type: "bash_code_execution_output";
110
+ file_id: string;
111
+ }>;
112
+ stdout: string;
113
+ stderr: string;
114
+ return_code: number;
115
+ } | {
116
+ type: "bash_code_execution_tool_result_error";
117
+ error_code: string;
118
+ } | {
119
+ type: "text_editor_code_execution_tool_result_error";
120
+ error_code: string;
121
+ } | {
122
+ type: "text_editor_code_execution_view_result";
123
+ content: string;
124
+ file_type: string;
125
+ num_lines: number | null;
126
+ start_line: number | null;
127
+ total_lines: number | null;
128
+ } | {
129
+ type: "text_editor_code_execution_create_result";
130
+ is_file_update: boolean;
131
+ } | {
132
+ type: "text_editor_code_execution_str_replace_result";
133
+ lines: string[] | null;
134
+ new_lines: number | null;
135
+ new_start: number | null;
136
+ old_lines: number | null;
137
+ old_start: number | null;
138
+ }, {}>>[0]) => import("@ai-sdk/provider-utils").Tool<{
139
+ type: "programmatic-tool-call";
140
+ code: string;
141
+ } | {
142
+ type: "bash_code_execution";
143
+ command: string;
144
+ } | {
145
+ type: "text_editor_code_execution";
146
+ command: "view";
147
+ path: string;
148
+ } | {
149
+ type: "text_editor_code_execution";
150
+ command: "create";
151
+ path: string;
152
+ file_text?: string | null;
153
+ } | {
154
+ type: "text_editor_code_execution";
155
+ command: "str_replace";
156
+ path: string;
157
+ old_str: string;
158
+ new_str: string;
159
+ }, {
160
+ type: "code_execution_result";
161
+ stdout: string;
162
+ stderr: string;
163
+ return_code: number;
164
+ content: Array<{
165
+ type: "code_execution_output";
166
+ file_id: string;
167
+ }>;
168
+ } | {
169
+ type: "bash_code_execution_result";
170
+ content: Array<{
171
+ type: "bash_code_execution_output";
172
+ file_id: string;
173
+ }>;
174
+ stdout: string;
175
+ stderr: string;
176
+ return_code: number;
177
+ } | {
178
+ type: "bash_code_execution_tool_result_error";
179
+ error_code: string;
180
+ } | {
181
+ type: "text_editor_code_execution_tool_result_error";
182
+ error_code: string;
183
+ } | {
184
+ type: "text_editor_code_execution_view_result";
185
+ content: string;
186
+ file_type: string;
187
+ num_lines: number | null;
188
+ start_line: number | null;
189
+ total_lines: number | null;
190
+ } | {
191
+ type: "text_editor_code_execution_create_result";
192
+ is_file_update: boolean;
193
+ } | {
194
+ type: "text_editor_code_execution_str_replace_result";
195
+ lines: string[] | null;
196
+ new_lines: number | null;
197
+ new_start: number | null;
198
+ old_lines: number | null;
199
+ old_start: number | null;
200
+ }>;
201
+ codeExecution_20260120: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
202
+ type: "programmatic-tool-call";
203
+ code: string;
204
+ } | {
205
+ type: "bash_code_execution";
206
+ command: string;
207
+ } | {
208
+ type: "text_editor_code_execution";
209
+ command: "view";
210
+ path: string;
211
+ } | {
212
+ type: "text_editor_code_execution";
213
+ command: "create";
214
+ path: string;
215
+ file_text?: string | null;
216
+ } | {
217
+ type: "text_editor_code_execution";
218
+ command: "str_replace";
219
+ path: string;
220
+ old_str: string;
221
+ new_str: string;
222
+ }, {
223
+ type: "code_execution_result";
224
+ stdout: string;
225
+ stderr: string;
226
+ return_code: number;
227
+ content: Array<{
228
+ type: "code_execution_output";
229
+ file_id: string;
230
+ }>;
231
+ } | {
232
+ type: "encrypted_code_execution_result";
233
+ encrypted_stdout: string;
234
+ stderr: string;
235
+ return_code: number;
236
+ content: Array<{
237
+ type: "code_execution_output";
238
+ file_id: string;
239
+ }>;
240
+ } | {
241
+ type: "bash_code_execution_result";
242
+ content: Array<{
243
+ type: "bash_code_execution_output";
244
+ file_id: string;
245
+ }>;
246
+ stdout: string;
247
+ stderr: string;
248
+ return_code: number;
249
+ } | {
250
+ type: "bash_code_execution_tool_result_error";
251
+ error_code: string;
252
+ } | {
253
+ type: "text_editor_code_execution_tool_result_error";
254
+ error_code: string;
255
+ } | {
256
+ type: "text_editor_code_execution_view_result";
257
+ content: string;
258
+ file_type: string;
259
+ num_lines: number | null;
260
+ start_line: number | null;
261
+ total_lines: number | null;
262
+ } | {
263
+ type: "text_editor_code_execution_create_result";
264
+ is_file_update: boolean;
265
+ } | {
266
+ type: "text_editor_code_execution_str_replace_result";
267
+ lines: string[] | null;
268
+ new_lines: number | null;
269
+ new_start: number | null;
270
+ old_lines: number | null;
271
+ old_start: number | null;
272
+ }, {}>>[0]) => import("@ai-sdk/provider-utils").Tool<{
273
+ type: "programmatic-tool-call";
274
+ code: string;
275
+ } | {
276
+ type: "bash_code_execution";
277
+ command: string;
278
+ } | {
279
+ type: "text_editor_code_execution";
280
+ command: "view";
281
+ path: string;
282
+ } | {
283
+ type: "text_editor_code_execution";
284
+ command: "create";
285
+ path: string;
286
+ file_text?: string | null;
287
+ } | {
288
+ type: "text_editor_code_execution";
289
+ command: "str_replace";
290
+ path: string;
291
+ old_str: string;
292
+ new_str: string;
293
+ }, {
294
+ type: "code_execution_result";
295
+ stdout: string;
296
+ stderr: string;
297
+ return_code: number;
298
+ content: Array<{
299
+ type: "code_execution_output";
300
+ file_id: string;
301
+ }>;
302
+ } | {
303
+ type: "encrypted_code_execution_result";
304
+ encrypted_stdout: string;
305
+ stderr: string;
306
+ return_code: number;
307
+ content: Array<{
308
+ type: "code_execution_output";
309
+ file_id: string;
310
+ }>;
311
+ } | {
312
+ type: "bash_code_execution_result";
313
+ content: Array<{
314
+ type: "bash_code_execution_output";
315
+ file_id: string;
316
+ }>;
317
+ stdout: string;
318
+ stderr: string;
319
+ return_code: number;
320
+ } | {
321
+ type: "bash_code_execution_tool_result_error";
322
+ error_code: string;
323
+ } | {
324
+ type: "text_editor_code_execution_tool_result_error";
325
+ error_code: string;
326
+ } | {
327
+ type: "text_editor_code_execution_view_result";
328
+ content: string;
329
+ file_type: string;
330
+ num_lines: number | null;
331
+ start_line: number | null;
332
+ total_lines: number | null;
333
+ } | {
334
+ type: "text_editor_code_execution_create_result";
335
+ is_file_update: boolean;
336
+ } | {
337
+ type: "text_editor_code_execution_str_replace_result";
338
+ lines: string[] | null;
339
+ new_lines: number | null;
340
+ new_start: number | null;
341
+ old_lines: number | null;
342
+ old_start: number | null;
343
+ }>;
344
+ computer_20241022: import("@ai-sdk/provider-utils").ProviderToolFactory<{
345
+ action: "key" | "type" | "mouse_move" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "screenshot" | "cursor_position";
346
+ coordinate?: number[];
347
+ text?: string;
348
+ }, {
349
+ displayWidthPx: number;
350
+ displayHeightPx: number;
351
+ displayNumber?: number;
352
+ }>;
353
+ computer_20250124: import("@ai-sdk/provider-utils").ProviderToolFactory<{
354
+ action: "key" | "hold_key" | "type" | "cursor_position" | "mouse_move" | "left_mouse_down" | "left_mouse_up" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "triple_click" | "scroll" | "wait" | "screenshot";
355
+ coordinate?: [number, number];
356
+ duration?: number;
357
+ scroll_amount?: number;
358
+ scroll_direction?: "up" | "down" | "left" | "right";
359
+ start_coordinate?: [number, number];
360
+ text?: string;
361
+ }, {
362
+ displayWidthPx: number;
363
+ displayHeightPx: number;
364
+ displayNumber?: number;
365
+ }>;
366
+ computer_20251124: import("@ai-sdk/provider-utils").ProviderToolFactory<{
367
+ action: "key" | "hold_key" | "type" | "cursor_position" | "mouse_move" | "left_mouse_down" | "left_mouse_up" | "left_click" | "left_click_drag" | "right_click" | "middle_click" | "double_click" | "triple_click" | "scroll" | "wait" | "screenshot" | "zoom";
368
+ coordinate?: [number, number];
369
+ duration?: number;
370
+ region?: [number, number, number, number];
371
+ scroll_amount?: number;
372
+ scroll_direction?: "up" | "down" | "left" | "right";
373
+ start_coordinate?: [number, number];
374
+ text?: string;
375
+ }, {
376
+ displayWidthPx: number;
377
+ displayHeightPx: number;
378
+ displayNumber?: number;
379
+ enableZoom?: boolean;
380
+ }>;
381
+ memory_20250818: import("@ai-sdk/provider-utils").ProviderToolFactory<{
382
+ command: "view";
383
+ path: string;
384
+ view_range?: [number, number];
385
+ } | {
386
+ command: "create";
387
+ path: string;
388
+ file_text: string;
389
+ } | {
390
+ command: "str_replace";
391
+ path: string;
392
+ old_str: string;
393
+ new_str: string;
394
+ } | {
395
+ command: "insert";
396
+ path: string;
397
+ insert_line: number;
398
+ insert_text: string;
399
+ } | {
400
+ command: "delete";
401
+ path: string;
402
+ } | {
403
+ command: "rename";
404
+ old_path: string;
405
+ new_path: string;
406
+ }, {}>;
407
+ textEditor_20241022: import("@ai-sdk/provider-utils").ProviderToolFactory<{
408
+ command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
409
+ path: string;
410
+ file_text?: string;
411
+ insert_line?: number;
412
+ new_str?: string;
413
+ insert_text?: string;
414
+ old_str?: string;
415
+ view_range?: number[];
416
+ }, {}>;
417
+ textEditor_20250124: import("@ai-sdk/provider-utils").ProviderToolFactory<{
418
+ command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
419
+ path: string;
420
+ file_text?: string;
421
+ insert_line?: number;
422
+ new_str?: string;
423
+ insert_text?: string;
424
+ old_str?: string;
425
+ view_range?: number[];
426
+ }, {}>;
427
+ textEditor_20250429: import("@ai-sdk/provider-utils").ProviderToolFactory<{
428
+ command: "view" | "create" | "str_replace" | "insert";
429
+ path: string;
430
+ file_text?: string;
431
+ insert_line?: number;
432
+ new_str?: string;
433
+ insert_text?: string;
434
+ old_str?: string;
435
+ view_range?: number[];
436
+ }, {}>;
437
+ textEditor_20250728: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactory<{
438
+ command: "view" | "create" | "str_replace" | "insert";
439
+ path: string;
440
+ file_text?: string;
441
+ insert_line?: number;
442
+ new_str?: string;
443
+ insert_text?: string;
444
+ old_str?: string;
445
+ view_range?: number[];
446
+ }, {
447
+ maxCharacters?: number;
448
+ }>>[0]) => import("@ai-sdk/provider-utils").Tool<{
449
+ command: "view" | "create" | "str_replace" | "insert";
450
+ path: string;
451
+ file_text?: string;
452
+ insert_line?: number;
453
+ new_str?: string;
454
+ insert_text?: string;
455
+ old_str?: string;
456
+ view_range?: number[];
457
+ }, unknown>;
458
+ webFetch_20250910: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
459
+ url: string;
460
+ }, {
461
+ type: "web_fetch_result";
462
+ url: string;
463
+ content: {
464
+ type: "document";
465
+ title: string | null;
466
+ citations?: {
467
+ enabled: boolean;
468
+ };
469
+ source: {
470
+ type: "base64";
471
+ mediaType: "application/pdf";
472
+ data: string;
473
+ } | {
474
+ type: "text";
475
+ mediaType: "text/plain";
476
+ data: string;
477
+ };
478
+ };
479
+ retrievedAt: string | null;
480
+ }, {
481
+ maxUses?: number;
482
+ allowedDomains?: string[];
483
+ blockedDomains?: string[];
484
+ citations?: {
485
+ enabled: boolean;
486
+ };
487
+ maxContentTokens?: number;
488
+ }>>[0]) => import("@ai-sdk/provider-utils").Tool<{
489
+ url: string;
490
+ }, {
491
+ type: "web_fetch_result";
492
+ url: string;
493
+ content: {
494
+ type: "document";
495
+ title: string | null;
496
+ citations?: {
497
+ enabled: boolean;
498
+ };
499
+ source: {
500
+ type: "base64";
501
+ mediaType: "application/pdf";
502
+ data: string;
503
+ } | {
504
+ type: "text";
505
+ mediaType: "text/plain";
506
+ data: string;
507
+ };
508
+ };
509
+ retrievedAt: string | null;
510
+ }>;
511
+ webFetch_20260209: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
512
+ url: string;
513
+ }, {
514
+ type: "web_fetch_result";
515
+ url: string;
516
+ content: {
517
+ type: "document";
518
+ title: string | null;
519
+ citations?: {
520
+ enabled: boolean;
521
+ };
522
+ source: {
523
+ type: "base64";
524
+ mediaType: "application/pdf";
525
+ data: string;
526
+ } | {
527
+ type: "text";
528
+ mediaType: "text/plain";
529
+ data: string;
530
+ };
531
+ };
532
+ retrievedAt: string | null;
533
+ }, {
534
+ maxUses?: number;
535
+ allowedDomains?: string[];
536
+ blockedDomains?: string[];
537
+ citations?: {
538
+ enabled: boolean;
539
+ };
540
+ maxContentTokens?: number;
541
+ }>>[0]) => import("@ai-sdk/provider-utils").Tool<{
542
+ url: string;
543
+ }, {
544
+ type: "web_fetch_result";
545
+ url: string;
546
+ content: {
547
+ type: "document";
548
+ title: string | null;
549
+ citations?: {
550
+ enabled: boolean;
551
+ };
552
+ source: {
553
+ type: "base64";
554
+ mediaType: "application/pdf";
555
+ data: string;
556
+ } | {
557
+ type: "text";
558
+ mediaType: "text/plain";
559
+ data: string;
560
+ };
561
+ };
562
+ retrievedAt: string | null;
563
+ }>;
564
+ webSearch_20250305: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
565
+ query: string;
566
+ }, {
567
+ type: "web_search_result";
568
+ url: string;
569
+ title: string | null;
570
+ pageAge: string | null;
571
+ encryptedContent: string;
572
+ }[], {
573
+ maxUses?: number;
574
+ allowedDomains?: string[];
575
+ blockedDomains?: string[];
576
+ userLocation?: {
577
+ type: "approximate";
578
+ city?: string;
579
+ region?: string;
580
+ country?: string;
581
+ timezone?: string;
582
+ };
583
+ }>>[0]) => import("@ai-sdk/provider-utils").Tool<{
584
+ query: string;
585
+ }, {
586
+ type: "web_search_result";
587
+ url: string;
588
+ title: string | null;
589
+ pageAge: string | null;
590
+ encryptedContent: string;
591
+ }[]>;
592
+ webSearch_20260209: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
593
+ query: string;
594
+ }, {
595
+ type: "web_search_result";
596
+ url: string;
597
+ title: string | null;
598
+ pageAge: string | null;
599
+ encryptedContent: string;
600
+ }[], {
601
+ maxUses?: number;
602
+ allowedDomains?: string[];
603
+ blockedDomains?: string[];
604
+ userLocation?: {
605
+ type: "approximate";
606
+ city?: string;
607
+ region?: string;
608
+ country?: string;
609
+ timezone?: string;
610
+ };
611
+ }>>[0]) => import("@ai-sdk/provider-utils").Tool<{
612
+ query: string;
613
+ }, {
614
+ type: "web_search_result";
615
+ url: string;
616
+ title: string | null;
617
+ pageAge: string | null;
618
+ encryptedContent: string;
619
+ }[]>;
620
+ toolSearchRegex_20251119: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
621
+ pattern: string;
622
+ limit?: number;
623
+ }, {
624
+ type: "tool_reference";
625
+ toolName: string;
626
+ }[], {}>>[0]) => import("@ai-sdk/provider-utils").Tool<{
627
+ pattern: string;
628
+ limit?: number;
629
+ }, {
630
+ type: "tool_reference";
631
+ toolName: string;
632
+ }[]>;
633
+ toolSearchBm25_20251119: (args?: Parameters<import("@ai-sdk/provider-utils").ProviderToolFactoryWithOutputSchema<{
634
+ query: string;
635
+ limit?: number;
636
+ }, {
637
+ type: "tool_reference";
638
+ toolName: string;
639
+ }[], {}>>[0]) => import("@ai-sdk/provider-utils").Tool<{
640
+ query: string;
641
+ limit?: number;
642
+ }, {
643
+ type: "tool_reference";
644
+ toolName: string;
645
+ }[]>;
646
+ };
647
+ textEmbeddingModel(modelId: string): never;
648
+ specificationVersion: "v3";
649
+ embeddingModel(modelId: string): import("@ai-sdk/provider").EmbeddingModelV3;
650
+ imageModel(modelId: string): import("@ai-sdk/provider").ImageModelV3;
651
+ transcriptionModel?(modelId: string): import("@ai-sdk/provider").TranscriptionModelV3;
652
+ speechModel?(modelId: string): import("@ai-sdk/provider").SpeechModelV3;
653
+ rerankingModel?(modelId: string): import("@ai-sdk/provider").RerankingModelV3;
654
+ };
655
+ export {};