@ai-sdk/anthropic 3.0.56 → 3.0.58
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 +15 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +2 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/anthropic-messages-api.ts +1 -0
- package/src/anthropic-prepare-tools.ts +4 -0
package/dist/internal/index.mjs
CHANGED
|
@@ -1285,6 +1285,7 @@ async function prepareTools({
|
|
|
1285
1285
|
canCache: true
|
|
1286
1286
|
});
|
|
1287
1287
|
const anthropicOptions = (_a = tool.providerOptions) == null ? void 0 : _a.anthropic;
|
|
1288
|
+
const eagerInputStreaming = anthropicOptions == null ? void 0 : anthropicOptions.eagerInputStreaming;
|
|
1288
1289
|
const deferLoading = anthropicOptions == null ? void 0 : anthropicOptions.deferLoading;
|
|
1289
1290
|
const allowedCallers = anthropicOptions == null ? void 0 : anthropicOptions.allowedCallers;
|
|
1290
1291
|
anthropicTools2.push({
|
|
@@ -1292,6 +1293,7 @@ async function prepareTools({
|
|
|
1292
1293
|
description: tool.description,
|
|
1293
1294
|
input_schema: tool.inputSchema,
|
|
1294
1295
|
cache_control: cacheControl,
|
|
1296
|
+
...eagerInputStreaming ? { eager_input_streaming: true } : {},
|
|
1295
1297
|
...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {},
|
|
1296
1298
|
...deferLoading != null ? { defer_loading: deferLoading } : {},
|
|
1297
1299
|
...allowedCallers != null ? { allowed_callers: allowedCallers } : {},
|