/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 1fc1b0454261
 */
import * as z from "zod/v4";
import { smartUnion } from "../../types/smartUnion.js";
import { SystemMessageContentChunks$outboundSchema, } from "./systemmessagecontentchunks.js";
/** @internal */
export const SystemMessageContent$outboundSchema = smartUnion([
    z.string(),
    z.array(SystemMessageContentChunks$outboundSchema),
]);
export function systemMessageContentToJSON(systemMessageContent) {
    return JSON.stringify(SystemMessageContent$outboundSchema.parse(systemMessageContent));
}
/** @internal */
export const SystemMessage$outboundSchema = z.object({
    role: z.literal("system"),
    content: smartUnion([
        z.string(),
        z.array(SystemMessageContentChunks$outboundSchema),
    ]),
});
export function systemMessageToJSON(systemMessage) {
    return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
}
//# sourceMappingURL=systemmessage.js.map