import * as z from 'zod'; import { Simplify } from 'type-fest'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ declare const AnyModel: z.ZodRecord; type AnyModel = z.infer; declare const Author: z.ZodObject<{ name: z.ZodString; email: z.ZodOptional>; 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; }>; type Author = z.infer; declare const Contributor: z.ZodObject<{ name: z.ZodString; email: z.ZodOptional>; 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; }>; type Contributor = z.infer; declare const LinkType: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>; type LinkType = z.infer; declare const Link: z.ZodObject<{ type: z.ZodEnum<["source-code", "container-image", "homepage", "documentation"]>; url: z.ZodString; }, "strip", z.ZodTypeAny, { type: "source-code" | "container-image" | "homepage" | "documentation"; url: string; }, { type: "source-code" | "container-image" | "homepage" | "documentation"; url: string; }>; type Link = z.infer; declare const DependencyType: z.ZodEnum<["agent", "tool", "model"]>; type DependencyType = z.infer; declare const Dependency: z.ZodObject<{ type: z.ZodEnum<["agent", "tool", "model"]>; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "agent" | "tool" | "model"; name: string; }, { type: "agent" | "tool" | "model"; name: string; }>; type Dependency = z.infer; declare const Capability: z.ZodObject<{ name: z.ZodString; description: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; description: string; }, { name: string; description: string; }>; type Capability = z.infer; declare const Annotations: z.ZodObject<{ beeai_ui: z.ZodOptional; 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; }>; type Annotations = z.infer; declare const Metadata: z.ZodObject<{ 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>>; }, "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">>; type Metadata = z.infer; declare const CitationMetadata: z.ZodObject<{ kind: z.ZodDefault>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>; type CitationMetadata = z.infer; declare const TrajectoryMetadata: z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }, { message?: string | null | undefined; kind?: "trajectory" | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | null | undefined; }>; type TrajectoryMetadata = z.infer; declare const MessagePart: 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">>; type MessagePart = Simplify>; declare const isMessagePart: (data: unknown) => data is 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">; declare const Artifact: 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.ZodNullable; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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.ZodNullable; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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.ZodNullable; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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.ZodNullable; content_type: z.ZodDefault>>; content: z.ZodOptional>; content_encoding: z.ZodDefault>>>; content_url: z.ZodOptional>; metadata: z.ZodOptional>; start_index: z.ZodOptional>; end_index: z.ZodOptional>; url: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "citation"; description?: string | null | undefined; url?: string | null | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }, { description?: string | null | undefined; url?: string | null | undefined; kind?: "citation" | undefined; start_index?: number | null | undefined; end_index?: number | null | undefined; title?: string | null | undefined; }>, z.ZodObject<{ kind: z.ZodDefault>; message: z.ZodOptional>; tool_name: z.ZodOptional>; tool_input: z.ZodOptional>>; tool_output: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { kind: "trajectory"; message?: string | null | undefined; tool_name?: string | null | undefined; tool_input?: Record | null | undefined; tool_output?: Record | 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">>; type Artifact = Exclude & { name: string; }; declare const 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; }>; type Message = z.infer; declare const isMessage: (data: unknown) => data is { 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; }; declare function concatMessages(lhs: Message, rhs: Message): Message; declare function compressMessage(message: Message): Message; declare const AgentName: z.ZodString; type AgentName = z.infer; declare const RunId: z.ZodString; type RunId = z.infer; declare const SessionId: z.ZodString; type SessionId = z.infer; declare const RunMode: z.ZodEnum<["sync", "async", "stream"]>; type RunMode = z.infer; declare const RunStatus: z.ZodEnum<["created", "in-progress", "awaiting", "cancelling", "cancelled", "completed", "failed"]>; type RunStatus = z.infer; declare function isTerminalRunStatus(status: RunStatus): status is "cancelled" | "completed" | "failed"; declare const MessageAwaitRequest: 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"; }>; declare const MessageAwaitResume: 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"; }>; declare const AwaitRequest: 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"; }>; type AwaitRequest = z.infer; declare const AwaitResume: 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"; }>; type AwaitResume = z.infer; declare const 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; }>; type Run = z.infer; declare function throwForRunStatus(run: 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; }; declare const AgentManifest: 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; }>; type AgentManifest = z.infer; declare const MessageCreatedEvent: z.ZodObject<{ type: z.ZodLiteral<"message.created">; 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"; }>; type MessageCreatedEvent = z.infer; declare const MessagePartEvent: 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; }; }>; type MessagePartEvent = z.infer; declare const MessageCompletedEvent: 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"; }>; type MessageCompletedEvent = z.infer; declare const RunAwaitingEvent: 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; }; }>; type RunAwaitingEvent = z.infer; declare const GenericEvent: z.ZodObject<{ type: z.ZodLiteral<"generic">; generic: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "generic"; generic: Record; }, { type: "generic"; generic: Record; }>; type GenericEvent = z.infer; declare const RunCreatedEvent: 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; }; }>; type RunCreatedEvent = z.infer; declare const RunInProgressEvent: 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; }; }>; type RunInProgressEvent = z.infer; declare const RunFailedEvent: 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; }; }>; type RunFailedEvent = z.infer; declare const RunCancelledEvent: 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; }; }>; type RunCancelledEvent = z.infer; declare const RunCompletedEvent: 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; }; }>; type RunCompletedEvent = z.infer; declare const ErrorEvent: 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; }; }>; type ErrorEvent = z.infer; declare const Event: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"message.created">; 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; }; }>]>; type Event = z.infer; export { AgentManifest, AgentName, Annotations, AnyModel, Artifact, Author, AwaitRequest, AwaitResume, Capability, CitationMetadata, Contributor, Dependency, DependencyType, ErrorEvent, Event, GenericEvent, Link, LinkType, Message, MessageAwaitRequest, MessageAwaitResume, MessageCompletedEvent, MessageCreatedEvent, MessagePart, MessagePartEvent, Metadata, Run, RunAwaitingEvent, RunCancelledEvent, RunCompletedEvent, RunCreatedEvent, RunFailedEvent, RunId, RunInProgressEvent, RunMode, RunStatus, SessionId, TrajectoryMetadata, compressMessage, concatMessages, isMessage, isMessagePart, isTerminalRunStatus, throwForRunStatus };