/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 72d548a2240a
 */
import * as z from "zod/v4";
import { smartUnion } from "../../types/smartUnion.js";
import { ContentChunk$outboundSchema, } from "./contentchunk.js";
/** @internal */
export const UserMessageContent$outboundSchema = smartUnion([z.string(), z.array(ContentChunk$outboundSchema)]);
export function userMessageContentToJSON(userMessageContent) {
    return JSON.stringify(UserMessageContent$outboundSchema.parse(userMessageContent));
}
/** @internal */
export const UserMessage$outboundSchema = z.object({
    role: z.literal("user"),
    content: z.nullable(smartUnion([z.string(), z.array(ContentChunk$outboundSchema)])),
});
export function userMessageToJSON(userMessage) {
    return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
}
//# sourceMappingURL=usermessage.js.map