Skip to content

Commit 5b64aa9

Browse files
mrubensroomote
andauthored
Support native tools in the anthropic provider (#9644)
Co-authored-by: Roo Code <roomote@roocode.com>
1 parent 254bd23 commit 5b64aa9

File tree

3 files changed

+447
-1
lines changed

3 files changed

+447
-1
lines changed

packages/types/src/providers/anthropic.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const anthropicModels = {
1111
contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
1212
supportsImages: true,
1313
supportsPromptCache: true,
14+
supportsNativeTools: true,
1415
inputPrice: 3.0, // $3 per million input tokens (≤200K context)
1516
outputPrice: 15.0, // $15 per million output tokens (≤200K context)
1617
cacheWritesPrice: 3.75, // $3.75 per million tokens
@@ -32,6 +33,7 @@ export const anthropicModels = {
3233
contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
3334
supportsImages: true,
3435
supportsPromptCache: true,
36+
supportsNativeTools: true,
3537
inputPrice: 3.0, // $3 per million input tokens (≤200K context)
3638
outputPrice: 15.0, // $15 per million output tokens (≤200K context)
3739
cacheWritesPrice: 3.75, // $3.75 per million tokens
@@ -53,6 +55,7 @@ export const anthropicModels = {
5355
contextWindow: 200_000,
5456
supportsImages: true,
5557
supportsPromptCache: true,
58+
supportsNativeTools: true,
5659
inputPrice: 5.0, // $5 per million input tokens
5760
outputPrice: 25.0, // $25 per million output tokens
5861
cacheWritesPrice: 6.25, // $6.25 per million tokens
@@ -64,6 +67,7 @@ export const anthropicModels = {
6467
contextWindow: 200_000,
6568
supportsImages: true,
6669
supportsPromptCache: true,
70+
supportsNativeTools: true,
6771
inputPrice: 15.0, // $15 per million input tokens
6872
outputPrice: 75.0, // $75 per million output tokens
6973
cacheWritesPrice: 18.75, // $18.75 per million tokens
@@ -75,6 +79,7 @@ export const anthropicModels = {
7579
contextWindow: 200_000,
7680
supportsImages: true,
7781
supportsPromptCache: true,
82+
supportsNativeTools: true,
7883
inputPrice: 15.0, // $15 per million input tokens
7984
outputPrice: 75.0, // $75 per million output tokens
8085
cacheWritesPrice: 18.75, // $18.75 per million tokens
@@ -86,6 +91,7 @@ export const anthropicModels = {
8691
contextWindow: 200_000,
8792
supportsImages: true,
8893
supportsPromptCache: true,
94+
supportsNativeTools: true,
8995
inputPrice: 3.0, // $3 per million input tokens
9096
outputPrice: 15.0, // $15 per million output tokens
9197
cacheWritesPrice: 3.75, // $3.75 per million tokens
@@ -98,6 +104,7 @@ export const anthropicModels = {
98104
contextWindow: 200_000,
99105
supportsImages: true,
100106
supportsPromptCache: true,
107+
supportsNativeTools: true,
101108
inputPrice: 3.0, // $3 per million input tokens
102109
outputPrice: 15.0, // $15 per million output tokens
103110
cacheWritesPrice: 3.75, // $3.75 per million tokens
@@ -108,6 +115,7 @@ export const anthropicModels = {
108115
contextWindow: 200_000,
109116
supportsImages: true,
110117
supportsPromptCache: true,
118+
supportsNativeTools: true,
111119
inputPrice: 3.0, // $3 per million input tokens
112120
outputPrice: 15.0, // $15 per million output tokens
113121
cacheWritesPrice: 3.75, // $3.75 per million tokens
@@ -118,6 +126,7 @@ export const anthropicModels = {
118126
contextWindow: 200_000,
119127
supportsImages: false,
120128
supportsPromptCache: true,
129+
supportsNativeTools: true,
121130
inputPrice: 1.0,
122131
outputPrice: 5.0,
123132
cacheWritesPrice: 1.25,
@@ -128,6 +137,7 @@ export const anthropicModels = {
128137
contextWindow: 200_000,
129138
supportsImages: true,
130139
supportsPromptCache: true,
140+
supportsNativeTools: true,
131141
inputPrice: 15.0,
132142
outputPrice: 75.0,
133143
cacheWritesPrice: 18.75,
@@ -138,6 +148,7 @@ export const anthropicModels = {
138148
contextWindow: 200_000,
139149
supportsImages: true,
140150
supportsPromptCache: true,
151+
supportsNativeTools: true,
141152
inputPrice: 0.25,
142153
outputPrice: 1.25,
143154
cacheWritesPrice: 0.3,
@@ -148,6 +159,7 @@ export const anthropicModels = {
148159
contextWindow: 200_000,
149160
supportsImages: true,
150161
supportsPromptCache: true,
162+
supportsNativeTools: true,
151163
inputPrice: 1.0,
152164
outputPrice: 5.0,
153165
cacheWritesPrice: 1.25,

0 commit comments

Comments
 (0)