@ai-sdk/anthropic 3.0.0-beta.18 → 3.0.0-beta.20
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 +14 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +376 -386
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +375 -385
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +14 -14
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "@ai-sdk/provider-utils";
|
|
11
11
|
|
|
12
12
|
// src/version.ts
|
|
13
|
-
var VERSION = true ? "3.0.0-beta.
|
|
13
|
+
var VERSION = true ? "3.0.0-beta.20" : "0.0.0-test";
|
|
14
14
|
|
|
15
15
|
// src/anthropic-messages-language-model.ts
|
|
16
16
|
import {
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
lazySchema,
|
|
33
33
|
zodSchema
|
|
34
34
|
} from "@ai-sdk/provider-utils";
|
|
35
|
-
import
|
|
35
|
+
import { z } from "zod/v4";
|
|
36
36
|
var anthropicErrorDataSchema = lazySchema(
|
|
37
37
|
() => zodSchema(
|
|
38
38
|
z.object({
|
|
@@ -51,7 +51,7 @@ var anthropicFailedResponseHandler = createJsonErrorResponseHandler({
|
|
|
51
51
|
|
|
52
52
|
// src/anthropic-messages-api.ts
|
|
53
53
|
import { lazySchema as lazySchema2, zodSchema as zodSchema2 } from "@ai-sdk/provider-utils";
|
|
54
|
-
import
|
|
54
|
+
import { z as z2 } from "zod/v4";
|
|
55
55
|
var anthropicMessagesResponseSchema = lazySchema2(
|
|
56
56
|
() => zodSchema2(
|
|
57
57
|
z2.object({
|
|
@@ -380,7 +380,7 @@ var anthropicReasoningMetadataSchema = lazySchema2(
|
|
|
380
380
|
);
|
|
381
381
|
|
|
382
382
|
// src/anthropic-messages-options.ts
|
|
383
|
-
import
|
|
383
|
+
import { z as z3 } from "zod/v4";
|
|
384
384
|
var anthropicFilePartProviderOptions = z3.object({
|
|
385
385
|
/**
|
|
386
386
|
* Citation configuration for this document.
|
|
@@ -440,7 +440,7 @@ function getCacheControl(providerMetadata) {
|
|
|
440
440
|
|
|
441
441
|
// src/tool/text-editor_20250728.ts
|
|
442
442
|
import { createProviderDefinedToolFactory } from "@ai-sdk/provider-utils";
|
|
443
|
-
import
|
|
443
|
+
import { z as z4 } from "zod/v4";
|
|
444
444
|
import { lazySchema as lazySchema3, zodSchema as zodSchema3 } from "@ai-sdk/provider-utils";
|
|
445
445
|
var textEditor_20250728ArgsSchema = lazySchema3(
|
|
446
446
|
() => zodSchema3(
|
|
@@ -477,7 +477,7 @@ import {
|
|
|
477
477
|
lazySchema as lazySchema4,
|
|
478
478
|
zodSchema as zodSchema4
|
|
479
479
|
} from "@ai-sdk/provider-utils";
|
|
480
|
-
import
|
|
480
|
+
import { z as z5 } from "zod/v4";
|
|
481
481
|
var webSearch_20250305ArgsSchema = lazySchema4(
|
|
482
482
|
() => zodSchema4(
|
|
483
483
|
z5.object({
|
|
@@ -530,7 +530,7 @@ import {
|
|
|
530
530
|
lazySchema as lazySchema5,
|
|
531
531
|
zodSchema as zodSchema5
|
|
532
532
|
} from "@ai-sdk/provider-utils";
|
|
533
|
-
import
|
|
533
|
+
import { z as z6 } from "zod/v4";
|
|
534
534
|
var webFetch_20250910ArgsSchema = lazySchema5(
|
|
535
535
|
() => zodSchema5(
|
|
536
536
|
z6.object({
|
|
@@ -808,7 +808,7 @@ import {
|
|
|
808
808
|
lazySchema as lazySchema6,
|
|
809
809
|
zodSchema as zodSchema6
|
|
810
810
|
} from "@ai-sdk/provider-utils";
|
|
811
|
-
import
|
|
811
|
+
import { z as z7 } from "zod/v4";
|
|
812
812
|
var codeExecution_20250522OutputSchema = lazySchema6(
|
|
813
813
|
() => zodSchema6(
|
|
814
814
|
z7.object({
|
|
@@ -2224,7 +2224,7 @@ import {
|
|
|
2224
2224
|
lazySchema as lazySchema7,
|
|
2225
2225
|
zodSchema as zodSchema7
|
|
2226
2226
|
} from "@ai-sdk/provider-utils";
|
|
2227
|
-
import
|
|
2227
|
+
import { z as z8 } from "zod/v4";
|
|
2228
2228
|
var bash_20241022InputSchema = lazySchema7(
|
|
2229
2229
|
() => zodSchema7(
|
|
2230
2230
|
z8.object({
|
|
@@ -2245,7 +2245,7 @@ import {
|
|
|
2245
2245
|
lazySchema as lazySchema8,
|
|
2246
2246
|
zodSchema as zodSchema8
|
|
2247
2247
|
} from "@ai-sdk/provider-utils";
|
|
2248
|
-
import
|
|
2248
|
+
import { z as z9 } from "zod/v4";
|
|
2249
2249
|
var bash_20250124InputSchema = lazySchema8(
|
|
2250
2250
|
() => zodSchema8(
|
|
2251
2251
|
z9.object({
|
|
@@ -2266,7 +2266,7 @@ import {
|
|
|
2266
2266
|
lazySchema as lazySchema9,
|
|
2267
2267
|
zodSchema as zodSchema9
|
|
2268
2268
|
} from "@ai-sdk/provider-utils";
|
|
2269
|
-
import
|
|
2269
|
+
import { z as z10 } from "zod/v4";
|
|
2270
2270
|
var computer_20241022InputSchema = lazySchema9(
|
|
2271
2271
|
() => zodSchema9(
|
|
2272
2272
|
z10.object({
|
|
@@ -2299,7 +2299,7 @@ import {
|
|
|
2299
2299
|
lazySchema as lazySchema10,
|
|
2300
2300
|
zodSchema as zodSchema10
|
|
2301
2301
|
} from "@ai-sdk/provider-utils";
|
|
2302
|
-
import
|
|
2302
|
+
import { z as z11 } from "zod/v4";
|
|
2303
2303
|
var computer_20250124InputSchema = lazySchema10(
|
|
2304
2304
|
() => zodSchema10(
|
|
2305
2305
|
z11.object({
|
|
@@ -2342,7 +2342,7 @@ import {
|
|
|
2342
2342
|
lazySchema as lazySchema11,
|
|
2343
2343
|
zodSchema as zodSchema11
|
|
2344
2344
|
} from "@ai-sdk/provider-utils";
|
|
2345
|
-
import
|
|
2345
|
+
import { z as z12 } from "zod/v4";
|
|
2346
2346
|
var textEditor_20241022InputSchema = lazySchema11(
|
|
2347
2347
|
() => zodSchema11(
|
|
2348
2348
|
z12.object({
|
|
@@ -2368,7 +2368,7 @@ import {
|
|
|
2368
2368
|
lazySchema as lazySchema12,
|
|
2369
2369
|
zodSchema as zodSchema12
|
|
2370
2370
|
} from "@ai-sdk/provider-utils";
|
|
2371
|
-
import
|
|
2371
|
+
import { z as z13 } from "zod/v4";
|
|
2372
2372
|
var textEditor_20250124InputSchema = lazySchema12(
|
|
2373
2373
|
() => zodSchema12(
|
|
2374
2374
|
z13.object({
|
|
@@ -2394,7 +2394,7 @@ import {
|
|
|
2394
2394
|
lazySchema as lazySchema13,
|
|
2395
2395
|
zodSchema as zodSchema13
|
|
2396
2396
|
} from "@ai-sdk/provider-utils";
|
|
2397
|
-
import
|
|
2397
|
+
import { z as z14 } from "zod/v4";
|
|
2398
2398
|
var textEditor_20250429InputSchema = lazySchema13(
|
|
2399
2399
|
() => zodSchema13(
|
|
2400
2400
|
z14.object({
|