/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: b92587fa9adf
 */
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
import { DocumentURLChunk$inboundSchema, DocumentURLChunk$outboundSchema, } from "./documenturlchunk.js";
import { ImageURLChunk$inboundSchema, ImageURLChunk$outboundSchema, } from "./imageurlchunk.js";
import { TextChunk$inboundSchema, TextChunk$outboundSchema, } from "./textchunk.js";
import { ThinkChunk$inboundSchema, ThinkChunk$outboundSchema, } from "./thinkchunk.js";
import { ToolFileChunk$inboundSchema, ToolFileChunk$outboundSchema, } from "./toolfilechunk.js";
/** @internal */
export const MessageInputContentChunks$inboundSchema = smartUnion([
    ToolFileChunk$inboundSchema,
    TextChunk$inboundSchema,
    ImageURLChunk$inboundSchema,
    DocumentURLChunk$inboundSchema,
    ThinkChunk$inboundSchema,
]);
/** @internal */
export const MessageInputContentChunks$outboundSchema = smartUnion([
    ToolFileChunk$outboundSchema,
    TextChunk$outboundSchema,
    ImageURLChunk$outboundSchema,
    DocumentURLChunk$outboundSchema,
    ThinkChunk$outboundSchema,
]);
export function messageInputContentChunksToJSON(messageInputContentChunks) {
    return JSON.stringify(MessageInputContentChunks$outboundSchema.parse(messageInputContentChunks));
}
export function messageInputContentChunksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => MessageInputContentChunks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessageInputContentChunks' from JSON`);
}
//# sourceMappingURL=messageinputcontentchunks.js.map