import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { ChatCompletionMessageToolCall, ChatCompletionMessageToolCall$Outbound } from "./chatcompletionmessagetoolcall.js"; import { ChatCompletionMessageToolCallFunction, ChatCompletionMessageToolCallFunction$Outbound } from "./chatcompletionmessagetoolcallfunction.js"; import { ChatMessageResponseContent, ChatMessageResponseContent$Outbound } from "./chatmessageresponsecontent.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The role of the author of this message. */ export declare const ChatCompletionResponseMessageRole: { readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; }; /** * The role of the author of this message. */ export type ChatCompletionResponseMessageRole = ClosedEnum; /** * The contents of the message. */ export type ChatCompletionResponseMessageContent = string | Array; export type ChatCompletionResponseMessage = { /** * The role of the author of this message. */ role: ChatCompletionResponseMessageRole; /** * The contents of the message. */ content?: string | Array | null | undefined; /** * The tool calls generated by the model, such as function calls. */ toolCalls?: Array | undefined; /** * An identifier for the tool call. */ toolCallId?: string | undefined; function?: ChatCompletionMessageToolCallFunction | undefined; /** * Unused field for OpenAI compatibility. */ name?: string | null | undefined; }; /** @internal */ export declare const ChatCompletionResponseMessageRole$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatCompletionResponseMessageRole$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 ChatCompletionResponseMessageRole$ { /** @deprecated use `ChatCompletionResponseMessageRole$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; }>; /** @deprecated use `ChatCompletionResponseMessageRole$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; }>; } /** @internal */ export declare const ChatCompletionResponseMessageContent$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionResponseMessageContent$Outbound = string | Array; /** @internal */ export declare const ChatCompletionResponseMessageContent$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 ChatCompletionResponseMessageContent$ { /** @deprecated use `ChatCompletionResponseMessageContent$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionResponseMessageContent$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionResponseMessageContent$Outbound` instead. */ type Outbound = ChatCompletionResponseMessageContent$Outbound; } export declare function chatCompletionResponseMessageContentToJSON(chatCompletionResponseMessageContent: ChatCompletionResponseMessageContent): string; export declare function chatCompletionResponseMessageContentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ChatCompletionResponseMessage$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionResponseMessage$Outbound = { role: string; content?: string | Array | null | undefined; tool_calls?: Array | undefined; tool_call_id?: string | undefined; function?: ChatCompletionMessageToolCallFunction$Outbound | undefined; name?: string | null | undefined; }; /** @internal */ export declare const ChatCompletionResponseMessage$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 ChatCompletionResponseMessage$ { /** @deprecated use `ChatCompletionResponseMessage$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionResponseMessage$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionResponseMessage$Outbound` instead. */ type Outbound = ChatCompletionResponseMessage$Outbound; } export declare function chatCompletionResponseMessageToJSON(chatCompletionResponseMessage: ChatCompletionResponseMessage): string; export declare function chatCompletionResponseMessageFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletionresponsemessage.d.ts.map