@opencode/ai 2.1.3 → 2.2.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.
- package/README.md +283 -114
- package/dist/ai-client.d.ts +2 -2
- package/dist/ai-client.js +2 -1
- package/dist/cache-policy.d.ts +4 -0
- package/dist/cache-policy.js +20 -6
- package/dist/decision-client.d.ts +21 -0
- package/dist/decision-client.js +55 -0
- package/dist/decision.d.ts +472 -0
- package/dist/decision.js +158 -0
- package/dist/effect.d.ts +38 -0
- package/dist/effect.js +27 -0
- package/dist/effort-updates.d.ts +2 -2
- package/dist/experimental/cloudflare-run-extraction.d.ts +13 -0
- package/dist/experimental/cloudflare-run-extraction.js +83 -0
- package/dist/experimental/extraction.d.ts +183 -0
- package/dist/experimental/extraction.js +102 -0
- package/dist/experimental/realtime.d.ts +7 -2
- package/dist/experimental/realtime.js +5 -5
- package/dist/experimental.d.ts +2 -3
- package/dist/experimental.js +1 -2
- package/dist/image-client.d.ts +13 -22
- package/dist/image-client.js +0 -1
- package/dist/image.d.ts +154 -324
- package/dist/image.js +4 -11
- package/dist/index.d.ts +1426 -34
- package/dist/index.js +127 -24
- package/dist/llm.d.ts +16 -1
- package/dist/llm.js +34 -0
- package/dist/media-client.d.ts +2 -1
- package/dist/media-model.d.ts +3 -0
- package/dist/media-model.js +4 -1
- package/dist/media.d.ts +0 -7
- package/dist/media.js +0 -6
- package/dist/protocols/alibaba-chat.d.ts +32 -12
- package/dist/protocols/alibaba-images.d.ts +22 -0
- package/dist/protocols/alibaba-images.js +77 -0
- package/dist/protocols/alibaba-messages.d.ts +62 -27
- package/dist/protocols/alibaba-responses.d.ts +41 -38
- package/dist/protocols/anthropic-messages.d.ts +196 -94
- package/dist/protocols/anthropic-messages.js +47 -16
- package/dist/protocols/bedrock-converse.d.ts +140 -47
- package/dist/protocols/bedrock-converse.js +114 -18
- package/dist/protocols/bedrock-event-stream.js +1 -0
- package/dist/protocols/bfl-images.d.ts +9 -0
- package/dist/protocols/bfl-images.js +17 -15
- package/dist/protocols/cartesia-speech.d.ts +32 -50
- package/dist/protocols/cloudflare-run-decisions.d.ts +9 -0
- package/dist/protocols/cloudflare-run-decisions.js +36 -0
- package/dist/protocols/cloudflare-workers-ai-images.d.ts +23 -0
- package/dist/protocols/cloudflare-workers-ai-images.js +80 -0
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -50
- package/dist/protocols/elevenlabs-speech.d.ts +32 -50
- package/dist/protocols/fal-images.d.ts +10 -1
- package/dist/protocols/fal-images.js +16 -25
- package/dist/protocols/fal-video.js +1 -1
- package/dist/protocols/gemini.d.ts +37 -34
- package/dist/protocols/gemini.js +13 -8
- package/dist/protocols/google-images.d.ts +2 -2
- package/dist/protocols/google-images.js +8 -37
- package/dist/protocols/google-interactions.d.ts +18 -14
- package/dist/protocols/google-interactions.js +14 -7
- package/dist/protocols/google-speech.d.ts +32 -50
- package/dist/protocols/google-speech.js +0 -1
- package/dist/protocols/google-transcription.d.ts +32 -50
- package/dist/protocols/google-transcription.js +0 -1
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/google-video.js +2 -7
- package/dist/protocols/index.d.ts +3 -0
- package/dist/protocols/index.js +3 -0
- package/dist/protocols/meta-images.d.ts +7 -1
- package/dist/protocols/meta-images.js +10 -8
- package/dist/protocols/meta-messages.d.ts +73 -38
- package/dist/protocols/meta-messages.js +14 -1
- package/dist/protocols/meta-responses.d.ts +84 -78
- package/dist/protocols/meta-responses.js +29 -1
- package/dist/protocols/mistral-chat.d.ts +81 -78
- package/dist/protocols/mistral-chat.js +2 -1
- package/dist/protocols/open-responses-channel.js +47 -46
- package/dist/protocols/open-responses-continuation.d.ts +8 -2
- package/dist/protocols/open-responses-continuation.js +3 -1
- package/dist/protocols/open-responses.d.ts +426 -396
- package/dist/protocols/open-responses.js +16 -25
- package/dist/protocols/openai-chat.d.ts +764 -52
- package/dist/protocols/openai-chat.js +38 -25
- package/dist/protocols/openai-compatible-chat.d.ts +35 -15
- package/dist/protocols/openai-compatible-responses.d.ts +44 -42
- package/dist/protocols/openai-decisions.d.ts +22 -0
- package/dist/protocols/openai-decisions.js +128 -0
- package/dist/protocols/openai-images.d.ts +53 -56
- package/dist/protocols/openai-images.js +100 -34
- package/dist/protocols/openai-responses.d.ts +322 -264
- package/dist/protocols/openai-responses.js +33 -3
- package/dist/protocols/openai-speech.d.ts +32 -50
- package/dist/protocols/openai-speech.js +15 -5
- package/dist/protocols/openai-transcription.d.ts +32 -50
- package/dist/protocols/openai-transcription.js +15 -11
- package/dist/protocols/replicate-images.js +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/runway-video.js +1 -1
- package/dist/protocols/shared.d.ts +9 -1
- package/dist/protocols/shared.js +13 -2
- package/dist/protocols/stability-images.d.ts +5 -0
- package/dist/protocols/stability-images.js +4 -9
- package/dist/protocols/system-one.d.ts +101 -0
- package/dist/protocols/system-one.js +230 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.js +7 -6
- package/dist/protocols/utils/cache.d.ts +14 -3
- package/dist/protocols/utils/cache.js +11 -4
- package/dist/protocols/utils/gemini-generate-content.d.ts +3 -3
- package/dist/protocols/utils/gemini-generate-content.js +10 -16
- package/dist/protocols/utils/gemini-json-schema.d.ts +5 -0
- package/dist/protocols/utils/gemini-json-schema.js +3 -3
- package/dist/protocols/utils/image-sizing.d.ts +31 -0
- package/dist/protocols/utils/image-sizing.js +73 -0
- package/dist/protocols/utils/media-input.d.ts +4 -5
- package/dist/protocols/utils/media-input.js +8 -5
- package/dist/protocols/utils/partial-json-options.d.ts +0 -1
- package/dist/protocols/utils/partial-json-options.js +0 -1
- package/dist/protocols/utils/speech-stream.d.ts +0 -1
- package/dist/protocols/utils/speech-stream.js +0 -1
- package/dist/protocols/utils/tool-schema.js +15 -5
- package/dist/protocols/utils/tool-stream.d.ts +10 -1
- package/dist/protocols/venice-chat.d.ts +71 -53
- package/dist/protocols/venice-chat.js +7 -6
- package/dist/protocols/xai-images.d.ts +1 -2
- package/dist/protocols/xai-images.js +9 -2
- package/dist/protocols/xai-responses.d.ts +88 -78
- package/dist/protocols/xai-responses.js +28 -2
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/xai-video.js +11 -8
- package/dist/protocols/zai-chat.d.ts +54 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-images.d.ts +3 -1
- package/dist/protocols/zai-images.js +12 -11
- package/dist/protocols/zai-messages.d.ts +72 -35
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/provider-error.js +24 -7
- package/dist/providers/alibaba/images.d.ts +2 -0
- package/dist/providers/alibaba/images.js +1 -0
- package/dist/providers/alibaba.d.ts +146 -85
- package/dist/providers/alibaba.js +16 -8
- package/dist/providers/amazon-bedrock-mantle.d.ts +277 -218
- package/dist/providers/amazon-bedrock.d.ts +48 -28
- package/dist/providers/amazon-bedrock.js +11 -11
- package/dist/providers/anthropic-compatible.d.ts +64 -29
- package/dist/providers/anthropic.d.ts +64 -29
- package/dist/providers/azure/images.d.ts +2 -0
- package/dist/providers/azure/images.js +1 -0
- package/dist/providers/azure.d.ts +156 -115
- package/dist/providers/azure.js +19 -1
- package/dist/providers/baseten/decisions.d.ts +2 -0
- package/dist/providers/baseten/decisions.js +1 -0
- package/dist/providers/baseten.d.ts +75 -25
- package/dist/providers/baseten.js +41 -8
- package/dist/providers/cerebras.d.ts +66 -24
- package/dist/providers/cloudflare-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.js +1 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +409 -272
- package/dist/providers/cloudflare-ai-gateway.js +33 -6
- package/dist/providers/cloudflare-workers-ai/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/decisions.js +1 -0
- package/dist/providers/cloudflare-workers-ai/images.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/images.js +1 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +79 -25
- package/dist/providers/cloudflare-workers-ai.js +45 -9
- package/dist/providers/cohere.d.ts +117 -75
- package/dist/providers/deepinfra.d.ts +66 -24
- package/dist/providers/deepseek.d.ts +66 -24
- package/dist/providers/digitalocean/decisions.d.ts +2 -0
- package/dist/providers/digitalocean/decisions.js +1 -0
- package/dist/providers/digitalocean/images.d.ts +2 -0
- package/dist/providers/digitalocean/images.js +1 -0
- package/dist/providers/digitalocean.d.ts +108 -37
- package/dist/providers/digitalocean.js +39 -8
- package/dist/providers/fireworks.d.ts +66 -24
- package/dist/providers/google/images.d.ts +2 -0
- package/dist/providers/google/images.js +1 -0
- package/dist/providers/google-vertex/images.d.ts +2 -0
- package/dist/providers/google-vertex/images.js +1 -0
- package/dist/providers/google-vertex-chat.d.ts +33 -12
- package/dist/providers/google-vertex-messages.d.ts +64 -29
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +38 -35
- package/dist/providers/google-vertex.d.ts +20 -18
- package/dist/providers/google-vertex.js +32 -15
- package/dist/providers/google.d.ts +22 -21
- package/dist/providers/google.js +15 -8
- package/dist/providers/groq.d.ts +66 -28
- package/dist/providers/groq.js +0 -6
- package/dist/providers/meta.d.ts +144 -85
- package/dist/providers/minimax.d.ts +145 -86
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +277 -218
- package/dist/providers/open-responses-options.d.ts +0 -1
- package/dist/providers/open-responses-options.js +1 -1
- package/dist/providers/openai/images.d.ts +2 -0
- package/dist/providers/openai/images.js +1 -0
- package/dist/providers/openai-compatible/images.d.ts +2 -0
- package/dist/providers/openai-compatible/images.js +1 -0
- package/dist/providers/openai-compatible-responses.d.ts +38 -35
- package/dist/providers/openai-compatible.d.ts +36 -13
- package/dist/providers/openai-compatible.js +22 -10
- package/dist/providers/openai-options.d.ts +3 -2
- package/dist/providers/openai-options.js +0 -1
- package/dist/providers/openai.d.ts +146 -109
- package/dist/providers/openai.js +20 -4
- package/dist/providers/opencode/decisions.d.ts +2 -0
- package/dist/providers/opencode/decisions.js +1 -0
- package/dist/providers/opencode.d.ts +9 -10
- package/dist/providers/opencode.js +10 -8
- package/dist/providers/openrouter/decisions.d.ts +2 -0
- package/dist/providers/openrouter/decisions.js +1 -0
- package/dist/providers/openrouter/images.d.ts +2 -0
- package/dist/providers/openrouter/images.js +1 -0
- package/dist/providers/openrouter.d.ts +128 -47
- package/dist/providers/openrouter.js +38 -16
- package/dist/providers/togetherai.d.ts +66 -24
- package/dist/providers/typesafe-ai/decisions.d.ts +2 -0
- package/dist/providers/typesafe-ai/decisions.js +1 -0
- package/dist/providers/typesafe-ai.d.ts +9 -10
- package/dist/providers/typesafe-ai.js +10 -8
- package/dist/providers/venice.d.ts +214 -20
- package/dist/providers/vercel-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/decisions.js +1 -0
- package/dist/providers/vercel-ai-gateway/images.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/images.js +1 -0
- package/dist/providers/vercel-ai-gateway.d.ts +10 -16
- package/dist/providers/vercel-ai-gateway.js +31 -85
- package/dist/providers/xai/images.d.ts +2 -0
- package/dist/providers/xai/images.js +1 -0
- package/dist/providers/xai.d.ts +40 -17
- package/dist/providers/xai.js +15 -8
- package/dist/providers/zai/images.d.ts +2 -0
- package/dist/providers/zai/images.js +1 -0
- package/dist/providers/zai-coding-plan.d.ts +224 -85
- package/dist/providers/zai.d.ts +110 -23
- package/dist/providers/zai.js +15 -8
- package/dist/route/auth-options.d.ts +0 -3
- package/dist/route/auth.d.ts +0 -2
- package/dist/route/auth.js +0 -2
- package/dist/route/client.d.ts +2 -4
- package/dist/route/client.js +29 -8
- package/dist/route/decision.d.ts +58 -0
- package/dist/route/decision.js +75 -0
- package/dist/route/executor-service.js +1 -1
- package/dist/route/executor.d.ts +1 -1
- package/dist/route/framing.d.ts +2 -0
- package/dist/route/index.d.ts +3 -0
- package/dist/route/index.js +3 -0
- package/dist/route/media-protocol.d.ts +1 -0
- package/dist/route/media-protocol.js +12 -8
- package/dist/route/media.d.ts +5 -1
- package/dist/route/media.js +6 -2
- package/dist/route/transport/http.js +1 -0
- package/dist/route/transport/index.d.ts +1 -0
- package/dist/schema/events.d.ts +148 -6
- package/dist/schema/events.js +20 -0
- package/dist/schema/messages.d.ts +6 -2
- package/dist/schema/messages.js +3 -0
- package/dist/schema/options.d.ts +5 -3
- package/dist/schema/options.js +8 -3
- package/dist/speech-client.d.ts +13 -22
- package/dist/speech-client.js +0 -1
- package/dist/speech.d.ts +148 -283
- package/dist/speech.js +2 -4
- package/dist/testing.d.ts +25 -24
- package/dist/testing.js +3 -21
- package/dist/transcription-client.d.ts +13 -22
- package/dist/transcription.d.ts +148 -283
- package/dist/transcription.js +1 -1
- package/dist/utils/media-type.js +22 -1
- package/dist/video-client.d.ts +13 -22
- package/dist/video-client.js +0 -1
- package/dist/video.d.ts +115 -250
- package/dist/video.js +3 -5
- package/package.json +516 -13
- package/dist/experimental/evaluation-client.d.ts +0 -21
- package/dist/experimental/evaluation-client.js +0 -64
- package/dist/experimental/evaluation.d.ts +0 -242
- package/dist/experimental/evaluation.js +0 -115
- package/dist/experimental/system-one.d.ts +0 -16
- package/dist/experimental/system-one.js +0 -135
- package/dist/promise.d.ts +0 -1021
- package/dist/promise.js +0 -101
- package/dist/provider.d.ts +0 -23
- package/dist/provider.js +0 -2
|
@@ -77,6 +77,11 @@ export declare const OpenAIChatMessage: Schema.toTaggedUnion<"role", readonly [S
|
|
|
77
77
|
readonly image_url: Schema.Struct<{
|
|
78
78
|
readonly url: Schema.String;
|
|
79
79
|
}>;
|
|
80
|
+
}>, Schema.Struct<{
|
|
81
|
+
readonly type: Schema.Literal<"video_url">;
|
|
82
|
+
readonly video_url: Schema.Struct<{
|
|
83
|
+
readonly url: Schema.String;
|
|
84
|
+
}>;
|
|
80
85
|
}>, Schema.Struct<{
|
|
81
86
|
readonly type: Schema.Literal<"file">;
|
|
82
87
|
readonly file: Schema.Struct<{
|
|
@@ -98,6 +103,11 @@ export declare const OpenAIChatMessage: Schema.toTaggedUnion<"role", readonly [S
|
|
|
98
103
|
readonly image_url: Schema.Struct<{
|
|
99
104
|
readonly url: Schema.String;
|
|
100
105
|
}>;
|
|
106
|
+
}>, Schema.Struct<{
|
|
107
|
+
readonly type: Schema.Literal<"video_url">;
|
|
108
|
+
readonly video_url: Schema.Struct<{
|
|
109
|
+
readonly url: Schema.String;
|
|
110
|
+
}>;
|
|
101
111
|
}>, Schema.Struct<{
|
|
102
112
|
readonly type: Schema.Literal<"file">;
|
|
103
113
|
readonly file: Schema.Struct<{
|
|
@@ -161,6 +171,11 @@ export declare const bodyFields: {
|
|
|
161
171
|
readonly image_url: Schema.Struct<{
|
|
162
172
|
readonly url: Schema.String;
|
|
163
173
|
}>;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly type: Schema.Literal<"video_url">;
|
|
176
|
+
readonly video_url: Schema.Struct<{
|
|
177
|
+
readonly url: Schema.String;
|
|
178
|
+
}>;
|
|
164
179
|
}>, Schema.Struct<{
|
|
165
180
|
readonly type: Schema.Literal<"file">;
|
|
166
181
|
readonly file: Schema.Struct<{
|
|
@@ -182,6 +197,11 @@ export declare const bodyFields: {
|
|
|
182
197
|
readonly image_url: Schema.Struct<{
|
|
183
198
|
readonly url: Schema.String;
|
|
184
199
|
}>;
|
|
200
|
+
}>, Schema.Struct<{
|
|
201
|
+
readonly type: Schema.Literal<"video_url">;
|
|
202
|
+
readonly video_url: Schema.Struct<{
|
|
203
|
+
readonly url: Schema.String;
|
|
204
|
+
}>;
|
|
185
205
|
}>, Schema.Struct<{
|
|
186
206
|
readonly type: Schema.Literal<"file">;
|
|
187
207
|
readonly file: Schema.Struct<{
|
|
@@ -253,7 +273,16 @@ export declare const bodyFields: {
|
|
|
253
273
|
}>>;
|
|
254
274
|
store: Schema.optional<Schema.Boolean>;
|
|
255
275
|
prompt_cache_key: Schema.optional<Schema.String>;
|
|
276
|
+
prompt_cache_retention: Schema.optional<Schema.String>;
|
|
277
|
+
prompt_cache_options: Schema.optional<Schema.Struct<{
|
|
278
|
+
readonly ttl: Schema.optional<Schema.String>;
|
|
279
|
+
}>>;
|
|
256
280
|
reasoning_effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
281
|
+
verbosity: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"high" | "low" | "medium">, import("../schema/options.js").OpenString<"high" | "low" | "medium">>>;
|
|
282
|
+
service_tier: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority">, import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority">>>;
|
|
283
|
+
parallel_tool_calls: Schema.optional<Schema.Boolean>;
|
|
284
|
+
metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
285
|
+
safety_identifier: Schema.optional<Schema.String>;
|
|
257
286
|
tool_stream: Schema.optional<Schema.Boolean>;
|
|
258
287
|
max_completion_tokens: Schema.optional<Schema.Number>;
|
|
259
288
|
max_tokens: Schema.optional<Schema.Number>;
|
|
@@ -280,6 +309,11 @@ declare const OpenAIChatBody: Schema.Struct<{
|
|
|
280
309
|
readonly image_url: Schema.Struct<{
|
|
281
310
|
readonly url: Schema.String;
|
|
282
311
|
}>;
|
|
312
|
+
}>, Schema.Struct<{
|
|
313
|
+
readonly type: Schema.Literal<"video_url">;
|
|
314
|
+
readonly video_url: Schema.Struct<{
|
|
315
|
+
readonly url: Schema.String;
|
|
316
|
+
}>;
|
|
283
317
|
}>, Schema.Struct<{
|
|
284
318
|
readonly type: Schema.Literal<"file">;
|
|
285
319
|
readonly file: Schema.Struct<{
|
|
@@ -301,6 +335,11 @@ declare const OpenAIChatBody: Schema.Struct<{
|
|
|
301
335
|
readonly image_url: Schema.Struct<{
|
|
302
336
|
readonly url: Schema.String;
|
|
303
337
|
}>;
|
|
338
|
+
}>, Schema.Struct<{
|
|
339
|
+
readonly type: Schema.Literal<"video_url">;
|
|
340
|
+
readonly video_url: Schema.Struct<{
|
|
341
|
+
readonly url: Schema.String;
|
|
342
|
+
}>;
|
|
304
343
|
}>, Schema.Struct<{
|
|
305
344
|
readonly type: Schema.Literal<"file">;
|
|
306
345
|
readonly file: Schema.Struct<{
|
|
@@ -372,7 +411,16 @@ declare const OpenAIChatBody: Schema.Struct<{
|
|
|
372
411
|
}>>;
|
|
373
412
|
store: Schema.optional<Schema.Boolean>;
|
|
374
413
|
prompt_cache_key: Schema.optional<Schema.String>;
|
|
414
|
+
prompt_cache_retention: Schema.optional<Schema.String>;
|
|
415
|
+
prompt_cache_options: Schema.optional<Schema.Struct<{
|
|
416
|
+
readonly ttl: Schema.optional<Schema.String>;
|
|
417
|
+
}>>;
|
|
375
418
|
reasoning_effort: Schema.optional<Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>>;
|
|
419
|
+
verbosity: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"high" | "low" | "medium">, import("../schema/options.js").OpenString<"high" | "low" | "medium">>>;
|
|
420
|
+
service_tier: Schema.optional<Schema.declare<import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority">, import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority">>>;
|
|
421
|
+
parallel_tool_calls: Schema.optional<Schema.Boolean>;
|
|
422
|
+
metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
423
|
+
safety_identifier: Schema.optional<Schema.String>;
|
|
376
424
|
tool_stream: Schema.optional<Schema.Boolean>;
|
|
377
425
|
max_completion_tokens: Schema.optional<Schema.Number>;
|
|
378
426
|
max_tokens: Schema.optional<Schema.Number>;
|
|
@@ -564,51 +612,628 @@ interface LoweringOptions {
|
|
|
564
612
|
export declare const fromRequest: (request: LLMRequest<import("../schema/options.js").LanguageModel<{
|
|
565
613
|
readonly [x: string]: unknown;
|
|
566
614
|
}, import("../route/client.js").CompactionOperations | undefined>>, options?: LoweringOptions | undefined) => Effect.Effect<{
|
|
615
|
+
prompt_cache_retention?: undefined;
|
|
616
|
+
prompt_cache_options?: undefined;
|
|
567
617
|
store?: boolean | undefined;
|
|
568
618
|
prompt_cache_key?: string | undefined;
|
|
569
619
|
reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
620
|
+
verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
621
|
+
service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
622
|
+
parallel_tool_calls?: boolean | undefined;
|
|
623
|
+
metadata?: {
|
|
624
|
+
readonly [x: string]: string;
|
|
625
|
+
} | undefined;
|
|
626
|
+
safety_identifier?: string | undefined;
|
|
570
627
|
model: string & import("effect/Brand").Brand<"AI.ModelID">;
|
|
571
628
|
messages: ({
|
|
572
629
|
readonly role: "system";
|
|
573
630
|
readonly content: string | readonly ({
|
|
631
|
+
readonly type: "image_url";
|
|
632
|
+
readonly image_url: {
|
|
633
|
+
readonly url: string;
|
|
634
|
+
};
|
|
635
|
+
} | {
|
|
636
|
+
readonly type: "video_url";
|
|
637
|
+
readonly video_url: {
|
|
638
|
+
readonly url: string;
|
|
639
|
+
};
|
|
640
|
+
} | {
|
|
641
|
+
readonly type: "file";
|
|
642
|
+
readonly file: {
|
|
643
|
+
readonly filename: string;
|
|
644
|
+
readonly file_data: string;
|
|
645
|
+
};
|
|
646
|
+
} | {
|
|
647
|
+
readonly type: "text";
|
|
648
|
+
readonly text: string;
|
|
649
|
+
readonly cache_control?: {
|
|
650
|
+
readonly type: "ephemeral";
|
|
651
|
+
readonly ttl?: string | undefined;
|
|
652
|
+
} | undefined;
|
|
653
|
+
})[];
|
|
654
|
+
} | {
|
|
655
|
+
readonly role: "user";
|
|
656
|
+
readonly content: string | readonly ({
|
|
657
|
+
readonly type: "image_url";
|
|
658
|
+
readonly image_url: {
|
|
659
|
+
readonly url: string;
|
|
660
|
+
};
|
|
661
|
+
} | {
|
|
662
|
+
readonly type: "video_url";
|
|
663
|
+
readonly video_url: {
|
|
664
|
+
readonly url: string;
|
|
665
|
+
};
|
|
666
|
+
} | {
|
|
667
|
+
readonly type: "file";
|
|
668
|
+
readonly file: {
|
|
669
|
+
readonly filename: string;
|
|
670
|
+
readonly file_data: string;
|
|
671
|
+
};
|
|
672
|
+
} | {
|
|
673
|
+
readonly type: "text";
|
|
674
|
+
readonly text: string;
|
|
675
|
+
readonly cache_control?: {
|
|
676
|
+
readonly type: "ephemeral";
|
|
677
|
+
readonly ttl?: string | undefined;
|
|
678
|
+
} | undefined;
|
|
679
|
+
})[];
|
|
680
|
+
} | {
|
|
681
|
+
readonly role: "tool";
|
|
682
|
+
readonly tool_call_id: string;
|
|
683
|
+
readonly content: string | readonly {
|
|
684
|
+
readonly type: "text";
|
|
685
|
+
readonly text: string;
|
|
686
|
+
readonly cache_control?: {
|
|
687
|
+
readonly type: "ephemeral";
|
|
688
|
+
readonly ttl?: string | undefined;
|
|
689
|
+
} | undefined;
|
|
690
|
+
}[];
|
|
691
|
+
} | {
|
|
692
|
+
readonly [x: string]: unknown;
|
|
693
|
+
readonly role: "assistant";
|
|
694
|
+
readonly content: string | readonly {
|
|
695
|
+
readonly type: "text";
|
|
696
|
+
readonly text: string;
|
|
697
|
+
readonly cache_control?: {
|
|
698
|
+
readonly type: "ephemeral";
|
|
699
|
+
readonly ttl?: string | undefined;
|
|
700
|
+
} | undefined;
|
|
701
|
+
}[] | null;
|
|
702
|
+
readonly tool_calls?: readonly {
|
|
703
|
+
readonly id: string;
|
|
704
|
+
readonly type: "function";
|
|
705
|
+
readonly function: {
|
|
706
|
+
readonly name: string;
|
|
707
|
+
readonly arguments: string;
|
|
708
|
+
};
|
|
709
|
+
readonly extra_content?: {
|
|
710
|
+
readonly google: {
|
|
711
|
+
readonly thought_signature: string;
|
|
712
|
+
};
|
|
713
|
+
} | undefined;
|
|
714
|
+
}[] | undefined;
|
|
715
|
+
readonly reasoning_content?: string | undefined;
|
|
716
|
+
readonly reasoning?: string | undefined;
|
|
717
|
+
readonly reasoning_text?: string | undefined;
|
|
718
|
+
readonly reasoning_details?: unknown;
|
|
719
|
+
})[];
|
|
720
|
+
tools: {
|
|
721
|
+
readonly type: "function";
|
|
722
|
+
readonly function: {
|
|
723
|
+
readonly name: string;
|
|
724
|
+
readonly description: string;
|
|
725
|
+
readonly parameters: {
|
|
726
|
+
readonly [x: string]: unknown;
|
|
727
|
+
};
|
|
728
|
+
readonly strict?: boolean | undefined;
|
|
729
|
+
};
|
|
730
|
+
readonly cache_control?: {
|
|
731
|
+
readonly type: "ephemeral";
|
|
732
|
+
readonly ttl?: string | undefined;
|
|
733
|
+
} | undefined;
|
|
734
|
+
}[] | undefined;
|
|
735
|
+
tool_choice: "auto" | "none" | "required" | {
|
|
736
|
+
type: "function";
|
|
737
|
+
function: {
|
|
738
|
+
name: string;
|
|
739
|
+
};
|
|
740
|
+
} | undefined;
|
|
741
|
+
stream: true;
|
|
742
|
+
stream_options?: {
|
|
743
|
+
include_usage: boolean;
|
|
744
|
+
} | undefined;
|
|
745
|
+
tool_stream?: boolean | undefined;
|
|
746
|
+
max_completion_tokens: number | undefined;
|
|
747
|
+
temperature: number | undefined;
|
|
748
|
+
top_p: number | undefined;
|
|
749
|
+
frequency_penalty: number | undefined;
|
|
750
|
+
presence_penalty: number | undefined;
|
|
751
|
+
seed: number | undefined;
|
|
752
|
+
stop: readonly string[] | undefined;
|
|
753
|
+
} | {
|
|
754
|
+
prompt_cache_retention: string;
|
|
755
|
+
prompt_cache_options?: undefined;
|
|
756
|
+
store?: boolean | undefined;
|
|
757
|
+
prompt_cache_key?: string | undefined;
|
|
758
|
+
reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
759
|
+
verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
760
|
+
service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
761
|
+
parallel_tool_calls?: boolean | undefined;
|
|
762
|
+
metadata?: {
|
|
763
|
+
readonly [x: string]: string;
|
|
764
|
+
} | undefined;
|
|
765
|
+
safety_identifier?: string | undefined;
|
|
766
|
+
model: string & import("effect/Brand").Brand<"AI.ModelID">;
|
|
767
|
+
messages: ({
|
|
768
|
+
readonly role: "system";
|
|
769
|
+
readonly content: string | readonly ({
|
|
770
|
+
readonly type: "image_url";
|
|
771
|
+
readonly image_url: {
|
|
772
|
+
readonly url: string;
|
|
773
|
+
};
|
|
774
|
+
} | {
|
|
775
|
+
readonly type: "video_url";
|
|
776
|
+
readonly video_url: {
|
|
777
|
+
readonly url: string;
|
|
778
|
+
};
|
|
779
|
+
} | {
|
|
780
|
+
readonly type: "file";
|
|
781
|
+
readonly file: {
|
|
782
|
+
readonly filename: string;
|
|
783
|
+
readonly file_data: string;
|
|
784
|
+
};
|
|
785
|
+
} | {
|
|
786
|
+
readonly type: "text";
|
|
787
|
+
readonly text: string;
|
|
788
|
+
readonly cache_control?: {
|
|
789
|
+
readonly type: "ephemeral";
|
|
790
|
+
readonly ttl?: string | undefined;
|
|
791
|
+
} | undefined;
|
|
792
|
+
})[];
|
|
793
|
+
} | {
|
|
794
|
+
readonly role: "user";
|
|
795
|
+
readonly content: string | readonly ({
|
|
796
|
+
readonly type: "image_url";
|
|
797
|
+
readonly image_url: {
|
|
798
|
+
readonly url: string;
|
|
799
|
+
};
|
|
800
|
+
} | {
|
|
801
|
+
readonly type: "video_url";
|
|
802
|
+
readonly video_url: {
|
|
803
|
+
readonly url: string;
|
|
804
|
+
};
|
|
805
|
+
} | {
|
|
806
|
+
readonly type: "file";
|
|
807
|
+
readonly file: {
|
|
808
|
+
readonly filename: string;
|
|
809
|
+
readonly file_data: string;
|
|
810
|
+
};
|
|
811
|
+
} | {
|
|
812
|
+
readonly type: "text";
|
|
813
|
+
readonly text: string;
|
|
814
|
+
readonly cache_control?: {
|
|
815
|
+
readonly type: "ephemeral";
|
|
816
|
+
readonly ttl?: string | undefined;
|
|
817
|
+
} | undefined;
|
|
818
|
+
})[];
|
|
819
|
+
} | {
|
|
820
|
+
readonly role: "tool";
|
|
821
|
+
readonly tool_call_id: string;
|
|
822
|
+
readonly content: string | readonly {
|
|
823
|
+
readonly type: "text";
|
|
824
|
+
readonly text: string;
|
|
825
|
+
readonly cache_control?: {
|
|
826
|
+
readonly type: "ephemeral";
|
|
827
|
+
readonly ttl?: string | undefined;
|
|
828
|
+
} | undefined;
|
|
829
|
+
}[];
|
|
830
|
+
} | {
|
|
831
|
+
readonly [x: string]: unknown;
|
|
832
|
+
readonly role: "assistant";
|
|
833
|
+
readonly content: string | readonly {
|
|
834
|
+
readonly type: "text";
|
|
835
|
+
readonly text: string;
|
|
836
|
+
readonly cache_control?: {
|
|
837
|
+
readonly type: "ephemeral";
|
|
838
|
+
readonly ttl?: string | undefined;
|
|
839
|
+
} | undefined;
|
|
840
|
+
}[] | null;
|
|
841
|
+
readonly tool_calls?: readonly {
|
|
842
|
+
readonly id: string;
|
|
843
|
+
readonly type: "function";
|
|
844
|
+
readonly function: {
|
|
845
|
+
readonly name: string;
|
|
846
|
+
readonly arguments: string;
|
|
847
|
+
};
|
|
848
|
+
readonly extra_content?: {
|
|
849
|
+
readonly google: {
|
|
850
|
+
readonly thought_signature: string;
|
|
851
|
+
};
|
|
852
|
+
} | undefined;
|
|
853
|
+
}[] | undefined;
|
|
854
|
+
readonly reasoning_content?: string | undefined;
|
|
855
|
+
readonly reasoning?: string | undefined;
|
|
856
|
+
readonly reasoning_text?: string | undefined;
|
|
857
|
+
readonly reasoning_details?: unknown;
|
|
858
|
+
})[];
|
|
859
|
+
tools: {
|
|
860
|
+
readonly type: "function";
|
|
861
|
+
readonly function: {
|
|
862
|
+
readonly name: string;
|
|
863
|
+
readonly description: string;
|
|
864
|
+
readonly parameters: {
|
|
865
|
+
readonly [x: string]: unknown;
|
|
866
|
+
};
|
|
867
|
+
readonly strict?: boolean | undefined;
|
|
868
|
+
};
|
|
869
|
+
readonly cache_control?: {
|
|
870
|
+
readonly type: "ephemeral";
|
|
871
|
+
readonly ttl?: string | undefined;
|
|
872
|
+
} | undefined;
|
|
873
|
+
}[] | undefined;
|
|
874
|
+
tool_choice: "auto" | "none" | "required" | {
|
|
875
|
+
type: "function";
|
|
876
|
+
function: {
|
|
877
|
+
name: string;
|
|
878
|
+
};
|
|
879
|
+
} | undefined;
|
|
880
|
+
stream: true;
|
|
881
|
+
stream_options?: {
|
|
882
|
+
include_usage: boolean;
|
|
883
|
+
} | undefined;
|
|
884
|
+
tool_stream?: boolean | undefined;
|
|
885
|
+
max_completion_tokens: number | undefined;
|
|
886
|
+
temperature: number | undefined;
|
|
887
|
+
top_p: number | undefined;
|
|
888
|
+
frequency_penalty: number | undefined;
|
|
889
|
+
presence_penalty: number | undefined;
|
|
890
|
+
seed: number | undefined;
|
|
891
|
+
stop: readonly string[] | undefined;
|
|
892
|
+
} | {
|
|
893
|
+
prompt_cache_retention?: undefined;
|
|
894
|
+
prompt_cache_options: {
|
|
895
|
+
ttl: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s`;
|
|
896
|
+
};
|
|
897
|
+
store?: boolean | undefined;
|
|
898
|
+
prompt_cache_key?: string | undefined;
|
|
899
|
+
reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
900
|
+
verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
901
|
+
service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
902
|
+
parallel_tool_calls?: boolean | undefined;
|
|
903
|
+
metadata?: {
|
|
904
|
+
readonly [x: string]: string;
|
|
905
|
+
} | undefined;
|
|
906
|
+
safety_identifier?: string | undefined;
|
|
907
|
+
model: string & import("effect/Brand").Brand<"AI.ModelID">;
|
|
908
|
+
messages: ({
|
|
909
|
+
readonly role: "system";
|
|
910
|
+
readonly content: string | readonly ({
|
|
911
|
+
readonly type: "image_url";
|
|
912
|
+
readonly image_url: {
|
|
913
|
+
readonly url: string;
|
|
914
|
+
};
|
|
915
|
+
} | {
|
|
916
|
+
readonly type: "video_url";
|
|
917
|
+
readonly video_url: {
|
|
918
|
+
readonly url: string;
|
|
919
|
+
};
|
|
920
|
+
} | {
|
|
921
|
+
readonly type: "file";
|
|
922
|
+
readonly file: {
|
|
923
|
+
readonly filename: string;
|
|
924
|
+
readonly file_data: string;
|
|
925
|
+
};
|
|
926
|
+
} | {
|
|
927
|
+
readonly type: "text";
|
|
928
|
+
readonly text: string;
|
|
929
|
+
readonly cache_control?: {
|
|
930
|
+
readonly type: "ephemeral";
|
|
931
|
+
readonly ttl?: string | undefined;
|
|
932
|
+
} | undefined;
|
|
933
|
+
})[];
|
|
934
|
+
} | {
|
|
935
|
+
readonly role: "user";
|
|
936
|
+
readonly content: string | readonly ({
|
|
937
|
+
readonly type: "image_url";
|
|
938
|
+
readonly image_url: {
|
|
939
|
+
readonly url: string;
|
|
940
|
+
};
|
|
941
|
+
} | {
|
|
942
|
+
readonly type: "video_url";
|
|
943
|
+
readonly video_url: {
|
|
944
|
+
readonly url: string;
|
|
945
|
+
};
|
|
946
|
+
} | {
|
|
947
|
+
readonly type: "file";
|
|
948
|
+
readonly file: {
|
|
949
|
+
readonly filename: string;
|
|
950
|
+
readonly file_data: string;
|
|
951
|
+
};
|
|
952
|
+
} | {
|
|
953
|
+
readonly type: "text";
|
|
954
|
+
readonly text: string;
|
|
955
|
+
readonly cache_control?: {
|
|
956
|
+
readonly type: "ephemeral";
|
|
957
|
+
readonly ttl?: string | undefined;
|
|
958
|
+
} | undefined;
|
|
959
|
+
})[];
|
|
960
|
+
} | {
|
|
961
|
+
readonly role: "tool";
|
|
962
|
+
readonly tool_call_id: string;
|
|
963
|
+
readonly content: string | readonly {
|
|
964
|
+
readonly type: "text";
|
|
965
|
+
readonly text: string;
|
|
966
|
+
readonly cache_control?: {
|
|
967
|
+
readonly type: "ephemeral";
|
|
968
|
+
readonly ttl?: string | undefined;
|
|
969
|
+
} | undefined;
|
|
970
|
+
}[];
|
|
971
|
+
} | {
|
|
972
|
+
readonly [x: string]: unknown;
|
|
973
|
+
readonly role: "assistant";
|
|
974
|
+
readonly content: string | readonly {
|
|
975
|
+
readonly type: "text";
|
|
976
|
+
readonly text: string;
|
|
977
|
+
readonly cache_control?: {
|
|
978
|
+
readonly type: "ephemeral";
|
|
979
|
+
readonly ttl?: string | undefined;
|
|
980
|
+
} | undefined;
|
|
981
|
+
}[] | null;
|
|
982
|
+
readonly tool_calls?: readonly {
|
|
983
|
+
readonly id: string;
|
|
984
|
+
readonly type: "function";
|
|
985
|
+
readonly function: {
|
|
986
|
+
readonly name: string;
|
|
987
|
+
readonly arguments: string;
|
|
988
|
+
};
|
|
989
|
+
readonly extra_content?: {
|
|
990
|
+
readonly google: {
|
|
991
|
+
readonly thought_signature: string;
|
|
992
|
+
};
|
|
993
|
+
} | undefined;
|
|
994
|
+
}[] | undefined;
|
|
995
|
+
readonly reasoning_content?: string | undefined;
|
|
996
|
+
readonly reasoning?: string | undefined;
|
|
997
|
+
readonly reasoning_text?: string | undefined;
|
|
998
|
+
readonly reasoning_details?: unknown;
|
|
999
|
+
})[];
|
|
1000
|
+
tools: {
|
|
1001
|
+
readonly type: "function";
|
|
1002
|
+
readonly function: {
|
|
1003
|
+
readonly name: string;
|
|
1004
|
+
readonly description: string;
|
|
1005
|
+
readonly parameters: {
|
|
1006
|
+
readonly [x: string]: unknown;
|
|
1007
|
+
};
|
|
1008
|
+
readonly strict?: boolean | undefined;
|
|
1009
|
+
};
|
|
1010
|
+
readonly cache_control?: {
|
|
1011
|
+
readonly type: "ephemeral";
|
|
1012
|
+
readonly ttl?: string | undefined;
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
}[] | undefined;
|
|
1015
|
+
tool_choice: "auto" | "none" | "required" | {
|
|
1016
|
+
type: "function";
|
|
1017
|
+
function: {
|
|
1018
|
+
name: string;
|
|
1019
|
+
};
|
|
1020
|
+
} | undefined;
|
|
1021
|
+
stream: true;
|
|
1022
|
+
stream_options?: {
|
|
1023
|
+
include_usage: boolean;
|
|
1024
|
+
} | undefined;
|
|
1025
|
+
tool_stream?: boolean | undefined;
|
|
1026
|
+
max_completion_tokens: number | undefined;
|
|
1027
|
+
temperature: number | undefined;
|
|
1028
|
+
top_p: number | undefined;
|
|
1029
|
+
frequency_penalty: number | undefined;
|
|
1030
|
+
presence_penalty: number | undefined;
|
|
1031
|
+
seed: number | undefined;
|
|
1032
|
+
stop: readonly string[] | undefined;
|
|
1033
|
+
} | {
|
|
1034
|
+
prompt_cache_retention?: undefined;
|
|
1035
|
+
prompt_cache_options?: undefined;
|
|
1036
|
+
store?: boolean | undefined;
|
|
1037
|
+
prompt_cache_key?: string | undefined;
|
|
1038
|
+
reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1039
|
+
verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1040
|
+
service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1041
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1042
|
+
metadata?: {
|
|
1043
|
+
readonly [x: string]: string;
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
safety_identifier?: string | undefined;
|
|
1046
|
+
model: string & import("effect/Brand").Brand<"AI.ModelID">;
|
|
1047
|
+
messages: ({
|
|
1048
|
+
readonly role: "system";
|
|
1049
|
+
readonly content: string | readonly ({
|
|
1050
|
+
readonly type: "image_url";
|
|
1051
|
+
readonly image_url: {
|
|
1052
|
+
readonly url: string;
|
|
1053
|
+
};
|
|
1054
|
+
} | {
|
|
1055
|
+
readonly type: "video_url";
|
|
1056
|
+
readonly video_url: {
|
|
1057
|
+
readonly url: string;
|
|
1058
|
+
};
|
|
1059
|
+
} | {
|
|
1060
|
+
readonly type: "file";
|
|
1061
|
+
readonly file: {
|
|
1062
|
+
readonly filename: string;
|
|
1063
|
+
readonly file_data: string;
|
|
1064
|
+
};
|
|
1065
|
+
} | {
|
|
574
1066
|
readonly type: "text";
|
|
575
1067
|
readonly text: string;
|
|
576
1068
|
readonly cache_control?: {
|
|
577
1069
|
readonly type: "ephemeral";
|
|
578
1070
|
readonly ttl?: string | undefined;
|
|
579
1071
|
} | undefined;
|
|
580
|
-
}
|
|
1072
|
+
})[];
|
|
1073
|
+
} | {
|
|
1074
|
+
readonly role: "user";
|
|
1075
|
+
readonly content: string | readonly ({
|
|
581
1076
|
readonly type: "image_url";
|
|
582
1077
|
readonly image_url: {
|
|
583
1078
|
readonly url: string;
|
|
584
1079
|
};
|
|
1080
|
+
} | {
|
|
1081
|
+
readonly type: "video_url";
|
|
1082
|
+
readonly video_url: {
|
|
1083
|
+
readonly url: string;
|
|
1084
|
+
};
|
|
585
1085
|
} | {
|
|
586
1086
|
readonly type: "file";
|
|
587
1087
|
readonly file: {
|
|
588
1088
|
readonly filename: string;
|
|
589
1089
|
readonly file_data: string;
|
|
590
1090
|
};
|
|
1091
|
+
} | {
|
|
1092
|
+
readonly type: "text";
|
|
1093
|
+
readonly text: string;
|
|
1094
|
+
readonly cache_control?: {
|
|
1095
|
+
readonly type: "ephemeral";
|
|
1096
|
+
readonly ttl?: string | undefined;
|
|
1097
|
+
} | undefined;
|
|
591
1098
|
})[];
|
|
592
1099
|
} | {
|
|
593
|
-
readonly role: "
|
|
594
|
-
readonly
|
|
1100
|
+
readonly role: "tool";
|
|
1101
|
+
readonly tool_call_id: string;
|
|
1102
|
+
readonly content: string | readonly {
|
|
1103
|
+
readonly type: "text";
|
|
1104
|
+
readonly text: string;
|
|
1105
|
+
readonly cache_control?: {
|
|
1106
|
+
readonly type: "ephemeral";
|
|
1107
|
+
readonly ttl?: string | undefined;
|
|
1108
|
+
} | undefined;
|
|
1109
|
+
}[];
|
|
1110
|
+
} | {
|
|
1111
|
+
readonly [x: string]: unknown;
|
|
1112
|
+
readonly role: "assistant";
|
|
1113
|
+
readonly content: string | readonly {
|
|
595
1114
|
readonly type: "text";
|
|
596
1115
|
readonly text: string;
|
|
597
1116
|
readonly cache_control?: {
|
|
598
1117
|
readonly type: "ephemeral";
|
|
599
1118
|
readonly ttl?: string | undefined;
|
|
600
1119
|
} | undefined;
|
|
1120
|
+
}[] | null;
|
|
1121
|
+
readonly tool_calls?: readonly {
|
|
1122
|
+
readonly id: string;
|
|
1123
|
+
readonly type: "function";
|
|
1124
|
+
readonly function: {
|
|
1125
|
+
readonly name: string;
|
|
1126
|
+
readonly arguments: string;
|
|
1127
|
+
};
|
|
1128
|
+
readonly extra_content?: {
|
|
1129
|
+
readonly google: {
|
|
1130
|
+
readonly thought_signature: string;
|
|
1131
|
+
};
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
}[] | undefined;
|
|
1134
|
+
readonly reasoning_content?: string | undefined;
|
|
1135
|
+
readonly reasoning?: string | undefined;
|
|
1136
|
+
readonly reasoning_text?: string | undefined;
|
|
1137
|
+
readonly reasoning_details?: unknown;
|
|
1138
|
+
})[];
|
|
1139
|
+
tools: {
|
|
1140
|
+
readonly type: "function";
|
|
1141
|
+
readonly function: {
|
|
1142
|
+
readonly name: string;
|
|
1143
|
+
readonly description: string;
|
|
1144
|
+
readonly parameters: {
|
|
1145
|
+
readonly [x: string]: unknown;
|
|
1146
|
+
};
|
|
1147
|
+
readonly strict?: boolean | undefined;
|
|
1148
|
+
};
|
|
1149
|
+
readonly cache_control?: {
|
|
1150
|
+
readonly type: "ephemeral";
|
|
1151
|
+
readonly ttl?: string | undefined;
|
|
1152
|
+
} | undefined;
|
|
1153
|
+
}[] | undefined;
|
|
1154
|
+
tool_choice: "auto" | "none" | "required" | {
|
|
1155
|
+
type: "function";
|
|
1156
|
+
function: {
|
|
1157
|
+
name: string;
|
|
1158
|
+
};
|
|
1159
|
+
} | undefined;
|
|
1160
|
+
stream: true;
|
|
1161
|
+
stream_options?: {
|
|
1162
|
+
include_usage: boolean;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
tool_stream?: boolean | undefined;
|
|
1165
|
+
max_tokens: number | undefined;
|
|
1166
|
+
temperature: number | undefined;
|
|
1167
|
+
top_p: number | undefined;
|
|
1168
|
+
frequency_penalty: number | undefined;
|
|
1169
|
+
presence_penalty: number | undefined;
|
|
1170
|
+
seed: number | undefined;
|
|
1171
|
+
stop: readonly string[] | undefined;
|
|
1172
|
+
} | {
|
|
1173
|
+
prompt_cache_retention: string;
|
|
1174
|
+
prompt_cache_options?: undefined;
|
|
1175
|
+
store?: boolean | undefined;
|
|
1176
|
+
prompt_cache_key?: string | undefined;
|
|
1177
|
+
reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1178
|
+
verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1179
|
+
service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1180
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1181
|
+
metadata?: {
|
|
1182
|
+
readonly [x: string]: string;
|
|
1183
|
+
} | undefined;
|
|
1184
|
+
safety_identifier?: string | undefined;
|
|
1185
|
+
model: string & import("effect/Brand").Brand<"AI.ModelID">;
|
|
1186
|
+
messages: ({
|
|
1187
|
+
readonly role: "system";
|
|
1188
|
+
readonly content: string | readonly ({
|
|
1189
|
+
readonly type: "image_url";
|
|
1190
|
+
readonly image_url: {
|
|
1191
|
+
readonly url: string;
|
|
1192
|
+
};
|
|
601
1193
|
} | {
|
|
1194
|
+
readonly type: "video_url";
|
|
1195
|
+
readonly video_url: {
|
|
1196
|
+
readonly url: string;
|
|
1197
|
+
};
|
|
1198
|
+
} | {
|
|
1199
|
+
readonly type: "file";
|
|
1200
|
+
readonly file: {
|
|
1201
|
+
readonly filename: string;
|
|
1202
|
+
readonly file_data: string;
|
|
1203
|
+
};
|
|
1204
|
+
} | {
|
|
1205
|
+
readonly type: "text";
|
|
1206
|
+
readonly text: string;
|
|
1207
|
+
readonly cache_control?: {
|
|
1208
|
+
readonly type: "ephemeral";
|
|
1209
|
+
readonly ttl?: string | undefined;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
})[];
|
|
1212
|
+
} | {
|
|
1213
|
+
readonly role: "user";
|
|
1214
|
+
readonly content: string | readonly ({
|
|
602
1215
|
readonly type: "image_url";
|
|
603
1216
|
readonly image_url: {
|
|
604
1217
|
readonly url: string;
|
|
605
1218
|
};
|
|
1219
|
+
} | {
|
|
1220
|
+
readonly type: "video_url";
|
|
1221
|
+
readonly video_url: {
|
|
1222
|
+
readonly url: string;
|
|
1223
|
+
};
|
|
606
1224
|
} | {
|
|
607
1225
|
readonly type: "file";
|
|
608
1226
|
readonly file: {
|
|
609
1227
|
readonly filename: string;
|
|
610
1228
|
readonly file_data: string;
|
|
611
1229
|
};
|
|
1230
|
+
} | {
|
|
1231
|
+
readonly type: "text";
|
|
1232
|
+
readonly text: string;
|
|
1233
|
+
readonly cache_control?: {
|
|
1234
|
+
readonly type: "ephemeral";
|
|
1235
|
+
readonly ttl?: string | undefined;
|
|
1236
|
+
} | undefined;
|
|
612
1237
|
})[];
|
|
613
1238
|
} | {
|
|
614
1239
|
readonly role: "tool";
|
|
@@ -676,7 +1301,7 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
|
|
|
676
1301
|
include_usage: boolean;
|
|
677
1302
|
} | undefined;
|
|
678
1303
|
tool_stream?: boolean | undefined;
|
|
679
|
-
|
|
1304
|
+
max_tokens: number | undefined;
|
|
680
1305
|
temperature: number | undefined;
|
|
681
1306
|
top_p: number | undefined;
|
|
682
1307
|
frequency_penalty: number | undefined;
|
|
@@ -684,51 +1309,72 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
|
|
|
684
1309
|
seed: number | undefined;
|
|
685
1310
|
stop: readonly string[] | undefined;
|
|
686
1311
|
} | {
|
|
1312
|
+
prompt_cache_retention?: undefined;
|
|
1313
|
+
prompt_cache_options: {
|
|
1314
|
+
ttl: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s`;
|
|
1315
|
+
};
|
|
687
1316
|
store?: boolean | undefined;
|
|
688
1317
|
prompt_cache_key?: string | undefined;
|
|
689
1318
|
reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1319
|
+
verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1320
|
+
service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1321
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1322
|
+
metadata?: {
|
|
1323
|
+
readonly [x: string]: string;
|
|
1324
|
+
} | undefined;
|
|
1325
|
+
safety_identifier?: string | undefined;
|
|
690
1326
|
model: string & import("effect/Brand").Brand<"AI.ModelID">;
|
|
691
1327
|
messages: ({
|
|
692
1328
|
readonly role: "system";
|
|
693
1329
|
readonly content: string | readonly ({
|
|
694
|
-
readonly type: "text";
|
|
695
|
-
readonly text: string;
|
|
696
|
-
readonly cache_control?: {
|
|
697
|
-
readonly type: "ephemeral";
|
|
698
|
-
readonly ttl?: string | undefined;
|
|
699
|
-
} | undefined;
|
|
700
|
-
} | {
|
|
701
1330
|
readonly type: "image_url";
|
|
702
1331
|
readonly image_url: {
|
|
703
1332
|
readonly url: string;
|
|
704
1333
|
};
|
|
1334
|
+
} | {
|
|
1335
|
+
readonly type: "video_url";
|
|
1336
|
+
readonly video_url: {
|
|
1337
|
+
readonly url: string;
|
|
1338
|
+
};
|
|
705
1339
|
} | {
|
|
706
1340
|
readonly type: "file";
|
|
707
1341
|
readonly file: {
|
|
708
1342
|
readonly filename: string;
|
|
709
1343
|
readonly file_data: string;
|
|
710
1344
|
};
|
|
711
|
-
}
|
|
712
|
-
} | {
|
|
713
|
-
readonly role: "user";
|
|
714
|
-
readonly content: string | readonly ({
|
|
1345
|
+
} | {
|
|
715
1346
|
readonly type: "text";
|
|
716
1347
|
readonly text: string;
|
|
717
1348
|
readonly cache_control?: {
|
|
718
1349
|
readonly type: "ephemeral";
|
|
719
1350
|
readonly ttl?: string | undefined;
|
|
720
1351
|
} | undefined;
|
|
721
|
-
}
|
|
1352
|
+
})[];
|
|
1353
|
+
} | {
|
|
1354
|
+
readonly role: "user";
|
|
1355
|
+
readonly content: string | readonly ({
|
|
722
1356
|
readonly type: "image_url";
|
|
723
1357
|
readonly image_url: {
|
|
724
1358
|
readonly url: string;
|
|
725
1359
|
};
|
|
1360
|
+
} | {
|
|
1361
|
+
readonly type: "video_url";
|
|
1362
|
+
readonly video_url: {
|
|
1363
|
+
readonly url: string;
|
|
1364
|
+
};
|
|
726
1365
|
} | {
|
|
727
1366
|
readonly type: "file";
|
|
728
1367
|
readonly file: {
|
|
729
1368
|
readonly filename: string;
|
|
730
1369
|
readonly file_data: string;
|
|
731
1370
|
};
|
|
1371
|
+
} | {
|
|
1372
|
+
readonly type: "text";
|
|
1373
|
+
readonly text: string;
|
|
1374
|
+
readonly cache_control?: {
|
|
1375
|
+
readonly type: "ephemeral";
|
|
1376
|
+
readonly ttl?: string | undefined;
|
|
1377
|
+
} | undefined;
|
|
732
1378
|
})[];
|
|
733
1379
|
} | {
|
|
734
1380
|
readonly role: "tool";
|
|
@@ -807,6 +1453,9 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
|
|
|
807
1453
|
export declare const finishEvents: (state: ParserState) => Effect.Effect<({
|
|
808
1454
|
readonly type: "step-start";
|
|
809
1455
|
readonly index: number;
|
|
1456
|
+
} | {
|
|
1457
|
+
readonly type: "raw";
|
|
1458
|
+
readonly data: unknown;
|
|
810
1459
|
} | {
|
|
811
1460
|
readonly type: "text-start";
|
|
812
1461
|
readonly id: string;
|
|
@@ -1031,44 +1680,54 @@ export declare const protocol: Protocol<{
|
|
|
1031
1680
|
readonly messages: readonly ({
|
|
1032
1681
|
readonly role: "system";
|
|
1033
1682
|
readonly content: string | readonly ({
|
|
1034
|
-
readonly type: "text";
|
|
1035
|
-
readonly text: string;
|
|
1036
|
-
readonly cache_control?: {
|
|
1037
|
-
readonly type: "ephemeral";
|
|
1038
|
-
readonly ttl?: string | undefined;
|
|
1039
|
-
} | undefined;
|
|
1040
|
-
} | {
|
|
1041
1683
|
readonly type: "image_url";
|
|
1042
1684
|
readonly image_url: {
|
|
1043
1685
|
readonly url: string;
|
|
1044
1686
|
};
|
|
1687
|
+
} | {
|
|
1688
|
+
readonly type: "video_url";
|
|
1689
|
+
readonly video_url: {
|
|
1690
|
+
readonly url: string;
|
|
1691
|
+
};
|
|
1045
1692
|
} | {
|
|
1046
1693
|
readonly type: "file";
|
|
1047
1694
|
readonly file: {
|
|
1048
1695
|
readonly filename: string;
|
|
1049
1696
|
readonly file_data: string;
|
|
1050
1697
|
};
|
|
1051
|
-
}
|
|
1052
|
-
} | {
|
|
1053
|
-
readonly role: "user";
|
|
1054
|
-
readonly content: string | readonly ({
|
|
1698
|
+
} | {
|
|
1055
1699
|
readonly type: "text";
|
|
1056
1700
|
readonly text: string;
|
|
1057
1701
|
readonly cache_control?: {
|
|
1058
1702
|
readonly type: "ephemeral";
|
|
1059
1703
|
readonly ttl?: string | undefined;
|
|
1060
1704
|
} | undefined;
|
|
1061
|
-
}
|
|
1705
|
+
})[];
|
|
1706
|
+
} | {
|
|
1707
|
+
readonly role: "user";
|
|
1708
|
+
readonly content: string | readonly ({
|
|
1062
1709
|
readonly type: "image_url";
|
|
1063
1710
|
readonly image_url: {
|
|
1064
1711
|
readonly url: string;
|
|
1065
1712
|
};
|
|
1713
|
+
} | {
|
|
1714
|
+
readonly type: "video_url";
|
|
1715
|
+
readonly video_url: {
|
|
1716
|
+
readonly url: string;
|
|
1717
|
+
};
|
|
1066
1718
|
} | {
|
|
1067
1719
|
readonly type: "file";
|
|
1068
1720
|
readonly file: {
|
|
1069
1721
|
readonly filename: string;
|
|
1070
1722
|
readonly file_data: string;
|
|
1071
1723
|
};
|
|
1724
|
+
} | {
|
|
1725
|
+
readonly type: "text";
|
|
1726
|
+
readonly text: string;
|
|
1727
|
+
readonly cache_control?: {
|
|
1728
|
+
readonly type: "ephemeral";
|
|
1729
|
+
readonly ttl?: string | undefined;
|
|
1730
|
+
} | undefined;
|
|
1072
1731
|
})[];
|
|
1073
1732
|
} | {
|
|
1074
1733
|
readonly role: "tool";
|
|
@@ -1137,7 +1796,18 @@ export declare const protocol: Protocol<{
|
|
|
1137
1796
|
} | undefined;
|
|
1138
1797
|
readonly store?: boolean | undefined;
|
|
1139
1798
|
readonly prompt_cache_key?: string | undefined;
|
|
1799
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
1800
|
+
readonly prompt_cache_options?: {
|
|
1801
|
+
readonly ttl?: string | undefined;
|
|
1802
|
+
} | undefined;
|
|
1140
1803
|
readonly reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
1804
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1805
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
1806
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
1807
|
+
readonly metadata?: {
|
|
1808
|
+
readonly [x: string]: string;
|
|
1809
|
+
} | undefined;
|
|
1810
|
+
readonly safety_identifier?: string | undefined;
|
|
1141
1811
|
readonly tool_stream?: boolean | undefined;
|
|
1142
1812
|
readonly max_completion_tokens?: number | undefined;
|
|
1143
1813
|
readonly max_tokens?: number | undefined;
|
|
@@ -1226,44 +1896,54 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
1226
1896
|
readonly messages: readonly ({
|
|
1227
1897
|
readonly role: "system";
|
|
1228
1898
|
readonly content: string | readonly ({
|
|
1229
|
-
readonly type: "text";
|
|
1230
|
-
readonly text: string;
|
|
1231
|
-
readonly cache_control?: {
|
|
1232
|
-
readonly type: "ephemeral";
|
|
1233
|
-
readonly ttl?: string | undefined;
|
|
1234
|
-
} | undefined;
|
|
1235
|
-
} | {
|
|
1236
1899
|
readonly type: "image_url";
|
|
1237
1900
|
readonly image_url: {
|
|
1238
1901
|
readonly url: string;
|
|
1239
1902
|
};
|
|
1903
|
+
} | {
|
|
1904
|
+
readonly type: "video_url";
|
|
1905
|
+
readonly video_url: {
|
|
1906
|
+
readonly url: string;
|
|
1907
|
+
};
|
|
1240
1908
|
} | {
|
|
1241
1909
|
readonly type: "file";
|
|
1242
1910
|
readonly file: {
|
|
1243
1911
|
readonly filename: string;
|
|
1244
1912
|
readonly file_data: string;
|
|
1245
1913
|
};
|
|
1246
|
-
}
|
|
1247
|
-
} | {
|
|
1248
|
-
readonly role: "user";
|
|
1249
|
-
readonly content: string | readonly ({
|
|
1914
|
+
} | {
|
|
1250
1915
|
readonly type: "text";
|
|
1251
1916
|
readonly text: string;
|
|
1252
1917
|
readonly cache_control?: {
|
|
1253
1918
|
readonly type: "ephemeral";
|
|
1254
1919
|
readonly ttl?: string | undefined;
|
|
1255
1920
|
} | undefined;
|
|
1256
|
-
}
|
|
1921
|
+
})[];
|
|
1922
|
+
} | {
|
|
1923
|
+
readonly role: "user";
|
|
1924
|
+
readonly content: string | readonly ({
|
|
1257
1925
|
readonly type: "image_url";
|
|
1258
1926
|
readonly image_url: {
|
|
1259
1927
|
readonly url: string;
|
|
1260
1928
|
};
|
|
1929
|
+
} | {
|
|
1930
|
+
readonly type: "video_url";
|
|
1931
|
+
readonly video_url: {
|
|
1932
|
+
readonly url: string;
|
|
1933
|
+
};
|
|
1261
1934
|
} | {
|
|
1262
1935
|
readonly type: "file";
|
|
1263
1936
|
readonly file: {
|
|
1264
1937
|
readonly filename: string;
|
|
1265
1938
|
readonly file_data: string;
|
|
1266
1939
|
};
|
|
1940
|
+
} | {
|
|
1941
|
+
readonly type: "text";
|
|
1942
|
+
readonly text: string;
|
|
1943
|
+
readonly cache_control?: {
|
|
1944
|
+
readonly type: "ephemeral";
|
|
1945
|
+
readonly ttl?: string | undefined;
|
|
1946
|
+
} | undefined;
|
|
1267
1947
|
})[];
|
|
1268
1948
|
} | {
|
|
1269
1949
|
readonly role: "tool";
|
|
@@ -1332,7 +2012,18 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
1332
2012
|
} | undefined;
|
|
1333
2013
|
readonly store?: boolean | undefined;
|
|
1334
2014
|
readonly prompt_cache_key?: string | undefined;
|
|
2015
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
2016
|
+
readonly prompt_cache_options?: {
|
|
2017
|
+
readonly ttl?: string | undefined;
|
|
2018
|
+
} | undefined;
|
|
1335
2019
|
readonly reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
2020
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
2021
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
2022
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
2023
|
+
readonly metadata?: {
|
|
2024
|
+
readonly [x: string]: string;
|
|
2025
|
+
} | undefined;
|
|
2026
|
+
readonly safety_identifier?: string | undefined;
|
|
1336
2027
|
readonly tool_stream?: boolean | undefined;
|
|
1337
2028
|
readonly max_completion_tokens?: number | undefined;
|
|
1338
2029
|
readonly max_tokens?: number | undefined;
|
|
@@ -1348,44 +2039,54 @@ export declare const route: Route<{
|
|
|
1348
2039
|
readonly messages: readonly ({
|
|
1349
2040
|
readonly role: "system";
|
|
1350
2041
|
readonly content: string | readonly ({
|
|
1351
|
-
readonly type: "text";
|
|
1352
|
-
readonly text: string;
|
|
1353
|
-
readonly cache_control?: {
|
|
1354
|
-
readonly type: "ephemeral";
|
|
1355
|
-
readonly ttl?: string | undefined;
|
|
1356
|
-
} | undefined;
|
|
1357
|
-
} | {
|
|
1358
2042
|
readonly type: "image_url";
|
|
1359
2043
|
readonly image_url: {
|
|
1360
2044
|
readonly url: string;
|
|
1361
2045
|
};
|
|
2046
|
+
} | {
|
|
2047
|
+
readonly type: "video_url";
|
|
2048
|
+
readonly video_url: {
|
|
2049
|
+
readonly url: string;
|
|
2050
|
+
};
|
|
1362
2051
|
} | {
|
|
1363
2052
|
readonly type: "file";
|
|
1364
2053
|
readonly file: {
|
|
1365
2054
|
readonly filename: string;
|
|
1366
2055
|
readonly file_data: string;
|
|
1367
2056
|
};
|
|
1368
|
-
}
|
|
1369
|
-
} | {
|
|
1370
|
-
readonly role: "user";
|
|
1371
|
-
readonly content: string | readonly ({
|
|
2057
|
+
} | {
|
|
1372
2058
|
readonly type: "text";
|
|
1373
2059
|
readonly text: string;
|
|
1374
2060
|
readonly cache_control?: {
|
|
1375
2061
|
readonly type: "ephemeral";
|
|
1376
2062
|
readonly ttl?: string | undefined;
|
|
1377
2063
|
} | undefined;
|
|
1378
|
-
}
|
|
2064
|
+
})[];
|
|
2065
|
+
} | {
|
|
2066
|
+
readonly role: "user";
|
|
2067
|
+
readonly content: string | readonly ({
|
|
1379
2068
|
readonly type: "image_url";
|
|
1380
2069
|
readonly image_url: {
|
|
1381
2070
|
readonly url: string;
|
|
1382
2071
|
};
|
|
2072
|
+
} | {
|
|
2073
|
+
readonly type: "video_url";
|
|
2074
|
+
readonly video_url: {
|
|
2075
|
+
readonly url: string;
|
|
2076
|
+
};
|
|
1383
2077
|
} | {
|
|
1384
2078
|
readonly type: "file";
|
|
1385
2079
|
readonly file: {
|
|
1386
2080
|
readonly filename: string;
|
|
1387
2081
|
readonly file_data: string;
|
|
1388
2082
|
};
|
|
2083
|
+
} | {
|
|
2084
|
+
readonly type: "text";
|
|
2085
|
+
readonly text: string;
|
|
2086
|
+
readonly cache_control?: {
|
|
2087
|
+
readonly type: "ephemeral";
|
|
2088
|
+
readonly ttl?: string | undefined;
|
|
2089
|
+
} | undefined;
|
|
1389
2090
|
})[];
|
|
1390
2091
|
} | {
|
|
1391
2092
|
readonly role: "tool";
|
|
@@ -1454,7 +2155,18 @@ export declare const route: Route<{
|
|
|
1454
2155
|
} | undefined;
|
|
1455
2156
|
readonly store?: boolean | undefined;
|
|
1456
2157
|
readonly prompt_cache_key?: string | undefined;
|
|
2158
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
2159
|
+
readonly prompt_cache_options?: {
|
|
2160
|
+
readonly ttl?: string | undefined;
|
|
2161
|
+
} | undefined;
|
|
1457
2162
|
readonly reasoning_effort?: OpenResponsesOptions.ReasoningEffort | undefined;
|
|
2163
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
2164
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
2165
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
2166
|
+
readonly metadata?: {
|
|
2167
|
+
readonly [x: string]: string;
|
|
2168
|
+
} | undefined;
|
|
2169
|
+
readonly safety_identifier?: string | undefined;
|
|
1458
2170
|
readonly tool_stream?: boolean | undefined;
|
|
1459
2171
|
readonly max_completion_tokens?: number | undefined;
|
|
1460
2172
|
readonly max_tokens?: number | undefined;
|