@opencode-ai/ai 0.0.0-next-16134 → 0.0.0-next-16144

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.
@@ -319,14 +319,13 @@ const lowerMessages = Effect.fn("OpenAIChat.lowerMessages")(function* (request)
319
319
  flushImages();
320
320
  return messages;
321
321
  });
322
- const lowerOptions = Effect.fn("OpenAIChat.lowerOptions")(function* (request) {
323
- const store = OpenAIOptions.store(request);
324
- const reasoningEffort = OpenAIOptions.reasoningEffort(request);
322
+ const lowerOptions = (request) => {
323
+ const options = OpenAIOptions.resolve(request);
325
324
  return {
326
- ...(store !== undefined ? { store } : {}),
327
- ...(reasoningEffort ? { reasoning_effort: reasoningEffort } : {}),
325
+ ...(options.store !== undefined ? { store: options.store } : {}),
326
+ ...(options.reasoningEffort ? { reasoning_effort: options.reasoningEffort } : {}),
328
327
  };
329
- });
328
+ };
330
329
  const fromRequest = Effect.fn("OpenAIChat.fromRequest")(function* (request) {
331
330
  // `fromRequest` returns the provider body only. Endpoint, auth, framing,
332
331
  // validation, and HTTP execution are composed by `Route.make`.
@@ -351,7 +350,7 @@ const fromRequest = Effect.fn("OpenAIChat.fromRequest")(function* (request) {
351
350
  presence_penalty: generation?.presencePenalty,
352
351
  seed: generation?.seed,
353
352
  stop: generation?.stop,
354
- ...(yield* lowerOptions(request)),
353
+ ...lowerOptions(request),
355
354
  };
356
355
  });
357
356
  // =============================================================================
@@ -1,9 +1,9 @@
1
1
  import { Route, type RouteRoutedModelInput } from "../route/client";
2
2
  export type OpenAICompatibleResponsesModelInput = RouteRoutedModelInput;
3
3
  /**
4
- * Route for providers that expose an OpenAI Responses-compatible `/responses`
5
- * endpoint. Provider helpers configure identity, endpoint, and auth before
6
- * model selection while this route reuses the OpenAI Responses protocol.
4
+ * Deployment adapter for providers that expose an Open Responses-compatible
5
+ * `/responses` endpoint. Provider helpers configure identity, endpoint, and
6
+ * auth while the semantic protocol remains provider-neutral.
7
7
  */
8
8
  export declare const route: Route<{
9
9
  readonly input: readonly ({
@@ -25,7 +25,7 @@ export declare const route: Route<{
25
25
  readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
26
26
  readonly type: import("effect/Schema").tag<"input_text">;
27
27
  readonly text: import("effect/Schema").String;
28
- }>, import("effect/Schema").Struct<{
28
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
29
29
  readonly type: import("effect/Schema").tag<"input_image">;
30
30
  readonly image_url: import("effect/Schema").String;
31
31
  }>, import("effect/Schema").Struct<{
@@ -33,7 +33,7 @@ export declare const route: Route<{
33
33
  readonly filename: import("effect/Schema").String;
34
34
  readonly file_data: import("effect/Schema").String;
35
35
  readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
36
- }>]>>;
36
+ }>]>]>>;
37
37
  }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
38
38
  readonly role: import("effect/Schema").tag<"assistant">;
39
39
  readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -68,9 +68,9 @@ export declare const route: Route<{
68
68
  } | undefined;
69
69
  readonly reasoning?: {
70
70
  readonly effort?: string | undefined;
71
- readonly summary?: "auto" | undefined;
71
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
72
72
  } | undefined;
73
- readonly tools?: readonly ({
73
+ readonly tools?: readonly {
74
74
  readonly type: "function";
75
75
  readonly name: string;
76
76
  readonly description: string;
@@ -78,28 +78,16 @@ export declare const route: Route<{
78
78
  readonly [x: string]: unknown;
79
79
  };
80
80
  readonly strict?: boolean | undefined;
81
- } | {
82
- readonly type: "image_generation";
83
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
84
- readonly size?: string | undefined;
85
- readonly quality?: "low" | "medium" | "high" | "auto" | undefined;
86
- readonly background?: "auto" | "opaque" | "transparent" | undefined;
87
- readonly output_compression?: number | undefined;
88
- readonly action?: "generate" | "auto" | "edit" | undefined;
89
- readonly input_fidelity?: "low" | "high" | undefined;
90
- readonly partial_images?: number | undefined;
91
- })[] | undefined;
81
+ }[] | undefined;
92
82
  readonly temperature?: number | undefined;
93
83
  readonly tool_choice?: "required" | "none" | "auto" | import("effect/Schema").Struct.ReadonlySide<{
94
84
  readonly type: import("effect/Schema").tag<"function">;
95
85
  readonly name: import("effect/Schema").String;
96
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
97
- readonly type: import("effect/Schema").tag<"image_generation">;
98
86
  }, "Type"> | undefined;
99
87
  readonly top_p?: number | undefined;
100
- readonly store?: boolean | undefined;
101
88
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
102
89
  readonly instructions?: string | undefined;
90
+ readonly store?: boolean | undefined;
103
91
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
104
92
  readonly prompt_cache_key?: string | undefined;
105
93
  readonly max_output_tokens?: number | undefined;
@@ -1,18 +1,17 @@
1
1
  import { Route } from "../route/client";
2
2
  import { Endpoint } from "../route/endpoint";
3
- import { OpenAIResponses } from "./openai-responses";
3
+ import { OpenResponses } from "./open-responses";
4
4
  const ADAPTER = "openai-compatible-responses";
5
5
  /**
6
- * Route for providers that expose an OpenAI Responses-compatible `/responses`
7
- * endpoint. Provider helpers configure identity, endpoint, and auth before
8
- * model selection while this route reuses the OpenAI Responses protocol.
6
+ * Deployment adapter for providers that expose an Open Responses-compatible
7
+ * `/responses` endpoint. Provider helpers configure identity, endpoint, and
8
+ * auth while the semantic protocol remains provider-neutral.
9
9
  */
10
10
  export const route = Route.make({
11
11
  id: ADAPTER,
12
- providerMetadataKey: "openai",
13
- protocol: OpenAIResponses.protocol,
14
- endpoint: Endpoint.path(OpenAIResponses.PATH),
15
- transport: OpenAIResponses.httpTransport,
16
- defaults: { providerOptions: { openai: { store: false } } },
12
+ providerMetadataKey: "openresponses",
13
+ protocol: OpenResponses.protocol,
14
+ endpoint: Endpoint.path(OpenResponses.PATH),
15
+ transport: OpenResponses.httpTransport,
17
16
  });
18
17
  export * as OpenAICompatibleResponses from "./openai-compatible-responses";
@@ -1,13 +1,35 @@
1
1
  import { Schema } from "effect";
2
2
  import { Route } from "../route/client";
3
- import { HttpTransport } from "../route/transport";
4
3
  import { Protocol } from "../route/protocol";
5
- import { Lifecycle } from "./utils/lifecycle";
6
- import { ToolStream } from "./utils/tool-stream";
4
+ import { HttpTransport } from "../route/transport";
5
+ import { OpenResponses } from "./open-responses";
7
6
  export declare const DEFAULT_BASE_URL = "https://api.openai.com/v1";
8
7
  export declare const PATH = "/responses";
9
8
  declare const OpenAIResponsesBody: Schema.Struct<{
10
9
  readonly stream: Schema.Literal<true>;
10
+ readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
11
+ readonly type: Schema.tag<"function">;
12
+ readonly name: Schema.String;
13
+ readonly description: Schema.String;
14
+ readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
15
+ readonly strict: Schema.optional<Schema.Boolean>;
16
+ }>, Schema.Struct<{
17
+ readonly type: Schema.tag<"image_generation">;
18
+ readonly action: Schema.optional<Schema.Literals<readonly ["auto", "generate", "edit"]>>;
19
+ readonly background: Schema.optional<Schema.Literals<readonly ["auto", "opaque", "transparent"]>>;
20
+ readonly input_fidelity: Schema.optional<Schema.Literals<readonly ["low", "high"]>>;
21
+ readonly output_compression: Schema.optional<Schema.Int>;
22
+ readonly output_format: Schema.optional<Schema.Literals<readonly ["png", "jpeg", "webp"]>>;
23
+ readonly partial_images: Schema.optional<Schema.Int>;
24
+ readonly quality: Schema.optional<Schema.Literals<readonly ["auto", "low", "medium", "high"]>>;
25
+ readonly size: Schema.optional<Schema.String>;
26
+ }>]>>>;
27
+ readonly tool_choice: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["auto", "none", "required"]>, Schema.Struct<{
28
+ readonly type: Schema.tag<"function">;
29
+ readonly name: Schema.String;
30
+ }>]>, Schema.Struct<{
31
+ readonly type: Schema.tag<"image_generation">;
32
+ }>]>>;
11
33
  readonly model: Schema.String;
12
34
  readonly input: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
13
35
  readonly role: Schema.tag<"system">;
@@ -17,7 +39,7 @@ declare const OpenAIResponsesBody: Schema.Struct<{
17
39
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
18
40
  readonly type: Schema.tag<"input_text">;
19
41
  readonly text: Schema.String;
20
- }>, Schema.Struct<{
42
+ }>, Schema.Union<readonly [Schema.Struct<{
21
43
  readonly type: Schema.tag<"input_image">;
22
44
  readonly image_url: Schema.String;
23
45
  }>, Schema.Struct<{
@@ -25,7 +47,7 @@ declare const OpenAIResponsesBody: Schema.Struct<{
25
47
  readonly filename: Schema.String;
26
48
  readonly file_data: Schema.String;
27
49
  readonly mime_type: Schema.optional<Schema.String>;
28
- }>]>>;
50
+ }>]>]>>;
29
51
  }>, Schema.Struct<{
30
52
  readonly role: Schema.tag<"assistant">;
31
53
  readonly content: Schema.$Array<Schema.Struct<{
@@ -65,36 +87,13 @@ declare const OpenAIResponsesBody: Schema.Struct<{
65
87
  }>]>>]>;
66
88
  }>]>>;
67
89
  readonly instructions: Schema.optional<Schema.String>;
68
- readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
69
- readonly type: Schema.tag<"function">;
70
- readonly name: Schema.String;
71
- readonly description: Schema.String;
72
- readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
73
- readonly strict: Schema.optional<Schema.Boolean>;
74
- }>, Schema.Struct<{
75
- readonly type: Schema.tag<"image_generation">;
76
- readonly action: Schema.optional<Schema.Literals<readonly ["auto", "generate", "edit"]>>;
77
- readonly background: Schema.optional<Schema.Literals<readonly ["auto", "opaque", "transparent"]>>;
78
- readonly input_fidelity: Schema.optional<Schema.Literals<readonly ["low", "high"]>>;
79
- readonly output_compression: Schema.optional<Schema.Int>;
80
- readonly output_format: Schema.optional<Schema.Literals<readonly ["png", "jpeg", "webp"]>>;
81
- readonly partial_images: Schema.optional<Schema.Int>;
82
- readonly quality: Schema.optional<Schema.Literals<readonly ["auto", "low", "medium", "high"]>>;
83
- readonly size: Schema.optional<Schema.String>;
84
- }>]>>>;
85
- readonly tool_choice: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly ["auto", "none", "required"]>, Schema.Struct<{
86
- readonly type: Schema.tag<"function">;
87
- readonly name: Schema.String;
88
- }>, Schema.Struct<{
89
- readonly type: Schema.tag<"image_generation">;
90
- }>]>>;
91
90
  readonly store: Schema.optional<Schema.Boolean>;
92
91
  readonly service_tier: Schema.optional<Schema.Literals<readonly ["auto", "default", "flex", "priority"]>>;
93
92
  readonly prompt_cache_key: Schema.optional<Schema.String>;
94
93
  readonly include: Schema.optional<Schema.$Array<Schema.Literals<readonly ["file_search_call.results", "web_search_call.results", "web_search_call.action.sources", "message.input_image.image_url", "computer_call_output.output.image_url", "code_interpreter_call.outputs", "reasoning.encrypted_content", "message.output_text.logprobs"]>>>;
95
94
  readonly reasoning: Schema.optional<Schema.Struct<{
96
95
  readonly effort: Schema.optional<Schema.String>;
97
- readonly summary: Schema.optional<Schema.Literal<"auto">>;
96
+ readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
98
97
  }>>;
99
98
  readonly text: Schema.optional<Schema.Struct<{
100
99
  readonly verbosity: Schema.optional<Schema.Literals<readonly ["low", "medium", "high"]>>;
@@ -104,11 +103,6 @@ declare const OpenAIResponsesBody: Schema.Struct<{
104
103
  readonly top_p: Schema.optional<Schema.Number>;
105
104
  }>;
106
105
  export type OpenAIResponsesBody = Schema.Schema.Type<typeof OpenAIResponsesBody>;
107
- /**
108
- * The OpenAI Responses protocol — request body construction, body schema, and
109
- * the streaming-event state machine. Used by native OpenAI and (once
110
- * registered) Azure OpenAI Responses.
111
- */
112
106
  export declare const protocol: Protocol<{
113
107
  readonly input: readonly ({
114
108
  readonly type: "reasoning";
@@ -129,7 +123,7 @@ export declare const protocol: Protocol<{
129
123
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
130
124
  readonly type: Schema.tag<"input_text">;
131
125
  readonly text: Schema.String;
132
- }>, Schema.Struct<{
126
+ }>, Schema.Union<readonly [Schema.Struct<{
133
127
  readonly type: Schema.tag<"input_image">;
134
128
  readonly image_url: Schema.String;
135
129
  }>, Schema.Struct<{
@@ -137,7 +131,7 @@ export declare const protocol: Protocol<{
137
131
  readonly filename: Schema.String;
138
132
  readonly file_data: Schema.String;
139
133
  readonly mime_type: Schema.optional<Schema.String>;
140
- }>]>>;
134
+ }>]>]>>;
141
135
  }, "Type"> | Schema.Struct.ReadonlySide<{
142
136
  readonly role: Schema.tag<"assistant">;
143
137
  readonly content: Schema.$Array<Schema.Struct<{
@@ -172,7 +166,7 @@ export declare const protocol: Protocol<{
172
166
  } | undefined;
173
167
  readonly reasoning?: {
174
168
  readonly effort?: string | undefined;
175
- readonly summary?: "auto" | undefined;
169
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
176
170
  } | undefined;
177
171
  readonly tools?: readonly ({
178
172
  readonly type: "function";
@@ -201,13 +195,14 @@ export declare const protocol: Protocol<{
201
195
  readonly type: Schema.tag<"image_generation">;
202
196
  }, "Type"> | undefined;
203
197
  readonly top_p?: number | undefined;
204
- readonly store?: boolean | undefined;
205
198
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
206
199
  readonly instructions?: string | undefined;
200
+ readonly store?: boolean | undefined;
207
201
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
208
202
  readonly prompt_cache_key?: string | undefined;
209
203
  readonly max_output_tokens?: number | undefined;
210
204
  }, string, {
205
+ readonly [x: string]: unknown;
211
206
  readonly type: string;
212
207
  readonly error?: {
213
208
  readonly message?: string | null | undefined;
@@ -241,36 +236,19 @@ export declare const protocol: Protocol<{
241
236
  readonly message?: string | undefined;
242
237
  readonly code?: string | null | undefined;
243
238
  readonly item?: {
239
+ readonly [x: string]: unknown;
244
240
  readonly type: string;
245
- readonly error?: unknown;
246
241
  readonly name?: string | undefined;
247
242
  readonly id?: string | undefined;
248
- readonly result?: string | undefined;
249
- readonly status?: string | undefined;
250
- readonly output?: unknown;
251
- readonly code?: string | undefined;
252
243
  readonly arguments?: string | undefined;
253
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
254
244
  readonly encrypted_content?: string | null | undefined;
255
245
  readonly call_id?: string | undefined;
256
- readonly action?: unknown;
257
- readonly queries?: unknown;
258
- readonly results?: unknown;
259
- readonly container_id?: string | undefined;
260
- readonly outputs?: unknown;
261
- readonly server_label?: string | undefined;
262
246
  } | undefined;
263
247
  readonly delta?: string | undefined;
264
248
  readonly param?: string | null | undefined;
265
249
  readonly item_id?: string | undefined;
266
250
  readonly summary_index?: number | undefined;
267
- }, {
268
- hasFunctionCall: boolean;
269
- tools: Partial<Record<string, ToolStream.PendingTool>>;
270
- lifecycle: Lifecycle.State;
271
- reasoningItems: {};
272
- store: boolean | undefined;
273
- }>;
251
+ }, OpenResponses.ParserState>;
274
252
  export declare const httpTransport: HttpTransport.HttpJsonTransport<{
275
253
  readonly input: readonly ({
276
254
  readonly type: "reasoning";
@@ -291,7 +269,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
291
269
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
292
270
  readonly type: Schema.tag<"input_text">;
293
271
  readonly text: Schema.String;
294
- }>, Schema.Struct<{
272
+ }>, Schema.Union<readonly [Schema.Struct<{
295
273
  readonly type: Schema.tag<"input_image">;
296
274
  readonly image_url: Schema.String;
297
275
  }>, Schema.Struct<{
@@ -299,7 +277,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
299
277
  readonly filename: Schema.String;
300
278
  readonly file_data: Schema.String;
301
279
  readonly mime_type: Schema.optional<Schema.String>;
302
- }>]>>;
280
+ }>]>]>>;
303
281
  }, "Type"> | Schema.Struct.ReadonlySide<{
304
282
  readonly role: Schema.tag<"assistant">;
305
283
  readonly content: Schema.$Array<Schema.Struct<{
@@ -334,7 +312,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
334
312
  } | undefined;
335
313
  readonly reasoning?: {
336
314
  readonly effort?: string | undefined;
337
- readonly summary?: "auto" | undefined;
315
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
338
316
  } | undefined;
339
317
  readonly tools?: readonly ({
340
318
  readonly type: "function";
@@ -363,9 +341,9 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
363
341
  readonly type: Schema.tag<"image_generation">;
364
342
  }, "Type"> | undefined;
365
343
  readonly top_p?: number | undefined;
366
- readonly store?: boolean | undefined;
367
344
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
368
345
  readonly instructions?: string | undefined;
346
+ readonly store?: boolean | undefined;
369
347
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
370
348
  readonly prompt_cache_key?: string | undefined;
371
349
  readonly max_output_tokens?: number | undefined;
@@ -390,7 +368,7 @@ export declare const route: Route<{
390
368
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
391
369
  readonly type: Schema.tag<"input_text">;
392
370
  readonly text: Schema.String;
393
- }>, Schema.Struct<{
371
+ }>, Schema.Union<readonly [Schema.Struct<{
394
372
  readonly type: Schema.tag<"input_image">;
395
373
  readonly image_url: Schema.String;
396
374
  }>, Schema.Struct<{
@@ -398,7 +376,7 @@ export declare const route: Route<{
398
376
  readonly filename: Schema.String;
399
377
  readonly file_data: Schema.String;
400
378
  readonly mime_type: Schema.optional<Schema.String>;
401
- }>]>>;
379
+ }>]>]>>;
402
380
  }, "Type"> | Schema.Struct.ReadonlySide<{
403
381
  readonly role: Schema.tag<"assistant">;
404
382
  readonly content: Schema.$Array<Schema.Struct<{
@@ -433,7 +411,7 @@ export declare const route: Route<{
433
411
  } | undefined;
434
412
  readonly reasoning?: {
435
413
  readonly effort?: string | undefined;
436
- readonly summary?: "auto" | undefined;
414
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
437
415
  } | undefined;
438
416
  readonly tools?: readonly ({
439
417
  readonly type: "function";
@@ -462,9 +440,9 @@ export declare const route: Route<{
462
440
  readonly type: Schema.tag<"image_generation">;
463
441
  }, "Type"> | undefined;
464
442
  readonly top_p?: number | undefined;
465
- readonly store?: boolean | undefined;
466
443
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
467
444
  readonly instructions?: string | undefined;
445
+ readonly store?: boolean | undefined;
468
446
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
469
447
  readonly prompt_cache_key?: string | undefined;
470
448
  readonly max_output_tokens?: number | undefined;
@@ -489,7 +467,7 @@ export declare const webSocketTransport: import("../route/transport/websocket").
489
467
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
490
468
  readonly type: Schema.tag<"input_text">;
491
469
  readonly text: Schema.String;
492
- }>, Schema.Struct<{
470
+ }>, Schema.Union<readonly [Schema.Struct<{
493
471
  readonly type: Schema.tag<"input_image">;
494
472
  readonly image_url: Schema.String;
495
473
  }>, Schema.Struct<{
@@ -497,7 +475,7 @@ export declare const webSocketTransport: import("../route/transport/websocket").
497
475
  readonly filename: Schema.String;
498
476
  readonly file_data: Schema.String;
499
477
  readonly mime_type: Schema.optional<Schema.String>;
500
- }>]>>;
478
+ }>]>]>>;
501
479
  }, "Type"> | Schema.Struct.ReadonlySide<{
502
480
  readonly role: Schema.tag<"assistant">;
503
481
  readonly content: Schema.$Array<Schema.Struct<{
@@ -532,7 +510,7 @@ export declare const webSocketTransport: import("../route/transport/websocket").
532
510
  } | undefined;
533
511
  readonly reasoning?: {
534
512
  readonly effort?: string | undefined;
535
- readonly summary?: "auto" | undefined;
513
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
536
514
  } | undefined;
537
515
  readonly tools?: readonly ({
538
516
  readonly type: "function";
@@ -561,9 +539,9 @@ export declare const webSocketTransport: import("../route/transport/websocket").
561
539
  readonly type: Schema.tag<"image_generation">;
562
540
  }, "Type"> | undefined;
563
541
  readonly top_p?: number | undefined;
564
- readonly store?: boolean | undefined;
565
542
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
566
543
  readonly instructions?: string | undefined;
544
+ readonly store?: boolean | undefined;
567
545
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
568
546
  readonly prompt_cache_key?: string | undefined;
569
547
  readonly max_output_tokens?: number | undefined;
@@ -589,7 +567,7 @@ export declare const webSocketTransport: import("../route/transport/websocket").
589
567
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
590
568
  readonly type: Schema.tag<"input_text">;
591
569
  readonly text: Schema.String;
592
- }>, Schema.Struct<{
570
+ }>, Schema.Union<readonly [Schema.Struct<{
593
571
  readonly type: Schema.tag<"input_image">;
594
572
  readonly image_url: Schema.String;
595
573
  }>, Schema.Struct<{
@@ -597,7 +575,7 @@ export declare const webSocketTransport: import("../route/transport/websocket").
597
575
  readonly filename: Schema.String;
598
576
  readonly file_data: Schema.String;
599
577
  readonly mime_type: Schema.optional<Schema.String>;
600
- }>]>>;
578
+ }>]>]>>;
601
579
  }, "Type"> | Schema.Struct.ReadonlySide<{
602
580
  readonly role: Schema.tag<"assistant">;
603
581
  readonly content: Schema.$Array<Schema.Struct<{
@@ -631,7 +609,7 @@ export declare const webSocketTransport: import("../route/transport/websocket").
631
609
  } | undefined;
632
610
  readonly reasoning?: {
633
611
  readonly effort?: string | undefined;
634
- readonly summary?: "auto" | undefined;
612
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
635
613
  } | undefined;
636
614
  readonly tools?: readonly ({
637
615
  readonly type: "function";
@@ -660,9 +638,9 @@ export declare const webSocketTransport: import("../route/transport/websocket").
660
638
  readonly type: Schema.tag<"image_generation">;
661
639
  }, "Type"> | undefined;
662
640
  readonly top_p?: number | undefined;
663
- readonly store?: boolean | undefined;
664
641
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
665
642
  readonly instructions?: string | undefined;
643
+ readonly store?: boolean | undefined;
666
644
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
667
645
  readonly prompt_cache_key?: string | undefined;
668
646
  readonly max_output_tokens?: number | undefined;
@@ -687,7 +665,7 @@ export declare const webSocketRoute: Route<{
687
665
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
688
666
  readonly type: Schema.tag<"input_text">;
689
667
  readonly text: Schema.String;
690
- }>, Schema.Struct<{
668
+ }>, Schema.Union<readonly [Schema.Struct<{
691
669
  readonly type: Schema.tag<"input_image">;
692
670
  readonly image_url: Schema.String;
693
671
  }>, Schema.Struct<{
@@ -695,7 +673,7 @@ export declare const webSocketRoute: Route<{
695
673
  readonly filename: Schema.String;
696
674
  readonly file_data: Schema.String;
697
675
  readonly mime_type: Schema.optional<Schema.String>;
698
- }>]>>;
676
+ }>]>]>>;
699
677
  }, "Type"> | Schema.Struct.ReadonlySide<{
700
678
  readonly role: Schema.tag<"assistant">;
701
679
  readonly content: Schema.$Array<Schema.Struct<{
@@ -730,7 +708,7 @@ export declare const webSocketRoute: Route<{
730
708
  } | undefined;
731
709
  readonly reasoning?: {
732
710
  readonly effort?: string | undefined;
733
- readonly summary?: "auto" | undefined;
711
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
734
712
  } | undefined;
735
713
  readonly tools?: readonly ({
736
714
  readonly type: "function";
@@ -759,9 +737,9 @@ export declare const webSocketRoute: Route<{
759
737
  readonly type: Schema.tag<"image_generation">;
760
738
  }, "Type"> | undefined;
761
739
  readonly top_p?: number | undefined;
762
- readonly store?: boolean | undefined;
763
740
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
764
741
  readonly instructions?: string | undefined;
742
+ readonly store?: boolean | undefined;
765
743
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
766
744
  readonly prompt_cache_key?: string | undefined;
767
745
  readonly max_output_tokens?: number | undefined;