import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { OutputText, OutputText$Outbound } from "./outputtext.js"; import { Refusal, Refusal$Outbound } from "./refusal.js"; export type OutputMessageContent = (OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; }); /** * The processing status of this message (in_progress, completed, or incomplete). */ export declare const OutputMessageStatus: { readonly InProgress: "in_progress"; readonly Completed: "completed"; readonly Incomplete: "incomplete"; }; /** * The processing status of this message (in_progress, completed, or incomplete). */ export type OutputMessageStatus = ClosedEnum; /** * Labels an assistant message as intermediate commentary or the final answer. */ export declare const Phase: { readonly Commentary: "commentary"; readonly FinalAnswer: "final_answer"; }; /** * Labels an assistant message as intermediate commentary or the final answer. */ export type Phase = ClosedEnum; /** * Output message item: An assistant message containing generated text content or refusal content. */ export type OutputMessage = { /** * The item type identifier for message outputs. */ type: "message"; /** * The unique identifier for this output message. */ id: string; /** * The role of the message sender. Always 'assistant' for model-generated messages. */ role: "assistant"; /** * Array of content items in the assistant's response. Can contain text outputs or refusal messages. */ content: Array<(OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; })>; /** * The processing status of this message (in_progress, completed, or incomplete). */ status: OutputMessageStatus; /** * Labels an assistant message as intermediate commentary or the final answer. */ phase?: Phase | undefined; }; /** @internal */ export declare const OutputMessageContent$inboundSchema: z.ZodType; /** @internal */ export type OutputMessageContent$Outbound = (OutputText$Outbound & { type: "output_text"; }) | (Refusal$Outbound & { type: "refusal"; }); /** @internal */ export declare const OutputMessageContent$outboundSchema: z.ZodType; export declare function outputMessageContentToJSON(outputMessageContent: OutputMessageContent): string; export declare function outputMessageContentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputMessageStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputMessageStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Phase$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Phase$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputMessage$inboundSchema: z.ZodType; /** @internal */ export type OutputMessage$Outbound = { type: "message"; id: string; role: "assistant"; content: Array<(OutputText$Outbound & { type: "output_text"; }) | (Refusal$Outbound & { type: "refusal"; })>; status: string; phase?: string | undefined; }; /** @internal */ export declare const OutputMessage$outboundSchema: z.ZodType; export declare function outputMessageToJSON(outputMessage: OutputMessage): string; export declare function outputMessageFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputmessage.d.ts.map