@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.
Files changed (152) hide show
  1. package/dist/ai-client.d.ts +2 -2
  2. package/dist/experimental/evaluation-client.d.ts +1 -1
  3. package/dist/experimental/evaluation.d.ts +20 -20
  4. package/dist/experimental/realtime.d.ts +47 -0
  5. package/dist/experimental/realtime.js +99 -0
  6. package/dist/experimental/system-one.d.ts +1 -1
  7. package/dist/experimental.d.ts +2 -0
  8. package/dist/experimental.js +1 -0
  9. package/dist/image-client.d.ts +8 -8
  10. package/dist/image.d.ts +593 -437
  11. package/dist/llm.d.ts +51 -51
  12. package/dist/media-client.d.ts +1 -1
  13. package/dist/media.d.ts +4 -4
  14. package/dist/promise.d.ts +199 -198
  15. package/dist/protocols/alibaba-chat.d.ts +81 -82
  16. package/dist/protocols/alibaba-chat.js +0 -1
  17. package/dist/protocols/alibaba-messages.d.ts +99 -99
  18. package/dist/protocols/alibaba-responses.d.ts +120 -120
  19. package/dist/protocols/anthropic-messages.d.ts +187 -187
  20. package/dist/protocols/anthropic-messages.js +3 -2
  21. package/dist/protocols/assemblyai-transcription.d.ts +1 -1
  22. package/dist/protocols/bedrock-converse.d.ts +75 -79
  23. package/dist/protocols/bfl-images.d.ts +1 -1
  24. package/dist/protocols/cartesia-speech.d.ts +17 -17
  25. package/dist/protocols/cohere-chat.d.ts +26 -23
  26. package/dist/protocols/cohere-chat.js +22 -1
  27. package/dist/protocols/deepgram-speech.d.ts +17 -17
  28. package/dist/protocols/deepgram-transcription.d.ts +1 -1
  29. package/dist/protocols/elevenlabs-speech.d.ts +17 -17
  30. package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
  31. package/dist/protocols/fal-images.d.ts +1 -1
  32. package/dist/protocols/fal-video.d.ts +1 -1
  33. package/dist/protocols/gemini.d.ts +55 -55
  34. package/dist/protocols/gemini.js +11 -1
  35. package/dist/protocols/google-images.d.ts +1 -1
  36. package/dist/protocols/google-interactions.d.ts +64 -62
  37. package/dist/protocols/google-interactions.js +19 -1
  38. package/dist/protocols/google-speech.d.ts +17 -17
  39. package/dist/protocols/google-transcription.d.ts +47 -47
  40. package/dist/protocols/google-video.d.ts +1 -1
  41. package/dist/protocols/meta-messages.d.ts +121 -121
  42. package/dist/protocols/meta-responses.d.ts +201 -201
  43. package/dist/protocols/mistral-chat.d.ts +45 -45
  44. package/dist/protocols/open-responses-channel.d.ts +1 -1
  45. package/dist/protocols/open-responses.d.ts +584 -450
  46. package/dist/protocols/open-responses.js +27 -35
  47. package/dist/protocols/openai-chat.d.ts +248 -248
  48. package/dist/protocols/openai-chat.js +11 -42
  49. package/dist/protocols/openai-compatible-chat.d.ts +32 -32
  50. package/dist/protocols/openai-compatible-responses.d.ts +88 -88
  51. package/dist/protocols/openai-images.d.ts +17 -17
  52. package/dist/protocols/openai-responses.d.ts +567 -567
  53. package/dist/protocols/openai-responses.js +1 -1
  54. package/dist/protocols/openai-speech.d.ts +17 -17
  55. package/dist/protocols/openai-transcription.d.ts +47 -47
  56. package/dist/protocols/replicate-images.d.ts +1 -1
  57. package/dist/protocols/runway-video.d.ts +1 -1
  58. package/dist/protocols/shared.d.ts +12 -1
  59. package/dist/protocols/shared.js +17 -1
  60. package/dist/protocols/stability-images.d.ts +2 -2
  61. package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
  62. package/dist/protocols/utils/bedrock-media.d.ts +4 -4
  63. package/dist/protocols/utils/openai-options.d.ts +1 -1
  64. package/dist/protocols/utils/speech-stream.d.ts +1 -1
  65. package/dist/protocols/utils/tool-schema.d.ts +10 -5
  66. package/dist/protocols/utils/tool-stream.d.ts +152 -152
  67. package/dist/protocols/venice-chat.d.ts +109 -110
  68. package/dist/protocols/venice-chat.js +0 -1
  69. package/dist/protocols/xai-images.d.ts +1 -1
  70. package/dist/protocols/xai-responses.d.ts +79 -79
  71. package/dist/protocols/xai-video.d.ts +1 -1
  72. package/dist/protocols/zai-chat.d.ts +77 -78
  73. package/dist/protocols/zai-chat.js +0 -1
  74. package/dist/protocols/zai-images.d.ts +1 -1
  75. package/dist/protocols/zai-messages.d.ts +97 -97
  76. package/dist/providers/alibaba.d.ts +222 -283
  77. package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
  78. package/dist/providers/amazon-bedrock.d.ts +22 -28
  79. package/dist/providers/anthropic-compatible.d.ts +86 -90
  80. package/dist/providers/anthropic.d.ts +86 -90
  81. package/dist/providers/assemblyai.d.ts +2 -6
  82. package/dist/providers/azure.d.ts +228 -238
  83. package/dist/providers/baseten.d.ts +66 -70
  84. package/dist/providers/black-forest-labs.d.ts +2 -6
  85. package/dist/providers/cartesia.d.ts +2 -6
  86. package/dist/providers/cerebras.d.ts +66 -70
  87. package/dist/providers/cerebras.js +0 -1
  88. package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
  89. package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
  90. package/dist/providers/cohere.d.ts +122 -132
  91. package/dist/providers/cohere.js +0 -2
  92. package/dist/providers/deepgram.d.ts +2 -7
  93. package/dist/providers/deepinfra.d.ts +66 -70
  94. package/dist/providers/deepinfra.js +0 -1
  95. package/dist/providers/deepseek.d.ts +66 -70
  96. package/dist/providers/deepseek.js +1 -1
  97. package/dist/providers/digitalocean.d.ts +137 -141
  98. package/dist/providers/elevenlabs.d.ts +2 -7
  99. package/dist/providers/fal.d.ts +2 -7
  100. package/dist/providers/fireworks.d.ts +66 -70
  101. package/dist/providers/google-vertex-chat.d.ts +34 -38
  102. package/dist/providers/google-vertex-interactions.d.ts +31 -41
  103. package/dist/providers/google-vertex-messages.d.ts +81 -85
  104. package/dist/providers/google-vertex-mistral.d.ts +23 -27
  105. package/dist/providers/google-vertex-responses.d.ts +90 -94
  106. package/dist/providers/google-vertex.d.ts +26 -30
  107. package/dist/providers/google.d.ts +94 -109
  108. package/dist/providers/groq.d.ts +111 -115
  109. package/dist/providers/groq.js +0 -1
  110. package/dist/providers/meta.d.ts +309 -317
  111. package/dist/providers/meta.js +1 -1
  112. package/dist/providers/minimax.d.ts +296 -303
  113. package/dist/providers/minimax.js +1 -1
  114. package/dist/providers/mistral.d.ts +22 -26
  115. package/dist/providers/moonshot.d.ts +296 -303
  116. package/dist/providers/moonshot.js +0 -1
  117. package/dist/providers/openai-compatible-responses.d.ts +90 -94
  118. package/dist/providers/openai-compatible.d.ts +34 -38
  119. package/dist/providers/openai.d.ts +93 -108
  120. package/dist/providers/opencode.d.ts +2 -8
  121. package/dist/providers/openrouter.d.ts +137 -144
  122. package/dist/providers/replicate.d.ts +2 -6
  123. package/dist/providers/runway.d.ts +2 -6
  124. package/dist/providers/stability.d.ts +2 -7
  125. package/dist/providers/togetherai.d.ts +66 -70
  126. package/dist/providers/togetherai.js +1 -1
  127. package/dist/providers/typesafe-ai.d.ts +2 -8
  128. package/dist/providers/venice.d.ts +58 -63
  129. package/dist/providers/vercel-ai-gateway.d.ts +2 -12
  130. package/dist/providers/xai.d.ts +38 -50
  131. package/dist/providers/zai-coding-plan.d.ts +206 -213
  132. package/dist/providers/zai.d.ts +40 -46
  133. package/dist/route/client.d.ts +51 -51
  134. package/dist/route/media-protocol.d.ts +1 -1
  135. package/dist/route/transport/http.d.ts +1 -1
  136. package/dist/route/transport/websocket.d.ts +8 -8
  137. package/dist/schema/errors.d.ts +19 -19
  138. package/dist/schema/events.d.ts +3090 -3288
  139. package/dist/schema/messages.d.ts +8 -7
  140. package/dist/schema/options.d.ts +2 -1
  141. package/dist/schema/options.js +2 -1
  142. package/dist/speech-client.d.ts +8 -8
  143. package/dist/speech.d.ts +434 -398
  144. package/dist/testing.d.ts +338 -338
  145. package/dist/tool-runtime.d.ts +1 -1
  146. package/dist/transcription-client.d.ts +23 -23
  147. package/dist/transcription.d.ts +562 -646
  148. package/dist/utils/sanitize.d.ts +4 -0
  149. package/dist/utils/sanitize.js +23 -6
  150. package/dist/video-client.d.ts +8 -8
  151. package/dist/video.d.ts +416 -372
  152. package/package.json +6 -6
@@ -12,52 +12,6 @@ export declare const ContextManagement: Schema.$Array<Schema.Struct<{
12
12
  }>>;
13
13
  export type ContextManagement = typeof ContextManagement.Type;
14
14
  declare const OpenAIResponsesBody: Schema.Struct<{
15
- readonly stream: Schema.Literal<true>;
16
- readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17
- readonly type: Schema.tag<"function">;
18
- readonly name: Schema.String;
19
- readonly description: Schema.String;
20
- readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
21
- readonly strict: Schema.optional<Schema.Boolean>;
22
- }>, Schema.Struct<{
23
- readonly type: Schema.tag<"namespace">;
24
- readonly name: Schema.String;
25
- readonly description: Schema.String;
26
- readonly tools: Schema.$Array<Schema.Struct<{
27
- readonly type: Schema.tag<"function">;
28
- readonly name: Schema.String;
29
- readonly description: Schema.String;
30
- readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
31
- readonly strict: Schema.optional<Schema.Boolean>;
32
- }>>;
33
- }>, Schema.Struct<{
34
- readonly type: Schema.tag<"image_generation">;
35
- readonly action: Schema.optional<Schema.Literals<readonly ["auto", "generate", "edit"]>>;
36
- readonly background: Schema.optional<Schema.Literals<readonly ["auto", "opaque", "transparent"]>>;
37
- readonly input_fidelity: Schema.optional<Schema.Literals<readonly ["low", "high"]>>;
38
- readonly output_compression: Schema.optional<Schema.Int>;
39
- readonly output_format: Schema.optional<Schema.Literals<readonly ["png", "jpeg", "webp"]>>;
40
- readonly partial_images: Schema.optional<Schema.Int>;
41
- readonly quality: Schema.optional<Schema.Literals<readonly ["auto", "low", "medium", "high"]>>;
42
- readonly size: Schema.optional<Schema.String>;
43
- }>]>>>;
44
- readonly tool_choice: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["auto", "none", "required"]>, Schema.Struct<{
45
- readonly type: Schema.tag<"function">;
46
- readonly name: Schema.String;
47
- }>, Schema.Struct<{
48
- readonly type: Schema.tag<"allowed_tools">;
49
- readonly mode: Schema.Literals<readonly ["auto", "none", "required"]>;
50
- readonly tools: Schema.$Array<Schema.Struct<{
51
- readonly type: Schema.tag<"function">;
52
- readonly name: Schema.String;
53
- }>>;
54
- }>]>, Schema.Struct<{
55
- readonly type: Schema.tag<"image_generation">;
56
- }>]>>;
57
- readonly context_management: Schema.optional<Schema.$Array<Schema.Struct<{
58
- readonly type: Schema.Literal<"compaction">;
59
- readonly compact_threshold: Schema.optional<Schema.Int>;
60
- }>>>;
61
15
  readonly model: Schema.String;
62
16
  readonly input: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
63
17
  readonly type: Schema.Literal<"compaction">;
@@ -197,6 +151,52 @@ declare const OpenAIResponsesBody: Schema.Struct<{
197
151
  readonly top_p: Schema.optional<Schema.Number>;
198
152
  readonly presence_penalty: Schema.optional<Schema.Number>;
199
153
  readonly frequency_penalty: Schema.optional<Schema.Number>;
154
+ readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
155
+ readonly type: Schema.tag<"function">;
156
+ readonly name: Schema.String;
157
+ readonly description: Schema.String;
158
+ readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
159
+ readonly strict: Schema.optional<Schema.Boolean>;
160
+ }>, Schema.Struct<{
161
+ readonly type: Schema.tag<"namespace">;
162
+ readonly name: Schema.String;
163
+ readonly description: Schema.String;
164
+ readonly tools: Schema.$Array<Schema.Struct<{
165
+ readonly type: Schema.tag<"function">;
166
+ readonly name: Schema.String;
167
+ readonly description: Schema.String;
168
+ readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
169
+ readonly strict: Schema.optional<Schema.Boolean>;
170
+ }>>;
171
+ }>, Schema.Struct<{
172
+ readonly type: Schema.tag<"image_generation">;
173
+ readonly action: Schema.optional<Schema.Literals<readonly ["auto", "generate", "edit"]>>;
174
+ readonly background: Schema.optional<Schema.Literals<readonly ["auto", "opaque", "transparent"]>>;
175
+ readonly input_fidelity: Schema.optional<Schema.Literals<readonly ["low", "high"]>>;
176
+ readonly output_compression: Schema.optional<Schema.Int>;
177
+ readonly output_format: Schema.optional<Schema.Literals<readonly ["png", "jpeg", "webp"]>>;
178
+ readonly partial_images: Schema.optional<Schema.Int>;
179
+ readonly quality: Schema.optional<Schema.Literals<readonly ["auto", "low", "medium", "high"]>>;
180
+ readonly size: Schema.optional<Schema.String>;
181
+ }>]>>>;
182
+ readonly tool_choice: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["auto", "none", "required"]>, Schema.Struct<{
183
+ readonly type: Schema.tag<"function">;
184
+ readonly name: Schema.String;
185
+ }>, Schema.Struct<{
186
+ readonly type: Schema.tag<"allowed_tools">;
187
+ readonly mode: Schema.Literals<readonly ["auto", "none", "required"]>;
188
+ readonly tools: Schema.$Array<Schema.Struct<{
189
+ readonly type: Schema.tag<"function">;
190
+ readonly name: Schema.String;
191
+ }>>;
192
+ }>]>, Schema.Struct<{
193
+ readonly type: Schema.tag<"image_generation">;
194
+ }>]>>;
195
+ readonly context_management: Schema.optional<Schema.$Array<Schema.Struct<{
196
+ readonly type: Schema.Literal<"compaction">;
197
+ readonly compact_threshold: Schema.optional<Schema.Int>;
198
+ }>>>;
199
+ readonly stream: Schema.Literal<true>;
200
200
  }>;
201
201
  export type OpenAIResponsesBody = Schema.Schema.Type<typeof OpenAIResponsesBody>;
202
202
  /** Request control, never conversation content. */
@@ -204,64 +204,20 @@ export declare const CompactionTrigger: Schema.Struct<{
204
204
  readonly type: Schema.Literal<"compaction_trigger">;
205
205
  }>;
206
206
  export declare const protocol: Protocol<{
207
+ readonly model: string;
207
208
  readonly input: readonly ({
208
209
  readonly [x: string]: unknown;
210
+ readonly type: string;
209
211
  readonly id: string;
210
- readonly type: "web_search_call";
211
- readonly status?: string | undefined;
212
- readonly action?: {
213
- readonly [x: string]: unknown;
214
- } | null | undefined;
215
- } | {
216
- readonly [x: string]: unknown;
217
- readonly id: string;
218
- readonly type: "file_search_call";
219
- readonly status?: string | undefined;
220
- readonly queries?: readonly string[] | undefined;
221
- readonly results?: readonly {
222
- readonly [x: string]: unknown;
223
- }[] | null | undefined;
224
- } | {
225
- readonly [x: string]: unknown;
226
- readonly id: string;
227
- readonly type: "code_interpreter_call";
228
- readonly status?: string | undefined;
229
- readonly code?: string | null | undefined;
230
- readonly container_id?: string | null | undefined;
231
- readonly outputs?: readonly {
232
- readonly [x: string]: unknown;
233
- }[] | null | undefined;
234
212
  } | {
235
- readonly [x: string]: unknown;
236
- readonly id: string;
237
- readonly type: "mcp_call";
238
- readonly status?: string | undefined;
239
- readonly name?: string | undefined;
240
- readonly output?: string | null | undefined;
241
- readonly error?: unknown;
242
- readonly arguments?: string | undefined;
243
- readonly server_label?: string | undefined;
213
+ readonly type: "compaction";
214
+ readonly id?: string | null | undefined;
215
+ readonly encrypted_content: string;
244
216
  } | {
245
217
  readonly type: "configuration_update";
246
218
  readonly reasoning: {
247
219
  readonly effort: OpenResponsesOptions.ReasoningEffort;
248
220
  };
249
- } | {
250
- readonly [x: string]: unknown;
251
- readonly type: string;
252
- readonly id: string;
253
- } | {
254
- readonly type: "reasoning";
255
- readonly summary: readonly {
256
- readonly type: "summary_text";
257
- readonly text: string;
258
- }[];
259
- readonly id?: string | undefined;
260
- readonly encrypted_content?: string | null | undefined;
261
- } | {
262
- readonly type: "compaction";
263
- readonly encrypted_content: string;
264
- readonly id?: string | null | undefined;
265
221
  } | {
266
222
  readonly type: "message";
267
223
  readonly role: "system";
@@ -272,6 +228,7 @@ export declare const protocol: Protocol<{
272
228
  readonly content: string;
273
229
  } | {
274
230
  readonly type: "message";
231
+ readonly role: "user";
275
232
  readonly content: readonly ({
276
233
  readonly type: "input_image";
277
234
  readonly image_url: string;
@@ -286,26 +243,33 @@ export declare const protocol: Protocol<{
286
243
  readonly type: "input_text";
287
244
  readonly text: string;
288
245
  })[];
289
- readonly role: "user";
290
246
  readonly id?: string | undefined;
291
247
  readonly status?: string | undefined;
292
248
  } | {
293
249
  readonly type: "message";
250
+ readonly id?: string | undefined;
251
+ readonly role: "assistant";
294
252
  readonly content: readonly {
295
253
  readonly type: "output_text";
296
254
  readonly text: string;
297
255
  }[];
298
- readonly role: "assistant";
299
- readonly id?: string | undefined;
300
- readonly status?: string | undefined;
301
256
  readonly phase?: "commentary" | "final_answer" | null | undefined;
257
+ readonly status?: string | undefined;
258
+ } | {
259
+ readonly type: "reasoning";
260
+ readonly id?: string | undefined;
261
+ readonly summary: readonly {
262
+ readonly type: "summary_text";
263
+ readonly text: string;
264
+ }[];
265
+ readonly encrypted_content?: string | null | undefined;
302
266
  } | {
303
267
  readonly type: "function_call";
304
- readonly name: string;
305
- readonly arguments: string;
306
- readonly call_id: string;
307
268
  readonly id?: string | undefined;
269
+ readonly call_id: string;
270
+ readonly name: string;
308
271
  readonly namespace?: string | undefined;
272
+ readonly arguments: string;
309
273
  } | {
310
274
  readonly type: "function_call_output";
311
275
  readonly call_id: string;
@@ -326,64 +290,110 @@ export declare const protocol: Protocol<{
326
290
  readonly type: "input_video";
327
291
  readonly video_url: string;
328
292
  })[];
293
+ } | {
294
+ readonly [x: string]: unknown;
295
+ readonly type: "web_search_call";
296
+ readonly id: string;
297
+ readonly status?: string | undefined;
298
+ readonly action?: {
299
+ readonly [x: string]: unknown;
300
+ } | null | undefined;
301
+ } | {
302
+ readonly [x: string]: unknown;
303
+ readonly type: "file_search_call";
304
+ readonly id: string;
305
+ readonly status?: string | undefined;
306
+ readonly queries?: readonly string[] | undefined;
307
+ readonly results?: readonly {
308
+ readonly [x: string]: unknown;
309
+ }[] | null | undefined;
310
+ } | {
311
+ readonly [x: string]: unknown;
312
+ readonly type: "code_interpreter_call";
313
+ readonly id: string;
314
+ readonly status?: string | undefined;
315
+ readonly code?: string | null | undefined;
316
+ readonly container_id?: string | null | undefined;
317
+ readonly outputs?: readonly {
318
+ readonly [x: string]: unknown;
319
+ }[] | null | undefined;
320
+ } | {
321
+ readonly [x: string]: unknown;
322
+ readonly type: "mcp_call";
323
+ readonly id: string;
324
+ readonly status?: string | undefined;
325
+ readonly server_label?: string | undefined;
326
+ readonly name?: string | undefined;
327
+ readonly arguments?: string | undefined;
328
+ readonly output?: string | null | undefined;
329
+ readonly error?: unknown;
329
330
  })[];
330
- readonly model: string;
331
- readonly stream: true;
331
+ readonly instructions?: string | undefined;
332
+ readonly store?: boolean | undefined;
332
333
  readonly metadata?: {
333
334
  readonly [x: string]: string;
334
335
  } | undefined;
335
- readonly instructions?: string | undefined;
336
+ readonly safety_identifier?: string | undefined;
337
+ readonly stream_options?: {
338
+ readonly include_obfuscation?: boolean | undefined;
339
+ } | undefined;
340
+ readonly top_logprobs?: number | undefined;
341
+ readonly truncation?: "auto" | "disabled" | undefined;
342
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
343
+ readonly prompt_cache_key?: string | undefined;
344
+ readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
336
345
  readonly reasoning?: {
337
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
338
346
  readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
347
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
348
+ } | undefined;
349
+ readonly text?: {
350
+ readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
339
351
  } | undefined;
352
+ readonly max_output_tokens?: number | undefined;
353
+ readonly max_tool_calls?: number | undefined;
354
+ readonly parallel_tool_calls?: boolean | undefined;
340
355
  readonly temperature?: number | undefined;
356
+ readonly top_p?: number | undefined;
357
+ readonly presence_penalty?: number | undefined;
358
+ readonly frequency_penalty?: number | undefined;
341
359
  readonly tools?: readonly ({
342
360
  readonly type: "function";
343
- readonly description: string;
344
361
  readonly name: string;
362
+ readonly description: string;
345
363
  readonly parameters: {
346
364
  readonly [x: string]: unknown;
347
365
  };
348
366
  readonly strict?: boolean | undefined;
349
- } | {
350
- readonly type: "image_generation";
351
- readonly size?: string | undefined;
352
- readonly action?: "auto" | "generate" | "edit" | undefined;
353
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
354
- readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
355
- readonly background?: "auto" | "opaque" | "transparent" | undefined;
356
- readonly partial_images?: number | undefined;
357
- readonly output_compression?: number | undefined;
358
- readonly input_fidelity?: "low" | "high" | undefined;
359
367
  } | {
360
368
  readonly type: "namespace";
361
369
  readonly name: string;
362
370
  readonly description: string;
363
371
  readonly tools: readonly {
364
372
  readonly type: "function";
365
- readonly description: string;
366
373
  readonly name: string;
374
+ readonly description: string;
367
375
  readonly parameters: {
368
376
  readonly [x: string]: unknown;
369
377
  };
370
378
  readonly strict?: boolean | undefined;
371
379
  }[];
380
+ } | {
381
+ readonly type: "image_generation";
382
+ readonly action?: "auto" | "edit" | "generate" | undefined;
383
+ readonly background?: "auto" | "opaque" | "transparent" | undefined;
384
+ readonly input_fidelity?: "high" | "low" | undefined;
385
+ readonly output_compression?: number | undefined;
386
+ readonly output_format?: "jpeg" | "png" | "webp" | undefined;
387
+ readonly partial_images?: number | undefined;
388
+ readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
389
+ readonly size?: string | undefined;
372
390
  })[] | undefined;
373
- readonly text?: {
374
- readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
375
- } | undefined;
376
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
377
- readonly context_management?: readonly {
378
- readonly type: "compaction";
379
- readonly compact_threshold?: number | undefined;
380
- }[] | undefined;
381
- readonly tool_choice?: "required" | "auto" | "none" | {
391
+ readonly tool_choice?: "auto" | "none" | "required" | {
382
392
  readonly type: "function";
383
393
  readonly name: string;
384
394
  } | {
385
395
  readonly type: "allowed_tools";
386
- readonly mode: "required" | "auto" | "none";
396
+ readonly mode: "auto" | "none" | "required";
387
397
  readonly tools: readonly {
388
398
  readonly type: "function";
389
399
  readonly name: string;
@@ -391,139 +401,85 @@ export declare const protocol: Protocol<{
391
401
  } | {
392
402
  readonly type: "image_generation";
393
403
  } | undefined;
394
- readonly top_p?: number | undefined;
395
- readonly frequency_penalty?: number | undefined;
396
- readonly presence_penalty?: number | undefined;
397
- readonly store?: boolean | undefined;
398
- readonly max_output_tokens?: number | undefined;
399
- readonly prompt_cache_key?: string | undefined;
400
- readonly parallel_tool_calls?: boolean | undefined;
401
- readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
402
- readonly truncation?: "auto" | "disabled" | undefined;
403
- readonly stream_options?: {
404
- readonly include_obfuscation?: boolean | undefined;
405
- } | undefined;
406
- readonly safety_identifier?: string | undefined;
407
- readonly top_logprobs?: number | undefined;
408
- readonly max_tool_calls?: number | undefined;
404
+ readonly context_management?: readonly {
405
+ readonly type: "compaction";
406
+ readonly compact_threshold?: number | undefined;
407
+ }[] | undefined;
408
+ readonly stream: true;
409
409
  }, string, {
410
410
  readonly [x: string]: unknown;
411
411
  readonly type: string;
412
- readonly status?: unknown;
413
- readonly message?: unknown;
414
- readonly code?: unknown;
412
+ readonly delta?: string | undefined;
413
+ readonly arguments?: string | undefined;
415
414
  readonly text?: string | undefined;
416
- readonly error?: unknown;
415
+ readonly item_id?: string | undefined;
416
+ readonly output_index?: number | undefined;
417
+ readonly summary_index?: number | undefined;
418
+ readonly item?: {
419
+ readonly [x: string]: unknown;
420
+ readonly type: string;
421
+ readonly id?: string | undefined;
422
+ readonly call_id?: string | undefined;
423
+ readonly name?: string | undefined;
424
+ readonly namespace?: string | undefined;
425
+ readonly arguments?: string | undefined;
426
+ readonly encrypted_content?: string | null | undefined;
427
+ } | null | undefined;
417
428
  readonly response?: {
418
429
  readonly [x: string]: unknown;
419
430
  readonly id?: string | undefined;
431
+ readonly service_tier?: string | null | undefined;
432
+ readonly incomplete_details?: {
433
+ readonly reason?: string | undefined;
434
+ } | null | undefined;
420
435
  readonly output?: readonly {
421
436
  readonly [x: string]: unknown;
422
437
  readonly type: string;
423
438
  readonly id?: string | undefined;
439
+ readonly call_id?: string | undefined;
424
440
  readonly name?: string | undefined;
425
- readonly namespace?: string | null | undefined;
441
+ readonly namespace?: string | undefined;
426
442
  readonly arguments?: string | undefined;
427
- readonly call_id?: string | undefined;
428
443
  readonly encrypted_content?: string | null | undefined;
429
444
  }[] | undefined;
430
- readonly error?: unknown;
431
445
  readonly usage?: {
432
446
  readonly [x: string]: unknown;
433
447
  readonly input_tokens?: number | undefined;
448
+ readonly input_tokens_details?: {
449
+ readonly [x: string]: unknown;
450
+ readonly cached_tokens?: number | undefined;
451
+ readonly cache_write_tokens?: number | undefined;
452
+ } | null | undefined;
434
453
  readonly output_tokens?: number | undefined;
435
454
  readonly output_tokens_details?: {
436
455
  readonly [x: string]: unknown;
437
456
  readonly reasoning_tokens?: number | undefined;
438
457
  } | null | undefined;
439
458
  readonly total_tokens?: number | undefined;
440
- readonly input_tokens_details?: {
441
- readonly [x: string]: unknown;
442
- readonly cached_tokens?: number | undefined;
443
- readonly cache_write_tokens?: number | undefined;
444
- } | null | undefined;
445
- } | null | undefined;
446
- readonly service_tier?: string | null | undefined;
447
- readonly incomplete_details?: {
448
- readonly reason?: string | undefined;
449
459
  } | null | undefined;
460
+ readonly error?: unknown;
450
461
  } | undefined;
451
- readonly item?: {
452
- readonly [x: string]: unknown;
453
- readonly type: string;
454
- readonly id?: string | undefined;
455
- readonly name?: string | undefined;
456
- readonly namespace?: string | null | undefined;
457
- readonly arguments?: string | undefined;
458
- readonly call_id?: string | undefined;
459
- readonly encrypted_content?: string | null | undefined;
460
- } | null | undefined;
461
- readonly delta?: string | undefined;
462
- readonly arguments?: string | undefined;
463
- readonly item_id?: string | undefined;
464
- readonly output_index?: number | undefined;
465
- readonly summary_index?: number | undefined;
462
+ readonly code?: unknown;
463
+ readonly message?: unknown;
464
+ readonly error?: unknown;
465
+ readonly status?: unknown;
466
466
  readonly status_code?: unknown;
467
467
  }, OpenResponses.ParserState>;
468
468
  export declare const httpTransport: HttpTransport.HttpJsonTransport<{
469
+ readonly model: string;
469
470
  readonly input: readonly ({
470
471
  readonly [x: string]: unknown;
472
+ readonly type: string;
471
473
  readonly id: string;
472
- readonly type: "web_search_call";
473
- readonly status?: string | undefined;
474
- readonly action?: {
475
- readonly [x: string]: unknown;
476
- } | null | undefined;
477
- } | {
478
- readonly [x: string]: unknown;
479
- readonly id: string;
480
- readonly type: "file_search_call";
481
- readonly status?: string | undefined;
482
- readonly queries?: readonly string[] | undefined;
483
- readonly results?: readonly {
484
- readonly [x: string]: unknown;
485
- }[] | null | undefined;
486
- } | {
487
- readonly [x: string]: unknown;
488
- readonly id: string;
489
- readonly type: "code_interpreter_call";
490
- readonly status?: string | undefined;
491
- readonly code?: string | null | undefined;
492
- readonly container_id?: string | null | undefined;
493
- readonly outputs?: readonly {
494
- readonly [x: string]: unknown;
495
- }[] | null | undefined;
496
474
  } | {
497
- readonly [x: string]: unknown;
498
- readonly id: string;
499
- readonly type: "mcp_call";
500
- readonly status?: string | undefined;
501
- readonly name?: string | undefined;
502
- readonly output?: string | null | undefined;
503
- readonly error?: unknown;
504
- readonly arguments?: string | undefined;
505
- readonly server_label?: string | undefined;
475
+ readonly type: "compaction";
476
+ readonly id?: string | null | undefined;
477
+ readonly encrypted_content: string;
506
478
  } | {
507
479
  readonly type: "configuration_update";
508
480
  readonly reasoning: {
509
481
  readonly effort: OpenResponsesOptions.ReasoningEffort;
510
482
  };
511
- } | {
512
- readonly [x: string]: unknown;
513
- readonly type: string;
514
- readonly id: string;
515
- } | {
516
- readonly type: "reasoning";
517
- readonly summary: readonly {
518
- readonly type: "summary_text";
519
- readonly text: string;
520
- }[];
521
- readonly id?: string | undefined;
522
- readonly encrypted_content?: string | null | undefined;
523
- } | {
524
- readonly type: "compaction";
525
- readonly encrypted_content: string;
526
- readonly id?: string | null | undefined;
527
483
  } | {
528
484
  readonly type: "message";
529
485
  readonly role: "system";
@@ -534,6 +490,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
534
490
  readonly content: string;
535
491
  } | {
536
492
  readonly type: "message";
493
+ readonly role: "user";
537
494
  readonly content: readonly ({
538
495
  readonly type: "input_image";
539
496
  readonly image_url: string;
@@ -548,26 +505,33 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
548
505
  readonly type: "input_text";
549
506
  readonly text: string;
550
507
  })[];
551
- readonly role: "user";
552
508
  readonly id?: string | undefined;
553
509
  readonly status?: string | undefined;
554
510
  } | {
555
511
  readonly type: "message";
512
+ readonly id?: string | undefined;
513
+ readonly role: "assistant";
556
514
  readonly content: readonly {
557
515
  readonly type: "output_text";
558
516
  readonly text: string;
559
517
  }[];
560
- readonly role: "assistant";
561
- readonly id?: string | undefined;
562
- readonly status?: string | undefined;
563
518
  readonly phase?: "commentary" | "final_answer" | null | undefined;
519
+ readonly status?: string | undefined;
520
+ } | {
521
+ readonly type: "reasoning";
522
+ readonly id?: string | undefined;
523
+ readonly summary: readonly {
524
+ readonly type: "summary_text";
525
+ readonly text: string;
526
+ }[];
527
+ readonly encrypted_content?: string | null | undefined;
564
528
  } | {
565
529
  readonly type: "function_call";
566
- readonly name: string;
567
- readonly arguments: string;
568
- readonly call_id: string;
569
530
  readonly id?: string | undefined;
531
+ readonly call_id: string;
532
+ readonly name: string;
570
533
  readonly namespace?: string | undefined;
534
+ readonly arguments: string;
571
535
  } | {
572
536
  readonly type: "function_call_output";
573
537
  readonly call_id: string;
@@ -588,64 +552,110 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
588
552
  readonly type: "input_video";
589
553
  readonly video_url: string;
590
554
  })[];
555
+ } | {
556
+ readonly [x: string]: unknown;
557
+ readonly type: "web_search_call";
558
+ readonly id: string;
559
+ readonly status?: string | undefined;
560
+ readonly action?: {
561
+ readonly [x: string]: unknown;
562
+ } | null | undefined;
563
+ } | {
564
+ readonly [x: string]: unknown;
565
+ readonly type: "file_search_call";
566
+ readonly id: string;
567
+ readonly status?: string | undefined;
568
+ readonly queries?: readonly string[] | undefined;
569
+ readonly results?: readonly {
570
+ readonly [x: string]: unknown;
571
+ }[] | null | undefined;
572
+ } | {
573
+ readonly [x: string]: unknown;
574
+ readonly type: "code_interpreter_call";
575
+ readonly id: string;
576
+ readonly status?: string | undefined;
577
+ readonly code?: string | null | undefined;
578
+ readonly container_id?: string | null | undefined;
579
+ readonly outputs?: readonly {
580
+ readonly [x: string]: unknown;
581
+ }[] | null | undefined;
582
+ } | {
583
+ readonly [x: string]: unknown;
584
+ readonly type: "mcp_call";
585
+ readonly id: string;
586
+ readonly status?: string | undefined;
587
+ readonly server_label?: string | undefined;
588
+ readonly name?: string | undefined;
589
+ readonly arguments?: string | undefined;
590
+ readonly output?: string | null | undefined;
591
+ readonly error?: unknown;
591
592
  })[];
592
- readonly model: string;
593
- readonly stream: true;
593
+ readonly instructions?: string | undefined;
594
+ readonly store?: boolean | undefined;
594
595
  readonly metadata?: {
595
596
  readonly [x: string]: string;
596
597
  } | undefined;
597
- readonly instructions?: string | undefined;
598
+ readonly safety_identifier?: string | undefined;
599
+ readonly stream_options?: {
600
+ readonly include_obfuscation?: boolean | undefined;
601
+ } | undefined;
602
+ readonly top_logprobs?: number | undefined;
603
+ readonly truncation?: "auto" | "disabled" | undefined;
604
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
605
+ readonly prompt_cache_key?: string | undefined;
606
+ readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
598
607
  readonly reasoning?: {
599
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
600
608
  readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
609
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
610
+ } | undefined;
611
+ readonly text?: {
612
+ readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
601
613
  } | undefined;
614
+ readonly max_output_tokens?: number | undefined;
615
+ readonly max_tool_calls?: number | undefined;
616
+ readonly parallel_tool_calls?: boolean | undefined;
602
617
  readonly temperature?: number | undefined;
618
+ readonly top_p?: number | undefined;
619
+ readonly presence_penalty?: number | undefined;
620
+ readonly frequency_penalty?: number | undefined;
603
621
  readonly tools?: readonly ({
604
622
  readonly type: "function";
605
- readonly description: string;
606
623
  readonly name: string;
624
+ readonly description: string;
607
625
  readonly parameters: {
608
626
  readonly [x: string]: unknown;
609
627
  };
610
628
  readonly strict?: boolean | undefined;
611
- } | {
612
- readonly type: "image_generation";
613
- readonly size?: string | undefined;
614
- readonly action?: "auto" | "generate" | "edit" | undefined;
615
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
616
- readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
617
- readonly background?: "auto" | "opaque" | "transparent" | undefined;
618
- readonly partial_images?: number | undefined;
619
- readonly output_compression?: number | undefined;
620
- readonly input_fidelity?: "low" | "high" | undefined;
621
629
  } | {
622
630
  readonly type: "namespace";
623
631
  readonly name: string;
624
632
  readonly description: string;
625
633
  readonly tools: readonly {
626
634
  readonly type: "function";
627
- readonly description: string;
628
635
  readonly name: string;
636
+ readonly description: string;
629
637
  readonly parameters: {
630
638
  readonly [x: string]: unknown;
631
639
  };
632
640
  readonly strict?: boolean | undefined;
633
641
  }[];
642
+ } | {
643
+ readonly type: "image_generation";
644
+ readonly action?: "auto" | "edit" | "generate" | undefined;
645
+ readonly background?: "auto" | "opaque" | "transparent" | undefined;
646
+ readonly input_fidelity?: "high" | "low" | undefined;
647
+ readonly output_compression?: number | undefined;
648
+ readonly output_format?: "jpeg" | "png" | "webp" | undefined;
649
+ readonly partial_images?: number | undefined;
650
+ readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
651
+ readonly size?: string | undefined;
634
652
  })[] | undefined;
635
- readonly text?: {
636
- readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
637
- } | undefined;
638
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
639
- readonly context_management?: readonly {
640
- readonly type: "compaction";
641
- readonly compact_threshold?: number | undefined;
642
- }[] | undefined;
643
- readonly tool_choice?: "required" | "auto" | "none" | {
653
+ readonly tool_choice?: "auto" | "none" | "required" | {
644
654
  readonly type: "function";
645
655
  readonly name: string;
646
656
  } | {
647
657
  readonly type: "allowed_tools";
648
- readonly mode: "required" | "auto" | "none";
658
+ readonly mode: "auto" | "none" | "required";
649
659
  readonly tools: readonly {
650
660
  readonly type: "function";
651
661
  readonly name: string;
@@ -653,81 +663,27 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
653
663
  } | {
654
664
  readonly type: "image_generation";
655
665
  } | undefined;
656
- readonly top_p?: number | undefined;
657
- readonly frequency_penalty?: number | undefined;
658
- readonly presence_penalty?: number | undefined;
659
- readonly store?: boolean | undefined;
660
- readonly max_output_tokens?: number | undefined;
661
- readonly prompt_cache_key?: string | undefined;
662
- readonly parallel_tool_calls?: boolean | undefined;
663
- readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
664
- readonly truncation?: "auto" | "disabled" | undefined;
665
- readonly stream_options?: {
666
- readonly include_obfuscation?: boolean | undefined;
667
- } | undefined;
668
- readonly safety_identifier?: string | undefined;
669
- readonly top_logprobs?: number | undefined;
670
- readonly max_tool_calls?: number | undefined;
671
- }, string>;
672
- export declare const channelTransport: (options: import("./open-responses-channel.js").Options) => import("../route/transport/index.js").Transport<{
673
- readonly input: readonly ({
674
- readonly [x: string]: unknown;
675
- readonly id: string;
676
- readonly type: "web_search_call";
677
- readonly status?: string | undefined;
678
- readonly action?: {
679
- readonly [x: string]: unknown;
680
- } | null | undefined;
681
- } | {
682
- readonly [x: string]: unknown;
683
- readonly id: string;
684
- readonly type: "file_search_call";
685
- readonly status?: string | undefined;
686
- readonly queries?: readonly string[] | undefined;
687
- readonly results?: readonly {
688
- readonly [x: string]: unknown;
689
- }[] | null | undefined;
690
- } | {
691
- readonly [x: string]: unknown;
692
- readonly id: string;
693
- readonly type: "code_interpreter_call";
694
- readonly status?: string | undefined;
695
- readonly code?: string | null | undefined;
696
- readonly container_id?: string | null | undefined;
697
- readonly outputs?: readonly {
698
- readonly [x: string]: unknown;
699
- }[] | null | undefined;
700
- } | {
701
- readonly [x: string]: unknown;
702
- readonly id: string;
703
- readonly type: "mcp_call";
704
- readonly status?: string | undefined;
705
- readonly name?: string | undefined;
706
- readonly output?: string | null | undefined;
707
- readonly error?: unknown;
708
- readonly arguments?: string | undefined;
709
- readonly server_label?: string | undefined;
710
- } | {
711
- readonly type: "configuration_update";
712
- readonly reasoning: {
713
- readonly effort: OpenResponsesOptions.ReasoningEffort;
714
- };
715
- } | {
666
+ readonly context_management?: readonly {
667
+ readonly type: "compaction";
668
+ readonly compact_threshold?: number | undefined;
669
+ }[] | undefined;
670
+ readonly stream: true;
671
+ }, string>;
672
+ export declare const channelTransport: (options: import("./open-responses-channel.js").Options) => import("../route/transport/index.js").Transport<{
673
+ readonly model: string;
674
+ readonly input: readonly ({
716
675
  readonly [x: string]: unknown;
717
676
  readonly type: string;
718
677
  readonly id: string;
719
- } | {
720
- readonly type: "reasoning";
721
- readonly summary: readonly {
722
- readonly type: "summary_text";
723
- readonly text: string;
724
- }[];
725
- readonly id?: string | undefined;
726
- readonly encrypted_content?: string | null | undefined;
727
678
  } | {
728
679
  readonly type: "compaction";
729
- readonly encrypted_content: string;
730
680
  readonly id?: string | null | undefined;
681
+ readonly encrypted_content: string;
682
+ } | {
683
+ readonly type: "configuration_update";
684
+ readonly reasoning: {
685
+ readonly effort: OpenResponsesOptions.ReasoningEffort;
686
+ };
731
687
  } | {
732
688
  readonly type: "message";
733
689
  readonly role: "system";
@@ -738,6 +694,7 @@ export declare const channelTransport: (options: import("./open-responses-channe
738
694
  readonly content: string;
739
695
  } | {
740
696
  readonly type: "message";
697
+ readonly role: "user";
741
698
  readonly content: readonly ({
742
699
  readonly type: "input_image";
743
700
  readonly image_url: string;
@@ -752,26 +709,33 @@ export declare const channelTransport: (options: import("./open-responses-channe
752
709
  readonly type: "input_text";
753
710
  readonly text: string;
754
711
  })[];
755
- readonly role: "user";
756
712
  readonly id?: string | undefined;
757
713
  readonly status?: string | undefined;
758
714
  } | {
759
715
  readonly type: "message";
716
+ readonly id?: string | undefined;
717
+ readonly role: "assistant";
760
718
  readonly content: readonly {
761
719
  readonly type: "output_text";
762
720
  readonly text: string;
763
721
  }[];
764
- readonly role: "assistant";
765
- readonly id?: string | undefined;
766
- readonly status?: string | undefined;
767
722
  readonly phase?: "commentary" | "final_answer" | null | undefined;
723
+ readonly status?: string | undefined;
724
+ } | {
725
+ readonly type: "reasoning";
726
+ readonly id?: string | undefined;
727
+ readonly summary: readonly {
728
+ readonly type: "summary_text";
729
+ readonly text: string;
730
+ }[];
731
+ readonly encrypted_content?: string | null | undefined;
768
732
  } | {
769
733
  readonly type: "function_call";
770
- readonly name: string;
771
- readonly arguments: string;
772
- readonly call_id: string;
773
734
  readonly id?: string | undefined;
735
+ readonly call_id: string;
736
+ readonly name: string;
774
737
  readonly namespace?: string | undefined;
738
+ readonly arguments: string;
775
739
  } | {
776
740
  readonly type: "function_call_output";
777
741
  readonly call_id: string;
@@ -792,64 +756,110 @@ export declare const channelTransport: (options: import("./open-responses-channe
792
756
  readonly type: "input_video";
793
757
  readonly video_url: string;
794
758
  })[];
759
+ } | {
760
+ readonly [x: string]: unknown;
761
+ readonly type: "web_search_call";
762
+ readonly id: string;
763
+ readonly status?: string | undefined;
764
+ readonly action?: {
765
+ readonly [x: string]: unknown;
766
+ } | null | undefined;
767
+ } | {
768
+ readonly [x: string]: unknown;
769
+ readonly type: "file_search_call";
770
+ readonly id: string;
771
+ readonly status?: string | undefined;
772
+ readonly queries?: readonly string[] | undefined;
773
+ readonly results?: readonly {
774
+ readonly [x: string]: unknown;
775
+ }[] | null | undefined;
776
+ } | {
777
+ readonly [x: string]: unknown;
778
+ readonly type: "code_interpreter_call";
779
+ readonly id: string;
780
+ readonly status?: string | undefined;
781
+ readonly code?: string | null | undefined;
782
+ readonly container_id?: string | null | undefined;
783
+ readonly outputs?: readonly {
784
+ readonly [x: string]: unknown;
785
+ }[] | null | undefined;
786
+ } | {
787
+ readonly [x: string]: unknown;
788
+ readonly type: "mcp_call";
789
+ readonly id: string;
790
+ readonly status?: string | undefined;
791
+ readonly server_label?: string | undefined;
792
+ readonly name?: string | undefined;
793
+ readonly arguments?: string | undefined;
794
+ readonly output?: string | null | undefined;
795
+ readonly error?: unknown;
795
796
  })[];
796
- readonly model: string;
797
- readonly stream: true;
797
+ readonly instructions?: string | undefined;
798
+ readonly store?: boolean | undefined;
798
799
  readonly metadata?: {
799
800
  readonly [x: string]: string;
800
801
  } | undefined;
801
- readonly instructions?: string | undefined;
802
+ readonly safety_identifier?: string | undefined;
803
+ readonly stream_options?: {
804
+ readonly include_obfuscation?: boolean | undefined;
805
+ } | undefined;
806
+ readonly top_logprobs?: number | undefined;
807
+ readonly truncation?: "auto" | "disabled" | undefined;
808
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
809
+ readonly prompt_cache_key?: string | undefined;
810
+ readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
802
811
  readonly reasoning?: {
803
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
804
812
  readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
813
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
814
+ } | undefined;
815
+ readonly text?: {
816
+ readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
805
817
  } | undefined;
818
+ readonly max_output_tokens?: number | undefined;
819
+ readonly max_tool_calls?: number | undefined;
820
+ readonly parallel_tool_calls?: boolean | undefined;
806
821
  readonly temperature?: number | undefined;
822
+ readonly top_p?: number | undefined;
823
+ readonly presence_penalty?: number | undefined;
824
+ readonly frequency_penalty?: number | undefined;
807
825
  readonly tools?: readonly ({
808
826
  readonly type: "function";
809
- readonly description: string;
810
827
  readonly name: string;
828
+ readonly description: string;
811
829
  readonly parameters: {
812
830
  readonly [x: string]: unknown;
813
831
  };
814
832
  readonly strict?: boolean | undefined;
815
- } | {
816
- readonly type: "image_generation";
817
- readonly size?: string | undefined;
818
- readonly action?: "auto" | "generate" | "edit" | undefined;
819
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
820
- readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
821
- readonly background?: "auto" | "opaque" | "transparent" | undefined;
822
- readonly partial_images?: number | undefined;
823
- readonly output_compression?: number | undefined;
824
- readonly input_fidelity?: "low" | "high" | undefined;
825
833
  } | {
826
834
  readonly type: "namespace";
827
835
  readonly name: string;
828
836
  readonly description: string;
829
837
  readonly tools: readonly {
830
838
  readonly type: "function";
831
- readonly description: string;
832
839
  readonly name: string;
840
+ readonly description: string;
833
841
  readonly parameters: {
834
842
  readonly [x: string]: unknown;
835
843
  };
836
844
  readonly strict?: boolean | undefined;
837
845
  }[];
846
+ } | {
847
+ readonly type: "image_generation";
848
+ readonly action?: "auto" | "edit" | "generate" | undefined;
849
+ readonly background?: "auto" | "opaque" | "transparent" | undefined;
850
+ readonly input_fidelity?: "high" | "low" | undefined;
851
+ readonly output_compression?: number | undefined;
852
+ readonly output_format?: "jpeg" | "png" | "webp" | undefined;
853
+ readonly partial_images?: number | undefined;
854
+ readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
855
+ readonly size?: string | undefined;
838
856
  })[] | undefined;
839
- readonly text?: {
840
- readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
841
- } | undefined;
842
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
843
- readonly context_management?: readonly {
844
- readonly type: "compaction";
845
- readonly compact_threshold?: number | undefined;
846
- }[] | undefined;
847
- readonly tool_choice?: "required" | "auto" | "none" | {
857
+ readonly tool_choice?: "auto" | "none" | "required" | {
848
858
  readonly type: "function";
849
859
  readonly name: string;
850
860
  } | {
851
861
  readonly type: "allowed_tools";
852
- readonly mode: "required" | "auto" | "none";
862
+ readonly mode: "auto" | "none" | "required";
853
863
  readonly tools: readonly {
854
864
  readonly type: "function";
855
865
  readonly name: string;
@@ -857,81 +867,27 @@ export declare const channelTransport: (options: import("./open-responses-channe
857
867
  } | {
858
868
  readonly type: "image_generation";
859
869
  } | undefined;
860
- readonly top_p?: number | undefined;
861
- readonly frequency_penalty?: number | undefined;
862
- readonly presence_penalty?: number | undefined;
863
- readonly store?: boolean | undefined;
864
- readonly max_output_tokens?: number | undefined;
865
- readonly prompt_cache_key?: string | undefined;
866
- readonly parallel_tool_calls?: boolean | undefined;
867
- readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
868
- readonly truncation?: "auto" | "disabled" | undefined;
869
- readonly stream_options?: {
870
- readonly include_obfuscation?: boolean | undefined;
871
- } | undefined;
872
- readonly safety_identifier?: string | undefined;
873
- readonly top_logprobs?: number | undefined;
874
- readonly max_tool_calls?: number | undefined;
870
+ readonly context_management?: readonly {
871
+ readonly type: "compaction";
872
+ readonly compact_threshold?: number | undefined;
873
+ }[] | undefined;
874
+ readonly stream: true;
875
875
  }, import("./open-responses-channel.js").Prepared, string>;
876
876
  export declare const transport: import("../route/transport/index.js").Transport<{
877
+ readonly model: string;
877
878
  readonly input: readonly ({
878
879
  readonly [x: string]: unknown;
880
+ readonly type: string;
879
881
  readonly id: string;
880
- readonly type: "web_search_call";
881
- readonly status?: string | undefined;
882
- readonly action?: {
883
- readonly [x: string]: unknown;
884
- } | null | undefined;
885
- } | {
886
- readonly [x: string]: unknown;
887
- readonly id: string;
888
- readonly type: "file_search_call";
889
- readonly status?: string | undefined;
890
- readonly queries?: readonly string[] | undefined;
891
- readonly results?: readonly {
892
- readonly [x: string]: unknown;
893
- }[] | null | undefined;
894
- } | {
895
- readonly [x: string]: unknown;
896
- readonly id: string;
897
- readonly type: "code_interpreter_call";
898
- readonly status?: string | undefined;
899
- readonly code?: string | null | undefined;
900
- readonly container_id?: string | null | undefined;
901
- readonly outputs?: readonly {
902
- readonly [x: string]: unknown;
903
- }[] | null | undefined;
904
882
  } | {
905
- readonly [x: string]: unknown;
906
- readonly id: string;
907
- readonly type: "mcp_call";
908
- readonly status?: string | undefined;
909
- readonly name?: string | undefined;
910
- readonly output?: string | null | undefined;
911
- readonly error?: unknown;
912
- readonly arguments?: string | undefined;
913
- readonly server_label?: string | undefined;
883
+ readonly type: "compaction";
884
+ readonly id?: string | null | undefined;
885
+ readonly encrypted_content: string;
914
886
  } | {
915
887
  readonly type: "configuration_update";
916
888
  readonly reasoning: {
917
889
  readonly effort: OpenResponsesOptions.ReasoningEffort;
918
890
  };
919
- } | {
920
- readonly [x: string]: unknown;
921
- readonly type: string;
922
- readonly id: string;
923
- } | {
924
- readonly type: "reasoning";
925
- readonly summary: readonly {
926
- readonly type: "summary_text";
927
- readonly text: string;
928
- }[];
929
- readonly id?: string | undefined;
930
- readonly encrypted_content?: string | null | undefined;
931
- } | {
932
- readonly type: "compaction";
933
- readonly encrypted_content: string;
934
- readonly id?: string | null | undefined;
935
891
  } | {
936
892
  readonly type: "message";
937
893
  readonly role: "system";
@@ -942,6 +898,7 @@ export declare const transport: import("../route/transport/index.js").Transport<
942
898
  readonly content: string;
943
899
  } | {
944
900
  readonly type: "message";
901
+ readonly role: "user";
945
902
  readonly content: readonly ({
946
903
  readonly type: "input_image";
947
904
  readonly image_url: string;
@@ -956,26 +913,33 @@ export declare const transport: import("../route/transport/index.js").Transport<
956
913
  readonly type: "input_text";
957
914
  readonly text: string;
958
915
  })[];
959
- readonly role: "user";
960
916
  readonly id?: string | undefined;
961
917
  readonly status?: string | undefined;
962
918
  } | {
963
919
  readonly type: "message";
920
+ readonly id?: string | undefined;
921
+ readonly role: "assistant";
964
922
  readonly content: readonly {
965
923
  readonly type: "output_text";
966
924
  readonly text: string;
967
925
  }[];
968
- readonly role: "assistant";
969
- readonly id?: string | undefined;
970
- readonly status?: string | undefined;
971
926
  readonly phase?: "commentary" | "final_answer" | null | undefined;
927
+ readonly status?: string | undefined;
928
+ } | {
929
+ readonly type: "reasoning";
930
+ readonly id?: string | undefined;
931
+ readonly summary: readonly {
932
+ readonly type: "summary_text";
933
+ readonly text: string;
934
+ }[];
935
+ readonly encrypted_content?: string | null | undefined;
972
936
  } | {
973
937
  readonly type: "function_call";
974
- readonly name: string;
975
- readonly arguments: string;
976
- readonly call_id: string;
977
938
  readonly id?: string | undefined;
939
+ readonly call_id: string;
940
+ readonly name: string;
978
941
  readonly namespace?: string | undefined;
942
+ readonly arguments: string;
979
943
  } | {
980
944
  readonly type: "function_call_output";
981
945
  readonly call_id: string;
@@ -996,64 +960,110 @@ export declare const transport: import("../route/transport/index.js").Transport<
996
960
  readonly type: "input_video";
997
961
  readonly video_url: string;
998
962
  })[];
963
+ } | {
964
+ readonly [x: string]: unknown;
965
+ readonly type: "web_search_call";
966
+ readonly id: string;
967
+ readonly status?: string | undefined;
968
+ readonly action?: {
969
+ readonly [x: string]: unknown;
970
+ } | null | undefined;
971
+ } | {
972
+ readonly [x: string]: unknown;
973
+ readonly type: "file_search_call";
974
+ readonly id: string;
975
+ readonly status?: string | undefined;
976
+ readonly queries?: readonly string[] | undefined;
977
+ readonly results?: readonly {
978
+ readonly [x: string]: unknown;
979
+ }[] | null | undefined;
980
+ } | {
981
+ readonly [x: string]: unknown;
982
+ readonly type: "code_interpreter_call";
983
+ readonly id: string;
984
+ readonly status?: string | undefined;
985
+ readonly code?: string | null | undefined;
986
+ readonly container_id?: string | null | undefined;
987
+ readonly outputs?: readonly {
988
+ readonly [x: string]: unknown;
989
+ }[] | null | undefined;
990
+ } | {
991
+ readonly [x: string]: unknown;
992
+ readonly type: "mcp_call";
993
+ readonly id: string;
994
+ readonly status?: string | undefined;
995
+ readonly server_label?: string | undefined;
996
+ readonly name?: string | undefined;
997
+ readonly arguments?: string | undefined;
998
+ readonly output?: string | null | undefined;
999
+ readonly error?: unknown;
999
1000
  })[];
1000
- readonly model: string;
1001
- readonly stream: true;
1001
+ readonly instructions?: string | undefined;
1002
+ readonly store?: boolean | undefined;
1002
1003
  readonly metadata?: {
1003
1004
  readonly [x: string]: string;
1004
1005
  } | undefined;
1005
- readonly instructions?: string | undefined;
1006
+ readonly safety_identifier?: string | undefined;
1007
+ readonly stream_options?: {
1008
+ readonly include_obfuscation?: boolean | undefined;
1009
+ } | undefined;
1010
+ readonly top_logprobs?: number | undefined;
1011
+ readonly truncation?: "auto" | "disabled" | undefined;
1012
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1013
+ readonly prompt_cache_key?: string | undefined;
1014
+ readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1006
1015
  readonly reasoning?: {
1007
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
1008
1016
  readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
1017
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
1018
+ } | undefined;
1019
+ readonly text?: {
1020
+ readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1009
1021
  } | undefined;
1022
+ readonly max_output_tokens?: number | undefined;
1023
+ readonly max_tool_calls?: number | undefined;
1024
+ readonly parallel_tool_calls?: boolean | undefined;
1010
1025
  readonly temperature?: number | undefined;
1026
+ readonly top_p?: number | undefined;
1027
+ readonly presence_penalty?: number | undefined;
1028
+ readonly frequency_penalty?: number | undefined;
1011
1029
  readonly tools?: readonly ({
1012
1030
  readonly type: "function";
1013
- readonly description: string;
1014
1031
  readonly name: string;
1032
+ readonly description: string;
1015
1033
  readonly parameters: {
1016
1034
  readonly [x: string]: unknown;
1017
1035
  };
1018
1036
  readonly strict?: boolean | undefined;
1019
- } | {
1020
- readonly type: "image_generation";
1021
- readonly size?: string | undefined;
1022
- readonly action?: "auto" | "generate" | "edit" | undefined;
1023
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
1024
- readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
1025
- readonly background?: "auto" | "opaque" | "transparent" | undefined;
1026
- readonly partial_images?: number | undefined;
1027
- readonly output_compression?: number | undefined;
1028
- readonly input_fidelity?: "low" | "high" | undefined;
1029
1037
  } | {
1030
1038
  readonly type: "namespace";
1031
1039
  readonly name: string;
1032
1040
  readonly description: string;
1033
1041
  readonly tools: readonly {
1034
1042
  readonly type: "function";
1035
- readonly description: string;
1036
1043
  readonly name: string;
1044
+ readonly description: string;
1037
1045
  readonly parameters: {
1038
1046
  readonly [x: string]: unknown;
1039
1047
  };
1040
1048
  readonly strict?: boolean | undefined;
1041
1049
  }[];
1050
+ } | {
1051
+ readonly type: "image_generation";
1052
+ readonly action?: "auto" | "edit" | "generate" | undefined;
1053
+ readonly background?: "auto" | "opaque" | "transparent" | undefined;
1054
+ readonly input_fidelity?: "high" | "low" | undefined;
1055
+ readonly output_compression?: number | undefined;
1056
+ readonly output_format?: "jpeg" | "png" | "webp" | undefined;
1057
+ readonly partial_images?: number | undefined;
1058
+ readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
1059
+ readonly size?: string | undefined;
1042
1060
  })[] | undefined;
1043
- readonly text?: {
1044
- readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1045
- } | undefined;
1046
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1047
- readonly context_management?: readonly {
1048
- readonly type: "compaction";
1049
- readonly compact_threshold?: number | undefined;
1050
- }[] | undefined;
1051
- readonly tool_choice?: "required" | "auto" | "none" | {
1061
+ readonly tool_choice?: "auto" | "none" | "required" | {
1052
1062
  readonly type: "function";
1053
1063
  readonly name: string;
1054
1064
  } | {
1055
1065
  readonly type: "allowed_tools";
1056
- readonly mode: "required" | "auto" | "none";
1066
+ readonly mode: "auto" | "none" | "required";
1057
1067
  readonly tools: readonly {
1058
1068
  readonly type: "function";
1059
1069
  readonly name: string;
@@ -1061,81 +1071,27 @@ export declare const transport: import("../route/transport/index.js").Transport<
1061
1071
  } | {
1062
1072
  readonly type: "image_generation";
1063
1073
  } | undefined;
1064
- readonly top_p?: number | undefined;
1065
- readonly frequency_penalty?: number | undefined;
1066
- readonly presence_penalty?: number | undefined;
1067
- readonly store?: boolean | undefined;
1068
- readonly max_output_tokens?: number | undefined;
1069
- readonly prompt_cache_key?: string | undefined;
1070
- readonly parallel_tool_calls?: boolean | undefined;
1071
- readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1072
- readonly truncation?: "auto" | "disabled" | undefined;
1073
- readonly stream_options?: {
1074
- readonly include_obfuscation?: boolean | undefined;
1075
- } | undefined;
1076
- readonly safety_identifier?: string | undefined;
1077
- readonly top_logprobs?: number | undefined;
1078
- readonly max_tool_calls?: number | undefined;
1074
+ readonly context_management?: readonly {
1075
+ readonly type: "compaction";
1076
+ readonly compact_threshold?: number | undefined;
1077
+ }[] | undefined;
1078
+ readonly stream: true;
1079
1079
  }, import("./open-responses-channel.js").Prepared, string>;
1080
1080
  export declare const route: Route<{
1081
+ readonly model: string;
1081
1082
  readonly input: readonly ({
1082
1083
  readonly [x: string]: unknown;
1084
+ readonly type: string;
1083
1085
  readonly id: string;
1084
- readonly type: "web_search_call";
1085
- readonly status?: string | undefined;
1086
- readonly action?: {
1087
- readonly [x: string]: unknown;
1088
- } | null | undefined;
1089
- } | {
1090
- readonly [x: string]: unknown;
1091
- readonly id: string;
1092
- readonly type: "file_search_call";
1093
- readonly status?: string | undefined;
1094
- readonly queries?: readonly string[] | undefined;
1095
- readonly results?: readonly {
1096
- readonly [x: string]: unknown;
1097
- }[] | null | undefined;
1098
- } | {
1099
- readonly [x: string]: unknown;
1100
- readonly id: string;
1101
- readonly type: "code_interpreter_call";
1102
- readonly status?: string | undefined;
1103
- readonly code?: string | null | undefined;
1104
- readonly container_id?: string | null | undefined;
1105
- readonly outputs?: readonly {
1106
- readonly [x: string]: unknown;
1107
- }[] | null | undefined;
1108
1086
  } | {
1109
- readonly [x: string]: unknown;
1110
- readonly id: string;
1111
- readonly type: "mcp_call";
1112
- readonly status?: string | undefined;
1113
- readonly name?: string | undefined;
1114
- readonly output?: string | null | undefined;
1115
- readonly error?: unknown;
1116
- readonly arguments?: string | undefined;
1117
- readonly server_label?: string | undefined;
1087
+ readonly type: "compaction";
1088
+ readonly id?: string | null | undefined;
1089
+ readonly encrypted_content: string;
1118
1090
  } | {
1119
1091
  readonly type: "configuration_update";
1120
1092
  readonly reasoning: {
1121
1093
  readonly effort: OpenResponsesOptions.ReasoningEffort;
1122
1094
  };
1123
- } | {
1124
- readonly [x: string]: unknown;
1125
- readonly type: string;
1126
- readonly id: string;
1127
- } | {
1128
- readonly type: "reasoning";
1129
- readonly summary: readonly {
1130
- readonly type: "summary_text";
1131
- readonly text: string;
1132
- }[];
1133
- readonly id?: string | undefined;
1134
- readonly encrypted_content?: string | null | undefined;
1135
- } | {
1136
- readonly type: "compaction";
1137
- readonly encrypted_content: string;
1138
- readonly id?: string | null | undefined;
1139
1095
  } | {
1140
1096
  readonly type: "message";
1141
1097
  readonly role: "system";
@@ -1146,6 +1102,7 @@ export declare const route: Route<{
1146
1102
  readonly content: string;
1147
1103
  } | {
1148
1104
  readonly type: "message";
1105
+ readonly role: "user";
1149
1106
  readonly content: readonly ({
1150
1107
  readonly type: "input_image";
1151
1108
  readonly image_url: string;
@@ -1160,26 +1117,33 @@ export declare const route: Route<{
1160
1117
  readonly type: "input_text";
1161
1118
  readonly text: string;
1162
1119
  })[];
1163
- readonly role: "user";
1164
1120
  readonly id?: string | undefined;
1165
1121
  readonly status?: string | undefined;
1166
1122
  } | {
1167
1123
  readonly type: "message";
1124
+ readonly id?: string | undefined;
1125
+ readonly role: "assistant";
1168
1126
  readonly content: readonly {
1169
1127
  readonly type: "output_text";
1170
1128
  readonly text: string;
1171
1129
  }[];
1172
- readonly role: "assistant";
1173
- readonly id?: string | undefined;
1174
- readonly status?: string | undefined;
1175
1130
  readonly phase?: "commentary" | "final_answer" | null | undefined;
1131
+ readonly status?: string | undefined;
1132
+ } | {
1133
+ readonly type: "reasoning";
1134
+ readonly id?: string | undefined;
1135
+ readonly summary: readonly {
1136
+ readonly type: "summary_text";
1137
+ readonly text: string;
1138
+ }[];
1139
+ readonly encrypted_content?: string | null | undefined;
1176
1140
  } | {
1177
1141
  readonly type: "function_call";
1178
- readonly name: string;
1179
- readonly arguments: string;
1180
- readonly call_id: string;
1181
1142
  readonly id?: string | undefined;
1143
+ readonly call_id: string;
1144
+ readonly name: string;
1182
1145
  readonly namespace?: string | undefined;
1146
+ readonly arguments: string;
1183
1147
  } | {
1184
1148
  readonly type: "function_call_output";
1185
1149
  readonly call_id: string;
@@ -1200,64 +1164,110 @@ export declare const route: Route<{
1200
1164
  readonly type: "input_video";
1201
1165
  readonly video_url: string;
1202
1166
  })[];
1167
+ } | {
1168
+ readonly [x: string]: unknown;
1169
+ readonly type: "web_search_call";
1170
+ readonly id: string;
1171
+ readonly status?: string | undefined;
1172
+ readonly action?: {
1173
+ readonly [x: string]: unknown;
1174
+ } | null | undefined;
1175
+ } | {
1176
+ readonly [x: string]: unknown;
1177
+ readonly type: "file_search_call";
1178
+ readonly id: string;
1179
+ readonly status?: string | undefined;
1180
+ readonly queries?: readonly string[] | undefined;
1181
+ readonly results?: readonly {
1182
+ readonly [x: string]: unknown;
1183
+ }[] | null | undefined;
1184
+ } | {
1185
+ readonly [x: string]: unknown;
1186
+ readonly type: "code_interpreter_call";
1187
+ readonly id: string;
1188
+ readonly status?: string | undefined;
1189
+ readonly code?: string | null | undefined;
1190
+ readonly container_id?: string | null | undefined;
1191
+ readonly outputs?: readonly {
1192
+ readonly [x: string]: unknown;
1193
+ }[] | null | undefined;
1194
+ } | {
1195
+ readonly [x: string]: unknown;
1196
+ readonly type: "mcp_call";
1197
+ readonly id: string;
1198
+ readonly status?: string | undefined;
1199
+ readonly server_label?: string | undefined;
1200
+ readonly name?: string | undefined;
1201
+ readonly arguments?: string | undefined;
1202
+ readonly output?: string | null | undefined;
1203
+ readonly error?: unknown;
1203
1204
  })[];
1204
- readonly model: string;
1205
- readonly stream: true;
1205
+ readonly instructions?: string | undefined;
1206
+ readonly store?: boolean | undefined;
1206
1207
  readonly metadata?: {
1207
1208
  readonly [x: string]: string;
1208
1209
  } | undefined;
1209
- readonly instructions?: string | undefined;
1210
+ readonly safety_identifier?: string | undefined;
1211
+ readonly stream_options?: {
1212
+ readonly include_obfuscation?: boolean | undefined;
1213
+ } | undefined;
1214
+ readonly top_logprobs?: number | undefined;
1215
+ readonly truncation?: "auto" | "disabled" | undefined;
1216
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1217
+ readonly prompt_cache_key?: string | undefined;
1218
+ readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1210
1219
  readonly reasoning?: {
1211
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
1212
1220
  readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
1221
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
1222
+ } | undefined;
1223
+ readonly text?: {
1224
+ readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1213
1225
  } | undefined;
1226
+ readonly max_output_tokens?: number | undefined;
1227
+ readonly max_tool_calls?: number | undefined;
1228
+ readonly parallel_tool_calls?: boolean | undefined;
1214
1229
  readonly temperature?: number | undefined;
1230
+ readonly top_p?: number | undefined;
1231
+ readonly presence_penalty?: number | undefined;
1232
+ readonly frequency_penalty?: number | undefined;
1215
1233
  readonly tools?: readonly ({
1216
1234
  readonly type: "function";
1217
- readonly description: string;
1218
1235
  readonly name: string;
1236
+ readonly description: string;
1219
1237
  readonly parameters: {
1220
1238
  readonly [x: string]: unknown;
1221
1239
  };
1222
1240
  readonly strict?: boolean | undefined;
1223
- } | {
1224
- readonly type: "image_generation";
1225
- readonly size?: string | undefined;
1226
- readonly action?: "auto" | "generate" | "edit" | undefined;
1227
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
1228
- readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
1229
- readonly background?: "auto" | "opaque" | "transparent" | undefined;
1230
- readonly partial_images?: number | undefined;
1231
- readonly output_compression?: number | undefined;
1232
- readonly input_fidelity?: "low" | "high" | undefined;
1233
1241
  } | {
1234
1242
  readonly type: "namespace";
1235
1243
  readonly name: string;
1236
1244
  readonly description: string;
1237
1245
  readonly tools: readonly {
1238
1246
  readonly type: "function";
1239
- readonly description: string;
1240
1247
  readonly name: string;
1248
+ readonly description: string;
1241
1249
  readonly parameters: {
1242
1250
  readonly [x: string]: unknown;
1243
1251
  };
1244
1252
  readonly strict?: boolean | undefined;
1245
1253
  }[];
1254
+ } | {
1255
+ readonly type: "image_generation";
1256
+ readonly action?: "auto" | "edit" | "generate" | undefined;
1257
+ readonly background?: "auto" | "opaque" | "transparent" | undefined;
1258
+ readonly input_fidelity?: "high" | "low" | undefined;
1259
+ readonly output_compression?: number | undefined;
1260
+ readonly output_format?: "jpeg" | "png" | "webp" | undefined;
1261
+ readonly partial_images?: number | undefined;
1262
+ readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
1263
+ readonly size?: string | undefined;
1246
1264
  })[] | undefined;
1247
- readonly text?: {
1248
- readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1249
- } | undefined;
1250
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1251
- readonly context_management?: readonly {
1252
- readonly type: "compaction";
1253
- readonly compact_threshold?: number | undefined;
1254
- }[] | undefined;
1255
- readonly tool_choice?: "required" | "auto" | "none" | {
1265
+ readonly tool_choice?: "auto" | "none" | "required" | {
1256
1266
  readonly type: "function";
1257
1267
  readonly name: string;
1258
1268
  } | {
1259
1269
  readonly type: "allowed_tools";
1260
- readonly mode: "required" | "auto" | "none";
1270
+ readonly mode: "auto" | "none" | "required";
1261
1271
  readonly tools: readonly {
1262
1272
  readonly type: "function";
1263
1273
  readonly name: string;
@@ -1265,21 +1275,11 @@ export declare const route: Route<{
1265
1275
  } | {
1266
1276
  readonly type: "image_generation";
1267
1277
  } | undefined;
1268
- readonly top_p?: number | undefined;
1269
- readonly frequency_penalty?: number | undefined;
1270
- readonly presence_penalty?: number | undefined;
1271
- readonly store?: boolean | undefined;
1272
- readonly max_output_tokens?: number | undefined;
1273
- readonly prompt_cache_key?: string | undefined;
1274
- readonly parallel_tool_calls?: boolean | undefined;
1275
- readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1276
- readonly truncation?: "auto" | "disabled" | undefined;
1277
- readonly stream_options?: {
1278
- readonly include_obfuscation?: boolean | undefined;
1279
- } | undefined;
1280
- readonly safety_identifier?: string | undefined;
1281
- readonly top_logprobs?: number | undefined;
1282
- readonly max_tool_calls?: number | undefined;
1278
+ readonly context_management?: readonly {
1279
+ readonly type: "compaction";
1280
+ readonly compact_threshold?: number | undefined;
1281
+ }[] | undefined;
1282
+ readonly stream: true;
1283
1283
  }, import("./open-responses-channel.js").Prepared, {
1284
1284
  endpoint: import("../route/client.js").CompactOperation;
1285
1285
  trigger: import("../route/client.js").TriggerCompactOperation;