@ai-sdk/anthropic 3.0.0-beta.70 → 3.0.0-beta.71

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.
@@ -847,7 +847,8 @@ async function prepareTools({
847
847
  tools,
848
848
  toolChoice,
849
849
  disableParallelToolUse,
850
- cacheControlValidator
850
+ cacheControlValidator,
851
+ supportsStructuredOutput
851
852
  }) {
852
853
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
853
854
  const toolWarnings = [];
@@ -868,7 +869,8 @@ async function prepareTools({
868
869
  name: tool.name,
869
870
  description: tool.description,
870
871
  input_schema: tool.inputSchema,
871
- cache_control: cacheControl
872
+ cache_control: cacheControl,
873
+ ...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {}
872
874
  });
873
875
  break;
874
876
  }
@@ -2145,12 +2147,14 @@ var AnthropicMessagesLanguageModel = class {
2145
2147
  tools: [...tools != null ? tools : [], jsonResponseTool],
2146
2148
  toolChoice: { type: "required" },
2147
2149
  disableParallelToolUse: true,
2148
- cacheControlValidator
2150
+ cacheControlValidator,
2151
+ supportsStructuredOutput
2149
2152
  } : {
2150
2153
  tools: tools != null ? tools : [],
2151
2154
  toolChoice,
2152
2155
  disableParallelToolUse: anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse,
2153
- cacheControlValidator
2156
+ cacheControlValidator,
2157
+ supportsStructuredOutput
2154
2158
  }
2155
2159
  );
2156
2160
  const cacheWarnings = cacheControlValidator.getWarnings();