import * as z from 'zod'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ declare const PingResponse: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; declare const AgentsListResponse: z.ZodObject<{ agents: z.ZodArray>; input_content_types: z.ZodArray; output_content_types: z.ZodArray; metadata: z.ZodDefault; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ annotations: z.ZodNullable; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ annotations: z.ZodNullable; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, 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; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, 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; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, z.ZodTypeAny, "passthrough"> | undefined; }[]; }>; declare const AgentsReadResponse: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional>; input_content_types: z.ZodArray; output_content_types: z.ZodArray; metadata: z.ZodDefault; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ annotations: z.ZodNullable; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ annotations: z.ZodNullable; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, 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; user_greeting: z.ZodOptional>; display_name: z.ZodOptional>; tools: z.ZodDefault>; }, "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>; license: z.ZodNullable>; programming_language: z.ZodNullable>; natural_languages: z.ZodNullable>>; framework: z.ZodNullable>; capabilities: z.ZodNullable, "many">>>; domains: z.ZodNullable>>; tags: z.ZodNullable>>; created_at: z.ZodNullable>; updated_at: z.ZodNullable>; author: z.ZodNullable>; url: z.ZodOptional>; }, "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>; url: z.ZodOptional>; }, "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; 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; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>, "many">>>; recommended_models: z.ZodNullable>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>; declare const RunCreateRequest: z.ZodObject<{ agent_name: z.ZodString; session_id: z.ZodOptional; input: z.ZodArray; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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; declare const RunCreateResponse: z.ZodObject<{ run_id: z.ZodString; agent_name: z.ZodString; session_id: z.ZodOptional>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message.created"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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 | null | undefined; tool_output?: Record | 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 | null | undefined; tool_output?: Record | null | undefined; } | null | undefined; } & { [k: string]: unknown; }; }>, z.ZodObject<{ type: z.ZodLiteral<"message.completed">; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message.completed"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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; }, "strip", z.ZodTypeAny, { type: "generic"; generic: Record; }, { type: "generic"; generic: Record; }>, z.ZodObject<{ type: z.ZodLiteral<"run.created">; run: z.ZodObject<{ run_id: z.ZodString; agent_name: z.ZodString; session_id: z.ZodOptional>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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 | null | undefined; tool_output?: Record | null | undefined; } | null | undefined; } & { [k: string]: unknown; }; } | { message: { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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; } | { 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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 | null | undefined; tool_output?: Record | null | undefined; } | null | undefined; } & { [k: string]: unknown; }; } | { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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; } | { 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }; }, { mode: "sync" | "async" | "stream"; await_resume: { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }; }>; type RunResumeRequest = z.infer; declare const RunResumeResponse: z.ZodObject<{ run_id: z.ZodString; agent_name: z.ZodString; session_id: z.ZodOptional>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; status: z.ZodDefault>; await_request: z.ZodOptional; message: z.ZodObject<{ role: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }; type: "message"; }, { message: { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }; type: "message"; }>>>; output: z.ZodDefault; parts: z.ZodArray>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">>, "many">; created_at: z.ZodDefault>; completed_at: z.ZodDefault>; }, "strip", z.ZodTypeAny, { created_at: string | null; role: string; parts: z.objectOutputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; completed_at: string | null; }, { parts: z.objectInputType<{ name: z.ZodOptional>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>]>>>; }, z.ZodTypeAny, "passthrough">[]; created_at?: string | null | undefined; role?: string | undefined; completed_at?: string | null | undefined; }>, "many">>; error: z.ZodOptional; message: z.ZodString; data: z.ZodOptional>; }, "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; finished_at: z.ZodOptional>; }, "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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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>; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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 };