import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { ChatMessageContent, ChatMessageContent$Outbound } from "./chatmessagecontent.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The role of the messages author. One of `system`, `user`, or `assistant`. */ export declare const Role: { readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; }; /** * The role of the messages author. One of `system`, `user`, or `assistant`. */ export type Role = ClosedEnum; export type Content = string | Array; export type ChatCompletionRequestMessage = { /** * The role of the messages author. One of `system`, `user`, or `assistant`. */ role: Role; content: string | Array | null; /** * The name of the author of this message. May contain a-z, A-Z, 0-9, and underscores, with a maximum length of 64 characters. */ name?: string | undefined; }; /** @internal */ export declare const Role$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Role$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 Role$ { /** @deprecated use `Role$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; }>; /** @deprecated use `Role$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly System: "system"; readonly User: "user"; readonly Assistant: "assistant"; }>; } /** @internal */ export declare const Content$inboundSchema: z.ZodType; /** @internal */ export type Content$Outbound = string | Array; /** @internal */ export declare const Content$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 Content$ { /** @deprecated use `Content$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Content$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Content$Outbound` instead. */ type Outbound = Content$Outbound; } export declare function contentToJSON(content: Content): string; export declare function contentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ChatCompletionRequestMessage$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionRequestMessage$Outbound = { role: string; content: string | Array | null; name?: string | undefined; }; /** @internal */ export declare const ChatCompletionRequestMessage$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 ChatCompletionRequestMessage$ { /** @deprecated use `ChatCompletionRequestMessage$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionRequestMessage$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionRequestMessage$Outbound` instead. */ type Outbound = ChatCompletionRequestMessage$Outbound; } export declare function chatCompletionRequestMessageToJSON(chatCompletionRequestMessage: ChatCompletionRequestMessage): string; export declare function chatCompletionRequestMessageFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletionrequestmessage.d.ts.map