AAI SDK
    Preparing search index...

    Variable ClientMessageSchemaConst

    ClientMessageSchema: z.ZodDiscriminatedUnion<
        [
            z.ZodObject<{ type: z.ZodLiteral<"audio_ready"> }, z.core.$strip>,
            z.ZodObject<{ type: z.ZodLiteral<"cancel"> }, z.core.$strip>,
            z.ZodObject<{ type: z.ZodLiteral<"reset"> }, z.core.$strip>,
            z.ZodObject<
                {
                    messages: z.ZodArray<
                        z.ZodObject<
                            {
                                content: z.ZodString;
                                role: z.ZodEnum<{ assistant: "assistant"; user: "user" }>;
                            },
                            z.core.$strip,
                        >,
                    >;
                    type: z.ZodLiteral<"history">;
                },
                z.core.$strip,
            >,
            z.ZodObject<
                {
                    error: z.ZodOptional<z.ZodString>;
                    result: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
                    toolCallId: z.ZodString;
                    type: z.ZodLiteral<"tool_result">;
                },
                z.core.$strip,
            >,
        ],
        "type",
    >

    Zod schema for client→server text messages.