import * as z from "zod"; import type { SseErrorFrame, SseFrame } from "../../utils/stream"; import { CacheControlSchema as ChatCompletionsCacheControlSchema, type CacheControl as ChatCompletionsCacheControl, ReasoningEffortSchema as ChatCompletionsReasoningEffortSchema, type ReasoningEffort as ChatCompletionsReasoningEffort, ReasoningConfigSchema as ChatCompletionsReasoningConfigSchema, type ReasoningConfig as ChatCompletionsReasoningConfig, ServiceTierSchema as ChatCompletionsServiceTierSchema, type ServiceTier as ChatCompletionsServiceTier, ProviderMetadataSchema as ChatCompletionsProviderMetadataSchema, type ProviderMetadata as ChatCompletionsProviderMetadata, ContentPartAudioSchema as ChatCompletionsContentPartAudioSchema, type ContentPartAudio as ChatCompletionsContentPartAudio } from "../shared/schema"; export { ChatCompletionsCacheControlSchema, type ChatCompletionsCacheControl, ChatCompletionsReasoningEffortSchema, type ChatCompletionsReasoningEffort, ChatCompletionsReasoningConfigSchema, type ChatCompletionsReasoningConfig, ChatCompletionsServiceTierSchema, type ChatCompletionsServiceTier, ChatCompletionsProviderMetadataSchema, type ChatCompletionsProviderMetadata, ChatCompletionsContentPartAudioSchema, type ChatCompletionsContentPartAudio, }; export declare const ChatCompletionsContentPartTextSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; export type ChatCompletionsContentPartText = z.infer; export declare const ChatCompletionsContentPartImageSchema: z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; export declare const ChatCompletionsContentPartFileSchema: z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ data: z.ZodString; media_type: z.ZodString; filename: z.ZodOptional>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; export declare const ChatCompletionsContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ data: z.ZodString; media_type: z.ZodString; filename: z.ZodOptional>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"input_audio">; input_audio: z.ZodObject<{ data: z.ZodString; format: z.ZodEnum<{ flac: "flac"; m4a: "m4a"; mp3: "mp3"; mp4: "mp4"; mpeg: "mpeg"; mpga: "mpga"; ogg: "ogg"; pcm: "pcm"; wav: "wav"; webm: "webm"; "x-aac": "x-aac"; }>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">; export type ChatCompletionsContentPart = z.infer; export declare const ChatCompletionsToolCallSchema: z.ZodObject<{ type: z.ZodLiteral<"function">; id: z.ZodString; function: z.ZodObject<{ arguments: z.ZodString; name: z.ZodString; }, z.core.$strip>; extra_content: z.ZodOptional>>>; }, z.core.$strip>; export type ChatCompletionsToolCall = z.infer; export declare const ChatCompletionsSystemMessageSchema: z.ZodObject<{ role: z.ZodLiteral<"system">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; export type ChatCompletionsSystemMessage = z.infer; export declare const ChatCompletionsDeveloperMessageSchema: z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; export type ChatCompletionsDeveloperMessage = z.infer; export declare const ChatCompletionsUserMessageSchema: z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ data: z.ZodString; media_type: z.ZodString; filename: z.ZodOptional>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"input_audio">; input_audio: z.ZodObject<{ data: z.ZodString; format: z.ZodEnum<{ flac: "flac"; m4a: "m4a"; mp3: "mp3"; mp4: "mp4"; mpeg: "mpeg"; mpga: "mpga"; ogg: "ogg"; pcm: "pcm"; wav: "wav"; webm: "webm"; "x-aac": "x-aac"; }>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; export type ChatCompletionsUserMessage = z.infer; export declare const ChatCompletionsReasoningDetailSchema: z.ZodObject<{ id: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>; export type ChatCompletionsReasoningDetail = z.infer; export declare const ChatCompletionsAssistantMessageSchema: z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>; name: z.ZodOptional>; tool_calls: z.ZodOptional; id: z.ZodString; function: z.ZodObject<{ arguments: z.ZodString; name: z.ZodString; }, z.core.$strip>; extra_content: z.ZodOptional>>>; }, z.core.$strip>>>>; reasoning: z.ZodOptional>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>; extra_content: z.ZodOptional>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; export type ChatCompletionsAssistantMessage = z.infer; export declare const ChatCompletionsToolMessageSchema: z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; tool_call_id: z.ZodString; }, z.core.$strip>; export type ChatCompletionsToolMessage = z.infer; export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodLiteral<"system">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ data: z.ZodString; media_type: z.ZodString; filename: z.ZodOptional>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"input_audio">; input_audio: z.ZodObject<{ data: z.ZodString; format: z.ZodEnum<{ flac: "flac"; m4a: "m4a"; mp3: "mp3"; mp4: "mp4"; mpeg: "mpeg"; mpga: "mpga"; ogg: "ogg"; pcm: "pcm"; wav: "wav"; webm: "webm"; "x-aac": "x-aac"; }>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>; name: z.ZodOptional>; tool_calls: z.ZodOptional; id: z.ZodString; function: z.ZodObject<{ arguments: z.ZodString; name: z.ZodString; }, z.core.$strip>; extra_content: z.ZodOptional>>>; }, z.core.$strip>>>>; reasoning: z.ZodOptional>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>; extra_content: z.ZodOptional>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; tool_call_id: z.ZodString; }, z.core.$strip>], "role">; export type ChatCompletionsMessage = z.infer; export declare const ChatCompletionsFunctionToolSchema: z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; parameters: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type ChatCompletionsFunctionTool = z.infer; export declare const ChatCompletionsHostedToolSchema: z.ZodObject<{ type: z.ZodString; }, z.core.$loose>; export type ChatCompletionsHostedTool = z.infer; export declare const ChatCompletionsToolSchema: z.ZodUnion; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; parameters: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodString; }, z.core.$loose>]>; export type ChatCompletionsTool = z.infer; export declare const ChatCompletionsToolChoiceSchema: z.ZodUnion, z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"allowed_tools">; allowed_tools: z.ZodObject<{ mode: z.ZodEnum<{ auto: "auto"; required: "required"; }>; tools: z.ZodArray; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>], "type">]>; export type ChatCompletionsToolChoice = z.infer; export declare const ChatCompletionsResponseFormatJsonSchema: z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; schema: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export declare const ChatCompletionsResponseFormatTextSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; }, z.core.$strip>; export declare const ChatCompletionsResponseFormatSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; schema: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"text">; }, z.core.$strip>], "type">; export type ChatCompletionsResponseFormat = z.infer; export declare const ChatCompletionsMetadataSchema: z.ZodRecord; export type ChatCompletionsMetadata = z.infer; declare const ChatCompletionsInputsSchema: z.ZodObject<{ messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ data: z.ZodString; media_type: z.ZodString; filename: z.ZodOptional>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"input_audio">; input_audio: z.ZodObject<{ data: z.ZodString; format: z.ZodEnum<{ flac: "flac"; m4a: "m4a"; mp3: "mp3"; mp4: "mp4"; mpeg: "mpeg"; mpga: "mpga"; ogg: "ogg"; pcm: "pcm"; wav: "wav"; webm: "webm"; "x-aac": "x-aac"; }>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>; name: z.ZodOptional>; tool_calls: z.ZodOptional; id: z.ZodString; function: z.ZodObject<{ arguments: z.ZodString; name: z.ZodString; }, z.core.$strip>; extra_content: z.ZodOptional>>>; }, z.core.$strip>>>>; reasoning: z.ZodOptional>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>; extra_content: z.ZodOptional>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; tool_call_id: z.ZodString; }, z.core.$strip>], "role">>; tools: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; parameters: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodString; }, z.core.$loose>]>>>; tool_choice: z.ZodOptional, z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"allowed_tools">; allowed_tools: z.ZodObject<{ mode: z.ZodEnum<{ auto: "auto"; required: "required"; }>; tools: z.ZodArray; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>], "type">]>>; temperature: z.ZodOptional; max_tokens: z.ZodOptional; max_completion_tokens: z.ZodOptional; frequency_penalty: z.ZodOptional; presence_penalty: z.ZodOptional; seed: z.ZodOptional; stop: z.ZodOptional]>>; top_p: z.ZodOptional; metadata: z.ZodOptional>; response_format: z.ZodOptional; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; schema: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"text">; }, z.core.$strip>], "type">>; reasoning_effort: z.ZodOptional>>; service_tier: z.ZodOptional>; prompt_cache_key: z.ZodOptional; prompt_cache_retention: z.ZodOptional>; parallel_tool_calls: z.ZodOptional; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; reasoning: z.ZodOptional; effort: z.ZodOptional>; max_tokens: z.ZodOptional; exclude: z.ZodOptional; summary: z.ZodOptional>; }, z.core.$strip>>>; extra_body: z.ZodOptional>>; }, z.core.$strip>; export type ChatCompletionsInputs = z.infer; export declare const ChatCompletionsBodySchema: z.ZodObject<{ messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ data: z.ZodString; media_type: z.ZodString; filename: z.ZodOptional>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"input_audio">; input_audio: z.ZodObject<{ data: z.ZodString; format: z.ZodEnum<{ flac: "flac"; m4a: "m4a"; mp3: "mp3"; mp4: "mp4"; mpeg: "mpeg"; mpga: "mpga"; ogg: "ogg"; pcm: "pcm"; wav: "wav"; webm: "webm"; "x-aac": "x-aac"; }>; }, z.core.$strip>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">>]>; name: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>; name: z.ZodOptional>; tool_calls: z.ZodOptional; id: z.ZodString; function: z.ZodObject<{ arguments: z.ZodString; name: z.ZodString; }, z.core.$strip>; extra_content: z.ZodOptional>>>; }, z.core.$strip>>>>; reasoning: z.ZodOptional>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>; extra_content: z.ZodOptional>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>; tool_call_id: z.ZodString; }, z.core.$strip>], "role">>; tools: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; parameters: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodString; }, z.core.$loose>]>>>; tool_choice: z.ZodOptional, z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"allowed_tools">; allowed_tools: z.ZodObject<{ mode: z.ZodEnum<{ auto: "auto"; required: "required"; }>; tools: z.ZodArray; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>], "type">]>>; temperature: z.ZodOptional; max_tokens: z.ZodOptional; max_completion_tokens: z.ZodOptional; frequency_penalty: z.ZodOptional; presence_penalty: z.ZodOptional; seed: z.ZodOptional; stop: z.ZodOptional]>>; top_p: z.ZodOptional; metadata: z.ZodOptional>; response_format: z.ZodOptional; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; schema: z.ZodRecord; strict: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"text">; }, z.core.$strip>], "type">>; reasoning_effort: z.ZodOptional>>; service_tier: z.ZodOptional>; prompt_cache_key: z.ZodOptional; prompt_cache_retention: z.ZodOptional>; parallel_tool_calls: z.ZodOptional; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; reasoning: z.ZodOptional; effort: z.ZodOptional>; max_tokens: z.ZodOptional; exclude: z.ZodOptional; summary: z.ZodOptional>; }, z.core.$strip>>>; extra_body: z.ZodOptional>>; model: z.ZodString; stream: z.ZodOptional; trace: z.ZodOptional>, z.ZodEnum<{ full: "full"; off: "off"; recommended: "recommended"; required: "required"; }>]>>; }, z.core.$loose>; export type ChatCompletionsBody = z.infer; export declare const ChatCompletionsFinishReasonSchema: z.ZodEnum<{ content_filter: "content_filter"; length: "length"; stop: "stop"; tool_calls: "tool_calls"; }>; export type ChatCompletionsFinishReason = z.infer; export declare const ChatCompletionsChoiceSchema: z.ZodObject<{ index: z.ZodInt; message: z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>; name: z.ZodOptional>; tool_calls: z.ZodOptional; id: z.ZodString; function: z.ZodObject<{ arguments: z.ZodString; name: z.ZodString; }, z.core.$strip>; extra_content: z.ZodOptional>>>; }, z.core.$strip>>>>; reasoning: z.ZodOptional>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>; extra_content: z.ZodOptional>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; finish_reason: z.ZodEnum<{ content_filter: "content_filter"; length: "length"; stop: "stop"; tool_calls: "tool_calls"; }>; logprobs: z.ZodOptional; }, z.core.$strip>; export type ChatCompletionsChoice = z.infer; export declare const ChatCompletionsUsageSchema: z.ZodObject<{ prompt_tokens: z.ZodOptional; completion_tokens: z.ZodOptional; total_tokens: z.ZodOptional; completion_tokens_details: z.ZodOptional; }, z.core.$strip>>; prompt_tokens_details: z.ZodOptional; cache_write_tokens: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type ChatCompletionsUsage = z.infer; export declare const ChatCompletionsSchema: z.ZodObject<{ id: z.ZodString; object: z.ZodLiteral<"chat.completion">; created: z.ZodInt; model: z.ZodString; choices: z.ZodArray; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>; name: z.ZodOptional>; tool_calls: z.ZodOptional; id: z.ZodString; function: z.ZodObject<{ arguments: z.ZodString; name: z.ZodString; }, z.core.$strip>; extra_content: z.ZodOptional>>>; }, z.core.$strip>>>>; reasoning: z.ZodOptional>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>; extra_content: z.ZodOptional>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; finish_reason: z.ZodEnum<{ content_filter: "content_filter"; length: "length"; stop: "stop"; tool_calls: "tool_calls"; }>; logprobs: z.ZodOptional; }, z.core.$strip>>; usage: z.ZodNullable; completion_tokens: z.ZodOptional; total_tokens: z.ZodOptional; completion_tokens_details: z.ZodOptional; }, z.core.$strip>>; prompt_tokens_details: z.ZodOptional; cache_write_tokens: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; service_tier: z.ZodOptional>; provider_metadata: z.ZodOptional>>; }, z.core.$strip>; export type ChatCompletions = z.infer; export declare const ChatCompletionsToolCallDeltaSchema: z.ZodObject<{ type: z.ZodOptional>; id: z.ZodOptional; function: z.ZodOptional>; extra_content: z.ZodOptional>>>>; index: z.ZodInt; }, z.core.$strip>; export type ChatCompletionsToolCallDelta = z.infer; export declare const ChatCompletionsAssistantMessageDeltaSchema: z.ZodObject<{ role: z.ZodOptional>; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>>; name: z.ZodOptional>>; reasoning: z.ZodOptional>>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>>; extra_content: z.ZodOptional>>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>>; tool_calls: z.ZodOptional>; id: z.ZodOptional; function: z.ZodOptional>; extra_content: z.ZodOptional>>>>; index: z.ZodInt; }, z.core.$strip>>>; }, z.core.$strip>; export type ChatCompletionsAssistantMessageDelta = z.infer; export declare const ChatCompletionsChoiceDeltaSchema: z.ZodObject<{ index: z.ZodInt; delta: z.ZodObject<{ role: z.ZodOptional>; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>>; name: z.ZodOptional>>; reasoning: z.ZodOptional>>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>>; extra_content: z.ZodOptional>>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>>; tool_calls: z.ZodOptional>; id: z.ZodOptional; function: z.ZodOptional>; extra_content: z.ZodOptional>>>>; index: z.ZodInt; }, z.core.$strip>>>; }, z.core.$strip>; finish_reason: z.ZodNullable>; logprobs: z.ZodOptional; }, z.core.$strip>; export type ChatCompletionsChoiceDelta = z.infer; export declare const ChatCompletionsChunkSchema: z.ZodObject<{ id: z.ZodString; object: z.ZodLiteral<"chat.completion.chunk">; created: z.ZodInt; model: z.ZodString; choices: z.ZodArray>; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>>; name: z.ZodOptional>>; reasoning: z.ZodOptional>>; reasoning_details: z.ZodOptional>; index: z.ZodInt; type: z.ZodString; text: z.ZodOptional>; signature: z.ZodOptional>; data: z.ZodOptional>; summary: z.ZodOptional>; format: z.ZodOptional>; }, z.core.$strip>>>>>; extra_content: z.ZodOptional>>>>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>>; tool_calls: z.ZodOptional>; id: z.ZodOptional; function: z.ZodOptional>; extra_content: z.ZodOptional>>>>; index: z.ZodInt; }, z.core.$strip>>>; }, z.core.$strip>; finish_reason: z.ZodNullable>; logprobs: z.ZodOptional; }, z.core.$strip>>; usage: z.ZodNullable; completion_tokens: z.ZodOptional; total_tokens: z.ZodOptional; completion_tokens_details: z.ZodOptional; }, z.core.$strip>>; prompt_tokens_details: z.ZodOptional; cache_write_tokens: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; service_tier: z.ZodOptional>; provider_metadata: z.ZodOptional>>; }, z.core.$strip>; export type ChatCompletionsChunk = z.infer; export type ChatCompletionsStream = ReadableStream | SseErrorFrame>;