@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
@@ -40,11 +40,128 @@ export type Settings = ProviderPackage.Settings & ProviderOptionsInput & {
40
40
  };
41
41
  export declare const routes: (Route<{
42
42
  readonly model: string;
43
- readonly input: readonly ({
44
- readonly type: "compaction";
45
- readonly id?: string | null | undefined;
46
- readonly encrypted_content: string;
43
+ readonly messages: readonly ({
44
+ readonly role: "system";
45
+ readonly content: string | readonly ({
46
+ readonly type: "image_url";
47
+ readonly image_url: {
48
+ readonly url: string;
49
+ };
50
+ } | {
51
+ readonly type: "file";
52
+ readonly file: {
53
+ readonly filename: string;
54
+ readonly file_data: string;
55
+ };
56
+ } | {
57
+ readonly type: "text";
58
+ readonly text: string;
59
+ readonly cache_control?: {
60
+ readonly type: "ephemeral";
61
+ readonly ttl?: string | undefined;
62
+ } | undefined;
63
+ })[];
47
64
  } | {
65
+ readonly role: "user";
66
+ readonly content: string | readonly ({
67
+ readonly type: "image_url";
68
+ readonly image_url: {
69
+ readonly url: string;
70
+ };
71
+ } | {
72
+ readonly type: "file";
73
+ readonly file: {
74
+ readonly filename: string;
75
+ readonly file_data: string;
76
+ };
77
+ } | {
78
+ readonly type: "text";
79
+ readonly text: string;
80
+ readonly cache_control?: {
81
+ readonly type: "ephemeral";
82
+ readonly ttl?: string | undefined;
83
+ } | undefined;
84
+ })[];
85
+ } | {
86
+ readonly role: "tool";
87
+ readonly tool_call_id: string;
88
+ readonly content: string | readonly {
89
+ readonly type: "text";
90
+ readonly text: string;
91
+ readonly cache_control?: {
92
+ readonly type: "ephemeral";
93
+ readonly ttl?: string | undefined;
94
+ } | undefined;
95
+ }[];
96
+ } | {
97
+ readonly [x: string]: unknown;
98
+ readonly role: "assistant";
99
+ readonly content: string | readonly {
100
+ readonly type: "text";
101
+ readonly text: string;
102
+ readonly cache_control?: {
103
+ readonly type: "ephemeral";
104
+ readonly ttl?: string | undefined;
105
+ } | undefined;
106
+ }[] | null;
107
+ readonly tool_calls?: readonly {
108
+ readonly id: string;
109
+ readonly type: "function";
110
+ readonly function: {
111
+ readonly name: string;
112
+ readonly arguments: string;
113
+ };
114
+ readonly extra_content?: {
115
+ readonly google: {
116
+ readonly thought_signature: string;
117
+ };
118
+ } | undefined;
119
+ }[] | undefined;
120
+ readonly reasoning_content?: string | undefined;
121
+ readonly reasoning?: string | undefined;
122
+ readonly reasoning_text?: string | undefined;
123
+ readonly reasoning_details?: unknown;
124
+ })[];
125
+ readonly tools?: readonly {
126
+ readonly type: "function";
127
+ readonly function: {
128
+ readonly name: string;
129
+ readonly description: string;
130
+ readonly parameters: {
131
+ readonly [x: string]: unknown;
132
+ };
133
+ readonly strict?: boolean | undefined;
134
+ };
135
+ readonly cache_control?: {
136
+ readonly type: "ephemeral";
137
+ readonly ttl?: string | undefined;
138
+ } | undefined;
139
+ }[] | undefined;
140
+ readonly tool_choice?: "auto" | "none" | "required" | {
141
+ readonly type: "function";
142
+ readonly function: {
143
+ readonly name: string;
144
+ };
145
+ } | undefined;
146
+ readonly stream: true;
147
+ readonly stream_options?: {
148
+ readonly include_usage: boolean;
149
+ } | undefined;
150
+ readonly store?: boolean | undefined;
151
+ readonly prompt_cache_key?: string | undefined;
152
+ readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
153
+ readonly tool_stream?: boolean | undefined;
154
+ readonly max_completion_tokens?: number | undefined;
155
+ readonly max_tokens?: number | undefined;
156
+ readonly temperature?: number | undefined;
157
+ readonly top_p?: number | undefined;
158
+ readonly frequency_penalty?: number | undefined;
159
+ readonly presence_penalty?: number | undefined;
160
+ readonly seed?: number | undefined;
161
+ readonly stop?: readonly string[] | undefined;
162
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
163
+ readonly model: string;
164
+ readonly input: readonly ({
48
165
  readonly type: "configuration_update";
49
166
  readonly reasoning: {
50
167
  readonly effort: import("../schema/options.js").ReasoningEffort;
@@ -57,10 +174,45 @@ export declare const routes: (Route<{
57
174
  readonly type: "message";
58
175
  readonly role: "developer";
59
176
  readonly content: string;
177
+ } | {
178
+ readonly type: "function_call_output";
179
+ readonly call_id: string;
180
+ readonly output: string | readonly ({
181
+ readonly type: "input_text";
182
+ readonly text: string;
183
+ } | {
184
+ readonly type: "input_video";
185
+ readonly video_url: string;
186
+ } | {
187
+ readonly type: "input_image";
188
+ readonly image_url: string;
189
+ readonly detail?: string | undefined;
190
+ } | {
191
+ readonly type: "input_file";
192
+ readonly filename: string;
193
+ readonly detail?: string | undefined;
194
+ readonly file_data?: string | undefined;
195
+ readonly file_url?: string | undefined;
196
+ })[];
197
+ } | {
198
+ readonly type: "reasoning";
199
+ readonly id?: string | undefined;
200
+ readonly summary: readonly {
201
+ readonly type: "summary_text";
202
+ readonly text: string;
203
+ }[];
204
+ readonly encrypted_content?: string | null | undefined;
205
+ } | {
206
+ readonly type: "compaction";
207
+ readonly id?: string | null | undefined;
208
+ readonly encrypted_content: string;
60
209
  } | {
61
210
  readonly type: "message";
62
211
  readonly role: "user";
63
212
  readonly content: readonly ({
213
+ readonly type: "input_text";
214
+ readonly text: string;
215
+ } | {
64
216
  readonly type: "input_image";
65
217
  readonly image_url: string;
66
218
  readonly detail?: string | undefined;
@@ -70,9 +222,6 @@ export declare const routes: (Route<{
70
222
  readonly detail?: string | undefined;
71
223
  readonly file_data?: string | undefined;
72
224
  readonly file_url?: string | undefined;
73
- } | {
74
- readonly type: "input_text";
75
- readonly text: string;
76
225
  })[];
77
226
  readonly id?: string | undefined;
78
227
  readonly status?: string | undefined;
@@ -86,14 +235,6 @@ export declare const routes: (Route<{
86
235
  }[];
87
236
  readonly phase?: "commentary" | "final_answer" | null | undefined;
88
237
  readonly status?: string | undefined;
89
- } | {
90
- readonly type: "reasoning";
91
- readonly id?: string | undefined;
92
- readonly summary: readonly {
93
- readonly type: "summary_text";
94
- readonly text: string;
95
- }[];
96
- readonly encrypted_content?: string | null | undefined;
97
238
  } | {
98
239
  readonly type: "function_call";
99
240
  readonly id?: string | undefined;
@@ -101,26 +242,6 @@ export declare const routes: (Route<{
101
242
  readonly name: string;
102
243
  readonly namespace?: string | undefined;
103
244
  readonly arguments: string;
104
- } | {
105
- readonly type: "function_call_output";
106
- readonly call_id: string;
107
- readonly output: string | readonly ({
108
- readonly type: "input_image";
109
- readonly image_url: string;
110
- readonly detail?: string | undefined;
111
- } | {
112
- readonly type: "input_file";
113
- readonly filename: string;
114
- readonly detail?: string | undefined;
115
- readonly file_data?: string | undefined;
116
- readonly file_url?: string | undefined;
117
- } | {
118
- readonly type: "input_text";
119
- readonly text: string;
120
- } | {
121
- readonly type: "input_video";
122
- readonly video_url: string;
123
- })[];
124
245
  } | {
125
246
  readonly [x: string]: unknown;
126
247
  readonly type: "web_search_call";
@@ -197,15 +318,15 @@ export declare const routes: (Route<{
197
318
  } | undefined;
198
319
  readonly top_logprobs?: number | undefined;
199
320
  readonly truncation?: "auto" | "disabled" | undefined;
200
- readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
321
+ readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
201
322
  readonly prompt_cache_key?: string | undefined;
202
- readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
323
+ readonly include?: readonly OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
203
324
  readonly reasoning?: {
204
325
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
205
326
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
206
327
  } | undefined;
207
328
  readonly text?: {
208
- readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
329
+ readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
209
330
  } | undefined;
210
331
  readonly max_output_tokens?: number | undefined;
211
332
  readonly max_tool_calls?: number | undefined;
@@ -215,127 +336,6 @@ export declare const routes: (Route<{
215
336
  readonly presence_penalty?: number | undefined;
216
337
  readonly frequency_penalty?: number | undefined;
217
338
  readonly stream: true;
218
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
219
- readonly model: string;
220
- readonly messages: readonly ({
221
- readonly role: "system";
222
- readonly content: string | readonly ({
223
- readonly type: "text";
224
- readonly text: string;
225
- readonly cache_control?: {
226
- readonly type: "ephemeral";
227
- readonly ttl?: string | undefined;
228
- } | undefined;
229
- } | {
230
- readonly type: "image_url";
231
- readonly image_url: {
232
- readonly url: string;
233
- };
234
- } | {
235
- readonly type: "file";
236
- readonly file: {
237
- readonly filename: string;
238
- readonly file_data: string;
239
- };
240
- })[];
241
- } | {
242
- readonly role: "user";
243
- readonly content: string | readonly ({
244
- readonly type: "text";
245
- readonly text: string;
246
- readonly cache_control?: {
247
- readonly type: "ephemeral";
248
- readonly ttl?: string | undefined;
249
- } | undefined;
250
- } | {
251
- readonly type: "image_url";
252
- readonly image_url: {
253
- readonly url: string;
254
- };
255
- } | {
256
- readonly type: "file";
257
- readonly file: {
258
- readonly filename: string;
259
- readonly file_data: string;
260
- };
261
- })[];
262
- } | {
263
- readonly role: "tool";
264
- readonly tool_call_id: string;
265
- readonly content: string | readonly {
266
- readonly type: "text";
267
- readonly text: string;
268
- readonly cache_control?: {
269
- readonly type: "ephemeral";
270
- readonly ttl?: string | undefined;
271
- } | undefined;
272
- }[];
273
- } | {
274
- readonly [x: string]: unknown;
275
- readonly role: "assistant";
276
- readonly content: string | readonly {
277
- readonly type: "text";
278
- readonly text: string;
279
- readonly cache_control?: {
280
- readonly type: "ephemeral";
281
- readonly ttl?: string | undefined;
282
- } | undefined;
283
- }[] | null;
284
- readonly tool_calls?: readonly {
285
- readonly id: string;
286
- readonly type: "function";
287
- readonly function: {
288
- readonly name: string;
289
- readonly arguments: string;
290
- };
291
- readonly extra_content?: {
292
- readonly google: {
293
- readonly thought_signature: string;
294
- };
295
- } | undefined;
296
- }[] | undefined;
297
- readonly reasoning_content?: string | undefined;
298
- readonly reasoning?: string | undefined;
299
- readonly reasoning_text?: string | undefined;
300
- readonly reasoning_details?: unknown;
301
- })[];
302
- readonly tools?: readonly {
303
- readonly type: "function";
304
- readonly function: {
305
- readonly name: string;
306
- readonly description: string;
307
- readonly parameters: {
308
- readonly [x: string]: unknown;
309
- };
310
- readonly strict?: boolean | undefined;
311
- };
312
- readonly cache_control?: {
313
- readonly type: "ephemeral";
314
- readonly ttl?: string | undefined;
315
- } | undefined;
316
- }[] | undefined;
317
- readonly tool_choice?: "auto" | "none" | "required" | {
318
- readonly type: "function";
319
- readonly function: {
320
- readonly name: string;
321
- };
322
- } | undefined;
323
- readonly stream: true;
324
- readonly stream_options?: {
325
- readonly include_usage: boolean;
326
- } | undefined;
327
- readonly store?: boolean | undefined;
328
- readonly prompt_cache_key?: string | undefined;
329
- readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
330
- readonly tool_stream?: boolean | undefined;
331
- readonly max_completion_tokens?: number | undefined;
332
- readonly max_tokens?: number | undefined;
333
- readonly temperature?: number | undefined;
334
- readonly top_p?: number | undefined;
335
- readonly frequency_penalty?: number | undefined;
336
- readonly presence_penalty?: number | undefined;
337
- readonly seed?: number | undefined;
338
- readonly stop?: readonly string[] | undefined;
339
339
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
340
340
  readonly context_management?: {
341
341
  readonly edits: readonly {
@@ -478,12 +478,30 @@ export declare const routes: (Route<{
478
478
  } | {
479
479
  readonly role: "assistant";
480
480
  readonly content: readonly ({
481
+ readonly type: "compaction";
482
+ readonly content: string | null;
483
+ } | {
481
484
  readonly type: "text";
482
485
  readonly text: string;
483
486
  readonly cache_control?: {
484
487
  readonly type: "ephemeral";
485
488
  readonly ttl?: "1h" | "5m" | undefined;
486
489
  } | undefined;
490
+ } | {
491
+ readonly type: "thinking";
492
+ readonly thinking: string;
493
+ readonly signature: string;
494
+ readonly cache_control?: {
495
+ readonly type: "ephemeral";
496
+ readonly ttl?: "1h" | "5m" | undefined;
497
+ } | undefined;
498
+ } | {
499
+ readonly type: "redacted_thinking";
500
+ readonly data: string;
501
+ readonly cache_control?: {
502
+ readonly type: "ephemeral";
503
+ readonly ttl?: "1h" | "5m" | undefined;
504
+ } | undefined;
487
505
  } | {
488
506
  readonly type: "tool_use";
489
507
  readonly id: string;
@@ -510,24 +528,6 @@ export declare const routes: (Route<{
510
528
  readonly type: "ephemeral";
511
529
  readonly ttl?: "1h" | "5m" | undefined;
512
530
  } | undefined;
513
- } | {
514
- readonly type: "compaction";
515
- readonly content: string | null;
516
- } | {
517
- readonly type: "thinking";
518
- readonly thinking: string;
519
- readonly signature: string;
520
- readonly cache_control?: {
521
- readonly type: "ephemeral";
522
- readonly ttl?: "1h" | "5m" | undefined;
523
- } | undefined;
524
- } | {
525
- readonly type: "redacted_thinking";
526
- readonly data: string;
527
- readonly cache_control?: {
528
- readonly type: "ephemeral";
529
- readonly ttl?: "1h" | "5m" | undefined;
530
- } | undefined;
531
531
  })[];
532
532
  } | {
533
533
  readonly role: "system";
@@ -558,6 +558,8 @@ export declare const routes: (Route<{
558
558
  readonly top_k?: number | undefined;
559
559
  readonly stop_sequences?: readonly string[] | undefined;
560
560
  readonly thinking?: {
561
+ readonly type: "between_tools" | "disabled";
562
+ } | {
561
563
  readonly display?: OpenString<"omitted" | "summarized"> | undefined;
562
564
  readonly block_binding?: {
563
565
  readonly prefix_mismatch_behavior?: OpenString<"drop_block" | "error"> | undefined;
@@ -570,8 +572,6 @@ export declare const routes: (Route<{
570
572
  readonly prefix_mismatch_behavior?: OpenString<"drop_block" | "error"> | undefined;
571
573
  } | undefined;
572
574
  readonly type: "adaptive";
573
- } | {
574
- readonly type: "between_tools" | "disabled";
575
575
  } | undefined;
576
576
  readonly output_config?: {
577
577
  readonly effort?: string | undefined;
@@ -598,16 +598,6 @@ export declare const routes: (Route<{
598
598
  } | undefined;
599
599
  readonly service_tier?: OpenString<"auto" | "standard_only"> | undefined;
600
600
  readonly tools?: readonly ({
601
- readonly name: string;
602
- readonly description: string;
603
- readonly input_schema: {
604
- readonly [x: string]: unknown;
605
- };
606
- readonly cache_control?: {
607
- readonly type: "ephemeral";
608
- readonly ttl?: "1h" | "5m" | undefined;
609
- } | undefined;
610
- } | {
611
601
  readonly type: "web_search";
612
602
  readonly name: "web_search";
613
603
  readonly user_location?: {
@@ -617,6 +607,16 @@ export declare const routes: (Route<{
617
607
  readonly country?: string | undefined;
618
608
  readonly timezone?: string | undefined;
619
609
  } | undefined;
610
+ } | {
611
+ readonly name: string;
612
+ readonly description: string;
613
+ readonly input_schema: {
614
+ readonly [x: string]: unknown;
615
+ };
616
+ readonly cache_control?: {
617
+ readonly type: "ephemeral";
618
+ readonly ttl?: "1h" | "5m" | undefined;
619
+ } | undefined;
620
620
  })[] | undefined;
621
621
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
622
622
  export declare const configure: (input?: LanguageModelOptions) => {