@opencode/ai 2.1.2 → 2.1.4

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.
Files changed (140) hide show
  1. package/dist/cache-policy.js +6 -5
  2. package/dist/experimental/evaluation.d.ts +7 -6
  3. package/dist/experimental/evaluation.js +3 -11
  4. package/dist/experimental/realtime.d.ts +59 -0
  5. package/dist/experimental/realtime.js +21 -13
  6. package/dist/experimental.d.ts +1 -1
  7. package/dist/generation.js +1 -1
  8. package/dist/image-client.d.ts +11 -9
  9. package/dist/image.d.ts +158 -150
  10. package/dist/image.js +2 -2
  11. package/dist/llm.d.ts +2 -4
  12. package/dist/llm.js +2 -2
  13. package/dist/media-model.d.ts +2 -2
  14. package/dist/media-model.js +1 -1
  15. package/dist/promise.d.ts +121 -121
  16. package/dist/promise.js +3 -5
  17. package/dist/protocols/alibaba-chat.d.ts +18 -18
  18. package/dist/protocols/alibaba-chat.js +3 -3
  19. package/dist/protocols/alibaba-messages.d.ts +12 -12
  20. package/dist/protocols/alibaba-messages.js +1 -1
  21. package/dist/protocols/alibaba-responses.d.ts +38 -38
  22. package/dist/protocols/anthropic-messages.d.ts +40 -44
  23. package/dist/protocols/anthropic-messages.js +13 -15
  24. package/dist/protocols/bedrock-converse.d.ts +36 -85
  25. package/dist/protocols/bedrock-converse.js +6 -6
  26. package/dist/protocols/bedrock-event-stream.d.ts +6 -1
  27. package/dist/protocols/bedrock-event-stream.js +9 -8
  28. package/dist/protocols/cartesia-speech.d.ts +32 -32
  29. package/dist/protocols/cohere-chat.d.ts +13 -10
  30. package/dist/protocols/cohere-chat.js +2 -2
  31. package/dist/protocols/deepgram-speech.d.ts +32 -32
  32. package/dist/protocols/elevenlabs-speech.d.ts +32 -32
  33. package/dist/protocols/gemini.d.ts +46 -36
  34. package/dist/protocols/gemini.js +12 -15
  35. package/dist/protocols/google-interactions.d.ts +14 -13
  36. package/dist/protocols/google-interactions.js +16 -11
  37. package/dist/protocols/google-speech.d.ts +32 -32
  38. package/dist/protocols/google-transcription.d.ts +32 -32
  39. package/dist/protocols/meta-messages.d.ts +23 -23
  40. package/dist/protocols/meta-responses.d.ts +84 -84
  41. package/dist/protocols/mistral-chat.d.ts +81 -78
  42. package/dist/protocols/mistral-chat.js +3 -5
  43. package/dist/protocols/open-responses-channel.js +47 -46
  44. package/dist/protocols/open-responses-continuation.d.ts +8 -2
  45. package/dist/protocols/open-responses-continuation.js +3 -1
  46. package/dist/protocols/open-responses.d.ts +419 -419
  47. package/dist/protocols/open-responses.js +11 -10
  48. package/dist/protocols/openai-chat.d.ts +68 -67
  49. package/dist/protocols/openai-chat.js +7 -8
  50. package/dist/protocols/openai-compatible-chat.d.ts +13 -14
  51. package/dist/protocols/openai-compatible-responses.d.ts +39 -40
  52. package/dist/protocols/openai-images.d.ts +32 -32
  53. package/dist/protocols/openai-responses.d.ts +253 -253
  54. package/dist/protocols/openai-responses.js +1 -1
  55. package/dist/protocols/openai-speech.d.ts +32 -32
  56. package/dist/protocols/openai-transcription.d.ts +32 -32
  57. package/dist/protocols/openai-transcription.js +12 -7
  58. package/dist/protocols/utils/open-responses-options.d.ts +8 -8
  59. package/dist/protocols/utils/open-responses-options.js +4 -6
  60. package/dist/protocols/utils/partial-json-options.d.ts +0 -1
  61. package/dist/protocols/utils/partial-json-options.js +0 -1
  62. package/dist/protocols/utils/partial-json.js +5 -4
  63. package/dist/protocols/utils/tool-schema.d.ts +0 -3
  64. package/dist/protocols/utils/tool-schema.js +0 -4
  65. package/dist/protocols/utils/tool-stream.d.ts +1 -1
  66. package/dist/protocols/venice-chat.d.ts +52 -53
  67. package/dist/protocols/venice-chat.js +6 -5
  68. package/dist/protocols/xai-images.js +3 -4
  69. package/dist/protocols/xai-responses.d.ts +81 -81
  70. package/dist/protocols/zai-chat.d.ts +33 -30
  71. package/dist/protocols/zai-chat.js +8 -3
  72. package/dist/protocols/zai-messages.d.ts +21 -19
  73. package/dist/protocols/zai-messages.js +3 -2
  74. package/dist/provider-error.js +8 -7
  75. package/dist/providers/alibaba.d.ts +74 -74
  76. package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
  77. package/dist/providers/amazon-bedrock.d.ts +16 -13
  78. package/dist/providers/anthropic-compatible.d.ts +13 -13
  79. package/dist/providers/anthropic.d.ts +13 -13
  80. package/dist/providers/azure.d.ts +112 -112
  81. package/dist/providers/baseten.d.ts +24 -24
  82. package/dist/providers/cerebras.d.ts +24 -24
  83. package/dist/providers/cloudflare-ai-gateway.d.ts +237 -234
  84. package/dist/providers/cloudflare-ai-gateway.js +3 -6
  85. package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
  86. package/dist/providers/cohere.d.ts +78 -74
  87. package/dist/providers/deepinfra.d.ts +24 -24
  88. package/dist/providers/deepseek.d.ts +24 -24
  89. package/dist/providers/digitalocean.d.ts +36 -36
  90. package/dist/providers/fireworks.d.ts +24 -24
  91. package/dist/providers/google-vertex-chat.d.ts +12 -12
  92. package/dist/providers/google-vertex-interactions.d.ts +3 -3
  93. package/dist/providers/google-vertex-messages.d.ts +20 -20
  94. package/dist/providers/google-vertex-mistral.d.ts +14 -14
  95. package/dist/providers/google-vertex-responses.d.ts +38 -38
  96. package/dist/providers/google-vertex.d.ts +17 -17
  97. package/dist/providers/google-vertex.js +2 -2
  98. package/dist/providers/google.d.ts +79 -79
  99. package/dist/providers/groq.d.ts +24 -24
  100. package/dist/providers/meta.d.ts +189 -189
  101. package/dist/providers/minimax.d.ts +202 -202
  102. package/dist/providers/mistral.d.ts +28 -28
  103. package/dist/providers/moonshot.d.ts +202 -202
  104. package/dist/providers/open-responses-options.d.ts +0 -1
  105. package/dist/providers/open-responses-options.js +1 -1
  106. package/dist/providers/openai-compatible-responses.d.ts +38 -38
  107. package/dist/providers/openai-compatible.d.ts +12 -12
  108. package/dist/providers/openai-compatible.js +1 -1
  109. package/dist/providers/openai-options.d.ts +3 -4
  110. package/dist/providers/openai-options.js +0 -1
  111. package/dist/providers/openai.d.ts +103 -103
  112. package/dist/providers/openrouter.d.ts +171 -112
  113. package/dist/providers/openrouter.js +40 -33
  114. package/dist/providers/togetherai.d.ts +24 -24
  115. package/dist/providers/venice.d.ts +195 -20
  116. package/dist/providers/xai.d.ts +12 -12
  117. package/dist/providers/zai-coding-plan.d.ts +152 -72
  118. package/dist/providers/zai.d.ts +84 -19
  119. package/dist/route/auth-options.d.ts +0 -3
  120. package/dist/route/auth.d.ts +0 -2
  121. package/dist/route/auth.js +0 -2
  122. package/dist/route/client.d.ts +0 -218
  123. package/dist/route/client.js +3 -7
  124. package/dist/route/executor-service.js +1 -1
  125. package/dist/route/transport/http.js +5 -8
  126. package/dist/schema/errors.d.ts +1 -1
  127. package/dist/schema/errors.js +1 -1
  128. package/dist/schema/messages.js +4 -7
  129. package/dist/speech-client.d.ts +11 -9
  130. package/dist/speech.d.ts +158 -150
  131. package/dist/speech.js +2 -2
  132. package/dist/transcription-client.d.ts +11 -9
  133. package/dist/transcription.d.ts +158 -150
  134. package/dist/transcription.js +2 -2
  135. package/dist/video-client.d.ts +11 -9
  136. package/dist/video.d.ts +124 -116
  137. package/dist/video.js +2 -2
  138. package/package.json +7 -6
  139. package/dist/protocols/utils/openai-options.d.ts +0 -16
  140. package/dist/protocols/utils/openai-options.js +0 -15
@@ -57,13 +57,6 @@ export declare const routes: Route<{
57
57
  readonly messages: readonly ({
58
58
  readonly role: "system";
59
59
  readonly content: string | readonly ({
60
- readonly type: "text";
61
- readonly text: string;
62
- readonly cache_control?: {
63
- readonly type: "ephemeral";
64
- readonly ttl?: string | undefined;
65
- } | undefined;
66
- } | {
67
60
  readonly type: "image_url";
68
61
  readonly image_url: {
69
62
  readonly url: string;
@@ -74,17 +67,17 @@ export declare const routes: Route<{
74
67
  readonly filename: string;
75
68
  readonly file_data: string;
76
69
  };
77
- })[];
78
- } | {
79
- readonly role: "user";
80
- readonly content: string | readonly ({
70
+ } | {
81
71
  readonly type: "text";
82
72
  readonly text: string;
83
73
  readonly cache_control?: {
84
74
  readonly type: "ephemeral";
85
75
  readonly ttl?: string | undefined;
86
76
  } | undefined;
87
- } | {
77
+ })[];
78
+ } | {
79
+ readonly role: "user";
80
+ readonly content: string | readonly ({
88
81
  readonly type: "image_url";
89
82
  readonly image_url: {
90
83
  readonly url: string;
@@ -95,6 +88,13 @@ export declare const routes: Route<{
95
88
  readonly filename: string;
96
89
  readonly file_data: string;
97
90
  };
91
+ } | {
92
+ readonly type: "text";
93
+ readonly text: string;
94
+ readonly cache_control?: {
95
+ readonly type: "ephemeral";
96
+ readonly ttl?: string | undefined;
97
+ } | undefined;
98
98
  })[];
99
99
  } | {
100
100
  readonly role: "tool";
@@ -139,14 +139,14 @@ export declare const routes: Route<{
139
139
  readonly thought_signature?: string | undefined;
140
140
  })[];
141
141
  readonly reasoning?: {
142
- readonly effort?: string | undefined;
142
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
143
143
  readonly enabled?: boolean | undefined;
144
- readonly summary?: string | undefined;
144
+ readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
145
145
  } | undefined;
146
146
  readonly venice_parameters: {
147
147
  readonly [x: string]: string | boolean;
148
148
  };
149
- readonly prompt_cache_retention?: string | undefined;
149
+ readonly prompt_cache_retention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
150
150
  readonly parallel_tool_calls?: boolean | undefined;
151
151
  readonly min_p?: number | undefined;
152
152
  readonly top_k?: number | undefined;
@@ -163,16 +163,191 @@ export declare const routes: Route<{
163
163
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
164
164
  export declare const configure: (input?: Config) => {
165
165
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
166
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<VeniceChat.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
167
- chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<VeniceChat.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
166
+ model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
167
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
168
+ readonly reasoning?: {
169
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
170
+ readonly enabled?: boolean | undefined;
171
+ readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
172
+ } | undefined;
173
+ readonly veniceParameters?: {
174
+ readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
175
+ readonly enableWebScraping?: boolean | undefined;
176
+ readonly enableWebCitations?: boolean | undefined;
177
+ readonly enableXSearch?: boolean | undefined;
178
+ readonly stripThinkingResponse?: boolean | undefined;
179
+ readonly disableThinking?: boolean | undefined;
180
+ readonly includeVeniceSystemPrompt?: boolean | undefined;
181
+ readonly characterSlug?: string | undefined;
182
+ readonly includeSearchResultsInStream?: boolean | undefined;
183
+ readonly returnSearchResultsAsDocuments?: boolean | undefined;
184
+ } | undefined;
185
+ readonly promptCacheKey?: string | undefined;
186
+ readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
187
+ readonly parallelToolCalls?: boolean | undefined;
188
+ readonly maxCompletionTokens?: number | undefined;
189
+ readonly maxTokens?: number | undefined;
190
+ readonly minP?: number | undefined;
191
+ readonly repetitionPenalty?: number | undefined;
192
+ readonly stopTokenIds?: readonly number[] | undefined;
193
+ readonly logprobs?: boolean | undefined;
194
+ readonly topLogprobs?: number | undefined;
195
+ readonly maxTemp?: number | undefined;
196
+ readonly minTemp?: number | undefined;
197
+ readonly responseFormat?: {
198
+ readonly [x: string]: unknown;
199
+ } | undefined;
200
+ readonly user?: string | undefined;
201
+ }, import("../route/client.js").CompactionOperations | undefined>;
202
+ chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
203
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
204
+ readonly reasoning?: {
205
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
206
+ readonly enabled?: boolean | undefined;
207
+ readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
208
+ } | undefined;
209
+ readonly veniceParameters?: {
210
+ readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
211
+ readonly enableWebScraping?: boolean | undefined;
212
+ readonly enableWebCitations?: boolean | undefined;
213
+ readonly enableXSearch?: boolean | undefined;
214
+ readonly stripThinkingResponse?: boolean | undefined;
215
+ readonly disableThinking?: boolean | undefined;
216
+ readonly includeVeniceSystemPrompt?: boolean | undefined;
217
+ readonly characterSlug?: string | undefined;
218
+ readonly includeSearchResultsInStream?: boolean | undefined;
219
+ readonly returnSearchResultsAsDocuments?: boolean | undefined;
220
+ } | undefined;
221
+ readonly promptCacheKey?: string | undefined;
222
+ readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
223
+ readonly parallelToolCalls?: boolean | undefined;
224
+ readonly maxCompletionTokens?: number | undefined;
225
+ readonly maxTokens?: number | undefined;
226
+ readonly minP?: number | undefined;
227
+ readonly repetitionPenalty?: number | undefined;
228
+ readonly stopTokenIds?: readonly number[] | undefined;
229
+ readonly logprobs?: boolean | undefined;
230
+ readonly topLogprobs?: number | undefined;
231
+ readonly maxTemp?: number | undefined;
232
+ readonly minTemp?: number | undefined;
233
+ readonly responseFormat?: {
234
+ readonly [x: string]: unknown;
235
+ } | undefined;
236
+ readonly user?: string | undefined;
237
+ }, import("../route/client.js").CompactionOperations | undefined>;
168
238
  configure: typeof configure;
169
239
  };
170
240
  export declare const provider: {
171
241
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
172
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<VeniceChat.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
173
- chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<VeniceChat.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
242
+ model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
243
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
244
+ readonly reasoning?: {
245
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
246
+ readonly enabled?: boolean | undefined;
247
+ readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
248
+ } | undefined;
249
+ readonly veniceParameters?: {
250
+ readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
251
+ readonly enableWebScraping?: boolean | undefined;
252
+ readonly enableWebCitations?: boolean | undefined;
253
+ readonly enableXSearch?: boolean | undefined;
254
+ readonly stripThinkingResponse?: boolean | undefined;
255
+ readonly disableThinking?: boolean | undefined;
256
+ readonly includeVeniceSystemPrompt?: boolean | undefined;
257
+ readonly characterSlug?: string | undefined;
258
+ readonly includeSearchResultsInStream?: boolean | undefined;
259
+ readonly returnSearchResultsAsDocuments?: boolean | undefined;
260
+ } | undefined;
261
+ readonly promptCacheKey?: string | undefined;
262
+ readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
263
+ readonly parallelToolCalls?: boolean | undefined;
264
+ readonly maxCompletionTokens?: number | undefined;
265
+ readonly maxTokens?: number | undefined;
266
+ readonly minP?: number | undefined;
267
+ readonly repetitionPenalty?: number | undefined;
268
+ readonly stopTokenIds?: readonly number[] | undefined;
269
+ readonly logprobs?: boolean | undefined;
270
+ readonly topLogprobs?: number | undefined;
271
+ readonly maxTemp?: number | undefined;
272
+ readonly minTemp?: number | undefined;
273
+ readonly responseFormat?: {
274
+ readonly [x: string]: unknown;
275
+ } | undefined;
276
+ readonly user?: string | undefined;
277
+ }, import("../route/client.js").CompactionOperations | undefined>;
278
+ chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
279
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
280
+ readonly reasoning?: {
281
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
282
+ readonly enabled?: boolean | undefined;
283
+ readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
284
+ } | undefined;
285
+ readonly veniceParameters?: {
286
+ readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
287
+ readonly enableWebScraping?: boolean | undefined;
288
+ readonly enableWebCitations?: boolean | undefined;
289
+ readonly enableXSearch?: boolean | undefined;
290
+ readonly stripThinkingResponse?: boolean | undefined;
291
+ readonly disableThinking?: boolean | undefined;
292
+ readonly includeVeniceSystemPrompt?: boolean | undefined;
293
+ readonly characterSlug?: string | undefined;
294
+ readonly includeSearchResultsInStream?: boolean | undefined;
295
+ readonly returnSearchResultsAsDocuments?: boolean | undefined;
296
+ } | undefined;
297
+ readonly promptCacheKey?: string | undefined;
298
+ readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
299
+ readonly parallelToolCalls?: boolean | undefined;
300
+ readonly maxCompletionTokens?: number | undefined;
301
+ readonly maxTokens?: number | undefined;
302
+ readonly minP?: number | undefined;
303
+ readonly repetitionPenalty?: number | undefined;
304
+ readonly stopTokenIds?: readonly number[] | undefined;
305
+ readonly logprobs?: boolean | undefined;
306
+ readonly topLogprobs?: number | undefined;
307
+ readonly maxTemp?: number | undefined;
308
+ readonly minTemp?: number | undefined;
309
+ readonly responseFormat?: {
310
+ readonly [x: string]: unknown;
311
+ } | undefined;
312
+ readonly user?: string | undefined;
313
+ }, import("../route/client.js").CompactionOperations | undefined>;
174
314
  configure: typeof configure;
175
315
  };
176
- export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<VeniceChat.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
316
+ export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
317
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
318
+ readonly reasoning?: {
319
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
320
+ readonly enabled?: boolean | undefined;
321
+ readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
322
+ } | undefined;
323
+ readonly veniceParameters?: {
324
+ readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
325
+ readonly enableWebScraping?: boolean | undefined;
326
+ readonly enableWebCitations?: boolean | undefined;
327
+ readonly enableXSearch?: boolean | undefined;
328
+ readonly stripThinkingResponse?: boolean | undefined;
329
+ readonly disableThinking?: boolean | undefined;
330
+ readonly includeVeniceSystemPrompt?: boolean | undefined;
331
+ readonly characterSlug?: string | undefined;
332
+ readonly includeSearchResultsInStream?: boolean | undefined;
333
+ readonly returnSearchResultsAsDocuments?: boolean | undefined;
334
+ } | undefined;
335
+ readonly promptCacheKey?: string | undefined;
336
+ readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
337
+ readonly parallelToolCalls?: boolean | undefined;
338
+ readonly maxCompletionTokens?: number | undefined;
339
+ readonly maxTokens?: number | undefined;
340
+ readonly minP?: number | undefined;
341
+ readonly repetitionPenalty?: number | undefined;
342
+ readonly stopTokenIds?: readonly number[] | undefined;
343
+ readonly logprobs?: boolean | undefined;
344
+ readonly topLogprobs?: number | undefined;
345
+ readonly maxTemp?: number | undefined;
346
+ readonly minTemp?: number | undefined;
347
+ readonly responseFormat?: {
348
+ readonly [x: string]: unknown;
349
+ } | undefined;
350
+ readonly user?: string | undefined;
351
+ }, import("../route/client.js").CompactionOperations | undefined>;
177
352
  export declare const model: ProviderPackage.Definition<Settings, ChatOptionsInput>["model"];
178
353
  export * as Venice from "./venice.js";
@@ -27,13 +27,6 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
27
27
  readonly messages: readonly ({
28
28
  readonly role: "system";
29
29
  readonly content: string | readonly ({
30
- readonly type: "text";
31
- readonly text: string;
32
- readonly cache_control?: {
33
- readonly type: "ephemeral";
34
- readonly ttl?: string | undefined;
35
- } | undefined;
36
- } | {
37
30
  readonly type: "image_url";
38
31
  readonly image_url: {
39
32
  readonly url: string;
@@ -44,17 +37,17 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
44
37
  readonly filename: string;
45
38
  readonly file_data: string;
46
39
  };
47
- })[];
48
- } | {
49
- readonly role: "user";
50
- readonly content: string | readonly ({
40
+ } | {
51
41
  readonly type: "text";
52
42
  readonly text: string;
53
43
  readonly cache_control?: {
54
44
  readonly type: "ephemeral";
55
45
  readonly ttl?: string | undefined;
56
46
  } | undefined;
57
- } | {
47
+ })[];
48
+ } | {
49
+ readonly role: "user";
50
+ readonly content: string | readonly ({
58
51
  readonly type: "image_url";
59
52
  readonly image_url: {
60
53
  readonly url: string;
@@ -65,6 +58,13 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
65
58
  readonly filename: string;
66
59
  readonly file_data: string;
67
60
  };
61
+ } | {
62
+ readonly type: "text";
63
+ readonly text: string;
64
+ readonly cache_control?: {
65
+ readonly type: "ephemeral";
66
+ readonly ttl?: string | undefined;
67
+ } | undefined;
68
68
  })[];
69
69
  } | {
70
70
  readonly role: "tool";