@effect/ai-anthropic 4.0.0-beta.65 → 4.0.0-beta.66
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.
|
@@ -20,8 +20,8 @@ declare const Config_base: Context.ServiceClass<Config, "@effect/ai-anthropic/An
|
|
|
20
20
|
} | {
|
|
21
21
|
readonly type: "disabled";
|
|
22
22
|
} | {
|
|
23
|
-
readonly type: "enabled";
|
|
24
23
|
readonly budget_tokens: number;
|
|
24
|
+
readonly type: "enabled";
|
|
25
25
|
};
|
|
26
26
|
readonly max_tokens?: number;
|
|
27
27
|
readonly cache_control?: {
|
|
@@ -47,30 +47,30 @@ declare const Config_base: Context.ServiceClass<Config, "@effect/ai-anthropic/An
|
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
49
|
readonly type: "clear_tool_uses_20250919";
|
|
50
|
-
readonly
|
|
50
|
+
readonly clear_at_least?: {
|
|
51
51
|
readonly type: "input_tokens";
|
|
52
52
|
readonly value: number;
|
|
53
|
-
} |
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
53
|
+
} | null;
|
|
54
|
+
readonly clear_tool_inputs?: boolean | readonly string[] | null;
|
|
55
|
+
readonly exclude_tools?: readonly string[] | null;
|
|
57
56
|
readonly keep?: {
|
|
58
57
|
readonly type: "tool_uses";
|
|
59
58
|
readonly value: number;
|
|
60
59
|
};
|
|
61
|
-
readonly
|
|
60
|
+
readonly trigger?: {
|
|
62
61
|
readonly type: "input_tokens";
|
|
63
62
|
readonly value: number;
|
|
64
|
-
} |
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
} | {
|
|
64
|
+
readonly type: "tool_uses";
|
|
65
|
+
readonly value: number;
|
|
66
|
+
};
|
|
67
67
|
})[];
|
|
68
68
|
} | null;
|
|
69
69
|
readonly container?: string | {
|
|
70
70
|
readonly id?: string | null;
|
|
71
71
|
readonly skills?: readonly {
|
|
72
|
-
readonly type: "anthropic" | "custom";
|
|
73
72
|
readonly skill_id: string;
|
|
73
|
+
readonly type: "anthropic" | "custom";
|
|
74
74
|
readonly version?: string;
|
|
75
75
|
}[] | null;
|
|
76
76
|
} | null;
|
|
@@ -85,63 +85,63 @@ declare const Config_base: Context.ServiceClass<Config, "@effect/ai-anthropic/An
|
|
|
85
85
|
readonly inference_geo?: string | null;
|
|
86
86
|
readonly service_tier?: "auto" | "standard_only";
|
|
87
87
|
readonly mcp_servers?: readonly {
|
|
88
|
-
readonly type: "url";
|
|
89
88
|
readonly name: string;
|
|
89
|
+
readonly type: "url";
|
|
90
90
|
readonly url: string;
|
|
91
91
|
readonly authorization_token?: string | null;
|
|
92
92
|
readonly tool_configuration?: {
|
|
93
|
-
readonly enabled?: boolean | null;
|
|
94
93
|
readonly allowed_tools?: readonly string[] | null;
|
|
94
|
+
readonly enabled?: boolean | null;
|
|
95
95
|
} | null;
|
|
96
96
|
}[];
|
|
97
97
|
readonly output_format?: {
|
|
98
|
-
readonly type: "json_schema";
|
|
99
98
|
readonly schema: {
|
|
100
99
|
readonly [x: string]: Schema.Json;
|
|
101
100
|
};
|
|
101
|
+
readonly type: "json_schema";
|
|
102
102
|
} | null;
|
|
103
103
|
readonly system?: string | readonly {
|
|
104
|
-
readonly type: "text";
|
|
105
104
|
readonly text: string;
|
|
105
|
+
readonly type: "text";
|
|
106
106
|
readonly cache_control?: {
|
|
107
107
|
readonly type: "ephemeral";
|
|
108
108
|
readonly ttl?: "5m" | "1h";
|
|
109
109
|
} | null;
|
|
110
110
|
readonly citations?: readonly ({
|
|
111
|
-
readonly type: "char_location";
|
|
112
111
|
readonly cited_text: string;
|
|
113
112
|
readonly document_index: number;
|
|
114
113
|
readonly document_title: string | null;
|
|
115
114
|
readonly end_char_index: number;
|
|
116
115
|
readonly start_char_index: number;
|
|
116
|
+
readonly type: "char_location";
|
|
117
117
|
} | {
|
|
118
|
-
readonly type: "content_block_location";
|
|
119
118
|
readonly cited_text: string;
|
|
120
119
|
readonly document_index: number;
|
|
121
120
|
readonly document_title: string | null;
|
|
122
121
|
readonly end_block_index: number;
|
|
123
122
|
readonly start_block_index: number;
|
|
123
|
+
readonly type: "content_block_location";
|
|
124
124
|
} | {
|
|
125
|
-
readonly type: "page_location";
|
|
126
125
|
readonly cited_text: string;
|
|
127
126
|
readonly document_index: number;
|
|
128
127
|
readonly document_title: string | null;
|
|
129
128
|
readonly end_page_number: number;
|
|
130
129
|
readonly start_page_number: number;
|
|
130
|
+
readonly type: "page_location";
|
|
131
131
|
} | {
|
|
132
|
-
readonly title: string | null;
|
|
133
|
-
readonly type: "search_result_location";
|
|
134
|
-
readonly source: string;
|
|
135
132
|
readonly cited_text: string;
|
|
136
133
|
readonly end_block_index: number;
|
|
137
|
-
readonly start_block_index: number;
|
|
138
134
|
readonly search_result_index: number;
|
|
135
|
+
readonly source: string;
|
|
136
|
+
readonly start_block_index: number;
|
|
137
|
+
readonly title: string | null;
|
|
138
|
+
readonly type: "search_result_location";
|
|
139
139
|
} | {
|
|
140
|
+
readonly cited_text: string;
|
|
141
|
+
readonly encrypted_index: string;
|
|
140
142
|
readonly title: string | null;
|
|
141
143
|
readonly type: "web_search_result_location";
|
|
142
|
-
readonly cited_text: string;
|
|
143
144
|
readonly url: string;
|
|
144
|
-
readonly encrypted_index: string;
|
|
145
145
|
})[] | null;
|
|
146
146
|
}[];
|
|
147
147
|
readonly output_config?: {
|
package/dist/AnthropicTool.d.ts
CHANGED
|
@@ -908,8 +908,8 @@ export declare const ComputerUse_20250124: <Mode extends Tool.FailureMode | unde
|
|
|
908
908
|
export declare const ComputerUse_20251124: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
909
909
|
readonly displayWidthPx: number;
|
|
910
910
|
readonly displayHeightPx: number;
|
|
911
|
-
readonly displayNumber?: number | undefined;
|
|
912
911
|
readonly enableZoom?: boolean | undefined;
|
|
912
|
+
readonly displayNumber?: number | undefined;
|
|
913
913
|
readonly failureMode?: Mode | undefined;
|
|
914
914
|
}) => Tool.ProviderDefined<"anthropic.computer_20251124", "AnthropicComputerUse", {
|
|
915
915
|
readonly args: Schema.Struct<{
|
|
@@ -1814,8 +1814,8 @@ export declare const WebSearch_20250305: <Mode extends Tool.FailureMode | undefi
|
|
|
1814
1814
|
readonly userLocation?: {
|
|
1815
1815
|
readonly type: "approximate";
|
|
1816
1816
|
readonly city?: string | undefined;
|
|
1817
|
-
readonly country?: string | undefined;
|
|
1818
1817
|
readonly region?: string | undefined;
|
|
1818
|
+
readonly country?: string | undefined;
|
|
1819
1819
|
readonly timezone?: string | undefined;
|
|
1820
1820
|
} | undefined;
|
|
1821
1821
|
}) => Tool.ProviderDefined<"anthropic.web_search_20250305", "AnthropicWebSearch", {
|
|
@@ -1970,12 +1970,12 @@ export type WebFetchParameters = typeof WebFetchParameters.Type;
|
|
|
1970
1970
|
* @category Web Fetch
|
|
1971
1971
|
*/
|
|
1972
1972
|
export declare const WebFetch_20250910: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
1973
|
-
readonly citations?: {
|
|
1974
|
-
readonly enabled: boolean;
|
|
1975
|
-
} | undefined;
|
|
1976
1973
|
readonly maxUses?: number | undefined;
|
|
1977
1974
|
readonly allowedDomains?: readonly string[] | undefined;
|
|
1978
1975
|
readonly blockedDomains?: readonly string[] | undefined;
|
|
1976
|
+
readonly citations?: {
|
|
1977
|
+
readonly enabled: boolean;
|
|
1978
|
+
} | undefined;
|
|
1979
1979
|
readonly maxContentTokens?: number | undefined;
|
|
1980
1980
|
}) => Tool.ProviderDefined<"anthropic.web_fetch_20250910", "AnthropicWebFetch", {
|
|
1981
1981
|
readonly args: Schema.Struct<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/ai-anthropic",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "An Anthropic provider integration for Effect AI SDK",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"provenance": true
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"effect": "^4.0.0-beta.
|
|
46
|
+
"effect": "^4.0.0-beta.66"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"effect": "^4.0.0-beta.
|
|
49
|
+
"effect": "^4.0.0-beta.66"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"codegen": "effect-utils codegen",
|