@tanstack/ai-anthropic 0.15.7 → 0.15.9

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.
Files changed (54) hide show
  1. package/package.json +3 -3
  2. package/dist/esm/adapters/summarize.d.ts +0 -41
  3. package/dist/esm/adapters/summarize.js +0 -18
  4. package/dist/esm/adapters/summarize.js.map +0 -1
  5. package/dist/esm/adapters/text.d.ts +0 -92
  6. package/dist/esm/adapters/text.js +0 -851
  7. package/dist/esm/adapters/text.js.map +0 -1
  8. package/dist/esm/index.d.ts +0 -9
  9. package/dist/esm/index.js +0 -15
  10. package/dist/esm/index.js.map +0 -1
  11. package/dist/esm/message-types.d.ts +0 -84
  12. package/dist/esm/model-meta.d.ts +0 -410
  13. package/dist/esm/model-meta.js +0 -81
  14. package/dist/esm/model-meta.js.map +0 -1
  15. package/dist/esm/text/text-provider-options.d.ts +0 -258
  16. package/dist/esm/text/text-provider-options.js +0 -30
  17. package/dist/esm/text/text-provider-options.js.map +0 -1
  18. package/dist/esm/tools/bash-tool.d.ts +0 -8
  19. package/dist/esm/tools/bash-tool.js +0 -17
  20. package/dist/esm/tools/bash-tool.js.map +0 -1
  21. package/dist/esm/tools/code-execution-tool.d.ts +0 -34
  22. package/dist/esm/tools/code-execution-tool.js +0 -39
  23. package/dist/esm/tools/code-execution-tool.js.map +0 -1
  24. package/dist/esm/tools/computer-use-tool.d.ts +0 -8
  25. package/dist/esm/tools/computer-use-tool.js +0 -17
  26. package/dist/esm/tools/computer-use-tool.js.map +0 -1
  27. package/dist/esm/tools/custom-tool.d.ts +0 -26
  28. package/dist/esm/tools/custom-tool.js +0 -34
  29. package/dist/esm/tools/custom-tool.js.map +0 -1
  30. package/dist/esm/tools/index.d.ts +0 -17
  31. package/dist/esm/tools/index.js +0 -22
  32. package/dist/esm/tools/index.js.map +0 -1
  33. package/dist/esm/tools/memory-tool.d.ts +0 -8
  34. package/dist/esm/tools/memory-tool.js +0 -20
  35. package/dist/esm/tools/memory-tool.js.map +0 -1
  36. package/dist/esm/tools/text-editor-tool.d.ts +0 -8
  37. package/dist/esm/tools/text-editor-tool.js +0 -19
  38. package/dist/esm/tools/text-editor-tool.js.map +0 -1
  39. package/dist/esm/tools/tool-converter.d.ts +0 -27
  40. package/dist/esm/tools/tool-converter.js +0 -35
  41. package/dist/esm/tools/tool-converter.js.map +0 -1
  42. package/dist/esm/tools/web-fetch-tool.d.ts +0 -8
  43. package/dist/esm/tools/web-fetch-tool.js +0 -21
  44. package/dist/esm/tools/web-fetch-tool.js.map +0 -1
  45. package/dist/esm/tools/web-search-tool.d.ts +0 -8
  46. package/dist/esm/tools/web-search-tool.js +0 -63
  47. package/dist/esm/tools/web-search-tool.js.map +0 -1
  48. package/dist/esm/usage.d.ts +0 -25
  49. package/dist/esm/usage.js +0 -35
  50. package/dist/esm/usage.js.map +0 -1
  51. package/dist/esm/utils/client.d.ts +0 -17
  52. package/dist/esm/utils/client.js +0 -20
  53. package/dist/esm/utils/client.js.map +0 -1
  54. package/dist/esm/utils/index.d.ts +0 -1
@@ -1,410 +0,0 @@
1
- import { AnthropicContainerOptions, AnthropicContextManagementOptions, AnthropicMCPOptions, AnthropicSamplingOptions, AnthropicServiceTierOptions, AnthropicStopSequencesOptions, AnthropicThinkingOptions, AnthropicToolChoiceOptions } from './text/text-provider-options.js';
2
- declare const CLAUDE_OPUS_4_6: {
3
- readonly name: "claude-opus-4-6";
4
- readonly id: "claude-opus-4-6";
5
- readonly context_window: 200000;
6
- readonly max_output_tokens: 128000;
7
- readonly knowledge_cutoff: "2025-05-01";
8
- readonly pricing: {
9
- readonly input: {
10
- readonly normal: 5;
11
- };
12
- readonly output: {
13
- readonly normal: 25;
14
- };
15
- };
16
- readonly supports: {
17
- readonly input: ["text", "image", "document"];
18
- readonly extended_thinking: true;
19
- readonly priority_tier: true;
20
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
21
- };
22
- };
23
- declare const CLAUDE_OPUS_4_5: {
24
- readonly name: "claude-opus-4-5";
25
- readonly id: "claude-opus-4-5";
26
- readonly context_window: 200000;
27
- readonly max_output_tokens: 32000;
28
- readonly knowledge_cutoff: "2025-11-01";
29
- readonly pricing: {
30
- readonly input: {
31
- readonly normal: 15;
32
- };
33
- readonly output: {
34
- readonly normal: 75;
35
- };
36
- };
37
- readonly supports: {
38
- readonly input: ["text", "image", "document"];
39
- readonly extended_thinking: true;
40
- readonly priority_tier: true;
41
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
42
- };
43
- };
44
- declare const CLAUDE_SONNET_4_6: {
45
- readonly name: "claude-sonnet-4-6";
46
- readonly id: "claude-sonnet-4-6";
47
- readonly context_window: 1000000;
48
- readonly max_output_tokens: 64000;
49
- readonly knowledge_cutoff: "2025-08-01";
50
- readonly pricing: {
51
- readonly input: {
52
- readonly normal: 3;
53
- };
54
- readonly output: {
55
- readonly normal: 15;
56
- };
57
- };
58
- readonly supports: {
59
- readonly input: ["text", "image", "document"];
60
- readonly extended_thinking: true;
61
- readonly adaptive_thinking: true;
62
- readonly priority_tier: true;
63
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
64
- };
65
- };
66
- declare const CLAUDE_SONNET_4_5: {
67
- readonly name: "claude-sonnet-4-5";
68
- readonly id: "claude-sonnet-4-5";
69
- readonly context_window: 200000;
70
- readonly max_output_tokens: 64000;
71
- readonly knowledge_cutoff: "2025-09-29";
72
- readonly pricing: {
73
- readonly input: {
74
- readonly normal: 3;
75
- };
76
- readonly output: {
77
- readonly normal: 15;
78
- };
79
- };
80
- readonly supports: {
81
- readonly input: ["text", "image", "document"];
82
- readonly extended_thinking: true;
83
- readonly priority_tier: true;
84
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
85
- };
86
- };
87
- declare const CLAUDE_HAIKU_4_5: {
88
- readonly name: "claude-haiku-4-5";
89
- readonly id: "claude-haiku-4-5";
90
- readonly context_window: 200000;
91
- readonly max_output_tokens: 64000;
92
- readonly knowledge_cutoff: "2025-10-01";
93
- readonly pricing: {
94
- readonly input: {
95
- readonly normal: 1;
96
- };
97
- readonly output: {
98
- readonly normal: 5;
99
- };
100
- };
101
- readonly supports: {
102
- readonly input: ["text", "image", "document"];
103
- readonly extended_thinking: true;
104
- readonly priority_tier: true;
105
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
106
- };
107
- };
108
- declare const CLAUDE_OPUS_4_1: {
109
- readonly name: "claude-opus-4-1";
110
- readonly id: "claude-opus-4-1";
111
- readonly context_window: 200000;
112
- readonly max_output_tokens: 64000;
113
- readonly knowledge_cutoff: "2025-08-05";
114
- readonly pricing: {
115
- readonly input: {
116
- readonly normal: 15;
117
- };
118
- readonly output: {
119
- readonly normal: 75;
120
- };
121
- };
122
- readonly supports: {
123
- readonly input: ["text", "image", "document"];
124
- readonly extended_thinking: true;
125
- readonly priority_tier: true;
126
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
127
- };
128
- };
129
- declare const CLAUDE_SONNET_4: {
130
- readonly name: "claude-sonnet-4";
131
- readonly id: "claude-sonnet-4";
132
- readonly context_window: 200000;
133
- readonly max_output_tokens: 64000;
134
- readonly knowledge_cutoff: "2025-05-14";
135
- readonly pricing: {
136
- readonly input: {
137
- readonly normal: 3;
138
- };
139
- readonly output: {
140
- readonly normal: 15;
141
- };
142
- };
143
- readonly supports: {
144
- readonly input: ["text", "image", "document"];
145
- readonly extended_thinking: true;
146
- readonly priority_tier: true;
147
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
148
- };
149
- };
150
- declare const CLAUDE_SONNET_3_7: {
151
- readonly name: "claude-sonnet-3-7";
152
- readonly id: "claude-3-7-sonnet";
153
- readonly max_output_tokens: 64000;
154
- readonly knowledge_cutoff: "2025-05-14";
155
- readonly pricing: {
156
- readonly input: {
157
- readonly normal: 3;
158
- };
159
- readonly output: {
160
- readonly normal: 15;
161
- };
162
- };
163
- readonly supports: {
164
- readonly input: ["text", "image", "document"];
165
- readonly extended_thinking: true;
166
- readonly priority_tier: true;
167
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
168
- };
169
- };
170
- declare const CLAUDE_OPUS_4: {
171
- readonly name: "claude-opus-4";
172
- readonly id: "claude-opus-4";
173
- readonly context_window: 200000;
174
- readonly max_output_tokens: 32000;
175
- readonly knowledge_cutoff: "2025-05-14";
176
- readonly pricing: {
177
- readonly input: {
178
- readonly normal: 15;
179
- };
180
- readonly output: {
181
- readonly normal: 75;
182
- };
183
- };
184
- readonly supports: {
185
- readonly input: ["text", "image", "document"];
186
- readonly extended_thinking: true;
187
- readonly priority_tier: true;
188
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
189
- };
190
- };
191
- declare const CLAUDE_HAIKU_3_5: {
192
- readonly name: "claude-haiku-3-5";
193
- readonly id: "claude-3-5-haiku";
194
- readonly context_window: 200000;
195
- readonly max_output_tokens: 8000;
196
- readonly knowledge_cutoff: "2025-10-22";
197
- readonly pricing: {
198
- readonly input: {
199
- readonly normal: 0.8;
200
- };
201
- readonly output: {
202
- readonly normal: 4;
203
- };
204
- };
205
- readonly supports: {
206
- readonly input: ["text", "image", "document"];
207
- readonly extended_thinking: false;
208
- readonly priority_tier: true;
209
- readonly tools: ["web_search", "web_fetch"];
210
- };
211
- };
212
- declare const CLAUDE_HAIKU_3: {
213
- readonly name: "claude-haiku-3";
214
- readonly id: "claude-3-haiku";
215
- readonly context_window: 200000;
216
- readonly max_output_tokens: 4000;
217
- readonly knowledge_cutoff: "2024-03-07";
218
- readonly pricing: {
219
- readonly input: {
220
- readonly normal: 0.25;
221
- };
222
- readonly output: {
223
- readonly normal: 1.25;
224
- };
225
- };
226
- readonly supports: {
227
- readonly input: ["text", "image", "document"];
228
- readonly extended_thinking: false;
229
- readonly priority_tier: false;
230
- readonly tools: ["web_search"];
231
- };
232
- };
233
- declare const CLAUDE_OPUS_4_6_FAST: {
234
- readonly name: "claude-opus-4-6-fast";
235
- readonly id: "claude-opus-4-6-fast";
236
- readonly context_window: 1000000;
237
- readonly max_output_tokens: 128000;
238
- readonly supports: {
239
- readonly input: ["text", "image"];
240
- readonly extended_thinking: true;
241
- readonly priority_tier: true;
242
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
243
- };
244
- readonly pricing: {
245
- readonly input: {
246
- readonly normal: 30;
247
- readonly cached: 3;
248
- };
249
- readonly output: {
250
- readonly normal: 150;
251
- };
252
- };
253
- };
254
- declare const CLAUDE_OPUS_4_7: {
255
- readonly name: "claude-opus-4-7";
256
- readonly id: "claude-opus-4-7";
257
- readonly context_window: 1000000;
258
- readonly max_output_tokens: 128000;
259
- readonly supports: {
260
- readonly input: ["text", "image"];
261
- readonly extended_thinking: true;
262
- readonly priority_tier: true;
263
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
264
- };
265
- readonly pricing: {
266
- readonly input: {
267
- readonly normal: 5;
268
- readonly cached: 0.5;
269
- };
270
- readonly output: {
271
- readonly normal: 25;
272
- };
273
- };
274
- };
275
- declare const CLAUDE_OPUS_4_7_FAST: {
276
- readonly name: "claude-opus-4-7-fast";
277
- readonly id: "claude-opus-4-7-fast";
278
- readonly context_window: 1000000;
279
- readonly max_output_tokens: 128000;
280
- readonly supports: {
281
- readonly input: ["text", "image", "document"];
282
- readonly extended_thinking: true;
283
- readonly priority_tier: true;
284
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
285
- };
286
- readonly pricing: {
287
- readonly input: {
288
- readonly normal: 30;
289
- readonly cached: 3;
290
- };
291
- readonly output: {
292
- readonly normal: 150;
293
- };
294
- };
295
- };
296
- declare const CLAUDE_OPUS_4_8: {
297
- readonly name: "claude-opus-4.8";
298
- readonly id: "claude-opus-4.8";
299
- readonly context_window: 1000000;
300
- readonly max_output_tokens: 128000;
301
- readonly supports: {
302
- readonly input: ["text", "image", "document"];
303
- readonly extended_thinking: true;
304
- readonly priority_tier: true;
305
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
306
- };
307
- readonly pricing: {
308
- readonly input: {
309
- readonly normal: 5;
310
- readonly cached: 0.5;
311
- };
312
- readonly output: {
313
- readonly normal: 25;
314
- };
315
- };
316
- };
317
- declare const CLAUDE_OPUS_4_8_FAST: {
318
- readonly name: "claude-opus-4.8-fast";
319
- readonly id: "claude-opus-4.8-fast";
320
- readonly context_window: 1000000;
321
- readonly max_output_tokens: 128000;
322
- readonly supports: {
323
- readonly input: ["text", "image", "document"];
324
- readonly extended_thinking: true;
325
- readonly priority_tier: true;
326
- readonly tools: ["web_search", "web_fetch", "code_execution", "computer_use", "bash", "text_editor", "memory"];
327
- };
328
- readonly pricing: {
329
- readonly input: {
330
- readonly normal: 10;
331
- readonly cached: 1;
332
- };
333
- readonly output: {
334
- readonly normal: 50;
335
- };
336
- };
337
- };
338
- export declare const ANTHROPIC_MODELS: readonly ["claude-opus-4-6", "claude-opus-4-5", "claude-sonnet-4-6", "claude-sonnet-4-5", "claude-haiku-4-5", "claude-opus-4-1", "claude-sonnet-4", "claude-3-7-sonnet", "claude-opus-4", "claude-3-5-haiku", "claude-3-haiku", "claude-opus-4-6-fast", "claude-opus-4-7", "claude-opus-4-7-fast", "claude-opus-4.8", "claude-opus-4.8-fast"];
339
- /**
340
- * Anthropic models that support combining `tools` + JSON-Schema-constrained
341
- * output in a single streaming Messages request (per issue #605). GA'd
342
- * 2026-01-29 for Claude 4.5+ via `output_format` on the beta messages
343
- * endpoint. Older Claude models still need the forced-tool-use workaround
344
- * in `structuredOutput`.
345
- */
346
- export declare const ANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS: Set<string>;
347
- export type AnthropicChatModel = (typeof ANTHROPIC_MODELS)[number];
348
- export type AnthropicChatModelProviderOptionsByName = {
349
- [CLAUDE_OPUS_4_6.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
350
- [CLAUDE_OPUS_4_5.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
351
- [CLAUDE_SONNET_4_6.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
352
- [CLAUDE_SONNET_4_5.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
353
- [CLAUDE_HAIKU_4_5.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
354
- [CLAUDE_OPUS_4_1.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
355
- [CLAUDE_SONNET_4.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
356
- [CLAUDE_SONNET_3_7.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
357
- [CLAUDE_OPUS_4.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
358
- [CLAUDE_HAIKU_3_5.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
359
- [CLAUDE_HAIKU_3.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicStopSequencesOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
360
- [CLAUDE_OPUS_4_6_FAST.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
361
- [CLAUDE_OPUS_4_7.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
362
- [CLAUDE_OPUS_4_7_FAST.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
363
- [CLAUDE_OPUS_4_8.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
364
- [CLAUDE_OPUS_4_8_FAST.id]: AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions & AnthropicStopSequencesOptions & AnthropicThinkingOptions & AnthropicToolChoiceOptions & AnthropicSamplingOptions;
365
- };
366
- export type AnthropicChatModelToolCapabilitiesByName = {
367
- [CLAUDE_OPUS_4_6.id]: typeof CLAUDE_OPUS_4_6.supports.tools;
368
- [CLAUDE_OPUS_4_5.id]: typeof CLAUDE_OPUS_4_5.supports.tools;
369
- [CLAUDE_SONNET_4_6.id]: typeof CLAUDE_SONNET_4_6.supports.tools;
370
- [CLAUDE_SONNET_4_5.id]: typeof CLAUDE_SONNET_4_5.supports.tools;
371
- [CLAUDE_HAIKU_4_5.id]: typeof CLAUDE_HAIKU_4_5.supports.tools;
372
- [CLAUDE_OPUS_4_1.id]: typeof CLAUDE_OPUS_4_1.supports.tools;
373
- [CLAUDE_SONNET_4.id]: typeof CLAUDE_SONNET_4.supports.tools;
374
- [CLAUDE_SONNET_3_7.id]: typeof CLAUDE_SONNET_3_7.supports.tools;
375
- [CLAUDE_OPUS_4.id]: typeof CLAUDE_OPUS_4.supports.tools;
376
- [CLAUDE_HAIKU_3_5.id]: typeof CLAUDE_HAIKU_3_5.supports.tools;
377
- [CLAUDE_HAIKU_3.id]: typeof CLAUDE_HAIKU_3.supports.tools;
378
- [CLAUDE_OPUS_4_6_FAST.id]: typeof CLAUDE_OPUS_4_6_FAST.supports.tools;
379
- [CLAUDE_OPUS_4_7.id]: typeof CLAUDE_OPUS_4_7.supports.tools;
380
- };
381
- /**
382
- * Type-only map from chat model name to its supported input modalities.
383
- * All Anthropic Claude models support text, image, and document (PDF) input.
384
- * Used by the core AI types to constrain ContentPart types based on the selected model.
385
- * Note: These must be inlined as readonly arrays (not typeof) because the model
386
- * constants are not exported and typeof references don't work in .d.ts files
387
- * when consumed by external packages.
388
- *
389
- * @see https://docs.anthropic.com/claude/docs/vision
390
- * @see https://docs.anthropic.com/claude/docs/pdf-support
391
- */
392
- export type AnthropicModelInputModalitiesByName = {
393
- [CLAUDE_OPUS_4_6.id]: typeof CLAUDE_OPUS_4_6.supports.input;
394
- [CLAUDE_OPUS_4_5.id]: typeof CLAUDE_OPUS_4_5.supports.input;
395
- [CLAUDE_SONNET_4_6.id]: typeof CLAUDE_SONNET_4_6.supports.input;
396
- [CLAUDE_SONNET_4_5.id]: typeof CLAUDE_SONNET_4_5.supports.input;
397
- [CLAUDE_HAIKU_4_5.id]: typeof CLAUDE_HAIKU_4_5.supports.input;
398
- [CLAUDE_OPUS_4_1.id]: typeof CLAUDE_OPUS_4_1.supports.input;
399
- [CLAUDE_SONNET_4.id]: typeof CLAUDE_SONNET_4.supports.input;
400
- [CLAUDE_SONNET_3_7.id]: typeof CLAUDE_SONNET_3_7.supports.input;
401
- [CLAUDE_OPUS_4.id]: typeof CLAUDE_OPUS_4.supports.input;
402
- [CLAUDE_HAIKU_3_5.id]: typeof CLAUDE_HAIKU_3_5.supports.input;
403
- [CLAUDE_HAIKU_3.id]: typeof CLAUDE_HAIKU_3.supports.input;
404
- [CLAUDE_OPUS_4_6_FAST.id]: typeof CLAUDE_OPUS_4_6_FAST.supports.input;
405
- [CLAUDE_OPUS_4_7.id]: typeof CLAUDE_OPUS_4_7.supports.input;
406
- [CLAUDE_OPUS_4_7_FAST.id]: typeof CLAUDE_OPUS_4_7_FAST.supports.input;
407
- [CLAUDE_OPUS_4_8.id]: typeof CLAUDE_OPUS_4_8.supports.input;
408
- [CLAUDE_OPUS_4_8_FAST.id]: typeof CLAUDE_OPUS_4_8_FAST.supports.input;
409
- };
410
- export {};
@@ -1,81 +0,0 @@
1
- const CLAUDE_OPUS_4_6 = {
2
- id: "claude-opus-4-6"
3
- };
4
- const CLAUDE_OPUS_4_5 = {
5
- id: "claude-opus-4-5"
6
- };
7
- const CLAUDE_SONNET_4_6 = {
8
- id: "claude-sonnet-4-6"
9
- };
10
- const CLAUDE_SONNET_4_5 = {
11
- id: "claude-sonnet-4-5"
12
- };
13
- const CLAUDE_HAIKU_4_5 = {
14
- id: "claude-haiku-4-5"
15
- };
16
- const CLAUDE_OPUS_4_1 = {
17
- id: "claude-opus-4-1"
18
- };
19
- const CLAUDE_SONNET_4 = {
20
- id: "claude-sonnet-4"
21
- };
22
- const CLAUDE_SONNET_3_7 = {
23
- id: "claude-3-7-sonnet"
24
- };
25
- const CLAUDE_OPUS_4 = {
26
- id: "claude-opus-4"
27
- };
28
- const CLAUDE_HAIKU_3_5 = {
29
- id: "claude-3-5-haiku"
30
- };
31
- const CLAUDE_HAIKU_3 = {
32
- id: "claude-3-haiku"
33
- };
34
- const CLAUDE_OPUS_4_6_FAST = {
35
- id: "claude-opus-4-6-fast"
36
- };
37
- const CLAUDE_OPUS_4_7 = {
38
- id: "claude-opus-4-7"
39
- };
40
- const CLAUDE_OPUS_4_7_FAST = {
41
- id: "claude-opus-4-7-fast"
42
- };
43
- const CLAUDE_OPUS_4_8 = {
44
- id: "claude-opus-4.8"
45
- };
46
- const CLAUDE_OPUS_4_8_FAST = {
47
- id: "claude-opus-4.8-fast"
48
- };
49
- const ANTHROPIC_MODELS = [
50
- CLAUDE_OPUS_4_6.id,
51
- CLAUDE_OPUS_4_5.id,
52
- CLAUDE_SONNET_4_6.id,
53
- CLAUDE_SONNET_4_5.id,
54
- CLAUDE_HAIKU_4_5.id,
55
- CLAUDE_OPUS_4_1.id,
56
- CLAUDE_SONNET_4.id,
57
- CLAUDE_SONNET_3_7.id,
58
- CLAUDE_OPUS_4.id,
59
- CLAUDE_HAIKU_3_5.id,
60
- CLAUDE_HAIKU_3.id,
61
- CLAUDE_OPUS_4_6_FAST.id,
62
- CLAUDE_OPUS_4_7.id,
63
- CLAUDE_OPUS_4_7_FAST.id,
64
- CLAUDE_OPUS_4_8.id,
65
- CLAUDE_OPUS_4_8_FAST.id
66
- ];
67
- const ANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS = /* @__PURE__ */ new Set([
68
- CLAUDE_OPUS_4_5.id,
69
- CLAUDE_OPUS_4_6.id,
70
- CLAUDE_OPUS_4_6_FAST.id,
71
- CLAUDE_OPUS_4_7.id,
72
- CLAUDE_OPUS_4_7_FAST.id,
73
- CLAUDE_SONNET_4_5.id,
74
- CLAUDE_SONNET_4_6.id,
75
- CLAUDE_HAIKU_4_5.id
76
- ]);
77
- export {
78
- ANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS,
79
- ANTHROPIC_MODELS
80
- };
81
- //# sourceMappingURL=model-meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model-meta.js","sources":["../../src/model-meta.ts"],"sourcesContent":["import type {\n AnthropicContainerOptions,\n AnthropicContextManagementOptions,\n AnthropicMCPOptions,\n AnthropicSamplingOptions,\n AnthropicServiceTierOptions,\n AnthropicStopSequencesOptions,\n AnthropicThinkingOptions,\n AnthropicToolChoiceOptions,\n} from './text/text-provider-options'\n\ninterface ModelMeta<\n TProviderOptions = unknown,\n TToolCapabilities = unknown,\n TMessageCapabilities = unknown,\n> {\n name: string\n id: string\n supports: {\n input: Array<'text' | 'image' | 'audio' | 'video' | 'document'>\n extended_thinking?: boolean\n adaptive_thinking?: boolean\n priority_tier?: boolean\n tools?: Array<\n | 'web_search'\n | 'web_fetch'\n | 'code_execution'\n | 'computer_use'\n | 'bash'\n | 'text_editor'\n | 'memory'\n >\n }\n context_window?: number\n max_output_tokens?: number\n knowledge_cutoff?: string\n pricing: {\n input: {\n normal: number\n cached?: number\n }\n output: {\n normal: number\n }\n }\n /**\n * Type-level description of which provider options this model supports.\n */\n providerOptions?: TProviderOptions\n /**\n * Type-level description of which tool capabilities this model supports.\n */\n toolCapabilities?: TToolCapabilities\n /**\n * Type-level description of which message/input capabilities this model supports.\n */\n messageCapabilities?: TMessageCapabilities\n}\n\nconst CLAUDE_OPUS_4_6 = {\n name: 'claude-opus-4-6',\n id: 'claude-opus-4-6',\n context_window: 200_000,\n max_output_tokens: 128_000,\n knowledge_cutoff: '2025-05-01',\n pricing: {\n input: {\n normal: 5,\n },\n output: {\n normal: 25,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_OPUS_4_5 = {\n name: 'claude-opus-4-5',\n id: 'claude-opus-4-5',\n context_window: 200_000,\n max_output_tokens: 32_000,\n knowledge_cutoff: '2025-11-01',\n pricing: {\n input: {\n normal: 15,\n },\n output: {\n normal: 75,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_SONNET_4_6 = {\n name: 'claude-sonnet-4-6',\n id: 'claude-sonnet-4-6',\n context_window: 1_000_000,\n max_output_tokens: 64_000,\n knowledge_cutoff: '2025-08-01',\n pricing: {\n input: {\n normal: 3,\n },\n output: {\n normal: 15,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n adaptive_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_SONNET_4_5 = {\n name: 'claude-sonnet-4-5',\n id: 'claude-sonnet-4-5',\n context_window: 200_000,\n max_output_tokens: 64_000,\n knowledge_cutoff: '2025-09-29',\n pricing: {\n input: {\n normal: 3,\n },\n output: {\n normal: 15,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_HAIKU_4_5 = {\n name: 'claude-haiku-4-5',\n id: 'claude-haiku-4-5',\n context_window: 200_000,\n max_output_tokens: 64_000,\n knowledge_cutoff: '2025-10-01',\n pricing: {\n input: {\n normal: 1,\n },\n output: {\n normal: 5,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_OPUS_4_1 = {\n name: 'claude-opus-4-1',\n id: 'claude-opus-4-1',\n context_window: 200_000,\n max_output_tokens: 64_000,\n knowledge_cutoff: '2025-08-05',\n pricing: {\n input: {\n normal: 15,\n },\n output: {\n normal: 75,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_SONNET_4 = {\n name: 'claude-sonnet-4',\n id: 'claude-sonnet-4',\n context_window: 200_000,\n max_output_tokens: 64_000,\n knowledge_cutoff: '2025-05-14',\n pricing: {\n input: {\n normal: 3,\n },\n output: {\n normal: 15,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_SONNET_3_7 = {\n name: 'claude-sonnet-3-7',\n id: 'claude-3-7-sonnet',\n max_output_tokens: 64_000,\n knowledge_cutoff: '2025-05-14',\n pricing: {\n input: {\n normal: 3,\n },\n output: {\n normal: 15,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_OPUS_4 = {\n name: 'claude-opus-4',\n id: 'claude-opus-4',\n context_window: 200_000,\n max_output_tokens: 32_000,\n knowledge_cutoff: '2025-05-14',\n pricing: {\n input: {\n normal: 15,\n },\n output: {\n normal: 75,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_HAIKU_3_5 = {\n name: 'claude-haiku-3-5',\n id: 'claude-3-5-haiku',\n context_window: 200_000,\n max_output_tokens: 8_000,\n knowledge_cutoff: '2025-10-22',\n pricing: {\n input: {\n normal: 0.8,\n },\n output: {\n normal: 4,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: false,\n priority_tier: true,\n tools: ['web_search', 'web_fetch'],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_HAIKU_3 = {\n name: 'claude-haiku-3',\n id: 'claude-3-haiku',\n context_window: 200_000,\n max_output_tokens: 4_000,\n knowledge_cutoff: '2024-03-07',\n pricing: {\n input: {\n normal: 0.25,\n },\n output: {\n normal: 1.25,\n },\n },\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: false,\n priority_tier: false,\n tools: ['web_search'],\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\n/* const ANTHROPIC_MODEL_META = {\n [CLAUDE_OPUS_4_5.name]: CLAUDE_OPUS_4_5,\n [CLAUDE_SONNET_4_5.name]: CLAUDE_SONNET_4_5,\n [CLAUDE_HAIKU_4_5.name]: CLAUDE_HAIKU_4_5,\n [CLAUDE_OPUS_4_1.name]: CLAUDE_OPUS_4_1,\n [CLAUDE_SONNET_4.name]: CLAUDE_SONNET_4,\n [CLAUDE_SONNET_3_7.name]: CLAUDE_SONNET_3_7,\n [CLAUDE_OPUS_4.name]: CLAUDE_OPUS_4,\n [CLAUDE_HAIKU_3_5.name]: CLAUDE_HAIKU_3_5,\n [CLAUDE_HAIKU_3.name]: CLAUDE_HAIKU_3,\n} as const */\n\n/* export type AnthropicModelProviderOptions<\n TModel extends keyof AnthropicModelMetaMap,\n> =\n AnthropicModelMetaMap[TModel] extends ModelMeta<\n infer TProviderOptions,\n any,\n any\n >\n ? TProviderOptions\n : unknown */\n\n/* export type AnthropicModelToolCapabilities<\n TModel extends keyof AnthropicModelMetaMap,\n> =\n AnthropicModelMetaMap[TModel] extends ModelMeta<\n any,\n infer TToolCapabilities,\n any\n >\n ? TToolCapabilities\n : unknown\n */\n/* export type AnthropicModelMessageCapabilities<\n TModel extends keyof AnthropicModelMetaMap,\n> =\n AnthropicModelMetaMap[TModel] extends ModelMeta<\n any,\n any,\n infer TMessageCapabilities\n >\n ? TMessageCapabilities\n : unknown */\n\nconst CLAUDE_OPUS_4_6_FAST = {\n name: 'claude-opus-4-6-fast',\n id: 'claude-opus-4-6-fast',\n context_window: 1_000_000,\n max_output_tokens: 128_000,\n supports: {\n input: ['text', 'image'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n pricing: {\n input: {\n normal: 30,\n cached: 3,\n },\n output: {\n normal: 150,\n },\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_OPUS_4_7 = {\n name: 'claude-opus-4-7',\n id: 'claude-opus-4-7',\n context_window: 1_000_000,\n max_output_tokens: 128_000,\n supports: {\n input: ['text', 'image'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n pricing: {\n input: {\n normal: 5,\n cached: 0.5,\n },\n output: {\n normal: 25,\n },\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_OPUS_4_7_FAST = {\n name: 'claude-opus-4-7-fast',\n id: 'claude-opus-4-7-fast',\n context_window: 1_000_000,\n max_output_tokens: 128_000,\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n pricing: {\n input: {\n normal: 30,\n cached: 3,\n },\n output: {\n normal: 150,\n },\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_OPUS_4_8 = {\n name: 'claude-opus-4.8',\n id: 'claude-opus-4.8',\n context_window: 1_000_000,\n max_output_tokens: 128_000,\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n pricing: {\n input: {\n normal: 5,\n cached: 0.5,\n },\n output: {\n normal: 25,\n },\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nconst CLAUDE_OPUS_4_8_FAST = {\n name: 'claude-opus-4.8-fast',\n id: 'claude-opus-4.8-fast',\n context_window: 1_000_000,\n max_output_tokens: 128_000,\n supports: {\n input: ['text', 'image', 'document'],\n extended_thinking: true,\n priority_tier: true,\n tools: [\n 'web_search',\n 'web_fetch',\n 'code_execution',\n 'computer_use',\n 'bash',\n 'text_editor',\n 'memory',\n ],\n },\n pricing: {\n input: {\n normal: 10,\n cached: 1,\n },\n output: {\n normal: 50,\n },\n },\n} as const satisfies ModelMeta<\n AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n>\n\nexport const ANTHROPIC_MODELS = [\n CLAUDE_OPUS_4_6.id,\n CLAUDE_OPUS_4_5.id,\n CLAUDE_SONNET_4_6.id,\n CLAUDE_SONNET_4_5.id,\n CLAUDE_HAIKU_4_5.id,\n CLAUDE_OPUS_4_1.id,\n CLAUDE_SONNET_4.id,\n CLAUDE_SONNET_3_7.id,\n CLAUDE_OPUS_4.id,\n CLAUDE_HAIKU_3_5.id,\n CLAUDE_HAIKU_3.id,\n\n CLAUDE_OPUS_4_6_FAST.id,\n\n CLAUDE_OPUS_4_7.id,\n\n CLAUDE_OPUS_4_7_FAST.id,\n\n CLAUDE_OPUS_4_8.id,\n CLAUDE_OPUS_4_8_FAST.id,\n] as const\n\n/**\n * Anthropic models that support combining `tools` + JSON-Schema-constrained\n * output in a single streaming Messages request (per issue #605). GA'd\n * 2026-01-29 for Claude 4.5+ via `output_format` on the beta messages\n * endpoint. Older Claude models still need the forced-tool-use workaround\n * in `structuredOutput`.\n */\nexport const ANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS = new Set<string>([\n CLAUDE_OPUS_4_5.id,\n CLAUDE_OPUS_4_6.id,\n CLAUDE_OPUS_4_6_FAST.id,\n CLAUDE_OPUS_4_7.id,\n CLAUDE_OPUS_4_7_FAST.id,\n CLAUDE_SONNET_4_5.id,\n CLAUDE_SONNET_4_6.id,\n CLAUDE_HAIKU_4_5.id,\n])\n\n// const ANTHROPIC_IMAGE_MODELS = [] as const\n// const ANTHROPIC_EMBEDDING_MODELS = [] as const\n// const ANTHROPIC_AUDIO_MODELS = [] as const\n// const ANTHROPIC_VIDEO_MODELS = [] as const\n\n/* type AnthropicModel = (typeof ANTHROPIC_MODELS)[number] */\nexport type AnthropicChatModel = (typeof ANTHROPIC_MODELS)[number]\n// Manual type map for per-model provider options\n// Models are differentiated by extended_thinking and priority_tier support\nexport type AnthropicChatModelProviderOptionsByName = {\n // Models with both extended_thinking and priority_tier\n [CLAUDE_OPUS_4_6.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4_5.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_SONNET_4_6.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_SONNET_4_5.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_HAIKU_4_5.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4_1.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_SONNET_4.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_SONNET_3_7.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n\n // Model with priority_tier but NO extended_thinking\n [CLAUDE_HAIKU_3_5.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n\n // Model with neither extended_thinking nor priority_tier\n [CLAUDE_HAIKU_3.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicStopSequencesOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4_6_FAST.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4_7.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4_7_FAST.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4_8.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n [CLAUDE_OPUS_4_8_FAST.id]: AnthropicContainerOptions &\n AnthropicContextManagementOptions &\n AnthropicMCPOptions &\n AnthropicServiceTierOptions &\n AnthropicStopSequencesOptions &\n AnthropicThinkingOptions &\n AnthropicToolChoiceOptions &\n AnthropicSamplingOptions\n}\n\nexport type AnthropicChatModelToolCapabilitiesByName = {\n [CLAUDE_OPUS_4_6.id]: typeof CLAUDE_OPUS_4_6.supports.tools\n [CLAUDE_OPUS_4_5.id]: typeof CLAUDE_OPUS_4_5.supports.tools\n [CLAUDE_SONNET_4_6.id]: typeof CLAUDE_SONNET_4_6.supports.tools\n [CLAUDE_SONNET_4_5.id]: typeof CLAUDE_SONNET_4_5.supports.tools\n [CLAUDE_HAIKU_4_5.id]: typeof CLAUDE_HAIKU_4_5.supports.tools\n [CLAUDE_OPUS_4_1.id]: typeof CLAUDE_OPUS_4_1.supports.tools\n [CLAUDE_SONNET_4.id]: typeof CLAUDE_SONNET_4.supports.tools\n [CLAUDE_SONNET_3_7.id]: typeof CLAUDE_SONNET_3_7.supports.tools\n [CLAUDE_OPUS_4.id]: typeof CLAUDE_OPUS_4.supports.tools\n [CLAUDE_HAIKU_3_5.id]: typeof CLAUDE_HAIKU_3_5.supports.tools\n [CLAUDE_HAIKU_3.id]: typeof CLAUDE_HAIKU_3.supports.tools\n [CLAUDE_OPUS_4_6_FAST.id]: typeof CLAUDE_OPUS_4_6_FAST.supports.tools\n [CLAUDE_OPUS_4_7.id]: typeof CLAUDE_OPUS_4_7.supports.tools\n}\n\n/**\n * Type-only map from chat model name to its supported input modalities.\n * All Anthropic Claude models support text, image, and document (PDF) input.\n * Used by the core AI types to constrain ContentPart types based on the selected model.\n * Note: These must be inlined as readonly arrays (not typeof) because the model\n * constants are not exported and typeof references don't work in .d.ts files\n * when consumed by external packages.\n *\n * @see https://docs.anthropic.com/claude/docs/vision\n * @see https://docs.anthropic.com/claude/docs/pdf-support\n */\nexport type AnthropicModelInputModalitiesByName = {\n [CLAUDE_OPUS_4_6.id]: typeof CLAUDE_OPUS_4_6.supports.input\n [CLAUDE_OPUS_4_5.id]: typeof CLAUDE_OPUS_4_5.supports.input\n [CLAUDE_SONNET_4_6.id]: typeof CLAUDE_SONNET_4_6.supports.input\n [CLAUDE_SONNET_4_5.id]: typeof CLAUDE_SONNET_4_5.supports.input\n [CLAUDE_HAIKU_4_5.id]: typeof CLAUDE_HAIKU_4_5.supports.input\n [CLAUDE_OPUS_4_1.id]: typeof CLAUDE_OPUS_4_1.supports.input\n [CLAUDE_SONNET_4.id]: typeof CLAUDE_SONNET_4.supports.input\n [CLAUDE_SONNET_3_7.id]: typeof CLAUDE_SONNET_3_7.supports.input\n [CLAUDE_OPUS_4.id]: typeof CLAUDE_OPUS_4.supports.input\n [CLAUDE_HAIKU_3_5.id]: typeof CLAUDE_HAIKU_3_5.supports.input\n [CLAUDE_HAIKU_3.id]: typeof CLAUDE_HAIKU_3.supports.input\n [CLAUDE_OPUS_4_6_FAST.id]: typeof CLAUDE_OPUS_4_6_FAST.supports.input\n [CLAUDE_OPUS_4_7.id]: typeof CLAUDE_OPUS_4_7.supports.input\n [CLAUDE_OPUS_4_7_FAST.id]: typeof CLAUDE_OPUS_4_7_FAST.supports.input\n [CLAUDE_OPUS_4_8.id]: typeof CLAUDE_OPUS_4_8.supports.input\n [CLAUDE_OPUS_4_8_FAST.id]: typeof CLAUDE_OPUS_4_8_FAST.supports.input\n}\n"],"names":[],"mappings":"AA2DA,MAAM,kBAAkB;AAAA,EAEtB,IAAI;AA0BN;AAWA,MAAM,kBAAkB;AAAA,EAEtB,IAAI;AA0BN;AAWA,MAAM,oBAAoB;AAAA,EAExB,IAAI;AA2BN;AAWA,MAAM,oBAAoB;AAAA,EAExB,IAAI;AA0BN;AAWA,MAAM,mBAAmB;AAAA,EAEvB,IAAI;AA0BN;AAWA,MAAM,kBAAkB;AAAA,EAEtB,IAAI;AA0BN;AAWA,MAAM,kBAAkB;AAAA,EAEtB,IAAI;AA0BN;AAWA,MAAM,oBAAoB;AAAA,EAExB,IAAI;AAyBN;AAWA,MAAM,gBAAgB;AAAA,EAEpB,IAAI;AA0BN;AAWA,MAAM,mBAAmB;AAAA,EAEvB,IAAI;AAkBN;AAWA,MAAM,iBAAiB;AAAA,EAErB,IAAI;AAkBN;AAwDA,MAAM,uBAAuB;AAAA,EAE3B,IAAI;AA0BN;AAWA,MAAM,kBAAkB;AAAA,EAEtB,IAAI;AA0BN;AAWA,MAAM,uBAAuB;AAAA,EAE3B,IAAI;AA0BN;AAWA,MAAM,kBAAkB;AAAA,EAEtB,IAAI;AA0BN;AAWA,MAAM,uBAAuB;AAAA,EAE3B,IAAI;AA0BN;AAWO,MAAM,mBAAmB;AAAA,EAC9B,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,eAAe;AAAA,EAEf,qBAAqB;AAAA,EAErB,gBAAgB;AAAA,EAEhB,qBAAqB;AAAA,EAErB,gBAAgB;AAAA,EAChB,qBAAqB;AACvB;AASO,MAAM,iEAAiD,IAAY;AAAA,EACxE,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,iBAAiB;AACnB,CAAC;"}