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