@opencode/ai 0.0.0-dev-21614 → 0.0.0-dev-21631
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/image-client.d.ts +8 -8
- package/dist/image.d.ts +148 -148
- package/dist/promise.d.ts +120 -120
- package/dist/protocols/alibaba-chat.d.ts +12 -12
- package/dist/protocols/alibaba-messages.d.ts +11 -11
- package/dist/protocols/alibaba-responses.d.ts +35 -35
- package/dist/protocols/anthropic-messages.d.ts +40 -40
- package/dist/protocols/bedrock-converse.d.ts +30 -30
- package/dist/protocols/cartesia-speech.d.ts +32 -32
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -32
- package/dist/protocols/elevenlabs-speech.d.ts +32 -32
- package/dist/protocols/gemini.d.ts +34 -34
- package/dist/protocols/google-interactions.d.ts +14 -14
- package/dist/protocols/google-speech.d.ts +32 -32
- package/dist/protocols/google-transcription.d.ts +32 -32
- package/dist/protocols/meta-messages.d.ts +23 -23
- package/dist/protocols/meta-responses.d.ts +78 -78
- package/dist/protocols/mistral-chat.d.ts +68 -68
- package/dist/protocols/open-responses.d.ts +396 -396
- package/dist/protocols/openai-chat.d.ts +60 -60
- package/dist/protocols/openai-compatible-chat.d.ts +12 -12
- package/dist/protocols/openai-compatible-responses.d.ts +35 -35
- package/dist/protocols/openai-images.d.ts +32 -32
- package/dist/protocols/openai-responses.d.ts +235 -235
- package/dist/protocols/openai-speech.d.ts +32 -32
- package/dist/protocols/openai-transcription.d.ts +32 -32
- package/dist/protocols/utils/tool-stream.d.ts +1 -1
- package/dist/protocols/venice-chat.d.ts +12 -12
- package/dist/protocols/xai-responses.d.ts +78 -78
- package/dist/protocols/zai-chat.d.ts +12 -12
- package/dist/protocols/zai-messages.d.ts +11 -11
- package/dist/providers/alibaba.d.ts +69 -69
- package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
- package/dist/providers/amazon-bedrock.d.ts +15 -15
- package/dist/providers/anthropic-compatible.d.ts +13 -13
- package/dist/providers/anthropic.d.ts +13 -13
- package/dist/providers/azure.d.ts +106 -106
- package/dist/providers/baseten.d.ts +24 -24
- package/dist/providers/cerebras.d.ts +24 -24
- package/dist/providers/cloudflare-ai-gateway.d.ts +230 -227
- package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
- package/dist/providers/cohere.d.ts +75 -75
- package/dist/providers/deepinfra.d.ts +24 -24
- package/dist/providers/deepseek.d.ts +24 -24
- package/dist/providers/digitalocean.d.ts +36 -36
- package/dist/providers/fireworks.d.ts +24 -24
- package/dist/providers/google-vertex-chat.d.ts +12 -12
- package/dist/providers/google-vertex-messages.d.ts +13 -13
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +35 -35
- package/dist/providers/google-vertex.d.ts +17 -17
- package/dist/providers/google.d.ts +17 -17
- package/dist/providers/groq.d.ts +24 -24
- package/dist/providers/meta.d.ts +179 -179
- package/dist/providers/minimax.d.ts +71 -71
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +202 -202
- package/dist/providers/openai-compatible-responses.d.ts +35 -35
- package/dist/providers/openai-compatible.d.ts +12 -12
- package/dist/providers/openai.d.ts +100 -100
- package/dist/providers/openrouter.d.ts +36 -36
- package/dist/providers/togetherai.d.ts +24 -24
- package/dist/providers/venice.d.ts +12 -12
- package/dist/providers/xai.d.ts +12 -12
- package/dist/providers/zai-coding-plan.d.ts +58 -58
- package/dist/providers/zai.d.ts +12 -12
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +148 -148
- package/dist/transcription-client.d.ts +8 -8
- package/dist/transcription.d.ts +148 -148
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +114 -114
- package/package.json +6 -5
|
@@ -27,14 +27,6 @@ interface ParserState extends OpenResponses.ParserState {
|
|
|
27
27
|
export declare const protocol: Protocol<{
|
|
28
28
|
readonly model: string;
|
|
29
29
|
readonly input: readonly ({
|
|
30
|
-
readonly [x: string]: unknown;
|
|
31
|
-
readonly type: string;
|
|
32
|
-
readonly id: string;
|
|
33
|
-
} | {
|
|
34
|
-
readonly type: "compaction";
|
|
35
|
-
readonly id?: string | null | undefined;
|
|
36
|
-
readonly encrypted_content: string;
|
|
37
|
-
} | {
|
|
38
30
|
readonly type: "configuration_update";
|
|
39
31
|
readonly reasoning: {
|
|
40
32
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
@@ -47,10 +39,45 @@ export declare const protocol: Protocol<{
|
|
|
47
39
|
readonly type: "message";
|
|
48
40
|
readonly role: "developer";
|
|
49
41
|
readonly content: string;
|
|
42
|
+
} | {
|
|
43
|
+
readonly type: "function_call_output";
|
|
44
|
+
readonly call_id: string;
|
|
45
|
+
readonly output: string | readonly ({
|
|
46
|
+
readonly type: "input_text";
|
|
47
|
+
readonly text: string;
|
|
48
|
+
} | {
|
|
49
|
+
readonly type: "input_video";
|
|
50
|
+
readonly video_url: string;
|
|
51
|
+
} | {
|
|
52
|
+
readonly type: "input_image";
|
|
53
|
+
readonly image_url: string;
|
|
54
|
+
readonly detail?: string | undefined;
|
|
55
|
+
} | {
|
|
56
|
+
readonly type: "input_file";
|
|
57
|
+
readonly filename: string;
|
|
58
|
+
readonly detail?: string | undefined;
|
|
59
|
+
readonly file_data?: string | undefined;
|
|
60
|
+
readonly file_url?: string | undefined;
|
|
61
|
+
})[];
|
|
62
|
+
} | {
|
|
63
|
+
readonly type: "reasoning";
|
|
64
|
+
readonly id?: string | undefined;
|
|
65
|
+
readonly summary: readonly {
|
|
66
|
+
readonly type: "summary_text";
|
|
67
|
+
readonly text: string;
|
|
68
|
+
}[];
|
|
69
|
+
readonly encrypted_content?: string | null | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
readonly type: "compaction";
|
|
72
|
+
readonly id?: string | null | undefined;
|
|
73
|
+
readonly encrypted_content: string;
|
|
50
74
|
} | {
|
|
51
75
|
readonly type: "message";
|
|
52
76
|
readonly role: "user";
|
|
53
77
|
readonly content: readonly ({
|
|
78
|
+
readonly type: "input_text";
|
|
79
|
+
readonly text: string;
|
|
80
|
+
} | {
|
|
54
81
|
readonly type: "input_image";
|
|
55
82
|
readonly image_url: string;
|
|
56
83
|
readonly detail?: string | undefined;
|
|
@@ -60,9 +87,6 @@ export declare const protocol: Protocol<{
|
|
|
60
87
|
readonly detail?: string | undefined;
|
|
61
88
|
readonly file_data?: string | undefined;
|
|
62
89
|
readonly file_url?: string | undefined;
|
|
63
|
-
} | {
|
|
64
|
-
readonly type: "input_text";
|
|
65
|
-
readonly text: string;
|
|
66
90
|
})[];
|
|
67
91
|
readonly id?: string | undefined;
|
|
68
92
|
readonly status?: string | undefined;
|
|
@@ -76,14 +100,6 @@ export declare const protocol: Protocol<{
|
|
|
76
100
|
}[];
|
|
77
101
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
78
102
|
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;
|
|
87
103
|
} | {
|
|
88
104
|
readonly type: "function_call";
|
|
89
105
|
readonly id?: string | undefined;
|
|
@@ -91,26 +107,6 @@ export declare const protocol: Protocol<{
|
|
|
91
107
|
readonly name: string;
|
|
92
108
|
readonly namespace?: string | undefined;
|
|
93
109
|
readonly arguments: string;
|
|
94
|
-
} | {
|
|
95
|
-
readonly type: "function_call_output";
|
|
96
|
-
readonly call_id: string;
|
|
97
|
-
readonly output: string | readonly ({
|
|
98
|
-
readonly type: "input_image";
|
|
99
|
-
readonly image_url: string;
|
|
100
|
-
readonly detail?: string | undefined;
|
|
101
|
-
} | {
|
|
102
|
-
readonly type: "input_file";
|
|
103
|
-
readonly filename: string;
|
|
104
|
-
readonly detail?: string | undefined;
|
|
105
|
-
readonly file_data?: string | undefined;
|
|
106
|
-
readonly file_url?: string | undefined;
|
|
107
|
-
} | {
|
|
108
|
-
readonly type: "input_text";
|
|
109
|
-
readonly text: string;
|
|
110
|
-
} | {
|
|
111
|
-
readonly type: "input_video";
|
|
112
|
-
readonly video_url: string;
|
|
113
|
-
})[];
|
|
114
110
|
} | {
|
|
115
111
|
readonly [x: string]: unknown;
|
|
116
112
|
readonly type: "web_search_call";
|
|
@@ -148,6 +144,10 @@ export declare const protocol: Protocol<{
|
|
|
148
144
|
readonly arguments?: string | undefined;
|
|
149
145
|
readonly output?: string | null | undefined;
|
|
150
146
|
readonly error?: unknown;
|
|
147
|
+
} | {
|
|
148
|
+
readonly [x: string]: unknown;
|
|
149
|
+
readonly type: string;
|
|
150
|
+
readonly id: string;
|
|
151
151
|
})[];
|
|
152
152
|
readonly instructions?: string | undefined;
|
|
153
153
|
readonly tools?: readonly ({
|
|
@@ -263,14 +263,6 @@ export declare const protocol: Protocol<{
|
|
|
263
263
|
export declare const httpTransport: import("../route/transport/http.js").HttpJsonTransport<{
|
|
264
264
|
readonly model: string;
|
|
265
265
|
readonly input: readonly ({
|
|
266
|
-
readonly [x: string]: unknown;
|
|
267
|
-
readonly type: string;
|
|
268
|
-
readonly id: string;
|
|
269
|
-
} | {
|
|
270
|
-
readonly type: "compaction";
|
|
271
|
-
readonly id?: string | null | undefined;
|
|
272
|
-
readonly encrypted_content: string;
|
|
273
|
-
} | {
|
|
274
266
|
readonly type: "configuration_update";
|
|
275
267
|
readonly reasoning: {
|
|
276
268
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
@@ -283,10 +275,45 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
283
275
|
readonly type: "message";
|
|
284
276
|
readonly role: "developer";
|
|
285
277
|
readonly content: string;
|
|
278
|
+
} | {
|
|
279
|
+
readonly type: "function_call_output";
|
|
280
|
+
readonly call_id: string;
|
|
281
|
+
readonly output: string | readonly ({
|
|
282
|
+
readonly type: "input_text";
|
|
283
|
+
readonly text: string;
|
|
284
|
+
} | {
|
|
285
|
+
readonly type: "input_video";
|
|
286
|
+
readonly video_url: string;
|
|
287
|
+
} | {
|
|
288
|
+
readonly type: "input_image";
|
|
289
|
+
readonly image_url: string;
|
|
290
|
+
readonly detail?: string | undefined;
|
|
291
|
+
} | {
|
|
292
|
+
readonly type: "input_file";
|
|
293
|
+
readonly filename: string;
|
|
294
|
+
readonly detail?: string | undefined;
|
|
295
|
+
readonly file_data?: string | undefined;
|
|
296
|
+
readonly file_url?: string | undefined;
|
|
297
|
+
})[];
|
|
298
|
+
} | {
|
|
299
|
+
readonly type: "reasoning";
|
|
300
|
+
readonly id?: string | undefined;
|
|
301
|
+
readonly summary: readonly {
|
|
302
|
+
readonly type: "summary_text";
|
|
303
|
+
readonly text: string;
|
|
304
|
+
}[];
|
|
305
|
+
readonly encrypted_content?: string | null | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
readonly type: "compaction";
|
|
308
|
+
readonly id?: string | null | undefined;
|
|
309
|
+
readonly encrypted_content: string;
|
|
286
310
|
} | {
|
|
287
311
|
readonly type: "message";
|
|
288
312
|
readonly role: "user";
|
|
289
313
|
readonly content: readonly ({
|
|
314
|
+
readonly type: "input_text";
|
|
315
|
+
readonly text: string;
|
|
316
|
+
} | {
|
|
290
317
|
readonly type: "input_image";
|
|
291
318
|
readonly image_url: string;
|
|
292
319
|
readonly detail?: string | undefined;
|
|
@@ -296,9 +323,6 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
296
323
|
readonly detail?: string | undefined;
|
|
297
324
|
readonly file_data?: string | undefined;
|
|
298
325
|
readonly file_url?: string | undefined;
|
|
299
|
-
} | {
|
|
300
|
-
readonly type: "input_text";
|
|
301
|
-
readonly text: string;
|
|
302
326
|
})[];
|
|
303
327
|
readonly id?: string | undefined;
|
|
304
328
|
readonly status?: string | undefined;
|
|
@@ -312,14 +336,6 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
312
336
|
}[];
|
|
313
337
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
314
338
|
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;
|
|
323
339
|
} | {
|
|
324
340
|
readonly type: "function_call";
|
|
325
341
|
readonly id?: string | undefined;
|
|
@@ -327,26 +343,6 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
327
343
|
readonly name: string;
|
|
328
344
|
readonly namespace?: string | undefined;
|
|
329
345
|
readonly arguments: string;
|
|
330
|
-
} | {
|
|
331
|
-
readonly type: "function_call_output";
|
|
332
|
-
readonly call_id: string;
|
|
333
|
-
readonly output: string | readonly ({
|
|
334
|
-
readonly type: "input_image";
|
|
335
|
-
readonly image_url: string;
|
|
336
|
-
readonly detail?: string | undefined;
|
|
337
|
-
} | {
|
|
338
|
-
readonly type: "input_file";
|
|
339
|
-
readonly filename: string;
|
|
340
|
-
readonly detail?: string | undefined;
|
|
341
|
-
readonly file_data?: string | undefined;
|
|
342
|
-
readonly file_url?: string | undefined;
|
|
343
|
-
} | {
|
|
344
|
-
readonly type: "input_text";
|
|
345
|
-
readonly text: string;
|
|
346
|
-
} | {
|
|
347
|
-
readonly type: "input_video";
|
|
348
|
-
readonly video_url: string;
|
|
349
|
-
})[];
|
|
350
346
|
} | {
|
|
351
347
|
readonly [x: string]: unknown;
|
|
352
348
|
readonly type: "web_search_call";
|
|
@@ -384,6 +380,10 @@ export declare const httpTransport: import("../route/transport/http.js").HttpJso
|
|
|
384
380
|
readonly arguments?: string | undefined;
|
|
385
381
|
readonly output?: string | null | undefined;
|
|
386
382
|
readonly error?: unknown;
|
|
383
|
+
} | {
|
|
384
|
+
readonly [x: string]: unknown;
|
|
385
|
+
readonly type: string;
|
|
386
|
+
readonly id: string;
|
|
387
387
|
})[];
|
|
388
388
|
readonly instructions?: string | undefined;
|
|
389
389
|
readonly tools?: readonly ({
|
|
@@ -142,9 +142,26 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
|
|
|
142
142
|
readonly type: "document_url";
|
|
143
143
|
readonly document_url: string;
|
|
144
144
|
})[];
|
|
145
|
+
} | {
|
|
146
|
+
readonly role: "tool";
|
|
147
|
+
readonly tool_call_id: string;
|
|
148
|
+
readonly name: string;
|
|
149
|
+
readonly content: string | readonly ({
|
|
150
|
+
readonly type: "text";
|
|
151
|
+
readonly text: string;
|
|
152
|
+
} | {
|
|
153
|
+
readonly type: "image_url";
|
|
154
|
+
readonly image_url: string;
|
|
155
|
+
} | {
|
|
156
|
+
readonly type: "document_url";
|
|
157
|
+
readonly document_url: string;
|
|
158
|
+
})[];
|
|
145
159
|
} | {
|
|
146
160
|
readonly role: "assistant";
|
|
147
161
|
readonly content: string | readonly ({
|
|
162
|
+
readonly type: "text";
|
|
163
|
+
readonly text: string;
|
|
164
|
+
} | {
|
|
148
165
|
readonly [x: string]: unknown;
|
|
149
166
|
readonly type: "thinking";
|
|
150
167
|
readonly thinking: readonly {
|
|
@@ -152,9 +169,6 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
|
|
|
152
169
|
readonly type?: string | undefined;
|
|
153
170
|
readonly text?: string | undefined;
|
|
154
171
|
}[];
|
|
155
|
-
} | {
|
|
156
|
-
readonly type: "text";
|
|
157
|
-
readonly text: string;
|
|
158
172
|
})[];
|
|
159
173
|
readonly tool_calls?: readonly {
|
|
160
174
|
readonly id: string;
|
|
@@ -165,20 +179,6 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
|
|
|
165
179
|
};
|
|
166
180
|
}[] | undefined;
|
|
167
181
|
readonly prefix?: true | undefined;
|
|
168
|
-
} | {
|
|
169
|
-
readonly role: "tool";
|
|
170
|
-
readonly tool_call_id: string;
|
|
171
|
-
readonly name: string;
|
|
172
|
-
readonly content: string | readonly ({
|
|
173
|
-
readonly type: "text";
|
|
174
|
-
readonly text: string;
|
|
175
|
-
} | {
|
|
176
|
-
readonly type: "image_url";
|
|
177
|
-
readonly image_url: string;
|
|
178
|
-
} | {
|
|
179
|
-
readonly type: "document_url";
|
|
180
|
-
readonly document_url: string;
|
|
181
|
-
})[];
|
|
182
182
|
})[];
|
|
183
183
|
tools: {
|
|
184
184
|
readonly type: "function";
|
|
@@ -259,9 +259,26 @@ export declare const protocol: Protocol<{
|
|
|
259
259
|
readonly type: "document_url";
|
|
260
260
|
readonly document_url: string;
|
|
261
261
|
})[];
|
|
262
|
+
} | {
|
|
263
|
+
readonly role: "tool";
|
|
264
|
+
readonly tool_call_id: string;
|
|
265
|
+
readonly name: string;
|
|
266
|
+
readonly content: string | readonly ({
|
|
267
|
+
readonly type: "text";
|
|
268
|
+
readonly text: string;
|
|
269
|
+
} | {
|
|
270
|
+
readonly type: "image_url";
|
|
271
|
+
readonly image_url: string;
|
|
272
|
+
} | {
|
|
273
|
+
readonly type: "document_url";
|
|
274
|
+
readonly document_url: string;
|
|
275
|
+
})[];
|
|
262
276
|
} | {
|
|
263
277
|
readonly role: "assistant";
|
|
264
278
|
readonly content: string | readonly ({
|
|
279
|
+
readonly type: "text";
|
|
280
|
+
readonly text: string;
|
|
281
|
+
} | {
|
|
265
282
|
readonly [x: string]: unknown;
|
|
266
283
|
readonly type: "thinking";
|
|
267
284
|
readonly thinking: readonly {
|
|
@@ -269,9 +286,6 @@ export declare const protocol: Protocol<{
|
|
|
269
286
|
readonly type?: string | undefined;
|
|
270
287
|
readonly text?: string | undefined;
|
|
271
288
|
}[];
|
|
272
|
-
} | {
|
|
273
|
-
readonly type: "text";
|
|
274
|
-
readonly text: string;
|
|
275
289
|
})[];
|
|
276
290
|
readonly tool_calls?: readonly {
|
|
277
291
|
readonly id: string;
|
|
@@ -282,20 +296,6 @@ export declare const protocol: Protocol<{
|
|
|
282
296
|
};
|
|
283
297
|
}[] | undefined;
|
|
284
298
|
readonly prefix?: true | undefined;
|
|
285
|
-
} | {
|
|
286
|
-
readonly role: "tool";
|
|
287
|
-
readonly tool_call_id: string;
|
|
288
|
-
readonly name: string;
|
|
289
|
-
readonly content: string | readonly ({
|
|
290
|
-
readonly type: "text";
|
|
291
|
-
readonly text: string;
|
|
292
|
-
} | {
|
|
293
|
-
readonly type: "image_url";
|
|
294
|
-
readonly image_url: string;
|
|
295
|
-
} | {
|
|
296
|
-
readonly type: "document_url";
|
|
297
|
-
readonly document_url: string;
|
|
298
|
-
})[];
|
|
299
299
|
})[];
|
|
300
300
|
readonly tools?: readonly {
|
|
301
301
|
readonly type: "function";
|
|
@@ -396,9 +396,26 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
396
396
|
readonly type: "document_url";
|
|
397
397
|
readonly document_url: string;
|
|
398
398
|
})[];
|
|
399
|
+
} | {
|
|
400
|
+
readonly role: "tool";
|
|
401
|
+
readonly tool_call_id: string;
|
|
402
|
+
readonly name: string;
|
|
403
|
+
readonly content: string | readonly ({
|
|
404
|
+
readonly type: "text";
|
|
405
|
+
readonly text: string;
|
|
406
|
+
} | {
|
|
407
|
+
readonly type: "image_url";
|
|
408
|
+
readonly image_url: string;
|
|
409
|
+
} | {
|
|
410
|
+
readonly type: "document_url";
|
|
411
|
+
readonly document_url: string;
|
|
412
|
+
})[];
|
|
399
413
|
} | {
|
|
400
414
|
readonly role: "assistant";
|
|
401
415
|
readonly content: string | readonly ({
|
|
416
|
+
readonly type: "text";
|
|
417
|
+
readonly text: string;
|
|
418
|
+
} | {
|
|
402
419
|
readonly [x: string]: unknown;
|
|
403
420
|
readonly type: "thinking";
|
|
404
421
|
readonly thinking: readonly {
|
|
@@ -406,9 +423,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
406
423
|
readonly type?: string | undefined;
|
|
407
424
|
readonly text?: string | undefined;
|
|
408
425
|
}[];
|
|
409
|
-
} | {
|
|
410
|
-
readonly type: "text";
|
|
411
|
-
readonly text: string;
|
|
412
426
|
})[];
|
|
413
427
|
readonly tool_calls?: readonly {
|
|
414
428
|
readonly id: string;
|
|
@@ -419,20 +433,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
419
433
|
};
|
|
420
434
|
}[] | undefined;
|
|
421
435
|
readonly prefix?: true | undefined;
|
|
422
|
-
} | {
|
|
423
|
-
readonly role: "tool";
|
|
424
|
-
readonly tool_call_id: string;
|
|
425
|
-
readonly name: string;
|
|
426
|
-
readonly content: string | readonly ({
|
|
427
|
-
readonly type: "text";
|
|
428
|
-
readonly text: string;
|
|
429
|
-
} | {
|
|
430
|
-
readonly type: "image_url";
|
|
431
|
-
readonly image_url: string;
|
|
432
|
-
} | {
|
|
433
|
-
readonly type: "document_url";
|
|
434
|
-
readonly document_url: string;
|
|
435
|
-
})[];
|
|
436
436
|
})[];
|
|
437
437
|
readonly tools?: readonly {
|
|
438
438
|
readonly type: "function";
|
|
@@ -487,9 +487,26 @@ export declare const route: Route<{
|
|
|
487
487
|
readonly type: "document_url";
|
|
488
488
|
readonly document_url: string;
|
|
489
489
|
})[];
|
|
490
|
+
} | {
|
|
491
|
+
readonly role: "tool";
|
|
492
|
+
readonly tool_call_id: string;
|
|
493
|
+
readonly name: string;
|
|
494
|
+
readonly content: string | readonly ({
|
|
495
|
+
readonly type: "text";
|
|
496
|
+
readonly text: string;
|
|
497
|
+
} | {
|
|
498
|
+
readonly type: "image_url";
|
|
499
|
+
readonly image_url: string;
|
|
500
|
+
} | {
|
|
501
|
+
readonly type: "document_url";
|
|
502
|
+
readonly document_url: string;
|
|
503
|
+
})[];
|
|
490
504
|
} | {
|
|
491
505
|
readonly role: "assistant";
|
|
492
506
|
readonly content: string | readonly ({
|
|
507
|
+
readonly type: "text";
|
|
508
|
+
readonly text: string;
|
|
509
|
+
} | {
|
|
493
510
|
readonly [x: string]: unknown;
|
|
494
511
|
readonly type: "thinking";
|
|
495
512
|
readonly thinking: readonly {
|
|
@@ -497,9 +514,6 @@ export declare const route: Route<{
|
|
|
497
514
|
readonly type?: string | undefined;
|
|
498
515
|
readonly text?: string | undefined;
|
|
499
516
|
}[];
|
|
500
|
-
} | {
|
|
501
|
-
readonly type: "text";
|
|
502
|
-
readonly text: string;
|
|
503
517
|
})[];
|
|
504
518
|
readonly tool_calls?: readonly {
|
|
505
519
|
readonly id: string;
|
|
@@ -510,20 +524,6 @@ export declare const route: Route<{
|
|
|
510
524
|
};
|
|
511
525
|
}[] | undefined;
|
|
512
526
|
readonly prefix?: true | undefined;
|
|
513
|
-
} | {
|
|
514
|
-
readonly role: "tool";
|
|
515
|
-
readonly tool_call_id: string;
|
|
516
|
-
readonly name: string;
|
|
517
|
-
readonly content: string | readonly ({
|
|
518
|
-
readonly type: "text";
|
|
519
|
-
readonly text: string;
|
|
520
|
-
} | {
|
|
521
|
-
readonly type: "image_url";
|
|
522
|
-
readonly image_url: string;
|
|
523
|
-
} | {
|
|
524
|
-
readonly type: "document_url";
|
|
525
|
-
readonly document_url: string;
|
|
526
|
-
})[];
|
|
527
527
|
})[];
|
|
528
528
|
readonly tools?: readonly {
|
|
529
529
|
readonly type: "function";
|