UNPKG

acp-sdk

Version:

Agent Communication Protocol SDK

16,167 lines 970 kB
import * as z from 'zod';

declare const PingResponse: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
declare const AgentsListResponse: z.ZodObject<{
    agents: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        input_content_types: z.ZodArray<z.ZodString, "many">;
        output_content_types: z.ZodArray<z.ZodString, "many">;
        metadata: z.ZodDefault<z.ZodObject<{
            annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                    ui_type: z.ZodEnum<["chat", "hands-off"]>;
                    user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        name: string;
                        description?: string | null | undefined;
                    }, {
                        name: string;
                        description?: string | null | undefined;
                    }>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                }, {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                }>>>;
            }, "strip", z.ZodTypeAny, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                } | null | undefined;
            }, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                } | null | undefined;
            }>>>;
            documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                name: string;
                description: string;
            }, {
                name: string;
                description: string;
            }>, "many">>>;
            domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>>>;
            contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>, "many">>>;
            links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
                url: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }>, "many">>>;
            dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["agent", "tool", "model"]>;
                name: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "agent" | "tool" | "model";
                name: string;
            }, {
                type: "agent" | "tool" | "model";
                name: string;
            }>, "many">>>;
            recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
            annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                    ui_type: z.ZodEnum<["chat", "hands-off"]>;
                    user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        name: string;
                        description?: string | null | undefined;
                    }, {
                        name: string;
                        description?: string | null | undefined;
                    }>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                }, {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                }>>>;
            }, "strip", z.ZodTypeAny, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                } | null | undefined;
            }, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                } | null | undefined;
            }>>>;
            documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                name: string;
                description: string;
            }, {
                name: string;
                description: string;
            }>, "many">>>;
            domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>>>;
            contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>, "many">>>;
            links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
                url: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }>, "many">>>;
            dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["agent", "tool", "model"]>;
                name: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "agent" | "tool" | "model";
                name: string;
            }, {
                type: "agent" | "tool" | "model";
                name: string;
            }>, "many">>>;
            recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                    ui_type: z.ZodEnum<["chat", "hands-off"]>;
                    user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        name: string;
                        description?: string | null | undefined;
                    }, {
                        name: string;
                        description?: string | null | undefined;
                    }>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                }, {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                }>>>;
            }, "strip", z.ZodTypeAny, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                } | null | undefined;
            }, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                } | null | undefined;
            }>>>;
            documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                name: string;
                description: string;
            }, {
                name: string;
                description: string;
            }>, "many">>>;
            domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>>>;
            contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>, "many">>>;
            links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
                url: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }>, "many">>>;
            dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["agent", "tool", "model"]>;
                name: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "agent" | "tool" | "model";
                name: string;
            }, {
                type: "agent" | "tool" | "model";
                name: string;
            }>, "many">>>;
            recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        }, z.ZodTypeAny, "passthrough">>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        metadata: {
            documentation?: string | null | undefined;
            annotations?: {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                } | null | undefined;
            } | null | undefined;
            license?: string | null | undefined;
            programming_language?: string | null | undefined;
            natural_languages?: string[] | null | undefined;
            framework?: string | null | undefined;
            capabilities?: {
                name: string;
                description: string;
            }[] | null | undefined;
            domains?: string[] | null | undefined;
            tags?: string[] | null | undefined;
            created_at?: string | null | undefined;
            updated_at?: string | null | undefined;
            author?: {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            } | null | undefined;
            contributors?: {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }[] | null | undefined;
            links?: {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }[] | null | undefined;
            dependencies?: {
                type: "agent" | "tool" | "model";
                name: string;
            }[] | null | undefined;
            recommended_models?: string[] | null | undefined;
        } & {
            [k: string]: unknown;
        };
        input_content_types: string[];
        output_content_types: string[];
        description?: string | null | undefined;
    }, {
        name: string;
        input_content_types: string[];
        output_content_types: string[];
        description?: string | null | undefined;
        metadata?: z.objectInputType<{
            annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                    ui_type: z.ZodEnum<["chat", "hands-off"]>;
                    user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        name: string;
                        description?: string | null | undefined;
                    }, {
                        name: string;
                        description?: string | null | undefined;
                    }>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                }, {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                }>>>;
            }, "strip", z.ZodTypeAny, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                } | null | undefined;
            }, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                } | null | undefined;
            }>>>;
            documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                name: string;
                description: string;
            }, {
                name: string;
                description: string;
            }>, "many">>>;
            domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>>>;
            contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>, "many">>>;
            links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
                url: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }>, "many">>>;
            dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["agent", "tool", "model"]>;
                name: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "agent" | "tool" | "model";
                name: string;
            }, {
                type: "agent" | "tool" | "model";
                name: string;
            }>, "many">>>;
            recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        }, z.ZodTypeAny, "passthrough"> | undefined;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    agents: {
        name: string;
        metadata: {
            documentation?: string | null | undefined;
            annotations?: {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                } | null | undefined;
            } | null | undefined;
            license?: string | null | undefined;
            programming_language?: string | null | undefined;
            natural_languages?: string[] | null | undefined;
            framework?: string | null | undefined;
            capabilities?: {
                name: string;
                description: string;
            }[] | null | undefined;
            domains?: string[] | null | undefined;
            tags?: string[] | null | undefined;
            created_at?: string | null | undefined;
            updated_at?: string | null | undefined;
            author?: {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            } | null | undefined;
            contributors?: {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }[] | null | undefined;
            links?: {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }[] | null | undefined;
            dependencies?: {
                type: "agent" | "tool" | "model";
                name: string;
            }[] | null | undefined;
            recommended_models?: string[] | null | undefined;
        } & {
            [k: string]: unknown;
        };
        input_content_types: string[];
        output_content_types: string[];
        description?: string | null | undefined;
    }[];
}, {
    agents: {
        name: string;
        input_content_types: string[];
        output_content_types: string[];
        description?: string | null | undefined;
        metadata?: z.objectInputType<{
            annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                    ui_type: z.ZodEnum<["chat", "hands-off"]>;
                    user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        name: string;
                        description?: string | null | undefined;
                    }, {
                        name: string;
                        description?: string | null | undefined;
                    }>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                }, {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                }>>>;
            }, "strip", z.ZodTypeAny, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    tools: {
                        name: string;
                        description?: string | null | undefined;
                    }[];
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                } | null | undefined;
            }, {
                beeai_ui?: {
                    ui_type: "chat" | "hands-off";
                    user_greeting?: string | null | undefined;
                    display_name?: string | null | undefined;
                    tools?: {
                        name: string;
                        description?: string | null | undefined;
                    }[] | undefined;
                } | null | undefined;
            }>>>;
            documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                name: string;
                description: string;
            }, {
                name: string;
                description: string;
            }>, "many">>>;
            domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
            created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>>>;
            contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }, {
                name: string;
                email?: string | null | undefined;
                url?: string | null | undefined;
            }>, "many">>>;
            links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
                url: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }, {
                type: "source-code" | "container-image" | "homepage" | "documentation";
                url: string;
            }>, "many">>>;
            dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
                type: z.ZodEnum<["agent", "tool", "model"]>;
                name: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "agent" | "tool" | "model";
                name: string;
            }, {
                type: "agent" | "tool" | "model";
                name: string;
            }>, "many">>>;
            recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        }, z.ZodTypeAny, "passthrough"> | undefined;
    }[];
}>;
declare const AgentsReadResponse: z.ZodObject<{
    name: z.ZodString;
    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    input_content_types: z.ZodArray<z.ZodString, "many">;
    output_content_types: z.ZodArray<z.ZodString, "many">;
    metadata: z.ZodDefault<z.ZodObject<{
        annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                ui_type: z.ZodEnum<["chat", "hands-off"]>;
                user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                    name: z.ZodString;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    name: string;
                    description?: string | null | undefined;
                }, {
                    name: string;
                    description?: string | null | undefined;
                }>, "many">>;
            }, "strip", z.ZodTypeAny, {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            }, {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            }>>>;
        }, "strip", z.ZodTypeAny, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            } | null | undefined;
        }, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            } | null | undefined;
        }>>>;
        documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
        }, {
            name: string;
            description: string;
        }>, "many">>>;
        domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>>>;
        contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>, "many">>>;
        links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }>, "many">>>;
        dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["agent", "tool", "model"]>;
            name: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "agent" | "tool" | "model";
            name: string;
        }, {
            type: "agent" | "tool" | "model";
            name: string;
        }>, "many">>>;
        recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
        annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                ui_type: z.ZodEnum<["chat", "hands-off"]>;
                user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                    name: z.ZodString;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    name: string;
                    description?: string | null | undefined;
                }, {
                    name: string;
                    description?: string | null | undefined;
                }>, "many">>;
            }, "strip", z.ZodTypeAny, {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            }, {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            }>>>;
        }, "strip", z.ZodTypeAny, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            } | null | undefined;
        }, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            } | null | undefined;
        }>>>;
        documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
        }, {
            name: string;
            description: string;
        }>, "many">>>;
        domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>>>;
        contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>, "many">>>;
        links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }>, "many">>>;
        dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["agent", "tool", "model"]>;
            name: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "agent" | "tool" | "model";
            name: string;
        }, {
            type: "agent" | "tool" | "model";
            name: string;
        }>, "many">>>;
        recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
        annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                ui_type: z.ZodEnum<["chat", "hands-off"]>;
                user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                    name: z.ZodString;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    name: string;
                    description?: string | null | undefined;
                }, {
                    name: string;
                    description?: string | null | undefined;
                }>, "many">>;
            }, "strip", z.ZodTypeAny, {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            }, {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            }>>>;
        }, "strip", z.ZodTypeAny, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            } | null | undefined;
        }, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            } | null | undefined;
        }>>>;
        documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
        }, {
            name: string;
            description: string;
        }>, "many">>>;
        domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>>>;
        contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>, "many">>>;
        links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }>, "many">>>;
        dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["agent", "tool", "model"]>;
            name: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "agent" | "tool" | "model";
            name: string;
        }, {
            type: "agent" | "tool" | "model";
            name: string;
        }>, "many">>>;
        recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
    }, z.ZodTypeAny, "passthrough">>>;
}, "strip", z.ZodTypeAny, {
    name: string;
    metadata: {
        documentation?: string | null | undefined;
        annotations?: {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            } | null | undefined;
        } | null | undefined;
        license?: string | null | undefined;
        programming_language?: string | null | undefined;
        natural_languages?: string[] | null | undefined;
        framework?: string | null | undefined;
        capabilities?: {
            name: string;
            description: string;
        }[] | null | undefined;
        domains?: string[] | null | undefined;
        tags?: string[] | null | undefined;
        created_at?: string | null | undefined;
        updated_at?: string | null | undefined;
        author?: {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        } | null | undefined;
        contributors?: {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }[] | null | undefined;
        links?: {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }[] | null | undefined;
        dependencies?: {
            type: "agent" | "tool" | "model";
            name: string;
        }[] | null | undefined;
        recommended_models?: string[] | null | undefined;
    } & {
        [k: string]: unknown;
    };
    input_content_types: string[];
    output_content_types: string[];
    description?: string | null | undefined;
}, {
    name: string;
    input_content_types: string[];
    output_content_types: string[];
    description?: string | null | undefined;
    metadata?: z.objectInputType<{
        annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            beeai_ui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                ui_type: z.ZodEnum<["chat", "hands-off"]>;
                user_greeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
                    name: z.ZodString;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    name: string;
                    description?: string | null | undefined;
                }, {
                    name: string;
                    description?: string | null | undefined;
                }>, "many">>;
            }, "strip", z.ZodTypeAny, {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            }, {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            }>>>;
        }, "strip", z.ZodTypeAny, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                tools: {
                    name: string;
                    description?: string | null | undefined;
                }[];
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
            } | null | undefined;
        }, {
            beeai_ui?: {
                ui_type: "chat" | "hands-off";
                user_greeting?: string | null | undefined;
                display_name?: string | null | undefined;
                tools?: {
                    name: string;
                    description?: string | null | undefined;
                }[] | undefined;
            } | null | undefined;
        }>>>;
        documentation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        license: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        programming_language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        natural_languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        framework: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        capabilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
        }, {
            name: string;
            description: string;
        }>, "many">>>;
        domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>>>;
        contributors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }, {
            name: string;
            email?: string | null | undefined;
            url?: string | null | undefined;
        }>, "many">>>;
        links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }, {
            type: "source-code" | "container-image" | "homepage" | "documentation";
            url: string;
        }>, "many">>>;
        dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            type: z.ZodEnum<["agent", "tool", "model"]>;
            name: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "agent" | "tool" | "model";
            name: string;
        }, {
            type: "agent" | "tool" | "model";
            name: string;
        }>, "many">>>;
        recommended_models: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
    }, z.ZodTypeAny, "passthrough"> | undefined;
}>;
declare const RunCreateRequest: z.ZodObject<{
    agent_name: z.ZodString;
    session_id: z.ZodOptional<z.ZodString>;
    input: z.ZodArray<z.ZodObject<{
        role: z.ZodDefault<z.ZodString>;
        parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, "many">;
        created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }, {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }>, "many">;
    mode: z.ZodEnum<["sync", "async", "stream"]>;
}, "strip", z.ZodTypeAny, {
    agent_name: string;
    input: {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }[];
    mode: "sync" | "async" | "stream";
    session_id?: string | undefined;
}, {
    agent_name: string;
    input: {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }[];
    mode: "sync" | "async" | "stream";
    session_id?: string | undefined;
}>;
type RunCreateRequest = z.infer<typeof RunCreateRequest>;
declare const RunCreateResponse: z.ZodObject<{
    run_id: z.ZodString;
    agent_name: z.ZodString;
    session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
    await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        type: z.ZodLiteral<"message">;
        message: z.ZodObject<{
            role: z.ZodDefault<z.ZodString>;
            parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, "many">;
            created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        }, {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    }, {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    }>>>;
    output: z.ZodDefault<z.ZodArray<z.ZodObject<{
        role: z.ZodDefault<z.ZodString>;
        parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, "many">;
        created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }, {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }>, "many">>;
    error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
        message: z.ZodString;
        data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    }, {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    }>>>;
    created_at: z.ZodDefault<z.ZodString>;
    finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
    created_at: string;
    run_id: string;
    agent_name: string;
    output: {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }[];
    session_id?: string | null | undefined;
    await_request?: {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    } | null | undefined;
    error?: {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    } | null | undefined;
    finished_at?: string | null | undefined;
}, {
    run_id: string;
    agent_name: string;
    status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
    created_at?: string | undefined;
    session_id?: string | null | undefined;
    await_request?: {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    } | null | undefined;
    output?: {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }[] | undefined;
    error?: {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    } | null | undefined;
    finished_at?: string | null | undefined;
}>;
declare const RunEventsListResponse: z.ZodObject<{
    events: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"message.created">;
        message: z.ZodObject<{
            role: z.ZodDefault<z.ZodString>;
            parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, "many">;
            created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        }, {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message.created";
    }, {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message.created";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"message.part">;
        part: z.ZodEffects<z.ZodObject<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>;
    }, "strip", z.ZodTypeAny, {
        type: "message.part";
        part: {
            content_type: string | null;
            content_encoding: "plain" | "base64" | null;
            name?: string | null | undefined;
            content?: string | null | undefined;
            content_url?: string | null | undefined;
            metadata?: {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            } | {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            } | null | undefined;
        } & {
            [k: string]: unknown;
        };
    }, {
        type: "message.part";
        part: {
            name?: string | null | undefined;
            content_type?: string | null | undefined;
            content?: string | null | undefined;
            content_encoding?: "plain" | "base64" | null | undefined;
            content_url?: string | null | undefined;
            metadata?: {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            } | {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            } | null | undefined;
        } & {
            [k: string]: unknown;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"message.completed">;
        message: z.ZodObject<{
            role: z.ZodDefault<z.ZodString>;
            parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, "many">;
            created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        }, {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message.completed";
    }, {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message.completed";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"run.awaiting">;
        run: z.ZodObject<{
            run_id: z.ZodString;
            agent_name: z.ZodString;
            session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
            await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                type: z.ZodLiteral<"message">;
                message: z.ZodObject<{
                    role: z.ZodDefault<z.ZodString>;
                    parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, "many">;
                    created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                    completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                }, {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                }>;
            }, "strip", z.ZodTypeAny, {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            }, {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            }>>>;
            output: z.ZodDefault<z.ZodArray<z.ZodObject<{
                role: z.ZodDefault<z.ZodString>;
                parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, "many">;
                created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }, {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }>, "many">>;
            error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
                message: z.ZodString;
                data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
            }, "strip", z.ZodTypeAny, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }>>>;
            created_at: z.ZodDefault<z.ZodString>;
            finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }, {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "run.awaiting";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }, {
        type: "run.awaiting";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"generic">;
        generic: z.ZodRecord<z.ZodString, z.ZodAny>;
    }, "strip", z.ZodTypeAny, {
        type: "generic";
        generic: Record<string, any>;
    }, {
        type: "generic";
        generic: Record<string, any>;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"run.created">;
        run: z.ZodObject<{
            run_id: z.ZodString;
            agent_name: z.ZodString;
            session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
            await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                type: z.ZodLiteral<"message">;
                message: z.ZodObject<{
                    role: z.ZodDefault<z.ZodString>;
                    parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, "many">;
                    created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                    completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                }, {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                }>;
            }, "strip", z.ZodTypeAny, {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            }, {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            }>>>;
            output: z.ZodDefault<z.ZodArray<z.ZodObject<{
                role: z.ZodDefault<z.ZodString>;
                parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, "many">;
                created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }, {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }>, "many">>;
            error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
                message: z.ZodString;
                data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
            }, "strip", z.ZodTypeAny, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }>>>;
            created_at: z.ZodDefault<z.ZodString>;
            finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }, {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "run.created";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }, {
        type: "run.created";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"run.in-progress">;
        run: z.ZodObject<{
            run_id: z.ZodString;
            agent_name: z.ZodString;
            session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
            await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                type: z.ZodLiteral<"message">;
                message: z.ZodObject<{
                    role: z.ZodDefault<z.ZodString>;
                    parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, "many">;
                    created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                    completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                }, {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                }>;
            }, "strip", z.ZodTypeAny, {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            }, {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            }>>>;
            output: z.ZodDefault<z.ZodArray<z.ZodObject<{
                role: z.ZodDefault<z.ZodString>;
                parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, "many">;
                created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }, {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }>, "many">>;
            error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
                message: z.ZodString;
                data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
            }, "strip", z.ZodTypeAny, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }>>>;
            created_at: z.ZodDefault<z.ZodString>;
            finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }, {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "run.in-progress";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }, {
        type: "run.in-progress";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"run.failed">;
        run: z.ZodObject<{
            run_id: z.ZodString;
            agent_name: z.ZodString;
            session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
            await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                type: z.ZodLiteral<"message">;
                message: z.ZodObject<{
                    role: z.ZodDefault<z.ZodString>;
                    parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, "many">;
                    created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                    completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                }, {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                }>;
            }, "strip", z.ZodTypeAny, {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            }, {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            }>>>;
            output: z.ZodDefault<z.ZodArray<z.ZodObject<{
                role: z.ZodDefault<z.ZodString>;
                parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, "many">;
                created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }, {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }>, "many">>;
            error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
                message: z.ZodString;
                data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
            }, "strip", z.ZodTypeAny, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }>>>;
            created_at: z.ZodDefault<z.ZodString>;
            finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }, {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "run.failed";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }, {
        type: "run.failed";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"run.cancelled">;
        run: z.ZodObject<{
            run_id: z.ZodString;
            agent_name: z.ZodString;
            session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
            await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                type: z.ZodLiteral<"message">;
                message: z.ZodObject<{
                    role: z.ZodDefault<z.ZodString>;
                    parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, "many">;
                    created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                    completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                }, {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                }>;
            }, "strip", z.ZodTypeAny, {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            }, {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            }>>>;
            output: z.ZodDefault<z.ZodArray<z.ZodObject<{
                role: z.ZodDefault<z.ZodString>;
                parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, "many">;
                created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }, {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }>, "many">>;
            error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
                message: z.ZodString;
                data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
            }, "strip", z.ZodTypeAny, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }>>>;
            created_at: z.ZodDefault<z.ZodString>;
            finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }, {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "run.cancelled";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }, {
        type: "run.cancelled";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"run.completed">;
        run: z.ZodObject<{
            run_id: z.ZodString;
            agent_name: z.ZodString;
            session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
            await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                type: z.ZodLiteral<"message">;
                message: z.ZodObject<{
                    role: z.ZodDefault<z.ZodString>;
                    parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">>, "many">;
                    created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                    completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                }, {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                }>;
            }, "strip", z.ZodTypeAny, {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            }, {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            }>>>;
            output: z.ZodDefault<z.ZodArray<z.ZodObject<{
                role: z.ZodDefault<z.ZodString>;
                parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">>, "many">;
                created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }, {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }>, "many">>;
            error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
                message: z.ZodString;
                data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
            }, "strip", z.ZodTypeAny, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }, {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            }>>>;
            created_at: z.ZodDefault<z.ZodString>;
            finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }, {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "run.completed";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }, {
        type: "run.completed";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"error">;
        error: z.ZodObject<{
            code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
            message: z.ZodString;
            data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        }, "strip", z.ZodTypeAny, {
            code: "server_error" | "invalid_input" | "not_found";
            message: string;
            data?: unknown;
        }, {
            code: "server_error" | "invalid_input" | "not_found";
            message: string;
            data?: unknown;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "error";
        error: {
            code: "server_error" | "invalid_input" | "not_found";
            message: string;
            data?: unknown;
        };
    }, {
        type: "error";
        error: {
            code: "server_error" | "invalid_input" | "not_found";
            message: string;
            data?: unknown;
        };
    }>]>, "many">;
}, "strip", z.ZodTypeAny, {
    events: ({
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message.created";
    } | {
        type: "message.part";
        part: {
            content_type: string | null;
            content_encoding: "plain" | "base64" | null;
            name?: string | null | undefined;
            content?: string | null | undefined;
            content_url?: string | null | undefined;
            metadata?: {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            } | {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            } | null | undefined;
        } & {
            [k: string]: unknown;
        };
    } | {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message.completed";
    } | {
        type: "run.awaiting";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "generic";
        generic: Record<string, any>;
    } | {
        type: "run.created";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.in-progress";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.failed";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.cancelled";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.completed";
        run: {
            status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
            created_at: string;
            run_id: string;
            agent_name: string;
            output: {
                created_at: string | null;
                role: string;
                parts: z.objectOutputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                completed_at: string | null;
            }[];
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    created_at: string | null;
                    role: string;
                    parts: z.objectOutputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    completed_at: string | null;
                };
                type: "message";
            } | null | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "error";
        error: {
            code: "server_error" | "invalid_input" | "not_found";
            message: string;
            data?: unknown;
        };
    })[];
}, {
    events: ({
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message.created";
    } | {
        type: "message.part";
        part: {
            name?: string | null | undefined;
            content_type?: string | null | undefined;
            content?: string | null | undefined;
            content_encoding?: "plain" | "base64" | null | undefined;
            content_url?: string | null | undefined;
            metadata?: {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            } | {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            } | null | undefined;
        } & {
            [k: string]: unknown;
        };
    } | {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message.completed";
    } | {
        type: "run.awaiting";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "generic";
        generic: Record<string, any>;
    } | {
        type: "run.created";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.in-progress";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.failed";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.cancelled";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "run.completed";
        run: {
            run_id: string;
            agent_name: string;
            status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
            created_at?: string | undefined;
            session_id?: string | null | undefined;
            await_request?: {
                message: {
                    parts: z.objectInputType<{
                        name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                        content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                        content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                            start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                            url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "citation";
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }, {
                            description?: string | null | undefined;
                            url?: string | null | undefined;
                            kind?: "citation" | undefined;
                            start_index?: number | null | undefined;
                            end_index?: number | null | undefined;
                            title?: string | null | undefined;
                        }>, z.ZodObject<{
                            kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                            message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                            tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                            tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        }, "strip", z.ZodTypeAny, {
                            kind: "trajectory";
                            message?: string | null | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }, {
                            message?: string | null | undefined;
                            kind?: "trajectory" | undefined;
                            tool_name?: string | null | undefined;
                            tool_input?: Record<string, any> | null | undefined;
                            tool_output?: Record<string, any> | null | undefined;
                        }>]>>>;
                    }, z.ZodTypeAny, "passthrough">[];
                    created_at?: string | null | undefined;
                    role?: string | undefined;
                    completed_at?: string | null | undefined;
                };
                type: "message";
            } | null | undefined;
            output?: {
                parts: z.objectInputType<{
                    name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                    content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                    content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                        start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                        url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "citation";
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }, {
                        description?: string | null | undefined;
                        url?: string | null | undefined;
                        kind?: "citation" | undefined;
                        start_index?: number | null | undefined;
                        end_index?: number | null | undefined;
                        title?: string | null | undefined;
                    }>, z.ZodObject<{
                        kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                        message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                        tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                        tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    }, "strip", z.ZodTypeAny, {
                        kind: "trajectory";
                        message?: string | null | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }, {
                        message?: string | null | undefined;
                        kind?: "trajectory" | undefined;
                        tool_name?: string | null | undefined;
                        tool_input?: Record<string, any> | null | undefined;
                        tool_output?: Record<string, any> | null | undefined;
                    }>]>>>;
                }, z.ZodTypeAny, "passthrough">[];
                created_at?: string | null | undefined;
                role?: string | undefined;
                completed_at?: string | null | undefined;
            }[] | undefined;
            error?: {
                code: "server_error" | "invalid_input" | "not_found";
                message: string;
                data?: unknown;
            } | null | undefined;
            finished_at?: string | null | undefined;
        };
    } | {
        type: "error";
        error: {
            code: "server_error" | "invalid_input" | "not_found";
            message: string;
            data?: unknown;
        };
    })[];
}>;
declare const RunResumeRequest: z.ZodObject<{
    await_resume: z.ZodObject<{
        type: z.ZodLiteral<"message">;
        message: z.ZodObject<{
            role: z.ZodDefault<z.ZodString>;
            parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, "many">;
            created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        }, {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    }, {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    }>;
    mode: z.ZodEnum<["sync", "async", "stream"]>;
}, "strip", z.ZodTypeAny, {
    mode: "sync" | "async" | "stream";
    await_resume: {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    };
}, {
    mode: "sync" | "async" | "stream";
    await_resume: {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    };
}>;
type RunResumeRequest = z.infer<typeof RunResumeRequest>;
declare const RunResumeResponse: z.ZodObject<{
    run_id: z.ZodString;
    agent_name: z.ZodString;
    session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
    await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        type: z.ZodLiteral<"message">;
        message: z.ZodObject<{
            role: z.ZodDefault<z.ZodString>;
            parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, "many">;
            created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        }, {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    }, {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    }>>>;
    output: z.ZodDefault<z.ZodArray<z.ZodObject<{
        role: z.ZodDefault<z.ZodString>;
        parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, "many">;
        created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }, {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }>, "many">>;
    error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
        message: z.ZodString;
        data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    }, {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    }>>>;
    created_at: z.ZodDefault<z.ZodString>;
    finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
    created_at: string;
    run_id: string;
    agent_name: string;
    output: {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }[];
    session_id?: string | null | undefined;
    await_request?: {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    } | null | undefined;
    error?: {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    } | null | undefined;
    finished_at?: string | null | undefined;
}, {
    run_id: string;
    agent_name: string;
    status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
    created_at?: string | undefined;
    session_id?: string | null | undefined;
    await_request?: {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    } | null | undefined;
    output?: {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }[] | undefined;
    error?: {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    } | null | undefined;
    finished_at?: string | null | undefined;
}>;
declare const RunReadResponse: z.ZodObject<{
    run_id: z.ZodString;
    agent_name: z.ZodString;
    session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    status: z.ZodDefault<z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>>;
    await_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        type: z.ZodLiteral<"message">;
        message: z.ZodObject<{
            role: z.ZodDefault<z.ZodString>;
            parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">>, "many">;
            created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        }, {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    }, {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    }>>>;
    output: z.ZodDefault<z.ZodArray<z.ZodObject<{
        role: z.ZodDefault<z.ZodString>;
        parts: z.ZodArray<z.ZodEffects<z.ZodObject<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">>, "many">;
        created_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
        completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }, {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }>, "many">>;
    error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        code: z.ZodEnum<["server_error", "invalid_input", "not_found"]>;
        message: z.ZodString;
        data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    }, {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    }>>>;
    created_at: z.ZodDefault<z.ZodString>;
    finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    status: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed";
    created_at: string;
    run_id: string;
    agent_name: string;
    output: {
        created_at: string | null;
        role: string;
        parts: z.objectOutputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        completed_at: string | null;
    }[];
    session_id?: string | null | undefined;
    await_request?: {
        message: {
            created_at: string | null;
            role: string;
            parts: z.objectOutputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            completed_at: string | null;
        };
        type: "message";
    } | null | undefined;
    error?: {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    } | null | undefined;
    finished_at?: string | null | undefined;
}, {
    run_id: string;
    agent_name: string;
    status?: "created" | "in-progress" | "awaiting" | "cancelling" | "cancelled" | "completed" | "failed" | undefined;
    created_at?: string | undefined;
    session_id?: string | null | undefined;
    await_request?: {
        message: {
            parts: z.objectInputType<{
                name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
                content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
                content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                    start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "citation";
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }, {
                    description?: string | null | undefined;
                    url?: string | null | undefined;
                    kind?: "citation" | undefined;
                    start_index?: number | null | undefined;
                    end_index?: number | null | undefined;
                    title?: string | null | undefined;
                }>, z.ZodObject<{
                    kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                    message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                    tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                    tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                }, "strip", z.ZodTypeAny, {
                    kind: "trajectory";
                    message?: string | null | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }, {
                    message?: string | null | undefined;
                    kind?: "trajectory" | undefined;
                    tool_name?: string | null | undefined;
                    tool_input?: Record<string, any> | null | undefined;
                    tool_output?: Record<string, any> | null | undefined;
                }>]>>>;
            }, z.ZodTypeAny, "passthrough">[];
            created_at?: string | null | undefined;
            role?: string | undefined;
            completed_at?: string | null | undefined;
        };
        type: "message";
    } | null | undefined;
    output?: {
        parts: z.objectInputType<{
            name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            content_encoding: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["plain", "base64"]>>>>;
            content_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"citation">>;
                start_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                end_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            }, "strip", z.ZodTypeAny, {
                kind: "citation";
                description?: string | null | undefined;
                url?: string | null | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }, {
                description?: string | null | undefined;
                url?: string | null | undefined;
                kind?: "citation" | undefined;
                start_index?: number | null | undefined;
                end_index?: number | null | undefined;
                title?: string | null | undefined;
            }>, z.ZodObject<{
                kind: z.ZodDefault<z.ZodLiteral<"trajectory">>;
                message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
                tool_input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
                tool_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
            }, "strip", z.ZodTypeAny, {
                kind: "trajectory";
                message?: string | null | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }, {
                message?: string | null | undefined;
                kind?: "trajectory" | undefined;
                tool_name?: string | null | undefined;
                tool_input?: Record<string, any> | null | undefined;
                tool_output?: Record<string, any> | null | undefined;
            }>]>>>;
        }, z.ZodTypeAny, "passthrough">[];
        created_at?: string | null | undefined;
        role?: string | undefined;
        completed_at?: string | null | undefined;
    }[] | undefined;
    error?: {
        code: "server_error" | "invalid_input" | "not_found";
        message: string;
        data?: unknown;
    } | null | undefined;
    finished_at?: string | null | undefined;
}>;

export { AgentsListResponse, AgentsReadResponse, PingResponse, RunCreateRequest, RunCreateResponse, RunEventsListResponse, RunReadResponse, RunResumeRequest, RunResumeResponse };