vercelAIChatPartSchema: ZodDiscriminatedUnion<
    "type",
    [
        ZodObject<
            { text: ZodString; type: ZodLiteral<"text"> },
            "strip",
            ZodTypeAny,
            { text: string; type: "text" },
            { text: string; type: "text" },
        >,
        ZodObject<
            {
                image: ZodString;
                mimeType: ZodOptional<ZodString>;
                type: ZodLiteral<"image">;
            },
            "strip",
            ZodTypeAny,
            { image: string; mimeType?: string; type: "image" },
            { image: string; mimeType?: string; type: "image" },
        >,
        ZodObject<
            {
                args: ZodType<JSONLiteral, ZodTypeDef, JSONLiteral>;
                toolCallId: ZodString;
                toolName: ZodString;
                type: ZodLiteral<"tool-call">;
            },
            "strip",
            ZodTypeAny,
            {
                args: JSONLiteral;
                toolCallId: string;
                toolName: string;
                type: "tool-call";
            },
            {
                args: JSONLiteral;
                toolCallId: string;
                toolName: string;
                type: "tool-call";
            },
        >,
        ZodObject<
            {
                result: ZodType<JSONLiteral, ZodTypeDef, JSONLiteral>;
                toolCallId: ZodString;
                toolName: ZodString;
                type: ZodLiteral<"tool-result">;
            },
            "strip",
            ZodTypeAny,
            {
                result: JSONLiteral;
                toolCallId: string;
                toolName: string;
                type: "tool-result";
            },
            {
                result: JSONLiteral;
                toolCallId: string;
                toolName: string;
                type: "tool-result";
            },
        >,
    ],
> = ...