import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { ChatCompletionMessageToolCallChunk, ChatCompletionMessageToolCallChunk$Outbound } from "./chatcompletionmessagetoolcallchunk.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The role of the author of this message. */ export declare const ChatCompletionStreamResponseDeltaRole: { readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; readonly Tool: "tool"; }; /** * The role of the author of this message. */ export type ChatCompletionStreamResponseDeltaRole = ClosedEnum; export type ChatCompletionStreamResponseDelta = { /** * The role of the author of this message. */ role?: ChatCompletionStreamResponseDeltaRole | undefined; /** * The contents of the chunk message. */ content?: string | null | undefined; toolCalls?: Array | undefined; /** * The name of the function to call. */ function?: string | undefined; }; /** @internal */ export declare const ChatCompletionStreamResponseDeltaRole$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatCompletionStreamResponseDeltaRole$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatCompletionStreamResponseDeltaRole$ { /** @deprecated use `ChatCompletionStreamResponseDeltaRole$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; readonly Tool: "tool"; }>; /** @deprecated use `ChatCompletionStreamResponseDeltaRole$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; readonly Tool: "tool"; }>; } /** @internal */ export declare const ChatCompletionStreamResponseDelta$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionStreamResponseDelta$Outbound = { role?: string | undefined; content?: string | null | undefined; tool_calls?: Array | undefined; function?: string | undefined; }; /** @internal */ export declare const ChatCompletionStreamResponseDelta$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatCompletionStreamResponseDelta$ { /** @deprecated use `ChatCompletionStreamResponseDelta$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionStreamResponseDelta$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionStreamResponseDelta$Outbound` instead. */ type Outbound = ChatCompletionStreamResponseDelta$Outbound; } export declare function chatCompletionStreamResponseDeltaToJSON(chatCompletionStreamResponseDelta: ChatCompletionStreamResponseDelta): string; export declare function chatCompletionStreamResponseDeltaFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletionstreamresponsedelta.d.ts.map