@ai-sdk/anthropic 3.0.98 → 3.0.99
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 +7 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +10 -1
- package/dist/internal/index.d.ts +10 -1
- package/dist/internal/index.js +11 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +9 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/anthropic-messages-language-model.ts +13 -0
- package/src/internal/index.ts +1 -0
package/package.json
CHANGED
|
@@ -334,6 +334,19 @@ export class AnthropicMessagesLanguageModel implements LanguageModelV3 {
|
|
|
334
334
|
}
|
|
335
335
|
: undefined;
|
|
336
336
|
|
|
337
|
+
if (
|
|
338
|
+
jsonResponseTool != null &&
|
|
339
|
+
anthropicOptions?.disableParallelToolUse === false
|
|
340
|
+
) {
|
|
341
|
+
warnings.push({
|
|
342
|
+
type: 'unsupported',
|
|
343
|
+
feature: 'providerOptions.anthropic.disableParallelToolUse',
|
|
344
|
+
details:
|
|
345
|
+
'`disableParallelToolUse: false` is ignored when using the JSON response tool. ' +
|
|
346
|
+
'Parallel tool use is disabled to ensure a single coherent JSON tool call.',
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
|
|
337
350
|
const contextManagement = anthropicOptions?.contextManagement;
|
|
338
351
|
|
|
339
352
|
// Create a shared cache control validator to track breakpoints across tools and messages
|
package/src/internal/index.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { AnthropicMessagesLanguageModel } from '../anthropic-messages-language-m
|
|
|
2
2
|
export { anthropicTools } from '../anthropic-tools';
|
|
3
3
|
export type { AnthropicMessagesModelId } from '../anthropic-messages-options';
|
|
4
4
|
export { prepareTools } from '../anthropic-prepare-tools';
|
|
5
|
+
export { sanitizeJsonSchema } from '../sanitize-json-schema';
|