@opencode/ai 2.0.32 → 2.1.1
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/ai-client.d.ts +2 -2
- package/dist/experimental/evaluation-client.d.ts +1 -1
- package/dist/experimental/evaluation.d.ts +20 -20
- package/dist/experimental/realtime.d.ts +6 -14
- package/dist/experimental/realtime.js +28 -3
- package/dist/experimental/system-one.d.ts +1 -1
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +593 -437
- package/dist/llm.d.ts +51 -51
- package/dist/media-client.d.ts +1 -1
- package/dist/media.d.ts +4 -4
- package/dist/promise.d.ts +199 -198
- package/dist/protocols/alibaba-chat.d.ts +81 -82
- package/dist/protocols/alibaba-chat.js +0 -1
- package/dist/protocols/alibaba-messages.d.ts +99 -99
- package/dist/protocols/alibaba-responses.d.ts +120 -120
- package/dist/protocols/anthropic-messages.d.ts +187 -187
- package/dist/protocols/anthropic-messages.js +3 -2
- package/dist/protocols/assemblyai-transcription.d.ts +1 -1
- package/dist/protocols/bedrock-converse.d.ts +75 -79
- package/dist/protocols/bfl-images.d.ts +1 -1
- package/dist/protocols/cartesia-speech.d.ts +17 -17
- package/dist/protocols/cohere-chat.d.ts +26 -23
- package/dist/protocols/cohere-chat.js +22 -1
- package/dist/protocols/deepgram-speech.d.ts +17 -17
- package/dist/protocols/deepgram-transcription.d.ts +1 -1
- package/dist/protocols/elevenlabs-speech.d.ts +17 -17
- package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
- package/dist/protocols/fal-images.d.ts +1 -1
- package/dist/protocols/fal-video.d.ts +1 -1
- package/dist/protocols/gemini.d.ts +55 -55
- package/dist/protocols/google-images.d.ts +1 -1
- package/dist/protocols/google-interactions.d.ts +64 -62
- package/dist/protocols/google-interactions.js +19 -1
- package/dist/protocols/google-speech.d.ts +17 -17
- package/dist/protocols/google-transcription.d.ts +47 -47
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/meta-messages.d.ts +121 -121
- package/dist/protocols/meta-responses.d.ts +201 -201
- package/dist/protocols/mistral-chat.d.ts +45 -45
- package/dist/protocols/open-responses-channel.d.ts +1 -1
- package/dist/protocols/open-responses.d.ts +584 -450
- package/dist/protocols/open-responses.js +27 -35
- package/dist/protocols/openai-chat.d.ts +248 -248
- package/dist/protocols/openai-chat.js +11 -42
- package/dist/protocols/openai-compatible-chat.d.ts +32 -32
- package/dist/protocols/openai-compatible-responses.d.ts +88 -88
- package/dist/protocols/openai-images.d.ts +17 -17
- package/dist/protocols/openai-responses.d.ts +567 -567
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +17 -17
- package/dist/protocols/openai-transcription.d.ts +47 -47
- package/dist/protocols/replicate-images.d.ts +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/shared.d.ts +12 -1
- package/dist/protocols/shared.js +17 -1
- package/dist/protocols/stability-images.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-media.d.ts +4 -4
- package/dist/protocols/utils/openai-options.d.ts +1 -1
- package/dist/protocols/utils/speech-stream.d.ts +1 -1
- package/dist/protocols/utils/tool-schema.d.ts +10 -5
- package/dist/protocols/utils/tool-stream.d.ts +152 -152
- package/dist/protocols/venice-chat.d.ts +109 -110
- package/dist/protocols/venice-chat.js +0 -1
- package/dist/protocols/xai-images.d.ts +1 -1
- package/dist/protocols/xai-responses.d.ts +79 -79
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/zai-chat.d.ts +77 -78
- package/dist/protocols/zai-chat.js +0 -1
- package/dist/protocols/zai-images.d.ts +1 -1
- package/dist/protocols/zai-messages.d.ts +97 -97
- package/dist/providers/alibaba.d.ts +222 -283
- package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
- package/dist/providers/amazon-bedrock.d.ts +22 -28
- package/dist/providers/anthropic-compatible.d.ts +86 -90
- package/dist/providers/anthropic.d.ts +86 -90
- package/dist/providers/assemblyai.d.ts +2 -6
- package/dist/providers/azure.d.ts +228 -238
- package/dist/providers/baseten.d.ts +66 -70
- package/dist/providers/black-forest-labs.d.ts +2 -6
- package/dist/providers/cartesia.d.ts +2 -6
- package/dist/providers/cerebras.d.ts +66 -70
- package/dist/providers/cerebras.js +0 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
- package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
- package/dist/providers/cohere.d.ts +122 -132
- package/dist/providers/cohere.js +0 -2
- package/dist/providers/deepgram.d.ts +2 -7
- package/dist/providers/deepinfra.d.ts +66 -70
- package/dist/providers/deepinfra.js +0 -1
- package/dist/providers/deepseek.d.ts +66 -70
- package/dist/providers/deepseek.js +1 -1
- package/dist/providers/digitalocean.d.ts +137 -141
- package/dist/providers/elevenlabs.d.ts +2 -7
- package/dist/providers/fal.d.ts +2 -7
- package/dist/providers/fireworks.d.ts +66 -70
- package/dist/providers/google-vertex-chat.d.ts +34 -38
- package/dist/providers/google-vertex-interactions.d.ts +31 -41
- package/dist/providers/google-vertex-messages.d.ts +81 -85
- package/dist/providers/google-vertex-mistral.d.ts +23 -27
- package/dist/providers/google-vertex-responses.d.ts +90 -94
- package/dist/providers/google-vertex.d.ts +26 -30
- package/dist/providers/google.d.ts +94 -109
- package/dist/providers/groq.d.ts +111 -115
- package/dist/providers/groq.js +0 -1
- package/dist/providers/meta.d.ts +309 -317
- package/dist/providers/meta.js +1 -1
- package/dist/providers/minimax.d.ts +296 -303
- package/dist/providers/minimax.js +1 -1
- package/dist/providers/mistral.d.ts +22 -26
- package/dist/providers/moonshot.d.ts +296 -303
- package/dist/providers/moonshot.js +0 -1
- package/dist/providers/openai-compatible-responses.d.ts +90 -94
- package/dist/providers/openai-compatible.d.ts +34 -38
- package/dist/providers/openai.d.ts +93 -108
- package/dist/providers/opencode.d.ts +2 -8
- package/dist/providers/openrouter.d.ts +137 -144
- package/dist/providers/replicate.d.ts +2 -6
- package/dist/providers/runway.d.ts +2 -6
- package/dist/providers/stability.d.ts +2 -7
- package/dist/providers/togetherai.d.ts +66 -70
- package/dist/providers/togetherai.js +1 -1
- package/dist/providers/typesafe-ai.d.ts +2 -8
- package/dist/providers/venice.d.ts +58 -63
- package/dist/providers/vercel-ai-gateway.d.ts +2 -12
- package/dist/providers/xai.d.ts +38 -50
- package/dist/providers/zai-coding-plan.d.ts +206 -213
- package/dist/providers/zai.d.ts +40 -46
- package/dist/route/client.d.ts +51 -51
- package/dist/route/media-protocol.d.ts +1 -1
- package/dist/route/transport/http.d.ts +1 -1
- package/dist/route/transport/websocket.d.ts +8 -8
- package/dist/schema/errors.d.ts +19 -19
- package/dist/schema/events.d.ts +3090 -3288
- package/dist/schema/messages.d.ts +8 -7
- package/dist/schema/options.d.ts +2 -1
- package/dist/schema/options.js +2 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +434 -398
- package/dist/testing.d.ts +338 -338
- package/dist/tool-runtime.d.ts +1 -1
- package/dist/transcription-client.d.ts +23 -23
- package/dist/transcription.d.ts +562 -646
- package/dist/utils/sanitize.d.ts +4 -0
- package/dist/utils/sanitize.js +23 -6
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +416 -372
- package/package.json +6 -6
|
@@ -30,42 +30,44 @@ export interface Settings extends ProviderPackage.Settings {
|
|
|
30
30
|
readonly thinking?: BedrockConverse.OptionsInput["thinking"];
|
|
31
31
|
}
|
|
32
32
|
export declare const routes: import("../route/client.js").Route<{
|
|
33
|
+
readonly modelId: string;
|
|
33
34
|
readonly messages: readonly ({
|
|
34
35
|
readonly role: "user";
|
|
35
36
|
readonly content: readonly ({
|
|
37
|
+
readonly text: string;
|
|
38
|
+
} | {
|
|
36
39
|
readonly cachePoint: {
|
|
37
40
|
readonly type: "default";
|
|
38
41
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
39
42
|
};
|
|
40
43
|
} | {
|
|
41
44
|
readonly image: {
|
|
42
|
-
readonly format: "
|
|
45
|
+
readonly format: "gif" | "jpeg" | "png" | "webp";
|
|
43
46
|
readonly source: {
|
|
44
47
|
readonly bytes: string;
|
|
45
48
|
};
|
|
46
49
|
};
|
|
47
50
|
} | {
|
|
48
51
|
readonly document: {
|
|
49
|
-
readonly format: "
|
|
52
|
+
readonly format: "csv" | "doc" | "docx" | "html" | "md" | "pdf" | "txt" | "xls" | "xlsx";
|
|
50
53
|
readonly name: string;
|
|
51
54
|
readonly source: {
|
|
52
55
|
readonly bytes: string;
|
|
53
56
|
};
|
|
54
57
|
};
|
|
55
|
-
} | {
|
|
56
|
-
readonly text: string;
|
|
57
58
|
} | {
|
|
58
59
|
readonly toolResult: {
|
|
60
|
+
readonly toolUseId: string;
|
|
59
61
|
readonly content: readonly ({
|
|
60
62
|
readonly image: {
|
|
61
|
-
readonly format: "
|
|
63
|
+
readonly format: "gif" | "jpeg" | "png" | "webp";
|
|
62
64
|
readonly source: {
|
|
63
65
|
readonly bytes: string;
|
|
64
66
|
};
|
|
65
67
|
};
|
|
66
68
|
} | {
|
|
67
69
|
readonly document: {
|
|
68
|
-
readonly format: "
|
|
70
|
+
readonly format: "csv" | "doc" | "docx" | "html" | "md" | "pdf" | "txt" | "xls" | "xlsx";
|
|
69
71
|
readonly name: string;
|
|
70
72
|
readonly source: {
|
|
71
73
|
readonly bytes: string;
|
|
@@ -76,25 +78,18 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
76
78
|
} | {
|
|
77
79
|
readonly json: unknown;
|
|
78
80
|
})[];
|
|
79
|
-
readonly toolUseId: string;
|
|
80
81
|
readonly status?: "error" | "success" | undefined;
|
|
81
82
|
};
|
|
82
83
|
})[];
|
|
83
84
|
} | {
|
|
84
85
|
readonly role: "assistant";
|
|
85
86
|
readonly content: readonly ({
|
|
87
|
+
readonly text: string;
|
|
88
|
+
} | {
|
|
86
89
|
readonly cachePoint: {
|
|
87
90
|
readonly type: "default";
|
|
88
91
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
89
92
|
};
|
|
90
|
-
} | {
|
|
91
|
-
readonly text: string;
|
|
92
|
-
} | {
|
|
93
|
-
readonly toolUse: {
|
|
94
|
-
readonly toolUseId: string;
|
|
95
|
-
readonly name: string;
|
|
96
|
-
readonly input: unknown;
|
|
97
|
-
};
|
|
98
93
|
} | {
|
|
99
94
|
readonly reasoningContent: {
|
|
100
95
|
readonly reasoningText: {
|
|
@@ -104,20 +99,25 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
104
99
|
} | {
|
|
105
100
|
readonly redactedContent: string;
|
|
106
101
|
};
|
|
102
|
+
} | {
|
|
103
|
+
readonly toolUse: {
|
|
104
|
+
readonly toolUseId: string;
|
|
105
|
+
readonly name: string;
|
|
106
|
+
readonly input: unknown;
|
|
107
|
+
};
|
|
107
108
|
})[];
|
|
108
109
|
})[];
|
|
109
|
-
readonly modelId: string;
|
|
110
110
|
readonly system?: readonly ({
|
|
111
|
+
readonly text: string;
|
|
112
|
+
} | {
|
|
111
113
|
readonly cachePoint: {
|
|
112
114
|
readonly type: "default";
|
|
113
115
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
114
116
|
};
|
|
115
|
-
} | {
|
|
116
|
-
readonly text: string;
|
|
117
117
|
})[] | undefined;
|
|
118
118
|
readonly inferenceConfig?: {
|
|
119
|
-
readonly temperature?: number | undefined;
|
|
120
119
|
readonly maxTokens?: number | undefined;
|
|
120
|
+
readonly temperature?: number | undefined;
|
|
121
121
|
readonly topP?: number | undefined;
|
|
122
122
|
readonly stopSequences?: readonly string[] | undefined;
|
|
123
123
|
} | undefined;
|
|
@@ -130,12 +130,12 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
130
130
|
} | {
|
|
131
131
|
readonly toolSpec: {
|
|
132
132
|
readonly name: string;
|
|
133
|
+
readonly description?: string | undefined;
|
|
133
134
|
readonly inputSchema: {
|
|
134
135
|
readonly json: {
|
|
135
136
|
readonly [x: string]: unknown;
|
|
136
137
|
};
|
|
137
138
|
};
|
|
138
|
-
readonly description?: string | undefined;
|
|
139
139
|
};
|
|
140
140
|
})[];
|
|
141
141
|
readonly toolChoice?: {
|
|
@@ -157,19 +157,13 @@ export declare const configure: (input?: Config) => {
|
|
|
157
157
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
158
158
|
readonly [x: string]: unknown;
|
|
159
159
|
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
160
|
-
configure:
|
|
160
|
+
configure: typeof configure;
|
|
161
161
|
};
|
|
162
162
|
export declare const provider: {
|
|
163
163
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
164
164
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
165
165
|
readonly [x: string]: unknown;
|
|
166
166
|
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
167
|
-
configure:
|
|
168
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
169
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
170
|
-
readonly [x: string]: unknown;
|
|
171
|
-
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
172
|
-
configure: /*elided*/ any;
|
|
173
|
-
};
|
|
167
|
+
configure: typeof configure;
|
|
174
168
|
};
|
|
175
169
|
export declare const model: ProviderPackage.Definition<Settings>["model"];
|
|
@@ -23,8 +23,26 @@ export type Settings = ProviderPackage.Settings & AnthropicMessages.ProviderOpti
|
|
|
23
23
|
readonly provider?: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const routes: import("../route/client.js").Route<{
|
|
26
|
-
readonly
|
|
26
|
+
readonly context_management?: {
|
|
27
|
+
readonly edits: readonly {
|
|
28
|
+
readonly type: "compact_20260112";
|
|
29
|
+
readonly trigger?: {
|
|
30
|
+
readonly type: "input_tokens";
|
|
31
|
+
readonly value: number;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly pause_after_compaction?: boolean | undefined;
|
|
34
|
+
readonly instructions?: string | undefined;
|
|
35
|
+
}[];
|
|
36
|
+
} | undefined;
|
|
27
37
|
readonly model: string;
|
|
38
|
+
readonly system?: readonly {
|
|
39
|
+
readonly type: "text";
|
|
40
|
+
readonly text: string;
|
|
41
|
+
readonly cache_control?: {
|
|
42
|
+
readonly type: "ephemeral";
|
|
43
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
}[] | undefined;
|
|
28
46
|
readonly messages: readonly ({
|
|
29
47
|
readonly role: "user";
|
|
30
48
|
readonly content: readonly ({
|
|
@@ -52,7 +70,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
52
70
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
53
71
|
} | undefined;
|
|
54
72
|
readonly transformations?: {
|
|
55
|
-
readonly oversized_image?: "
|
|
73
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
56
74
|
} | undefined;
|
|
57
75
|
} | {
|
|
58
76
|
readonly type: "document";
|
|
@@ -71,17 +89,18 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
71
89
|
readonly type: "file";
|
|
72
90
|
readonly file_id: string;
|
|
73
91
|
};
|
|
74
|
-
readonly title?: string | undefined;
|
|
75
|
-
readonly context?: string | undefined;
|
|
76
92
|
readonly cache_control?: {
|
|
77
93
|
readonly type: "ephemeral";
|
|
78
94
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
79
95
|
} | undefined;
|
|
96
|
+
readonly title?: string | undefined;
|
|
97
|
+
readonly context?: string | undefined;
|
|
80
98
|
readonly citations?: {
|
|
81
99
|
readonly enabled: boolean;
|
|
82
100
|
} | undefined;
|
|
83
101
|
} | {
|
|
84
102
|
readonly type: "tool_result";
|
|
103
|
+
readonly tool_use_id: string;
|
|
85
104
|
readonly content: string | readonly ({
|
|
86
105
|
readonly type: "text";
|
|
87
106
|
readonly text: string;
|
|
@@ -107,7 +126,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
107
126
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
108
127
|
} | undefined;
|
|
109
128
|
readonly transformations?: {
|
|
110
|
-
readonly oversized_image?: "
|
|
129
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
111
130
|
} | undefined;
|
|
112
131
|
} | {
|
|
113
132
|
readonly type: "document";
|
|
@@ -126,22 +145,21 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
126
145
|
readonly type: "file";
|
|
127
146
|
readonly file_id: string;
|
|
128
147
|
};
|
|
129
|
-
readonly title?: string | undefined;
|
|
130
|
-
readonly context?: string | undefined;
|
|
131
148
|
readonly cache_control?: {
|
|
132
149
|
readonly type: "ephemeral";
|
|
133
150
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
134
151
|
} | undefined;
|
|
152
|
+
readonly title?: string | undefined;
|
|
153
|
+
readonly context?: string | undefined;
|
|
135
154
|
readonly citations?: {
|
|
136
155
|
readonly enabled: boolean;
|
|
137
156
|
} | undefined;
|
|
138
157
|
})[];
|
|
139
|
-
readonly
|
|
158
|
+
readonly is_error?: boolean | undefined;
|
|
140
159
|
readonly cache_control?: {
|
|
141
160
|
readonly type: "ephemeral";
|
|
142
161
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
143
162
|
} | undefined;
|
|
144
|
-
readonly is_error?: boolean | undefined;
|
|
145
163
|
})[];
|
|
146
164
|
} | {
|
|
147
165
|
readonly role: "assistant";
|
|
@@ -153,51 +171,52 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
153
171
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
154
172
|
} | undefined;
|
|
155
173
|
} | {
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly input: unknown;
|
|
174
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
175
|
+
readonly tool_use_id: string;
|
|
176
|
+
readonly content: unknown;
|
|
160
177
|
readonly cache_control?: {
|
|
161
178
|
readonly type: "ephemeral";
|
|
162
179
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
163
180
|
} | undefined;
|
|
164
181
|
} | {
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
|
|
168
|
-
readonly
|
|
182
|
+
readonly type: "compaction";
|
|
183
|
+
readonly content: string | null;
|
|
184
|
+
} | {
|
|
185
|
+
readonly type: "thinking";
|
|
186
|
+
readonly thinking: string;
|
|
187
|
+
readonly signature: string;
|
|
169
188
|
readonly cache_control?: {
|
|
170
189
|
readonly type: "ephemeral";
|
|
171
190
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
172
191
|
} | undefined;
|
|
173
192
|
} | {
|
|
174
|
-
readonly type: "
|
|
175
|
-
readonly
|
|
176
|
-
readonly tool_use_id: string;
|
|
193
|
+
readonly type: "redacted_thinking";
|
|
194
|
+
readonly data: string;
|
|
177
195
|
readonly cache_control?: {
|
|
178
196
|
readonly type: "ephemeral";
|
|
179
197
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
180
198
|
} | undefined;
|
|
181
199
|
} | {
|
|
182
|
-
readonly type: "
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
200
|
+
readonly type: "tool_use";
|
|
201
|
+
readonly id: string;
|
|
202
|
+
readonly name: string;
|
|
203
|
+
readonly input: unknown;
|
|
185
204
|
readonly cache_control?: {
|
|
186
205
|
readonly type: "ephemeral";
|
|
187
206
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
188
207
|
} | undefined;
|
|
189
208
|
} | {
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
209
|
+
readonly type: "server_tool_use";
|
|
210
|
+
readonly id: string;
|
|
211
|
+
readonly name: string;
|
|
212
|
+
readonly input: unknown;
|
|
192
213
|
readonly cache_control?: {
|
|
193
214
|
readonly type: "ephemeral";
|
|
194
215
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
195
216
|
} | undefined;
|
|
196
|
-
} | {
|
|
197
|
-
readonly type: "compaction";
|
|
198
|
-
readonly content: string | null;
|
|
199
217
|
})[];
|
|
200
218
|
} | {
|
|
219
|
+
readonly role: "system";
|
|
201
220
|
readonly content: readonly {
|
|
202
221
|
readonly type: "text";
|
|
203
222
|
readonly text: string;
|
|
@@ -206,19 +225,13 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
206
225
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
207
226
|
} | undefined;
|
|
208
227
|
}[];
|
|
209
|
-
readonly role: "system";
|
|
210
228
|
readonly output_config?: {
|
|
211
229
|
readonly effort: string;
|
|
212
230
|
} | undefined;
|
|
213
231
|
})[];
|
|
214
|
-
readonly stream: true;
|
|
215
|
-
readonly metadata?: {
|
|
216
|
-
readonly user_id?: string | null | undefined;
|
|
217
|
-
} | undefined;
|
|
218
|
-
readonly temperature?: number | undefined;
|
|
219
232
|
readonly tools?: readonly {
|
|
220
|
-
readonly description: string;
|
|
221
233
|
readonly name: string;
|
|
234
|
+
readonly description: string;
|
|
222
235
|
readonly input_schema: {
|
|
223
236
|
readonly [x: string]: unknown;
|
|
224
237
|
};
|
|
@@ -227,86 +240,69 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
227
240
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
228
241
|
} | undefined;
|
|
229
242
|
}[] | undefined;
|
|
230
|
-
readonly
|
|
231
|
-
readonly type: "
|
|
232
|
-
readonly
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
243
|
+
readonly tool_choice?: {
|
|
244
|
+
readonly type: "any" | "auto" | "none";
|
|
245
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
246
|
+
} | {
|
|
247
|
+
readonly type: "tool";
|
|
248
|
+
readonly name: string;
|
|
249
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
readonly stream: true;
|
|
252
|
+
readonly max_tokens: number;
|
|
253
|
+
readonly temperature?: number | undefined;
|
|
254
|
+
readonly top_p?: number | undefined;
|
|
255
|
+
readonly top_k?: number | undefined;
|
|
256
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
238
257
|
readonly thinking?: {
|
|
239
|
-
readonly
|
|
240
|
-
readonly budget_tokens: number;
|
|
241
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
258
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
242
259
|
readonly block_binding?: {
|
|
243
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
260
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
244
261
|
} | undefined;
|
|
262
|
+
readonly type: "enabled";
|
|
263
|
+
readonly budget_tokens: number;
|
|
245
264
|
} | {
|
|
246
|
-
readonly
|
|
247
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
265
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
248
266
|
readonly block_binding?: {
|
|
249
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
267
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
250
268
|
} | undefined;
|
|
269
|
+
readonly type: "adaptive";
|
|
251
270
|
} | {
|
|
252
|
-
readonly type: "
|
|
253
|
-
} | undefined;
|
|
254
|
-
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
255
|
-
readonly container?: string | {
|
|
256
|
-
readonly id?: string | null | undefined;
|
|
257
|
-
readonly skills?: readonly {
|
|
258
|
-
readonly [x: string]: unknown;
|
|
259
|
-
}[] | null | undefined;
|
|
260
|
-
} | null | undefined;
|
|
261
|
-
readonly inference_geo?: string | null | undefined;
|
|
262
|
-
readonly cache_control?: {
|
|
263
|
-
readonly type: "ephemeral";
|
|
264
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
271
|
+
readonly type: "between_tools" | "disabled";
|
|
265
272
|
} | undefined;
|
|
266
273
|
readonly output_config?: {
|
|
274
|
+
readonly effort?: string | undefined;
|
|
267
275
|
readonly format?: {
|
|
268
276
|
readonly type: "json_schema";
|
|
269
277
|
readonly schema: {
|
|
270
278
|
readonly [x: string]: unknown;
|
|
271
279
|
};
|
|
272
280
|
} | null | undefined;
|
|
273
|
-
readonly effort?: string | undefined;
|
|
274
281
|
} | undefined;
|
|
275
|
-
readonly
|
|
276
|
-
readonly
|
|
277
|
-
|
|
278
|
-
readonly instructions?: string | undefined;
|
|
279
|
-
readonly trigger?: {
|
|
280
|
-
readonly type: "input_tokens";
|
|
281
|
-
readonly value: number;
|
|
282
|
-
} | undefined;
|
|
283
|
-
readonly pause_after_compaction?: boolean | undefined;
|
|
284
|
-
}[];
|
|
282
|
+
readonly cache_control?: {
|
|
283
|
+
readonly type: "ephemeral";
|
|
284
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
285
285
|
} | undefined;
|
|
286
|
-
readonly
|
|
287
|
-
readonly
|
|
288
|
-
readonly
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
286
|
+
readonly container?: string | {
|
|
287
|
+
readonly id?: string | null | undefined;
|
|
288
|
+
readonly skills?: readonly {
|
|
289
|
+
readonly [x: string]: unknown;
|
|
290
|
+
}[] | null | undefined;
|
|
291
|
+
} | null | undefined;
|
|
292
|
+
readonly inference_geo?: string | null | undefined;
|
|
293
|
+
readonly metadata?: {
|
|
294
|
+
readonly user_id?: string | null | undefined;
|
|
293
295
|
} | undefined;
|
|
294
|
-
readonly
|
|
295
|
-
readonly top_k?: number | undefined;
|
|
296
|
-
readonly stop_sequences?: readonly string[] | undefined;
|
|
296
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
297
297
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
298
298
|
export declare const configure: (input: Config) => {
|
|
299
299
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
300
300
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
301
|
-
configure:
|
|
301
|
+
configure: typeof configure;
|
|
302
302
|
};
|
|
303
303
|
export declare const provider: {
|
|
304
304
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
305
|
-
configure:
|
|
306
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
307
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
308
|
-
configure: /*elided*/ any;
|
|
309
|
-
};
|
|
305
|
+
configure: typeof configure;
|
|
310
306
|
};
|
|
311
307
|
export declare const model: ProviderPackage.Definition<Settings, AnthropicMessages.ProviderOptionsInput>["model"];
|
|
312
308
|
export * as AnthropicCompatible from "./anthropic-compatible.js";
|