@ai-sdk/anthropic 3.0.0-beta.72 → 3.0.0-beta.74

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/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "3.0.0-beta.72" : "0.0.0-test";
14
+ var VERSION = true ? "3.0.0-beta.74" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -885,8 +885,16 @@ async function prepareTools({
885
885
  description: tool.description,
886
886
  input_schema: tool.inputSchema,
887
887
  cache_control: cacheControl,
888
- ...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {}
888
+ ...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {},
889
+ ...tool.inputExamples != null ? {
890
+ input_examples: tool.inputExamples.map(
891
+ (example) => example.input
892
+ )
893
+ } : {}
889
894
  });
895
+ if (tool.inputExamples != null) {
896
+ betas.add("advanced-tool-use-2025-11-20");
897
+ }
890
898
  break;
891
899
  }
892
900
  case "provider": {