@effect/ai-anthropic 0.11.4 → 0.11.5
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/cjs/Generated.js +5 -5
- package/dist/cjs/Generated.js.map +1 -1
- package/dist/dts/Generated.d.ts +15 -15
- package/dist/dts/Generated.d.ts.map +1 -1
- package/dist/esm/Generated.js +5 -5
- package/dist/esm/Generated.js.map +1 -1
- package/package.json +1 -1
- package/src/Generated.ts +40 -46
package/src/Generated.ts
CHANGED
|
@@ -14,26 +14,26 @@ export class MessagesPostParams extends S.Struct({
|
|
|
14
14
|
"anthropic-version": S.optionalWith(S.String, { nullable: true })
|
|
15
15
|
}) {}
|
|
16
16
|
|
|
17
|
-
export class Model extends S.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
export class Model extends S.Literal(
|
|
18
|
+
"claude-3-7-sonnet-latest",
|
|
19
|
+
"claude-3-7-sonnet-20250219",
|
|
20
|
+
"claude-3-5-haiku-latest",
|
|
21
|
+
"claude-3-5-haiku-20241022",
|
|
22
|
+
"claude-sonnet-4-20250514",
|
|
23
|
+
"claude-sonnet-4-0",
|
|
24
|
+
"claude-4-sonnet-20250514",
|
|
25
|
+
"claude-3-5-sonnet-latest",
|
|
26
|
+
"claude-3-5-sonnet-20241022",
|
|
27
|
+
"claude-3-5-sonnet-20240620",
|
|
28
|
+
"claude-opus-4-0",
|
|
29
|
+
"claude-opus-4-20250514",
|
|
30
|
+
"claude-4-opus-20250514",
|
|
31
|
+
"claude-3-opus-latest",
|
|
32
|
+
"claude-3-opus-20240229",
|
|
33
|
+
"claude-3-sonnet-20240229",
|
|
34
|
+
"claude-3-haiku-20240307",
|
|
35
|
+
"claude-2.1",
|
|
36
|
+
"claude-2.0"
|
|
37
37
|
) {}
|
|
38
38
|
|
|
39
39
|
export class CacheControlEphemeralType extends S.Literal("ephemeral") {}
|
|
@@ -472,19 +472,16 @@ export class ResponseWebSearchResultLocationCitation extends S.Struct({
|
|
|
472
472
|
export class ResponseTextBlockType extends S.Literal("text") {}
|
|
473
473
|
|
|
474
474
|
export class ResponseTextBlock extends S.Struct({
|
|
475
|
-
"citations": S.NullOr(
|
|
476
|
-
S.
|
|
477
|
-
S.
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
)
|
|
484
|
-
),
|
|
485
|
-
S.Null
|
|
475
|
+
"citations": S.optional(S.NullOr(
|
|
476
|
+
S.Array(
|
|
477
|
+
S.Union(
|
|
478
|
+
ResponseCharLocationCitation,
|
|
479
|
+
ResponsePageLocationCitation,
|
|
480
|
+
ResponseContentBlockLocationCitation,
|
|
481
|
+
ResponseWebSearchResultLocationCitation
|
|
482
|
+
)
|
|
486
483
|
)
|
|
487
|
-
),
|
|
484
|
+
)),
|
|
488
485
|
"text": S.String.pipe(S.minLength(0), S.maxLength(5000000)),
|
|
489
486
|
"type": ResponseTextBlockType
|
|
490
487
|
}) {}
|
|
@@ -573,7 +570,7 @@ export class Usage extends S.Struct({
|
|
|
573
570
|
"cache_read_input_tokens": S.NullOr(S.Union(S.Int.pipe(S.greaterThanOrEqualTo(0)), S.Null)),
|
|
574
571
|
"input_tokens": S.Int.pipe(S.greaterThanOrEqualTo(0)),
|
|
575
572
|
"output_tokens": S.Int.pipe(S.greaterThanOrEqualTo(0)),
|
|
576
|
-
"server_tool_use": S.
|
|
573
|
+
"server_tool_use": S.optional(S.NullOr(ServerToolUsage)),
|
|
577
574
|
"service_tier": S.NullOr(S.Union(UsageServiceTierEnum, S.Null))
|
|
578
575
|
}) {}
|
|
579
576
|
|
|
@@ -1505,19 +1502,16 @@ export class BetaResponseWebSearchResultLocationCitation extends S.Struct({
|
|
|
1505
1502
|
export class BetaResponseTextBlockType extends S.Literal("text") {}
|
|
1506
1503
|
|
|
1507
1504
|
export class BetaResponseTextBlock extends S.Struct({
|
|
1508
|
-
"citations": S.NullOr(
|
|
1509
|
-
S.
|
|
1510
|
-
S.
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
)
|
|
1517
|
-
),
|
|
1518
|
-
S.Null
|
|
1505
|
+
"citations": S.optional(S.NullOr(
|
|
1506
|
+
S.Array(
|
|
1507
|
+
S.Union(
|
|
1508
|
+
BetaResponseCharLocationCitation,
|
|
1509
|
+
BetaResponsePageLocationCitation,
|
|
1510
|
+
BetaResponseContentBlockLocationCitation,
|
|
1511
|
+
BetaResponseWebSearchResultLocationCitation
|
|
1512
|
+
)
|
|
1519
1513
|
)
|
|
1520
|
-
),
|
|
1514
|
+
)),
|
|
1521
1515
|
"text": S.String.pipe(S.minLength(0), S.maxLength(5000000)),
|
|
1522
1516
|
"type": BetaResponseTextBlockType
|
|
1523
1517
|
}) {}
|
|
@@ -1674,7 +1668,7 @@ export class BetaUsage extends S.Struct({
|
|
|
1674
1668
|
"cache_read_input_tokens": S.NullOr(S.Union(S.Int.pipe(S.greaterThanOrEqualTo(0)), S.Null)),
|
|
1675
1669
|
"input_tokens": S.Int.pipe(S.greaterThanOrEqualTo(0)),
|
|
1676
1670
|
"output_tokens": S.Int.pipe(S.greaterThanOrEqualTo(0)),
|
|
1677
|
-
"server_tool_use": S.
|
|
1671
|
+
"server_tool_use": S.optional(S.NullOr(BetaServerToolUsage)),
|
|
1678
1672
|
"service_tier": S.NullOr(S.Union(BetaUsageServiceTierEnum, S.Null))
|
|
1679
1673
|
}) {}
|
|
1680
1674
|
|