@ai-sdk/anthropic 3.0.57 → 4.0.0-beta.0
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 +20 -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 +4 -4
- package/src/anthropic-messages-api.ts +1 -0
- package/src/anthropic-prepare-tools.ts +4 -0
|
@@ -834,6 +834,7 @@ type AnthropicTool = {
|
|
|
834
834
|
description: string | undefined;
|
|
835
835
|
input_schema: JSONSchema7;
|
|
836
836
|
cache_control: AnthropicCacheControl | undefined;
|
|
837
|
+
eager_input_streaming?: boolean;
|
|
837
838
|
strict?: boolean;
|
|
838
839
|
/**
|
|
839
840
|
* When true, this tool is deferred and will only be loaded when
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -834,6 +834,7 @@ type AnthropicTool = {
|
|
|
834
834
|
description: string | undefined;
|
|
835
835
|
input_schema: JSONSchema7;
|
|
836
836
|
cache_control: AnthropicCacheControl | undefined;
|
|
837
|
+
eager_input_streaming?: boolean;
|
|
837
838
|
strict?: boolean;
|
|
838
839
|
/**
|
|
839
840
|
* When true, this tool is deferred and will only be loaded when
|
package/dist/internal/index.js
CHANGED
|
@@ -1280,6 +1280,7 @@ async function prepareTools({
|
|
|
1280
1280
|
canCache: true
|
|
1281
1281
|
});
|
|
1282
1282
|
const anthropicOptions = (_a = tool.providerOptions) == null ? void 0 : _a.anthropic;
|
|
1283
|
+
const eagerInputStreaming = anthropicOptions == null ? void 0 : anthropicOptions.eagerInputStreaming;
|
|
1283
1284
|
const deferLoading = anthropicOptions == null ? void 0 : anthropicOptions.deferLoading;
|
|
1284
1285
|
const allowedCallers = anthropicOptions == null ? void 0 : anthropicOptions.allowedCallers;
|
|
1285
1286
|
anthropicTools2.push({
|
|
@@ -1287,6 +1288,7 @@ async function prepareTools({
|
|
|
1287
1288
|
description: tool.description,
|
|
1288
1289
|
input_schema: tool.inputSchema,
|
|
1289
1290
|
cache_control: cacheControl,
|
|
1291
|
+
...eagerInputStreaming ? { eager_input_streaming: true } : {},
|
|
1290
1292
|
...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {},
|
|
1291
1293
|
...deferLoading != null ? { defer_loading: deferLoading } : {},
|
|
1292
1294
|
...allowedCallers != null ? { allowed_callers: allowedCallers } : {},
|