@opencode/ai 2.0.31 → 2.1.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/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 +47 -0
- package/dist/experimental/realtime.js +99 -0
- package/dist/experimental/system-one.d.ts +1 -1
- package/dist/experimental.d.ts +2 -0
- package/dist/experimental.js +1 -0
- 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/gemini.js +11 -1
- 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
|
@@ -25,64 +25,20 @@ interface ParserState extends OpenResponses.ParserState {
|
|
|
25
25
|
readonly completedItems: ReadonlySet<string>;
|
|
26
26
|
}
|
|
27
27
|
export declare const protocol: Protocol<{
|
|
28
|
+
readonly model: string;
|
|
28
29
|
readonly input: readonly ({
|
|
29
30
|
readonly [x: string]: unknown;
|
|
31
|
+
readonly type: string;
|
|
30
32
|
readonly id: string;
|
|
31
|
-
readonly type: "web_search_call";
|
|
32
|
-
readonly status?: string | undefined;
|
|
33
|
-
readonly action?: {
|
|
34
|
-
readonly [x: string]: unknown;
|
|
35
|
-
} | null | undefined;
|
|
36
33
|
} | {
|
|
37
|
-
readonly
|
|
38
|
-
readonly id
|
|
39
|
-
readonly
|
|
40
|
-
readonly status?: string | undefined;
|
|
41
|
-
readonly queries?: readonly string[] | undefined;
|
|
42
|
-
readonly results?: readonly {
|
|
43
|
-
readonly [x: string]: unknown;
|
|
44
|
-
}[] | null | undefined;
|
|
45
|
-
} | {
|
|
46
|
-
readonly [x: string]: unknown;
|
|
47
|
-
readonly id: string;
|
|
48
|
-
readonly type: "code_interpreter_call";
|
|
49
|
-
readonly status?: string | undefined;
|
|
50
|
-
readonly code?: string | null | undefined;
|
|
51
|
-
readonly container_id?: string | null | undefined;
|
|
52
|
-
readonly outputs?: readonly {
|
|
53
|
-
readonly [x: string]: unknown;
|
|
54
|
-
}[] | null | undefined;
|
|
55
|
-
} | {
|
|
56
|
-
readonly [x: string]: unknown;
|
|
57
|
-
readonly id: string;
|
|
58
|
-
readonly type: "mcp_call";
|
|
59
|
-
readonly status?: string | undefined;
|
|
60
|
-
readonly name?: string | undefined;
|
|
61
|
-
readonly output?: string | null | undefined;
|
|
62
|
-
readonly error?: unknown;
|
|
63
|
-
readonly arguments?: string | undefined;
|
|
64
|
-
readonly server_label?: string | undefined;
|
|
34
|
+
readonly type: "compaction";
|
|
35
|
+
readonly id?: string | null | undefined;
|
|
36
|
+
readonly encrypted_content: string;
|
|
65
37
|
} | {
|
|
66
38
|
readonly type: "configuration_update";
|
|
67
39
|
readonly reasoning: {
|
|
68
40
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
69
41
|
};
|
|
70
|
-
} | {
|
|
71
|
-
readonly [x: string]: unknown;
|
|
72
|
-
readonly type: string;
|
|
73
|
-
readonly id: string;
|
|
74
|
-
} | {
|
|
75
|
-
readonly type: "reasoning";
|
|
76
|
-
readonly summary: readonly {
|
|
77
|
-
readonly type: "summary_text";
|
|
78
|
-
readonly text: string;
|
|
79
|
-
}[];
|
|
80
|
-
readonly id?: string | undefined;
|
|
81
|
-
readonly encrypted_content?: string | null | undefined;
|
|
82
|
-
} | {
|
|
83
|
-
readonly type: "compaction";
|
|
84
|
-
readonly encrypted_content: string;
|
|
85
|
-
readonly id?: string | null | undefined;
|
|
86
42
|
} | {
|
|
87
43
|
readonly type: "message";
|
|
88
44
|
readonly role: "system";
|
|
@@ -93,6 +49,7 @@ export declare const protocol: Protocol<{
|
|
|
93
49
|
readonly content: string;
|
|
94
50
|
} | {
|
|
95
51
|
readonly type: "message";
|
|
52
|
+
readonly role: "user";
|
|
96
53
|
readonly content: readonly ({
|
|
97
54
|
readonly type: "input_image";
|
|
98
55
|
readonly image_url: string;
|
|
@@ -107,26 +64,33 @@ export declare const protocol: Protocol<{
|
|
|
107
64
|
readonly type: "input_text";
|
|
108
65
|
readonly text: string;
|
|
109
66
|
})[];
|
|
110
|
-
readonly role: "user";
|
|
111
67
|
readonly id?: string | undefined;
|
|
112
68
|
readonly status?: string | undefined;
|
|
113
69
|
} | {
|
|
114
70
|
readonly type: "message";
|
|
71
|
+
readonly id?: string | undefined;
|
|
72
|
+
readonly role: "assistant";
|
|
115
73
|
readonly content: readonly {
|
|
116
74
|
readonly type: "output_text";
|
|
117
75
|
readonly text: string;
|
|
118
76
|
}[];
|
|
119
|
-
readonly role: "assistant";
|
|
120
|
-
readonly id?: string | undefined;
|
|
121
|
-
readonly status?: string | undefined;
|
|
122
77
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
78
|
+
readonly status?: string | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
readonly type: "reasoning";
|
|
81
|
+
readonly id?: string | undefined;
|
|
82
|
+
readonly summary: readonly {
|
|
83
|
+
readonly type: "summary_text";
|
|
84
|
+
readonly text: string;
|
|
85
|
+
}[];
|
|
86
|
+
readonly encrypted_content?: string | null | undefined;
|
|
123
87
|
} | {
|
|
124
88
|
readonly type: "function_call";
|
|
125
|
-
readonly name: string;
|
|
126
|
-
readonly arguments: string;
|
|
127
|
-
readonly call_id: string;
|
|
128
89
|
readonly id?: string | undefined;
|
|
90
|
+
readonly call_id: string;
|
|
91
|
+
readonly name: string;
|
|
129
92
|
readonly namespace?: string | undefined;
|
|
93
|
+
readonly arguments: string;
|
|
130
94
|
} | {
|
|
131
95
|
readonly type: "function_call_output";
|
|
132
96
|
readonly call_id: string;
|
|
@@ -147,178 +111,170 @@ export declare const protocol: Protocol<{
|
|
|
147
111
|
readonly type: "input_video";
|
|
148
112
|
readonly video_url: string;
|
|
149
113
|
})[];
|
|
114
|
+
} | {
|
|
115
|
+
readonly [x: string]: unknown;
|
|
116
|
+
readonly type: "web_search_call";
|
|
117
|
+
readonly id: string;
|
|
118
|
+
readonly status?: string | undefined;
|
|
119
|
+
readonly action?: {
|
|
120
|
+
readonly [x: string]: unknown;
|
|
121
|
+
} | null | undefined;
|
|
122
|
+
} | {
|
|
123
|
+
readonly [x: string]: unknown;
|
|
124
|
+
readonly type: "file_search_call";
|
|
125
|
+
readonly id: string;
|
|
126
|
+
readonly status?: string | undefined;
|
|
127
|
+
readonly queries?: readonly string[] | undefined;
|
|
128
|
+
readonly results?: readonly {
|
|
129
|
+
readonly [x: string]: unknown;
|
|
130
|
+
}[] | null | undefined;
|
|
131
|
+
} | {
|
|
132
|
+
readonly [x: string]: unknown;
|
|
133
|
+
readonly type: "code_interpreter_call";
|
|
134
|
+
readonly id: string;
|
|
135
|
+
readonly status?: string | undefined;
|
|
136
|
+
readonly code?: string | null | undefined;
|
|
137
|
+
readonly container_id?: string | null | undefined;
|
|
138
|
+
readonly outputs?: readonly {
|
|
139
|
+
readonly [x: string]: unknown;
|
|
140
|
+
}[] | null | undefined;
|
|
141
|
+
} | {
|
|
142
|
+
readonly [x: string]: unknown;
|
|
143
|
+
readonly type: "mcp_call";
|
|
144
|
+
readonly id: string;
|
|
145
|
+
readonly status?: string | undefined;
|
|
146
|
+
readonly server_label?: string | undefined;
|
|
147
|
+
readonly name?: string | undefined;
|
|
148
|
+
readonly arguments?: string | undefined;
|
|
149
|
+
readonly output?: string | null | undefined;
|
|
150
|
+
readonly error?: unknown;
|
|
150
151
|
})[];
|
|
151
|
-
readonly model: string;
|
|
152
|
-
readonly stream: true;
|
|
153
|
-
readonly metadata?: {
|
|
154
|
-
readonly [x: string]: string;
|
|
155
|
-
} | undefined;
|
|
156
152
|
readonly instructions?: string | undefined;
|
|
157
|
-
readonly reasoning?: {
|
|
158
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
159
|
-
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
160
|
-
} | undefined;
|
|
161
|
-
readonly temperature?: number | undefined;
|
|
162
153
|
readonly tools?: readonly ({
|
|
163
|
-
readonly [x: string]: unknown;
|
|
164
|
-
readonly type: string;
|
|
165
|
-
} | {
|
|
166
154
|
readonly type: "function";
|
|
167
|
-
readonly description: string;
|
|
168
155
|
readonly name: string;
|
|
156
|
+
readonly description: string;
|
|
169
157
|
readonly parameters: {
|
|
170
158
|
readonly [x: string]: unknown;
|
|
171
159
|
};
|
|
172
160
|
readonly strict?: boolean | undefined;
|
|
161
|
+
} | {
|
|
162
|
+
readonly [x: string]: unknown;
|
|
163
|
+
readonly type: string;
|
|
173
164
|
})[] | undefined;
|
|
174
|
-
readonly
|
|
175
|
-
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
176
|
-
} | undefined;
|
|
177
|
-
readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
|
|
178
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
165
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
179
166
|
readonly type: "function";
|
|
180
167
|
readonly name: string;
|
|
181
168
|
} | {
|
|
182
169
|
readonly type: "allowed_tools";
|
|
183
|
-
readonly mode: "
|
|
170
|
+
readonly mode: "auto" | "none" | "required";
|
|
184
171
|
readonly tools: readonly {
|
|
185
172
|
readonly type: "function";
|
|
186
173
|
readonly name: string;
|
|
187
174
|
}[];
|
|
188
175
|
} | undefined;
|
|
189
|
-
readonly top_p?: number | undefined;
|
|
190
|
-
readonly frequency_penalty?: number | undefined;
|
|
191
|
-
readonly presence_penalty?: number | undefined;
|
|
192
176
|
readonly store?: boolean | undefined;
|
|
193
|
-
readonly
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
readonly
|
|
197
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
177
|
+
readonly metadata?: {
|
|
178
|
+
readonly [x: string]: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
readonly safety_identifier?: string | undefined;
|
|
198
181
|
readonly stream_options?: {
|
|
199
182
|
readonly include_obfuscation?: boolean | undefined;
|
|
200
183
|
} | undefined;
|
|
201
|
-
readonly safety_identifier?: string | undefined;
|
|
202
184
|
readonly top_logprobs?: number | undefined;
|
|
185
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
186
|
+
readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
|
|
187
|
+
readonly prompt_cache_key?: string | undefined;
|
|
188
|
+
readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
189
|
+
readonly reasoning?: {
|
|
190
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
191
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
readonly text?: {
|
|
194
|
+
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
readonly max_output_tokens?: number | undefined;
|
|
203
197
|
readonly max_tool_calls?: number | undefined;
|
|
198
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
199
|
+
readonly temperature?: number | undefined;
|
|
200
|
+
readonly top_p?: number | undefined;
|
|
201
|
+
readonly presence_penalty?: number | undefined;
|
|
202
|
+
readonly frequency_penalty?: number | undefined;
|
|
203
|
+
readonly stream: true;
|
|
204
204
|
}, string, {
|
|
205
205
|
readonly [x: string]: unknown;
|
|
206
206
|
readonly type: string;
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
209
|
-
readonly code?: unknown;
|
|
207
|
+
readonly delta?: string | undefined;
|
|
208
|
+
readonly arguments?: string | undefined;
|
|
210
209
|
readonly text?: string | undefined;
|
|
211
|
-
readonly
|
|
210
|
+
readonly item_id?: string | undefined;
|
|
211
|
+
readonly output_index?: number | undefined;
|
|
212
|
+
readonly summary_index?: number | undefined;
|
|
213
|
+
readonly item?: {
|
|
214
|
+
readonly [x: string]: unknown;
|
|
215
|
+
readonly type: string;
|
|
216
|
+
readonly id?: string | undefined;
|
|
217
|
+
readonly call_id?: string | undefined;
|
|
218
|
+
readonly name?: string | undefined;
|
|
219
|
+
readonly namespace?: string | undefined;
|
|
220
|
+
readonly arguments?: string | undefined;
|
|
221
|
+
readonly encrypted_content?: string | null | undefined;
|
|
222
|
+
} | null | undefined;
|
|
212
223
|
readonly response?: {
|
|
213
224
|
readonly [x: string]: unknown;
|
|
214
225
|
readonly id?: string | undefined;
|
|
226
|
+
readonly service_tier?: string | null | undefined;
|
|
227
|
+
readonly incomplete_details?: {
|
|
228
|
+
readonly reason?: string | undefined;
|
|
229
|
+
} | null | undefined;
|
|
215
230
|
readonly output?: readonly {
|
|
216
231
|
readonly [x: string]: unknown;
|
|
217
232
|
readonly type: string;
|
|
218
233
|
readonly id?: string | undefined;
|
|
234
|
+
readonly call_id?: string | undefined;
|
|
219
235
|
readonly name?: string | undefined;
|
|
220
|
-
readonly namespace?: string |
|
|
236
|
+
readonly namespace?: string | undefined;
|
|
221
237
|
readonly arguments?: string | undefined;
|
|
222
|
-
readonly call_id?: string | undefined;
|
|
223
238
|
readonly encrypted_content?: string | null | undefined;
|
|
224
239
|
}[] | undefined;
|
|
225
|
-
readonly error?: unknown;
|
|
226
240
|
readonly usage?: {
|
|
227
241
|
readonly [x: string]: unknown;
|
|
228
242
|
readonly input_tokens?: number | undefined;
|
|
243
|
+
readonly input_tokens_details?: {
|
|
244
|
+
readonly [x: string]: unknown;
|
|
245
|
+
readonly cached_tokens?: number | undefined;
|
|
246
|
+
readonly cache_write_tokens?: number | undefined;
|
|
247
|
+
} | null | undefined;
|
|
229
248
|
readonly output_tokens?: number | undefined;
|
|
230
249
|
readonly output_tokens_details?: {
|
|
231
250
|
readonly [x: string]: unknown;
|
|
232
251
|
readonly reasoning_tokens?: number | undefined;
|
|
233
252
|
} | null | undefined;
|
|
234
253
|
readonly total_tokens?: number | undefined;
|
|
235
|
-
readonly input_tokens_details?: {
|
|
236
|
-
readonly [x: string]: unknown;
|
|
237
|
-
readonly cached_tokens?: number | undefined;
|
|
238
|
-
readonly cache_write_tokens?: number | undefined;
|
|
239
|
-
} | null | undefined;
|
|
240
|
-
} | null | undefined;
|
|
241
|
-
readonly service_tier?: string | null | undefined;
|
|
242
|
-
readonly incomplete_details?: {
|
|
243
|
-
readonly reason?: string | undefined;
|
|
244
254
|
} | null | undefined;
|
|
255
|
+
readonly error?: unknown;
|
|
245
256
|
} | undefined;
|
|
246
|
-
readonly
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
readonly name?: string | undefined;
|
|
251
|
-
readonly namespace?: string | null | undefined;
|
|
252
|
-
readonly arguments?: string | undefined;
|
|
253
|
-
readonly call_id?: string | undefined;
|
|
254
|
-
readonly encrypted_content?: string | null | undefined;
|
|
255
|
-
} | null | undefined;
|
|
256
|
-
readonly delta?: string | undefined;
|
|
257
|
-
readonly arguments?: string | undefined;
|
|
258
|
-
readonly item_id?: string | undefined;
|
|
259
|
-
readonly output_index?: number | undefined;
|
|
260
|
-
readonly summary_index?: number | undefined;
|
|
257
|
+
readonly code?: unknown;
|
|
258
|
+
readonly message?: unknown;
|
|
259
|
+
readonly error?: unknown;
|
|
260
|
+
readonly status?: unknown;
|
|
261
261
|
readonly status_code?: unknown;
|
|
262
262
|
}, ParserState>;
|
|
263
263
|
export declare const httpTransport: import("../route/transport/http.js").HttpJsonTransport<{
|
|
264
|
+
readonly model: string;
|
|
264
265
|
readonly input: readonly ({
|
|
265
266
|
readonly [x: string]: unknown;
|
|
267
|
+
readonly type: string;
|
|
266
268
|
readonly id: string;
|
|
267
|
-
readonly type: "web_search_call";
|
|
268
|
-
readonly status?: string | undefined;
|
|
269
|
-
readonly action?: {
|
|
270
|
-
readonly [x: string]: unknown;
|
|
271
|
-
} | null | undefined;
|
|
272
|
-
} | {
|
|
273
|
-
readonly [x: string]: unknown;
|
|
274
|
-
readonly id: string;
|
|
275
|
-
readonly type: "file_search_call";
|
|
276
|
-
readonly status?: string | undefined;
|
|
277
|
-
readonly queries?: readonly string[] | undefined;
|
|
278
|
-
readonly results?: readonly {
|
|
279
|
-
readonly [x: string]: unknown;
|
|
280
|
-
}[] | null | undefined;
|
|
281
|
-
} | {
|
|
282
|
-
readonly [x: string]: unknown;
|
|
283
|
-
readonly id: string;
|
|
284
|
-
readonly type: "code_interpreter_call";
|
|
285
|
-
readonly status?: string | undefined;
|
|
286
|
-
readonly code?: string | null | undefined;
|
|
287
|
-
readonly container_id?: string | null | undefined;
|
|
288
|
-
readonly outputs?: readonly {
|
|
289
|
-
readonly [x: string]: unknown;
|
|
290
|
-
}[] | null | undefined;
|
|
291
269
|
} | {
|
|
292
|
-
readonly
|
|
293
|
-
readonly id
|
|
294
|
-
readonly
|
|
295
|
-
readonly status?: string | undefined;
|
|
296
|
-
readonly name?: string | undefined;
|
|
297
|
-
readonly output?: string | null | undefined;
|
|
298
|
-
readonly error?: unknown;
|
|
299
|
-
readonly arguments?: string | undefined;
|
|
300
|
-
readonly server_label?: string | undefined;
|
|
270
|
+
readonly type: "compaction";
|
|
271
|
+
readonly id?: string | null | undefined;
|
|
272
|
+
readonly encrypted_content: string;
|
|
301
273
|
} | {
|
|
302
274
|
readonly type: "configuration_update";
|
|
303
275
|
readonly reasoning: {
|
|
304
276
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
305
277
|
};
|
|
306
|
-
} | {
|
|
307
|
-
readonly [x: string]: unknown;
|
|
308
|
-
readonly type: string;
|
|
309
|
-
readonly id: string;
|
|
310
|
-
} | {
|
|
311
|
-
readonly type: "reasoning";
|
|
312
|
-
readonly summary: readonly {
|
|
313
|
-
readonly type: "summary_text";
|
|
314
|
-
readonly text: string;
|
|
315
|
-
}[];
|
|
316
|
-
readonly id?: string | undefined;
|
|
317
|
-
readonly encrypted_content?: string | null | undefined;
|
|
318
|
-
} | {
|
|
319
|
-
readonly type: "compaction";
|
|
320
|
-
readonly encrypted_content: string;
|
|
321
|
-
readonly id?: string | null | undefined;
|
|
322
278
|
} | {
|
|
323
279
|
readonly type: "message";
|
|
324
280
|
readonly role: "system";
|
|
@@ -329,6 +285,7 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
329
285
|
readonly content: string;
|
|
330
286
|
} | {
|
|
331
287
|
readonly type: "message";
|
|
288
|
+
readonly role: "user";
|
|
332
289
|
readonly content: readonly ({
|
|
333
290
|
readonly type: "input_image";
|
|
334
291
|
readonly image_url: string;
|
|
@@ -343,26 +300,33 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
343
300
|
readonly type: "input_text";
|
|
344
301
|
readonly text: string;
|
|
345
302
|
})[];
|
|
346
|
-
readonly role: "user";
|
|
347
303
|
readonly id?: string | undefined;
|
|
348
304
|
readonly status?: string | undefined;
|
|
349
305
|
} | {
|
|
350
306
|
readonly type: "message";
|
|
307
|
+
readonly id?: string | undefined;
|
|
308
|
+
readonly role: "assistant";
|
|
351
309
|
readonly content: readonly {
|
|
352
310
|
readonly type: "output_text";
|
|
353
311
|
readonly text: string;
|
|
354
312
|
}[];
|
|
355
|
-
readonly role: "assistant";
|
|
356
|
-
readonly id?: string | undefined;
|
|
357
|
-
readonly status?: string | undefined;
|
|
358
313
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
314
|
+
readonly status?: string | undefined;
|
|
315
|
+
} | {
|
|
316
|
+
readonly type: "reasoning";
|
|
317
|
+
readonly id?: string | undefined;
|
|
318
|
+
readonly summary: readonly {
|
|
319
|
+
readonly type: "summary_text";
|
|
320
|
+
readonly text: string;
|
|
321
|
+
}[];
|
|
322
|
+
readonly encrypted_content?: string | null | undefined;
|
|
359
323
|
} | {
|
|
360
324
|
readonly type: "function_call";
|
|
361
|
-
readonly name: string;
|
|
362
|
-
readonly arguments: string;
|
|
363
|
-
readonly call_id: string;
|
|
364
325
|
readonly id?: string | undefined;
|
|
326
|
+
readonly call_id: string;
|
|
327
|
+
readonly name: string;
|
|
365
328
|
readonly namespace?: string | undefined;
|
|
329
|
+
readonly arguments: string;
|
|
366
330
|
} | {
|
|
367
331
|
readonly type: "function_call_output";
|
|
368
332
|
readonly call_id: string;
|
|
@@ -383,59 +347,95 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
383
347
|
readonly type: "input_video";
|
|
384
348
|
readonly video_url: string;
|
|
385
349
|
})[];
|
|
350
|
+
} | {
|
|
351
|
+
readonly [x: string]: unknown;
|
|
352
|
+
readonly type: "web_search_call";
|
|
353
|
+
readonly id: string;
|
|
354
|
+
readonly status?: string | undefined;
|
|
355
|
+
readonly action?: {
|
|
356
|
+
readonly [x: string]: unknown;
|
|
357
|
+
} | null | undefined;
|
|
358
|
+
} | {
|
|
359
|
+
readonly [x: string]: unknown;
|
|
360
|
+
readonly type: "file_search_call";
|
|
361
|
+
readonly id: string;
|
|
362
|
+
readonly status?: string | undefined;
|
|
363
|
+
readonly queries?: readonly string[] | undefined;
|
|
364
|
+
readonly results?: readonly {
|
|
365
|
+
readonly [x: string]: unknown;
|
|
366
|
+
}[] | null | undefined;
|
|
367
|
+
} | {
|
|
368
|
+
readonly [x: string]: unknown;
|
|
369
|
+
readonly type: "code_interpreter_call";
|
|
370
|
+
readonly id: string;
|
|
371
|
+
readonly status?: string | undefined;
|
|
372
|
+
readonly code?: string | null | undefined;
|
|
373
|
+
readonly container_id?: string | null | undefined;
|
|
374
|
+
readonly outputs?: readonly {
|
|
375
|
+
readonly [x: string]: unknown;
|
|
376
|
+
}[] | null | undefined;
|
|
377
|
+
} | {
|
|
378
|
+
readonly [x: string]: unknown;
|
|
379
|
+
readonly type: "mcp_call";
|
|
380
|
+
readonly id: string;
|
|
381
|
+
readonly status?: string | undefined;
|
|
382
|
+
readonly server_label?: string | undefined;
|
|
383
|
+
readonly name?: string | undefined;
|
|
384
|
+
readonly arguments?: string | undefined;
|
|
385
|
+
readonly output?: string | null | undefined;
|
|
386
|
+
readonly error?: unknown;
|
|
386
387
|
})[];
|
|
387
|
-
readonly model: string;
|
|
388
|
-
readonly stream: true;
|
|
389
|
-
readonly metadata?: {
|
|
390
|
-
readonly [x: string]: string;
|
|
391
|
-
} | undefined;
|
|
392
388
|
readonly instructions?: string | undefined;
|
|
393
|
-
readonly reasoning?: {
|
|
394
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
395
|
-
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
396
|
-
} | undefined;
|
|
397
|
-
readonly temperature?: number | undefined;
|
|
398
389
|
readonly tools?: readonly ({
|
|
399
|
-
readonly [x: string]: unknown;
|
|
400
|
-
readonly type: string;
|
|
401
|
-
} | {
|
|
402
390
|
readonly type: "function";
|
|
403
|
-
readonly description: string;
|
|
404
391
|
readonly name: string;
|
|
392
|
+
readonly description: string;
|
|
405
393
|
readonly parameters: {
|
|
406
394
|
readonly [x: string]: unknown;
|
|
407
395
|
};
|
|
408
396
|
readonly strict?: boolean | undefined;
|
|
397
|
+
} | {
|
|
398
|
+
readonly [x: string]: unknown;
|
|
399
|
+
readonly type: string;
|
|
409
400
|
})[] | undefined;
|
|
410
|
-
readonly
|
|
411
|
-
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
412
|
-
} | undefined;
|
|
413
|
-
readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
|
|
414
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
401
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
415
402
|
readonly type: "function";
|
|
416
403
|
readonly name: string;
|
|
417
404
|
} | {
|
|
418
405
|
readonly type: "allowed_tools";
|
|
419
|
-
readonly mode: "
|
|
406
|
+
readonly mode: "auto" | "none" | "required";
|
|
420
407
|
readonly tools: readonly {
|
|
421
408
|
readonly type: "function";
|
|
422
409
|
readonly name: string;
|
|
423
410
|
}[];
|
|
424
411
|
} | undefined;
|
|
425
|
-
readonly top_p?: number | undefined;
|
|
426
|
-
readonly frequency_penalty?: number | undefined;
|
|
427
|
-
readonly presence_penalty?: number | undefined;
|
|
428
412
|
readonly store?: boolean | undefined;
|
|
429
|
-
readonly
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
readonly
|
|
433
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
413
|
+
readonly metadata?: {
|
|
414
|
+
readonly [x: string]: string;
|
|
415
|
+
} | undefined;
|
|
416
|
+
readonly safety_identifier?: string | undefined;
|
|
434
417
|
readonly stream_options?: {
|
|
435
418
|
readonly include_obfuscation?: boolean | undefined;
|
|
436
419
|
} | undefined;
|
|
437
|
-
readonly safety_identifier?: string | undefined;
|
|
438
420
|
readonly top_logprobs?: number | undefined;
|
|
421
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
422
|
+
readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
|
|
423
|
+
readonly prompt_cache_key?: string | undefined;
|
|
424
|
+
readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
425
|
+
readonly reasoning?: {
|
|
426
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
427
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
428
|
+
} | undefined;
|
|
429
|
+
readonly text?: {
|
|
430
|
+
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
readonly max_output_tokens?: number | undefined;
|
|
439
433
|
readonly max_tool_calls?: number | undefined;
|
|
434
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
435
|
+
readonly temperature?: number | undefined;
|
|
436
|
+
readonly top_p?: number | undefined;
|
|
437
|
+
readonly presence_penalty?: number | undefined;
|
|
438
|
+
readonly frequency_penalty?: number | undefined;
|
|
439
|
+
readonly stream: true;
|
|
440
440
|
}, string>;
|
|
441
441
|
export * as MetaResponses from "./meta-responses.js";
|