Skip to content

Commit a9a15b3

Browse files
authored
feat: enable native tools by default for multiple providers (#10059)
1 parent 6619d46 commit a9a15b3

23 files changed

+684
-27
lines changed

packages/types/src/providers/bedrock.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const bedrockModels = {
2020
supportsPromptCache: true,
2121
supportsReasoningBudget: true,
2222
supportsNativeTools: true,
23+
defaultToolProtocol: "native",
2324
inputPrice: 3.0,
2425
outputPrice: 15.0,
2526
cacheWritesPrice: 3.75,
@@ -104,6 +105,7 @@ export const bedrockModels = {
104105
supportsPromptCache: true,
105106
supportsReasoningBudget: true,
106107
supportsNativeTools: true,
108+
defaultToolProtocol: "native",
107109
inputPrice: 3.0,
108110
outputPrice: 15.0,
109111
cacheWritesPrice: 3.75,
@@ -119,6 +121,7 @@ export const bedrockModels = {
119121
supportsPromptCache: true,
120122
supportsReasoningBudget: true,
121123
supportsNativeTools: true,
124+
defaultToolProtocol: "native",
122125
inputPrice: 15.0,
123126
outputPrice: 75.0,
124127
cacheWritesPrice: 18.75,
@@ -134,6 +137,7 @@ export const bedrockModels = {
134137
supportsPromptCache: true,
135138
supportsReasoningBudget: true,
136139
supportsNativeTools: true,
140+
defaultToolProtocol: "native",
137141
inputPrice: 5.0,
138142
outputPrice: 25.0,
139143
cacheWritesPrice: 6.25,
@@ -149,6 +153,7 @@ export const bedrockModels = {
149153
supportsPromptCache: true,
150154
supportsReasoningBudget: true,
151155
supportsNativeTools: true,
156+
defaultToolProtocol: "native",
152157
inputPrice: 15.0,
153158
outputPrice: 75.0,
154159
cacheWritesPrice: 18.75,
@@ -164,6 +169,7 @@ export const bedrockModels = {
164169
supportsPromptCache: true,
165170
supportsReasoningBudget: true,
166171
supportsNativeTools: true,
172+
defaultToolProtocol: "native",
167173
inputPrice: 3.0,
168174
outputPrice: 15.0,
169175
cacheWritesPrice: 3.75,
@@ -178,6 +184,7 @@ export const bedrockModels = {
178184
supportsImages: true,
179185
supportsPromptCache: true,
180186
supportsNativeTools: true,
187+
defaultToolProtocol: "native",
181188
inputPrice: 3.0,
182189
outputPrice: 15.0,
183190
cacheWritesPrice: 3.75,
@@ -192,6 +199,7 @@ export const bedrockModels = {
192199
supportsImages: false,
193200
supportsPromptCache: true,
194201
supportsNativeTools: true,
202+
defaultToolProtocol: "native",
195203
inputPrice: 0.8,
196204
outputPrice: 4.0,
197205
cacheWritesPrice: 1.0,
@@ -207,6 +215,7 @@ export const bedrockModels = {
207215
supportsPromptCache: true,
208216
supportsReasoningBudget: true,
209217
supportsNativeTools: true,
218+
defaultToolProtocol: "native",
210219
inputPrice: 1.0,
211220
outputPrice: 5.0,
212221
cacheWritesPrice: 1.25, // 5m cache writes
@@ -221,6 +230,7 @@ export const bedrockModels = {
221230
supportsImages: true,
222231
supportsPromptCache: false,
223232
supportsNativeTools: true,
233+
defaultToolProtocol: "native",
224234
inputPrice: 3.0,
225235
outputPrice: 15.0,
226236
},
@@ -230,6 +240,7 @@ export const bedrockModels = {
230240
supportsImages: true,
231241
supportsPromptCache: false,
232242
supportsNativeTools: true,
243+
defaultToolProtocol: "native",
233244
inputPrice: 15.0,
234245
outputPrice: 75.0,
235246
},
@@ -239,6 +250,7 @@ export const bedrockModels = {
239250
supportsImages: true,
240251
supportsPromptCache: false,
241252
supportsNativeTools: true,
253+
defaultToolProtocol: "native",
242254
inputPrice: 3.0,
243255
outputPrice: 15.0,
244256
},
@@ -248,6 +260,7 @@ export const bedrockModels = {
248260
supportsImages: true,
249261
supportsPromptCache: false,
250262
supportsNativeTools: true,
263+
defaultToolProtocol: "native",
251264
inputPrice: 0.25,
252265
outputPrice: 1.25,
253266
},
@@ -257,6 +270,7 @@ export const bedrockModels = {
257270
supportsImages: false,
258271
supportsPromptCache: false,
259272
supportsNativeTools: true,
273+
defaultToolProtocol: "native",
260274
inputPrice: 8.0,
261275
outputPrice: 24.0,
262276
description: "Claude 2.1",
@@ -267,6 +281,7 @@ export const bedrockModels = {
267281
supportsImages: false,
268282
supportsPromptCache: false,
269283
supportsNativeTools: true,
284+
defaultToolProtocol: "native",
270285
inputPrice: 8.0,
271286
outputPrice: 24.0,
272287
description: "Claude 2.0",
@@ -277,6 +292,7 @@ export const bedrockModels = {
277292
supportsImages: false,
278293
supportsPromptCache: false,
279294
supportsNativeTools: true,
295+
defaultToolProtocol: "native",
280296
inputPrice: 0.8,
281297
outputPrice: 2.4,
282298
description: "Claude Instant",

packages/types/src/providers/cerebras.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const cerebrasModels = {
1212
supportsImages: false,
1313
supportsPromptCache: false,
1414
supportsNativeTools: true,
15+
defaultToolProtocol: "native",
1516
inputPrice: 0,
1617
outputPrice: 0,
1718
description: "Highly intelligent general purpose model with up to 1,000 tokens/s",
@@ -22,6 +23,7 @@ export const cerebrasModels = {
2223
supportsImages: false,
2324
supportsPromptCache: false,
2425
supportsNativeTools: true,
26+
defaultToolProtocol: "native",
2527
inputPrice: 0,
2628
outputPrice: 0,
2729
description: "Intelligent model with ~1400 tokens/s",
@@ -32,6 +34,7 @@ export const cerebrasModels = {
3234
supportsImages: false,
3335
supportsPromptCache: false,
3436
supportsNativeTools: true,
37+
defaultToolProtocol: "native",
3538
inputPrice: 0,
3639
outputPrice: 0,
3740
description: "Powerful model with ~2600 tokens/s",
@@ -42,6 +45,7 @@ export const cerebrasModels = {
4245
supportsImages: false,
4346
supportsPromptCache: false,
4447
supportsNativeTools: true,
48+
defaultToolProtocol: "native",
4549
inputPrice: 0,
4650
outputPrice: 0,
4751
description: "SOTA coding performance with ~2500 tokens/s",
@@ -52,6 +56,7 @@ export const cerebrasModels = {
5256
supportsImages: false,
5357
supportsPromptCache: false,
5458
supportsNativeTools: true,
59+
defaultToolProtocol: "native",
5560
inputPrice: 0,
5661
outputPrice: 0,
5762
description:

packages/types/src/providers/doubao.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const doubaoModels = {
99
supportsImages: true,
1010
supportsPromptCache: true,
1111
supportsNativeTools: true,
12+
defaultToolProtocol: "native",
1213
inputPrice: 0.0001, // $0.0001 per million tokens (cache miss)
1314
outputPrice: 0.0004, // $0.0004 per million tokens
1415
cacheWritesPrice: 0.0001, // $0.0001 per million tokens (cache miss)
@@ -21,6 +22,7 @@ export const doubaoModels = {
2122
supportsImages: true,
2223
supportsPromptCache: true,
2324
supportsNativeTools: true,
25+
defaultToolProtocol: "native",
2426
inputPrice: 0.0002, // $0.0002 per million tokens
2527
outputPrice: 0.0008, // $0.0008 per million tokens
2628
cacheWritesPrice: 0.0002, // $0.0002 per million
@@ -33,6 +35,7 @@ export const doubaoModels = {
3335
supportsImages: true,
3436
supportsPromptCache: true,
3537
supportsNativeTools: true,
38+
defaultToolProtocol: "native",
3639
inputPrice: 0.00015, // $0.00015 per million tokens
3740
outputPrice: 0.0006, // $0.0006 per million tokens
3841
cacheWritesPrice: 0.00015, // $0.00015 per million

packages/types/src/providers/fireworks.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const fireworksModels = {
2424
supportsImages: false,
2525
supportsPromptCache: true,
2626
supportsNativeTools: true,
27+
defaultToolProtocol: "native",
2728
inputPrice: 0.6,
2829
outputPrice: 2.5,
2930
cacheReadsPrice: 0.15,
@@ -36,6 +37,7 @@ export const fireworksModels = {
3637
supportsImages: false,
3738
supportsPromptCache: false,
3839
supportsNativeTools: true,
40+
defaultToolProtocol: "native",
3941
inputPrice: 0.6,
4042
outputPrice: 2.5,
4143
description:
@@ -47,6 +49,7 @@ export const fireworksModels = {
4749
supportsImages: false,
4850
supportsPromptCache: false,
4951
supportsNativeTools: true,
52+
defaultToolProtocol: "native",
5053
inputPrice: 0.3,
5154
outputPrice: 1.2,
5255
description:
@@ -58,6 +61,7 @@ export const fireworksModels = {
5861
supportsImages: false,
5962
supportsPromptCache: false,
6063
supportsNativeTools: true,
64+
defaultToolProtocol: "native",
6165
inputPrice: 0.22,
6266
outputPrice: 0.88,
6367
description: "Latest Qwen3 thinking model, competitive against the best closed source models in Jul 2025.",
@@ -68,6 +72,7 @@ export const fireworksModels = {
6872
supportsImages: false,
6973
supportsPromptCache: false,
7074
supportsNativeTools: true,
75+
defaultToolProtocol: "native",
7176
inputPrice: 0.45,
7277
outputPrice: 1.8,
7378
description: "Qwen3's most agentic code model to date.",
@@ -78,6 +83,7 @@ export const fireworksModels = {
7883
supportsImages: false,
7984
supportsPromptCache: false,
8085
supportsNativeTools: true,
86+
defaultToolProtocol: "native",
8187
inputPrice: 3,
8288
outputPrice: 8,
8389
description:
@@ -89,6 +95,7 @@ export const fireworksModels = {
8995
supportsImages: false,
9096
supportsPromptCache: false,
9197
supportsNativeTools: true,
98+
defaultToolProtocol: "native",
9299
inputPrice: 0.9,
93100
outputPrice: 0.9,
94101
description:
@@ -100,6 +107,7 @@ export const fireworksModels = {
100107
supportsImages: false,
101108
supportsPromptCache: false,
102109
supportsNativeTools: true,
110+
defaultToolProtocol: "native",
103111
inputPrice: 0.56,
104112
outputPrice: 1.68,
105113
description:
@@ -111,6 +119,7 @@ export const fireworksModels = {
111119
supportsImages: false,
112120
supportsPromptCache: false,
113121
supportsNativeTools: true,
122+
defaultToolProtocol: "native",
114123
inputPrice: 0.55,
115124
outputPrice: 2.19,
116125
description:
@@ -122,6 +131,7 @@ export const fireworksModels = {
122131
supportsImages: false,
123132
supportsPromptCache: false,
124133
supportsNativeTools: true,
134+
defaultToolProtocol: "native",
125135
inputPrice: 0.55,
126136
outputPrice: 2.19,
127137
description:
@@ -133,6 +143,7 @@ export const fireworksModels = {
133143
supportsImages: false,
134144
supportsPromptCache: false,
135145
supportsNativeTools: true,
146+
defaultToolProtocol: "native",
136147
inputPrice: 0.55,
137148
outputPrice: 2.19,
138149
description:
@@ -144,6 +155,7 @@ export const fireworksModels = {
144155
supportsImages: false,
145156
supportsPromptCache: false,
146157
supportsNativeTools: true,
158+
defaultToolProtocol: "native",
147159
inputPrice: 0.07,
148160
outputPrice: 0.3,
149161
description:
@@ -155,6 +167,7 @@ export const fireworksModels = {
155167
supportsImages: false,
156168
supportsPromptCache: false,
157169
supportsNativeTools: true,
170+
defaultToolProtocol: "native",
158171
inputPrice: 0.15,
159172
outputPrice: 0.6,
160173
description:

packages/types/src/providers/gemini.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const geminiModels = {
1111
contextWindow: 1_048_576,
1212
supportsImages: true,
1313
supportsNativeTools: true,
14+
defaultToolProtocol: "native",
1415
supportsPromptCache: true,
1516
supportsReasoningEffort: ["low", "high"],
1617
reasoningEffort: "low",
@@ -37,6 +38,7 @@ export const geminiModels = {
3738
contextWindow: 1_048_576,
3839
supportsImages: true,
3940
supportsNativeTools: true,
41+
defaultToolProtocol: "native",
4042
supportsPromptCache: true,
4143
inputPrice: 2.5, // This is the pricing for prompts above 200k tokens.
4244
outputPrice: 15,
@@ -65,6 +67,7 @@ export const geminiModels = {
6567
contextWindow: 1_048_576,
6668
supportsImages: true,
6769
supportsNativeTools: true,
70+
defaultToolProtocol: "native",
6871
supportsPromptCache: true,
6972
inputPrice: 2.5, // This is the pricing for prompts above 200k tokens.
7073
outputPrice: 15,
@@ -92,6 +95,7 @@ export const geminiModels = {
9295
contextWindow: 1_048_576,
9396
supportsImages: true,
9497
supportsNativeTools: true,
98+
defaultToolProtocol: "native",
9599
supportsPromptCache: true,
96100
inputPrice: 2.5, // This is the pricing for prompts above 200k tokens.
97101
outputPrice: 15,
@@ -117,6 +121,7 @@ export const geminiModels = {
117121
contextWindow: 1_048_576,
118122
supportsImages: true,
119123
supportsNativeTools: true,
124+
defaultToolProtocol: "native",
120125
supportsPromptCache: true,
121126
inputPrice: 2.5, // This is the pricing for prompts above 200k tokens.
122127
outputPrice: 15,
@@ -146,6 +151,7 @@ export const geminiModels = {
146151
contextWindow: 1_048_576,
147152
supportsImages: true,
148153
supportsNativeTools: true,
154+
defaultToolProtocol: "native",
149155
supportsPromptCache: true,
150156
inputPrice: 0.3,
151157
outputPrice: 2.5,
@@ -159,6 +165,7 @@ export const geminiModels = {
159165
contextWindow: 1_048_576,
160166
supportsImages: true,
161167
supportsNativeTools: true,
168+
defaultToolProtocol: "native",
162169
supportsPromptCache: true,
163170
inputPrice: 0.3,
164171
outputPrice: 2.5,
@@ -172,6 +179,7 @@ export const geminiModels = {
172179
contextWindow: 1_048_576,
173180
supportsImages: true,
174181
supportsNativeTools: true,
182+
defaultToolProtocol: "native",
175183
supportsPromptCache: true,
176184
inputPrice: 0.3,
177185
outputPrice: 2.5,
@@ -187,6 +195,7 @@ export const geminiModels = {
187195
contextWindow: 1_048_576,
188196
supportsImages: true,
189197
supportsNativeTools: true,
198+
defaultToolProtocol: "native",
190199
supportsPromptCache: true,
191200
inputPrice: 0.1,
192201
outputPrice: 0.4,
@@ -200,6 +209,7 @@ export const geminiModels = {
200209
contextWindow: 1_048_576,
201210
supportsImages: true,
202211
supportsNativeTools: true,
212+
defaultToolProtocol: "native",
203213
supportsPromptCache: true,
204214
inputPrice: 0.1,
205215
outputPrice: 0.4,

0 commit comments

Comments
 (0)