anthropicMessagePartSchema: ZodDiscriminatedUnion<
    "type",
    [
        ZodObject<
            { text: ZodString; type: ZodLiteral<"text"> },
            "strip",
            ZodTypeAny,
            { text: string; type: "text" },
            { text: string; type: "text" },
        >,
        ZodObject<
            {
                source: ZodObject<
                    {
                        data: ZodString;
                        media_type: ZodEnum<
                            ["image/jpeg", "image/png", "image/gif", "image/webp"],
                        >;
                        type: ZodLiteral<"base64">;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        data: string;
                        media_type: "image/jpeg"
                        | "image/png"
                        | "image/gif"
                        | "image/webp";
                        type: "base64";
                    },
                    {
                        data: string;
                        media_type: "image/jpeg"
                        | "image/png"
                        | "image/gif"
                        | "image/webp";
                        type: "base64";
                    },
                >;
                type: ZodLiteral<"image">;
            },
            "strip",
            ZodTypeAny,
            {
                source: {
                    data: string;
                    media_type: "image/jpeg"
                    | "image/png"
                    | "image/gif"
                    | "image/webp";
                    type: "base64";
                };
                type: "image";
            },
            {
                source: {
                    data: string;
                    media_type: "image/jpeg"
                    | "image/png"
                    | "image/gif"
                    | "image/webp";
                    type: "base64";
                };
                type: "image";
            },
        >,
        ZodObject<
            {
                id: ZodString;
                input: ZodType<JSONLiteral, ZodTypeDef, JSONLiteral>;
                name: ZodString;
                type: ZodLiteral<"tool_use">;
            },
            "strip",
            ZodTypeAny,
            { id: string; input: JSONLiteral; name: string; type: "tool_use" },
            { id: string; input: JSONLiteral; name: string; type: "tool_use" },
        >,
        ZodObject<
            {
                content: ZodUnion<
                    [
                        ZodString,
                        ZodArray<
                            ZodUnion<
                                [
                                    ZodObject<
                                        { text: ...; type: ... },
                                        "strip",
                                        ZodTypeAny,
                                        { text: ...; type: ... },
                                        { text: ...; type: ... },
                                    >,
                                    ZodObject<
                                        { source: ...; type: ... },
                                        "strip",
                                        ZodTypeAny,
                                        { source: ...; type: ... },
                                        { source: ...; type: ... },
                                    >,
                                ],
                            >,
                            "many",
                        >,
                    ],
                >;
                is_error: ZodOptional<ZodBoolean>;
                tool_use_id: ZodString;
                type: ZodLiteral<"tool_result">;
            },
            "strip",
            ZodTypeAny,
            {
                content: | string
                | (
                    | { text: string; type: "text" }
                    | {
                        source: {
                            data: string;
                            media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
                            type: "base64";
                        };
                        type: "image";
                    }
                )[];
                is_error?: boolean;
                tool_use_id: string;
                type: "tool_result";
            },
            {
                content: | string
                | (
                    | { text: string; type: "text" }
                    | {
                        source: {
                            data: string;
                            media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
                            type: "base64";
                        };
                        type: "image";
                    }
                )[];
                is_error?: boolean;
                tool_use_id: string;
                type: "tool_result";
            },
        >,
    ],
> = ...