import { z } from "zod"; //#region src/types.d.ts declare const FunctionCallSchema: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; declare const ToolCallSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>; declare const BaseMessageSchema: z.ZodObject<{ id: z.ZodString; role: z.ZodString; content: z.ZodOptional; name: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: string; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; }, { role: string; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; }>; declare const TextInputContentSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>; declare const InputContentDataSourceSchema: z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>; declare const InputContentUrlSourceSchema: z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>; declare const InputContentSourceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; declare const ImageInputContentSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const AudioInputContentSchema: z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const VideoInputContentSchema: z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const DocumentInputContentSchema: z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const ImageInputPartSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const AudioInputPartSchema: z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const VideoInputPartSchema: z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const DocumentInputPartSchema: z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>; declare const BinaryInputContentSchema: z.ZodEffects; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>; declare const InputContentSchema: z.ZodEffects; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>; declare const DeveloperMessageSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>; declare const SystemMessageSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>; declare const AssistantMessageSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>; declare const UserMessageSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>; declare const ToolMessageSchema: z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>; declare const ActivityMessageSchema: z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>; declare const ReasoningMessageSchema: z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>; declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>; declare const RoleSchema: z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">, z.ZodLiteral<"tool">, z.ZodLiteral<"activity">, z.ZodLiteral<"reasoning">]>; declare const ContextSchema: z.ZodObject<{ description: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; description: string; }, { value: string; description: string; }>; declare const ToolSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; parameters: z.ZodAny; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>; declare const InterruptSchema: z.ZodObject<{ id: z.ZodString; reason: z.ZodString; message: z.ZodOptional; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>; declare const ResumeEntrySchema: z.ZodObject<{ interruptId: z.ZodString; status: z.ZodEnum<["resolved", "cancelled"]>; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>; declare const RunAgentInputSchema: z.ZodObject<{ threadId: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; state: z.ZodAny; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; tools: z.ZodArray>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">; context: z.ZodArray, "many">; forwardedProps: z.ZodAny; resume: z.ZodOptional; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }>; declare const StateSchema: z.ZodAny; type ToolCall = z.infer; type FunctionCall = z.infer; type TextInputContent = z.infer; type InputContentDataSource = z.infer; type InputContentUrlSource = z.infer; type InputContentSource = z.infer; type ImageInputContent = z.infer; type AudioInputContent = z.infer; type VideoInputContent = z.infer; type DocumentInputContent = z.infer; type ImageInputPart = ImageInputContent; type AudioInputPart = AudioInputContent; type VideoInputPart = VideoInputContent; type DocumentInputPart = DocumentInputContent; type BinaryInputContent = z.infer; type InputContent = z.infer; type InputContentPart = z.infer; type DeveloperMessage = z.infer; type SystemMessage = z.infer; type AssistantMessage = z.infer; type UserMessage = z.infer; type ToolMessage = z.infer; type ActivityMessage = z.infer; type ReasoningMessage = z.infer; type Message = z.infer; type Context = z.infer; type Tool = z.infer; type RunAgentInput = z.infer; type State = z.infer; type Role = z.infer; type Interrupt = z.infer; type ResumeEntry = z.infer; type ResumeStatus = z.infer["status"]; declare class AGUIError extends Error { constructor(message: string); } declare class AGUIConnectNotImplementedError extends AGUIError { constructor(); } //#endregion //#region src/capabilities.d.ts /** Describes a sub-agent that can be invoked by a parent agent. */ declare const SubAgentInfoSchema: z.ZodObject<{ /** Unique name or identifier of the sub-agent. */name: z.ZodString; /** What this sub-agent specializes in. Helps clients build agent selection UIs. */ description: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; }, { name: string; description?: string | undefined; }>; /** * Basic metadata about the agent. Useful for discovery UIs, agent marketplaces, * and debugging. Set these when you want clients to display agent information * or when multiple agents are available and users need to pick one. */ declare const IdentityCapabilitiesSchema: z.ZodObject<{ /** Human-readable name shown in UIs and agent selectors. */name: z.ZodOptional; /** The framework or platform powering this agent (e.g., "langgraph", "mastra", "crewai"). */ type: z.ZodOptional; /** What this agent does — helps users and routing logic decide when to use it. */ description: z.ZodOptional; /** Semantic version of the agent (e.g., "1.2.0"). Useful for compatibility checks. */ version: z.ZodOptional; /** Organization or team that maintains this agent. */ provider: z.ZodOptional; /** URL to the agent's documentation or homepage. */ documentationUrl: z.ZodOptional; /** Arbitrary key-value pairs for integration-specific identity info. */ metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: string | undefined; name?: string | undefined; metadata?: Record | undefined; description?: string | undefined; version?: string | undefined; provider?: string | undefined; documentationUrl?: string | undefined; }, { type?: string | undefined; name?: string | undefined; metadata?: Record | undefined; description?: string | undefined; version?: string | undefined; provider?: string | undefined; documentationUrl?: string | undefined; }>; /** * Declares which transport mechanisms the agent supports. Clients use this * to pick the best connection strategy. Only set flags to `true` for transports * your agent actually handles — omit or set `false` for unsupported ones. */ declare const TransportCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent streams responses via SSE. Most agents enable this. */streaming: z.ZodOptional; /** Set `true` if the agent accepts persistent WebSocket connections. */ websocket: z.ZodOptional; /** Set `true` if the agent supports the AG-UI binary protocol (protobuf over HTTP). */ httpBinary: z.ZodOptional; /** Set `true` if the agent can send async updates via webhooks after a run finishes. */ pushNotifications: z.ZodOptional; /** Set `true` if the agent supports resuming interrupted streams via sequence numbers. */ resumable: z.ZodOptional; }, "strip", z.ZodTypeAny, { streaming?: boolean | undefined; websocket?: boolean | undefined; httpBinary?: boolean | undefined; pushNotifications?: boolean | undefined; resumable?: boolean | undefined; }, { streaming?: boolean | undefined; websocket?: boolean | undefined; httpBinary?: boolean | undefined; pushNotifications?: boolean | undefined; resumable?: boolean | undefined; }>; /** * Tool calling capabilities. Distinguishes between tools the agent itself provides * (listed in `items`) and tools the client passes at runtime via `RunAgentInput.tools`. * Enable this when your agent can call functions, search the web, execute code, etc. */ declare const ToolsCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent can make tool calls at all. Set `false` to explicitly * signal tool calling is disabled even if items are present. */ supported: z.ZodOptional; /** The tools this agent provides on its own (full JSON Schema definitions). * These are distinct from client-provided tools passed in `RunAgentInput.tools`. */ items: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">>; /** Set `true` if the agent can invoke multiple tools concurrently within a single step. */ parallelCalls: z.ZodOptional; /** Set `true` if the agent accepts and uses tools provided by the client at runtime. */ clientProvided: z.ZodOptional; }, "strip", z.ZodTypeAny, { supported?: boolean | undefined; items?: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[] | undefined; parallelCalls?: boolean | undefined; clientProvided?: boolean | undefined; }, { supported?: boolean | undefined; items?: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[] | undefined; parallelCalls?: boolean | undefined; clientProvided?: boolean | undefined; }>; /** * Output format support. Enable `structuredOutput` when your agent can return * responses conforming to a JSON schema, which is useful for programmatic consumption. */ declare const OutputCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent can produce structured JSON output matching a provided schema. */structuredOutput: z.ZodOptional; /** MIME types the agent can produce (e.g., `["text/plain", "application/json"]`). * Omit if the agent only produces plain text. */ supportedMimeTypes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { structuredOutput?: boolean | undefined; supportedMimeTypes?: string[] | undefined; }, { structuredOutput?: boolean | undefined; supportedMimeTypes?: string[] | undefined; }>; /** * State and memory management capabilities. These tell the client how the agent * handles shared state and whether conversation context persists across runs. */ declare const StateCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent emits `STATE_SNAPSHOT` events (full state replacement). */snapshots: z.ZodOptional; /** Set `true` if the agent emits `STATE_DELTA` events (JSON Patch incremental updates). */ deltas: z.ZodOptional; /** Set `true` if the agent has long-term memory beyond the current thread * (e.g., vector store, knowledge base, or cross-session recall). */ memory: z.ZodOptional; /** Set `true` if state is preserved across multiple runs within the same thread. * When `false`, state resets on each run. */ persistentState: z.ZodOptional; }, "strip", z.ZodTypeAny, { snapshots?: boolean | undefined; deltas?: boolean | undefined; memory?: boolean | undefined; persistentState?: boolean | undefined; }, { snapshots?: boolean | undefined; deltas?: boolean | undefined; memory?: boolean | undefined; persistentState?: boolean | undefined; }>; /** * Multi-agent coordination capabilities. Enable these when your agent can * orchestrate or hand off work to other agents. */ declare const MultiAgentCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent participates in any form of multi-agent coordination. */supported: z.ZodOptional; /** Set `true` if the agent can delegate subtasks to other agents while retaining control. */ delegation: z.ZodOptional; /** Set `true` if the agent can transfer the conversation entirely to another agent. */ handoffs: z.ZodOptional; /** List of sub-agents this agent can invoke. Helps clients build agent selection UIs. */ subAgents: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; }, { name: string; description?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { supported?: boolean | undefined; delegation?: boolean | undefined; handoffs?: boolean | undefined; subAgents?: { name: string; description?: string | undefined; }[] | undefined; }, { supported?: boolean | undefined; delegation?: boolean | undefined; handoffs?: boolean | undefined; subAgents?: { name: string; description?: string | undefined; }[] | undefined; }>; /** * Reasoning and thinking capabilities. Enable these when your agent exposes its * internal thought process (e.g., chain-of-thought, extended thinking). */ declare const ReasoningCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent produces reasoning/thinking tokens visible to the client. */supported: z.ZodOptional; /** Set `true` if reasoning tokens are streamed incrementally (vs. returned all at once). */ streaming: z.ZodOptional; /** Set `true` if reasoning content is encrypted (zero-data-retention mode). * Clients should expect opaque `encryptedValue` fields instead of readable content. */ encrypted: z.ZodOptional; }, "strip", z.ZodTypeAny, { streaming?: boolean | undefined; supported?: boolean | undefined; encrypted?: boolean | undefined; }, { streaming?: boolean | undefined; supported?: boolean | undefined; encrypted?: boolean | undefined; }>; /** * Modalities the agent can accept as input. Clients use this to show/hide * file upload buttons, audio recorders, image pickers, etc. */ declare const MultimodalInputCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent can process image inputs (e.g., screenshots, photos). */image: z.ZodOptional; /** Set `true` if the agent can process audio inputs (speech, recordings). */ audio: z.ZodOptional; /** Set `true` if the agent can process video inputs. */ video: z.ZodOptional; /** Set `true` if the agent can process PDF documents. */ pdf: z.ZodOptional; /** Set `true` if the agent can process arbitrary file uploads. */ file: z.ZodOptional; }, "strip", z.ZodTypeAny, { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; }, { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; }>; /** * Modalities the agent can produce as output. Clients use this to anticipate * rich content in the agent's response. */ declare const MultimodalOutputCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent can generate images as part of its response. */image: z.ZodOptional; /** Set `true` if the agent can produce audio output (text-to-speech, audio files). */ audio: z.ZodOptional; }, "strip", z.ZodTypeAny, { image?: boolean | undefined; audio?: boolean | undefined; }, { image?: boolean | undefined; audio?: boolean | undefined; }>; /** * Multimodal input and output support. Organized into `input` and `output` * sub-objects so clients can independently query what the agent accepts * versus what it produces. */ declare const MultimodalCapabilitiesSchema: z.ZodObject<{ /** Modalities the agent can accept as input (images, audio, video, PDFs, files). */input: z.ZodOptional; /** Set `true` if the agent can process audio inputs (speech, recordings). */ audio: z.ZodOptional; /** Set `true` if the agent can process video inputs. */ video: z.ZodOptional; /** Set `true` if the agent can process PDF documents. */ pdf: z.ZodOptional; /** Set `true` if the agent can process arbitrary file uploads. */ file: z.ZodOptional; }, "strip", z.ZodTypeAny, { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; }, { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; }>>; /** Modalities the agent can produce as output (images, audio). */ output: z.ZodOptional; /** Set `true` if the agent can produce audio output (text-to-speech, audio files). */ audio: z.ZodOptional; }, "strip", z.ZodTypeAny, { image?: boolean | undefined; audio?: boolean | undefined; }, { image?: boolean | undefined; audio?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { input?: { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; } | undefined; output?: { image?: boolean | undefined; audio?: boolean | undefined; } | undefined; }, { input?: { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; } | undefined; output?: { image?: boolean | undefined; audio?: boolean | undefined; } | undefined; }>; /** * Execution control and limits. Declare these so clients can set expectations * about how long or how many steps an agent run might take. */ declare const ExecutionCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent can execute code (e.g., Python, JavaScript) during a run. */codeExecution: z.ZodOptional; /** Set `true` if code execution happens in a sandboxed/isolated environment. * Only meaningful when `codeExecution` is `true`. */ sandboxed: z.ZodOptional; /** Maximum number of tool-call/reasoning iterations the agent will perform per run. * Helps clients display progress or set timeout expectations. */ maxIterations: z.ZodOptional; /** Maximum wall-clock time (in milliseconds) the agent will run before timing out. */ maxExecutionTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { codeExecution?: boolean | undefined; sandboxed?: boolean | undefined; maxIterations?: number | undefined; maxExecutionTime?: number | undefined; }, { codeExecution?: boolean | undefined; sandboxed?: boolean | undefined; maxIterations?: number | undefined; maxExecutionTime?: number | undefined; }>; /** * Human-in-the-loop interaction support. Enable these when your agent can pause * execution to request human input, approval, or feedback before continuing. */ declare const HumanInTheLoopCapabilitiesSchema: z.ZodObject<{ /** Set `true` if the agent supports any form of human-in-the-loop interaction. */supported: z.ZodOptional; /** Set `true` if the agent can pause and request explicit approval before * performing sensitive actions (e.g., sending emails, deleting data). */ approvals: z.ZodOptional; /** Set `true` if the agent allows humans to intervene and modify its plan mid-execution. */ interventions: z.ZodOptional; /** Set `true` if the agent can incorporate user feedback (thumbs up/down, corrections) * to improve its behavior within the current session. */ feedback: z.ZodOptional; /** Set `true` if the agent participates in the AG-UI interrupt protocol * (emits RUN_FINISHED with outcome={ type: "interrupt", interrupts: [...] }, * accepts resume[]). */ interrupts: z.ZodOptional; /** Set `true` if tool-call interrupts accept editedArgs in the resume payload. * Only meaningful when interrupts is true. */ approveWithEdits: z.ZodOptional; }, "strip", z.ZodTypeAny, { interrupts?: boolean | undefined; supported?: boolean | undefined; approvals?: boolean | undefined; interventions?: boolean | undefined; feedback?: boolean | undefined; approveWithEdits?: boolean | undefined; }, { interrupts?: boolean | undefined; supported?: boolean | undefined; approvals?: boolean | undefined; interventions?: boolean | undefined; feedback?: boolean | undefined; approveWithEdits?: boolean | undefined; }>; /** * A typed, categorized snapshot of an agent's current capabilities. * Returned by `getCapabilities()` on `AbstractAgent`. * * All fields are optional — agents only declare what they support. * Omitted fields mean the capability is not declared (unknown), not that * it's unsupported. * * The `custom` field is an escape hatch for integration-specific capabilities * that don't fit into the standard categories. */ declare const AgentCapabilitiesSchema: z.ZodObject<{ /** Agent identity and metadata. */identity: z.ZodOptional; /** The framework or platform powering this agent (e.g., "langgraph", "mastra", "crewai"). */ type: z.ZodOptional; /** What this agent does — helps users and routing logic decide when to use it. */ description: z.ZodOptional; /** Semantic version of the agent (e.g., "1.2.0"). Useful for compatibility checks. */ version: z.ZodOptional; /** Organization or team that maintains this agent. */ provider: z.ZodOptional; /** URL to the agent's documentation or homepage. */ documentationUrl: z.ZodOptional; /** Arbitrary key-value pairs for integration-specific identity info. */ metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: string | undefined; name?: string | undefined; metadata?: Record | undefined; description?: string | undefined; version?: string | undefined; provider?: string | undefined; documentationUrl?: string | undefined; }, { type?: string | undefined; name?: string | undefined; metadata?: Record | undefined; description?: string | undefined; version?: string | undefined; provider?: string | undefined; documentationUrl?: string | undefined; }>>; /** Supported transport mechanisms (SSE, WebSocket, binary, etc.). */ transport: z.ZodOptional; /** Set `true` if the agent accepts persistent WebSocket connections. */ websocket: z.ZodOptional; /** Set `true` if the agent supports the AG-UI binary protocol (protobuf over HTTP). */ httpBinary: z.ZodOptional; /** Set `true` if the agent can send async updates via webhooks after a run finishes. */ pushNotifications: z.ZodOptional; /** Set `true` if the agent supports resuming interrupted streams via sequence numbers. */ resumable: z.ZodOptional; }, "strip", z.ZodTypeAny, { streaming?: boolean | undefined; websocket?: boolean | undefined; httpBinary?: boolean | undefined; pushNotifications?: boolean | undefined; resumable?: boolean | undefined; }, { streaming?: boolean | undefined; websocket?: boolean | undefined; httpBinary?: boolean | undefined; pushNotifications?: boolean | undefined; resumable?: boolean | undefined; }>>; /** Tools the agent provides and tool calling configuration. */ tools: z.ZodOptional; /** The tools this agent provides on its own (full JSON Schema definitions). * These are distinct from client-provided tools passed in `RunAgentInput.tools`. */ items: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">>; /** Set `true` if the agent can invoke multiple tools concurrently within a single step. */ parallelCalls: z.ZodOptional; /** Set `true` if the agent accepts and uses tools provided by the client at runtime. */ clientProvided: z.ZodOptional; }, "strip", z.ZodTypeAny, { supported?: boolean | undefined; items?: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[] | undefined; parallelCalls?: boolean | undefined; clientProvided?: boolean | undefined; }, { supported?: boolean | undefined; items?: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[] | undefined; parallelCalls?: boolean | undefined; clientProvided?: boolean | undefined; }>>; /** Output format support (structured output, MIME types). */ output: z.ZodOptional; /** MIME types the agent can produce (e.g., `["text/plain", "application/json"]`). * Omit if the agent only produces plain text. */ supportedMimeTypes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { structuredOutput?: boolean | undefined; supportedMimeTypes?: string[] | undefined; }, { structuredOutput?: boolean | undefined; supportedMimeTypes?: string[] | undefined; }>>; /** State and memory management (snapshots, deltas, persistence). */ state: z.ZodOptional; /** Set `true` if the agent emits `STATE_DELTA` events (JSON Patch incremental updates). */ deltas: z.ZodOptional; /** Set `true` if the agent has long-term memory beyond the current thread * (e.g., vector store, knowledge base, or cross-session recall). */ memory: z.ZodOptional; /** Set `true` if state is preserved across multiple runs within the same thread. * When `false`, state resets on each run. */ persistentState: z.ZodOptional; }, "strip", z.ZodTypeAny, { snapshots?: boolean | undefined; deltas?: boolean | undefined; memory?: boolean | undefined; persistentState?: boolean | undefined; }, { snapshots?: boolean | undefined; deltas?: boolean | undefined; memory?: boolean | undefined; persistentState?: boolean | undefined; }>>; /** Multi-agent coordination (delegation, handoffs, sub-agents). */ multiAgent: z.ZodOptional; /** Set `true` if the agent can delegate subtasks to other agents while retaining control. */ delegation: z.ZodOptional; /** Set `true` if the agent can transfer the conversation entirely to another agent. */ handoffs: z.ZodOptional; /** List of sub-agents this agent can invoke. Helps clients build agent selection UIs. */ subAgents: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; }, { name: string; description?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { supported?: boolean | undefined; delegation?: boolean | undefined; handoffs?: boolean | undefined; subAgents?: { name: string; description?: string | undefined; }[] | undefined; }, { supported?: boolean | undefined; delegation?: boolean | undefined; handoffs?: boolean | undefined; subAgents?: { name: string; description?: string | undefined; }[] | undefined; }>>; /** Reasoning and thinking support (chain-of-thought, encrypted thinking). */ reasoning: z.ZodOptional; /** Set `true` if reasoning tokens are streamed incrementally (vs. returned all at once). */ streaming: z.ZodOptional; /** Set `true` if reasoning content is encrypted (zero-data-retention mode). * Clients should expect opaque `encryptedValue` fields instead of readable content. */ encrypted: z.ZodOptional; }, "strip", z.ZodTypeAny, { streaming?: boolean | undefined; supported?: boolean | undefined; encrypted?: boolean | undefined; }, { streaming?: boolean | undefined; supported?: boolean | undefined; encrypted?: boolean | undefined; }>>; /** Multimodal input/output support (images, audio, video, files). */ multimodal: z.ZodOptional; /** Set `true` if the agent can process audio inputs (speech, recordings). */ audio: z.ZodOptional; /** Set `true` if the agent can process video inputs. */ video: z.ZodOptional; /** Set `true` if the agent can process PDF documents. */ pdf: z.ZodOptional; /** Set `true` if the agent can process arbitrary file uploads. */ file: z.ZodOptional; }, "strip", z.ZodTypeAny, { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; }, { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; }>>; /** Modalities the agent can produce as output (images, audio). */ output: z.ZodOptional; /** Set `true` if the agent can produce audio output (text-to-speech, audio files). */ audio: z.ZodOptional; }, "strip", z.ZodTypeAny, { image?: boolean | undefined; audio?: boolean | undefined; }, { image?: boolean | undefined; audio?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { input?: { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; } | undefined; output?: { image?: boolean | undefined; audio?: boolean | undefined; } | undefined; }, { input?: { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; } | undefined; output?: { image?: boolean | undefined; audio?: boolean | undefined; } | undefined; }>>; /** Execution control and limits (code execution, timeouts, iteration caps). */ execution: z.ZodOptional; /** Set `true` if code execution happens in a sandboxed/isolated environment. * Only meaningful when `codeExecution` is `true`. */ sandboxed: z.ZodOptional; /** Maximum number of tool-call/reasoning iterations the agent will perform per run. * Helps clients display progress or set timeout expectations. */ maxIterations: z.ZodOptional; /** Maximum wall-clock time (in milliseconds) the agent will run before timing out. */ maxExecutionTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { codeExecution?: boolean | undefined; sandboxed?: boolean | undefined; maxIterations?: number | undefined; maxExecutionTime?: number | undefined; }, { codeExecution?: boolean | undefined; sandboxed?: boolean | undefined; maxIterations?: number | undefined; maxExecutionTime?: number | undefined; }>>; /** Human-in-the-loop support (approvals, interventions, feedback). */ humanInTheLoop: z.ZodOptional; /** Set `true` if the agent can pause and request explicit approval before * performing sensitive actions (e.g., sending emails, deleting data). */ approvals: z.ZodOptional; /** Set `true` if the agent allows humans to intervene and modify its plan mid-execution. */ interventions: z.ZodOptional; /** Set `true` if the agent can incorporate user feedback (thumbs up/down, corrections) * to improve its behavior within the current session. */ feedback: z.ZodOptional; /** Set `true` if the agent participates in the AG-UI interrupt protocol * (emits RUN_FINISHED with outcome={ type: "interrupt", interrupts: [...] }, * accepts resume[]). */ interrupts: z.ZodOptional; /** Set `true` if tool-call interrupts accept editedArgs in the resume payload. * Only meaningful when interrupts is true. */ approveWithEdits: z.ZodOptional; }, "strip", z.ZodTypeAny, { interrupts?: boolean | undefined; supported?: boolean | undefined; approvals?: boolean | undefined; interventions?: boolean | undefined; feedback?: boolean | undefined; approveWithEdits?: boolean | undefined; }, { interrupts?: boolean | undefined; supported?: boolean | undefined; approvals?: boolean | undefined; interventions?: boolean | undefined; feedback?: boolean | undefined; approveWithEdits?: boolean | undefined; }>>; /** Integration-specific capabilities not covered by the standard categories. */ custom: z.ZodOptional>; }, "strip", z.ZodTypeAny, { custom?: Record | undefined; reasoning?: { streaming?: boolean | undefined; supported?: boolean | undefined; encrypted?: boolean | undefined; } | undefined; state?: { snapshots?: boolean | undefined; deltas?: boolean | undefined; memory?: boolean | undefined; persistentState?: boolean | undefined; } | undefined; tools?: { supported?: boolean | undefined; items?: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[] | undefined; parallelCalls?: boolean | undefined; clientProvided?: boolean | undefined; } | undefined; output?: { structuredOutput?: boolean | undefined; supportedMimeTypes?: string[] | undefined; } | undefined; identity?: { type?: string | undefined; name?: string | undefined; metadata?: Record | undefined; description?: string | undefined; version?: string | undefined; provider?: string | undefined; documentationUrl?: string | undefined; } | undefined; transport?: { streaming?: boolean | undefined; websocket?: boolean | undefined; httpBinary?: boolean | undefined; pushNotifications?: boolean | undefined; resumable?: boolean | undefined; } | undefined; multiAgent?: { supported?: boolean | undefined; delegation?: boolean | undefined; handoffs?: boolean | undefined; subAgents?: { name: string; description?: string | undefined; }[] | undefined; } | undefined; multimodal?: { input?: { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; } | undefined; output?: { image?: boolean | undefined; audio?: boolean | undefined; } | undefined; } | undefined; execution?: { codeExecution?: boolean | undefined; sandboxed?: boolean | undefined; maxIterations?: number | undefined; maxExecutionTime?: number | undefined; } | undefined; humanInTheLoop?: { interrupts?: boolean | undefined; supported?: boolean | undefined; approvals?: boolean | undefined; interventions?: boolean | undefined; feedback?: boolean | undefined; approveWithEdits?: boolean | undefined; } | undefined; }, { custom?: Record | undefined; reasoning?: { streaming?: boolean | undefined; supported?: boolean | undefined; encrypted?: boolean | undefined; } | undefined; state?: { snapshots?: boolean | undefined; deltas?: boolean | undefined; memory?: boolean | undefined; persistentState?: boolean | undefined; } | undefined; tools?: { supported?: boolean | undefined; items?: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[] | undefined; parallelCalls?: boolean | undefined; clientProvided?: boolean | undefined; } | undefined; output?: { structuredOutput?: boolean | undefined; supportedMimeTypes?: string[] | undefined; } | undefined; identity?: { type?: string | undefined; name?: string | undefined; metadata?: Record | undefined; description?: string | undefined; version?: string | undefined; provider?: string | undefined; documentationUrl?: string | undefined; } | undefined; transport?: { streaming?: boolean | undefined; websocket?: boolean | undefined; httpBinary?: boolean | undefined; pushNotifications?: boolean | undefined; resumable?: boolean | undefined; } | undefined; multiAgent?: { supported?: boolean | undefined; delegation?: boolean | undefined; handoffs?: boolean | undefined; subAgents?: { name: string; description?: string | undefined; }[] | undefined; } | undefined; multimodal?: { input?: { image?: boolean | undefined; audio?: boolean | undefined; video?: boolean | undefined; pdf?: boolean | undefined; file?: boolean | undefined; } | undefined; output?: { image?: boolean | undefined; audio?: boolean | undefined; } | undefined; } | undefined; execution?: { codeExecution?: boolean | undefined; sandboxed?: boolean | undefined; maxIterations?: number | undefined; maxExecutionTime?: number | undefined; } | undefined; humanInTheLoop?: { interrupts?: boolean | undefined; supported?: boolean | undefined; approvals?: boolean | undefined; interventions?: boolean | undefined; feedback?: boolean | undefined; approveWithEdits?: boolean | undefined; } | undefined; }>; /** Describes a sub-agent that can be invoked by a parent agent. */ type SubAgentInfo = z.infer; /** Agent identity and metadata for discovery UIs, marketplaces, and debugging. */ type IdentityCapabilities = z.infer; /** Supported transport mechanisms (SSE, WebSocket, binary protocol, push notifications). */ type TransportCapabilities = z.infer; /** Tool calling support and agent-provided tool definitions. */ type ToolsCapabilities = z.infer; /** Output format support (structured output, MIME types). */ type OutputCapabilities = z.infer; /** State and memory management (snapshots, deltas, persistence, long-term memory). */ type StateCapabilities = z.infer; /** Multi-agent coordination (delegation, handoffs, sub-agent orchestration). */ type MultiAgentCapabilities = z.infer; /** Reasoning and thinking visibility (streaming, encrypted chain-of-thought). */ type ReasoningCapabilities = z.infer; /** Modalities the agent can accept as input (images, audio, video, PDFs, files). */ type MultimodalInputCapabilities = z.infer; /** Modalities the agent can produce as output (images, audio). */ type MultimodalOutputCapabilities = z.infer; /** Multimodal input/output support (images, audio, video, PDFs, file uploads). */ type MultimodalCapabilities = z.infer; /** Execution control and limits (code execution, sandboxing, iteration caps, timeouts). */ type ExecutionCapabilities = z.infer; /** Human-in-the-loop interaction support (approvals, interventions, feedback). */ type HumanInTheLoopCapabilities = z.infer; /** A typed, categorized snapshot of an agent's current capabilities. Returned by `getCapabilities()`. */ type AgentCapabilities = z.infer; //#endregion //#region src/events.d.ts declare enum EventType { TEXT_MESSAGE_START = "TEXT_MESSAGE_START", TEXT_MESSAGE_CONTENT = "TEXT_MESSAGE_CONTENT", TEXT_MESSAGE_END = "TEXT_MESSAGE_END", TEXT_MESSAGE_CHUNK = "TEXT_MESSAGE_CHUNK", TOOL_CALL_START = "TOOL_CALL_START", TOOL_CALL_ARGS = "TOOL_CALL_ARGS", TOOL_CALL_END = "TOOL_CALL_END", TOOL_CALL_CHUNK = "TOOL_CALL_CHUNK", TOOL_CALL_RESULT = "TOOL_CALL_RESULT", /** * @deprecated Use REASONING_START instead. Will be removed in 1.0.0. */ THINKING_START = "THINKING_START", /** * @deprecated Use REASONING_END instead. Will be removed in 1.0.0. */ THINKING_END = "THINKING_END", /** * @deprecated Use REASONING_MESSAGE_START instead. Will be removed in 1.0.0. */ THINKING_TEXT_MESSAGE_START = "THINKING_TEXT_MESSAGE_START", /** * @deprecated Use REASONING_MESSAGE_CONTENT instead. Will be removed in 1.0.0. */ THINKING_TEXT_MESSAGE_CONTENT = "THINKING_TEXT_MESSAGE_CONTENT", /** * @deprecated Use REASONING_MESSAGE_END instead. Will be removed in 1.0.0. */ THINKING_TEXT_MESSAGE_END = "THINKING_TEXT_MESSAGE_END", STATE_SNAPSHOT = "STATE_SNAPSHOT", STATE_DELTA = "STATE_DELTA", MESSAGES_SNAPSHOT = "MESSAGES_SNAPSHOT", ACTIVITY_SNAPSHOT = "ACTIVITY_SNAPSHOT", ACTIVITY_DELTA = "ACTIVITY_DELTA", RAW = "RAW", CUSTOM = "CUSTOM", RUN_STARTED = "RUN_STARTED", RUN_FINISHED = "RUN_FINISHED", RUN_ERROR = "RUN_ERROR", STEP_STARTED = "STEP_STARTED", STEP_FINISHED = "STEP_FINISHED", REASONING_START = "REASONING_START", REASONING_MESSAGE_START = "REASONING_MESSAGE_START", REASONING_MESSAGE_CONTENT = "REASONING_MESSAGE_CONTENT", REASONING_MESSAGE_END = "REASONING_MESSAGE_END", REASONING_MESSAGE_CHUNK = "REASONING_MESSAGE_CHUNK", REASONING_END = "REASONING_END", REASONING_ENCRYPTED_VALUE = "REASONING_ENCRYPTED_VALUE" } declare const BaseEventSchema: z.ZodObject<{ type: z.ZodNativeEnum; timestamp: z.ZodOptional; rawEvent: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodNativeEnum; timestamp: z.ZodOptional; rawEvent: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodNativeEnum; timestamp: z.ZodOptional; rawEvent: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; declare const TextMessageStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodDefault, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; name: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodDefault, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodDefault, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; declare const TextMessageContentEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const TextMessageEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const TextMessageChunkEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; delta: z.ZodOptional; name: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; delta: z.ZodOptional; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; delta: z.ZodOptional; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; /** * @deprecated Use ReasoningMessageStartEventSchema instead. Will be removed in 1.0.0. */ declare const ThinkingTextMessageStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>; /** * @deprecated Use ReasoningMessageContentEventSchema instead. Will be removed in 1.0.0. */ declare const ThinkingTextMessageContentEventSchema: z.ZodObject; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "type" | "messageId"> & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "type" | "messageId"> & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "type" | "messageId"> & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>; /** * @deprecated Use ReasoningMessageEndEventSchema instead. Will be removed in 1.0.0. */ declare const ThinkingTextMessageEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>; declare const ToolCallStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; declare const ToolCallArgsEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const ToolCallEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const ToolCallResultEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>; declare const ToolCallChunkEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; /** * @deprecated Use ReasoningStartEventSchema instead. Will be removed in 1.0.0. */ declare const ThinkingStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; /** * @deprecated Use ReasoningEndEventSchema instead. Will be removed in 1.0.0. */ declare const ThinkingEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>; declare const StateSnapshotEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, z.ZodTypeAny, "passthrough">>; declare const StateDeltaEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, z.ZodTypeAny, "passthrough">>; declare const MessagesSnapshotEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; }, z.ZodTypeAny, "passthrough">>; declare const ActivitySnapshotEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; content: z.ZodRecord; replace: z.ZodDefault>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; content: z.ZodRecord; replace: z.ZodDefault>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; content: z.ZodRecord; replace: z.ZodDefault>; }, z.ZodTypeAny, "passthrough">>; declare const ActivityDeltaEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; patch: z.ZodArray; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; patch: z.ZodArray; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; patch: z.ZodArray; }, z.ZodTypeAny, "passthrough">>; declare const RawEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; declare const CustomEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, z.ZodTypeAny, "passthrough">>; declare const RunStartedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; input: z.ZodOptional; state: z.ZodAny; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; tools: z.ZodArray>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">; context: z.ZodArray, "many">; forwardedProps: z.ZodAny; resume: z.ZodOptional; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; input: z.ZodOptional; state: z.ZodAny; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; tools: z.ZodArray>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">; context: z.ZodArray, "many">; forwardedProps: z.ZodAny; resume: z.ZodOptional; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; input: z.ZodOptional; state: z.ZodAny; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; tools: z.ZodArray>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">; context: z.ZodArray, "many">; forwardedProps: z.ZodAny; resume: z.ZodOptional; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }>>; }, z.ZodTypeAny, "passthrough">>; declare const RunFinishedSuccessOutcomeSchema: z.ZodObject<{ type: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>; declare const RunFinishedInterruptOutcomeSchema: z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>; declare const RunFinishedOutcomeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>, z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>]>; declare const RunFinishedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; outcome: z.ZodEffects; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>, z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>]>>>, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | undefined, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | null | undefined>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; outcome: z.ZodEffects; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>, z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>]>>>, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | undefined, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | null | undefined>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; outcome: z.ZodEffects; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>, z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>]>>>, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | undefined, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | null | undefined>; }, z.ZodTypeAny, "passthrough">>; declare const RunErrorEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; declare const StepStartedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const StepFinishedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const ReasoningEncryptedValueSubtypeSchema: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>; declare const ReasoningStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const ReasoningMessageStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"reasoning">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"reasoning">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"reasoning">; }, z.ZodTypeAny, "passthrough">>; declare const ReasoningMessageContentEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const ReasoningMessageEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const ReasoningMessageChunkEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; delta: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; declare const ReasoningEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const ReasoningEncryptedValueEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; subtype: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>; entityId: z.ZodString; encryptedValue: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; subtype: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>; entityId: z.ZodString; encryptedValue: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; subtype: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>; entityId: z.ZodString; encryptedValue: z.ZodString; }, z.ZodTypeAny, "passthrough">>; declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodDefault, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; name: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodDefault, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodDefault, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; delta: z.ZodOptional; name: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; delta: z.ZodOptional; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>; delta: z.ZodOptional; name: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>, z.ZodObject; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "type" | "messageId"> & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "type" | "messageId"> & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "type" | "messageId"> & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; content: z.ZodRecord; replace: z.ZodDefault>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; content: z.ZodRecord; replace: z.ZodDefault>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; content: z.ZodRecord; replace: z.ZodDefault>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; patch: z.ZodArray; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; patch: z.ZodArray; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; activityType: z.ZodString; patch: z.ZodArray; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; input: z.ZodOptional; state: z.ZodAny; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; tools: z.ZodArray>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">; context: z.ZodArray, "many">; forwardedProps: z.ZodAny; resume: z.ZodOptional; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; input: z.ZodOptional; state: z.ZodAny; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; tools: z.ZodArray>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">; context: z.ZodArray, "many">; forwardedProps: z.ZodAny; resume: z.ZodOptional; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; input: z.ZodOptional; state: z.ZodAny; messages: z.ZodArray; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; arguments: string; }, { name: string; arguments: string; }>; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }, { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }, { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; encryptedValue: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"data">; value: z.ZodString; mimeType: z.ZodString; }, "strip", z.ZodTypeAny, { type: "data"; value: string; mimeType: string; }, { type: "data"; value: string; mimeType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; value: z.ZodString; mimeType: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "url"; value: string; mimeType?: string | undefined; }, { type: "url"; value: string; mimeType?: string | undefined; }>]>; metadata: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }, { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"binary">; mimeType: z.ZodString; id: z.ZodOptional; url: z.ZodOptional; data: z.ZodOptional; filename: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>]>, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }, { type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; }>, "many">]>; }, "strip", z.ZodTypeAny, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }, { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; error: z.ZodOptional; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }, { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"activity">; activityType: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { role: "activity"; content: Record; id: string; activityType: string; }, { role: "activity"; content: Record; id: string; activityType: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"reasoning">; content: z.ZodString; encryptedValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }, { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; }>]>, "many">; tools: z.ZodArray>; }, "strip", z.ZodTypeAny, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }, { name: string; description: string; metadata?: Record | undefined; parameters?: any; }>, "many">; context: z.ZodArray, "many">; forwardedProps: z.ZodAny; resume: z.ZodOptional; payload: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }, { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }, { messages: ({ role: "developer"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "system"; content: string; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "assistant"; id: string; name?: string | undefined; content?: string | undefined; encryptedValue?: string | undefined; toolCalls?: { function: { name: string; arguments: string; }; type: "function"; id: string; encryptedValue?: string | undefined; }[] | undefined; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "audio"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "video"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "document"; source: { type: "data"; value: string; mimeType: string; } | { type: "url"; value: string; mimeType?: string | undefined; }; metadata?: unknown; } | { type: "binary"; mimeType: string; id?: string | undefined; data?: string | undefined; url?: string | undefined; filename?: string | undefined; })[]; id: string; name?: string | undefined; encryptedValue?: string | undefined; } | { role: "tool"; toolCallId: string; content: string; id: string; encryptedValue?: string | undefined; error?: string | undefined; } | { role: "activity"; content: Record; id: string; activityType: string; } | { role: "reasoning"; content: string; id: string; encryptedValue?: string | undefined; })[]; threadId: string; runId: string; tools: { name: string; description: string; metadata?: Record | undefined; parameters?: any; }[]; context: { value: string; description: string; }[]; parentRunId?: string | undefined; state?: any; forwardedProps?: any; resume?: { status: "resolved" | "cancelled"; interruptId: string; payload?: any; }[] | undefined; }>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; outcome: z.ZodEffects; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>, z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>]>>>, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | undefined, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | null | undefined>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; outcome: z.ZodEffects; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>, z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>]>>>, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | undefined, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | null | undefined>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; outcome: z.ZodEffects; }, "strict", z.ZodTypeAny, { type: "success"; }, { type: "success"; }>, z.ZodObject<{ type: z.ZodLiteral<"interrupt">; interrupts: z.ZodArray; toolCallId: z.ZodOptional; responseSchema: z.ZodOptional>; expiresAt: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }, { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }, { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; }>]>>>, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | undefined, { type: "success"; } | { type: "interrupt"; interrupts: { id: string; reason: string; message?: string | undefined; toolCallId?: string | undefined; metadata?: Record | undefined; responseSchema?: Record | undefined; expiresAt?: string | undefined; }[]; } | null | undefined>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"reasoning">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"reasoning">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"reasoning">; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; delta: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; delta: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; subtype: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>; entityId: z.ZodString; encryptedValue: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; subtype: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>; entityId: z.ZodString; encryptedValue: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; subtype: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>; entityId: z.ZodString; encryptedValue: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; type BaseEvent = z.infer; type AGUIEvent = z.infer; type BaseEventFields = z.infer; type AGUIEventByType = { [EventType.TEXT_MESSAGE_START]: TextMessageStartEvent; [EventType.TEXT_MESSAGE_CONTENT]: TextMessageContentEvent; [EventType.TEXT_MESSAGE_END]: TextMessageEndEvent; [EventType.TEXT_MESSAGE_CHUNK]: TextMessageChunkEvent; [EventType.THINKING_TEXT_MESSAGE_START]: ThinkingTextMessageStartEvent; [EventType.THINKING_TEXT_MESSAGE_CONTENT]: ThinkingTextMessageContentEvent; [EventType.THINKING_TEXT_MESSAGE_END]: ThinkingTextMessageEndEvent; [EventType.TOOL_CALL_START]: ToolCallStartEvent; [EventType.TOOL_CALL_ARGS]: ToolCallArgsEvent; [EventType.TOOL_CALL_END]: ToolCallEndEvent; [EventType.TOOL_CALL_CHUNK]: ToolCallChunkEvent; [EventType.TOOL_CALL_RESULT]: ToolCallResultEvent; [EventType.THINKING_START]: ThinkingStartEvent; [EventType.THINKING_END]: ThinkingEndEvent; [EventType.STATE_SNAPSHOT]: StateSnapshotEvent; [EventType.STATE_DELTA]: StateDeltaEvent; [EventType.MESSAGES_SNAPSHOT]: MessagesSnapshotEvent; [EventType.ACTIVITY_SNAPSHOT]: ActivitySnapshotEvent; [EventType.ACTIVITY_DELTA]: ActivityDeltaEvent; [EventType.RAW]: RawEvent; [EventType.CUSTOM]: CustomEvent; [EventType.RUN_STARTED]: RunStartedEvent; [EventType.RUN_FINISHED]: RunFinishedEvent; [EventType.RUN_ERROR]: RunErrorEvent; [EventType.STEP_STARTED]: StepStartedEvent; [EventType.STEP_FINISHED]: StepFinishedEvent; [EventType.REASONING_START]: ReasoningStartEvent; [EventType.REASONING_MESSAGE_START]: ReasoningMessageStartEvent; [EventType.REASONING_MESSAGE_CONTENT]: ReasoningMessageContentEvent; [EventType.REASONING_MESSAGE_END]: ReasoningMessageEndEvent; [EventType.REASONING_MESSAGE_CHUNK]: ReasoningMessageChunkEvent; [EventType.REASONING_END]: ReasoningEndEvent; [EventType.REASONING_ENCRYPTED_VALUE]: ReasoningEncryptedValueEvent; }; type AGUIEventOf = AGUIEventByType[T]; type EventPayloadOf = Omit, keyof BaseEventFields>; type EventProps = Omit, "type">; type BaseEventProps = EventProps; type TextMessageStartEventProps = EventProps; type TextMessageContentEventProps = EventProps; type TextMessageEndEventProps = EventProps; type TextMessageChunkEventProps = EventProps; type ThinkingTextMessageStartEventProps = EventProps; type ThinkingTextMessageContentEventProps = EventProps; type ThinkingTextMessageEndEventProps = EventProps; type ToolCallStartEventProps = EventProps; type ToolCallArgsEventProps = EventProps; type ToolCallEndEventProps = EventProps; type ToolCallChunkEventProps = EventProps; type ToolCallResultEventProps = EventProps; type ThinkingStartEventProps = EventProps; type ThinkingEndEventProps = EventProps; type StateSnapshotEventProps = EventProps; type StateDeltaEventProps = EventProps; type MessagesSnapshotEventProps = EventProps; type ActivitySnapshotEventProps = EventProps; type ActivityDeltaEventProps = EventProps; type RawEventProps = EventProps; type CustomEventProps = EventProps; type RunStartedEventProps = EventProps; type RunFinishedEventProps = EventProps; type RunErrorEventProps = EventProps; type StepStartedEventProps = EventProps; type StepFinishedEventProps = EventProps; type ReasoningStartEventProps = EventProps; type ReasoningMessageStartEventProps = EventProps; type ReasoningMessageContentEventProps = EventProps; type ReasoningMessageEndEventProps = EventProps; type ReasoningMessageChunkEventProps = EventProps; type ReasoningEndEventProps = EventProps; type ReasoningEncryptedValueEventProps = EventProps; type TextMessageStartEvent = z.infer; type TextMessageContentEvent = z.infer; type TextMessageEndEvent = z.infer; type TextMessageChunkEvent = z.infer; type ThinkingTextMessageStartEvent = z.infer; type ThinkingTextMessageContentEvent = z.infer; type ThinkingTextMessageEndEvent = z.infer; type ToolCallStartEvent = z.infer; type ToolCallArgsEvent = z.infer; type ToolCallEndEvent = z.infer; type ToolCallChunkEvent = z.infer; type ToolCallResultEvent = z.infer; type ThinkingStartEvent = z.infer; type ThinkingEndEvent = z.infer; type StateSnapshotEvent = z.infer; type StateDeltaEvent = z.infer; type MessagesSnapshotEvent = z.infer; type ActivitySnapshotEvent = z.infer; type ActivityDeltaEvent = z.infer; type RawEvent = z.infer; type CustomEvent = z.infer; type RunStartedEvent = z.infer; type RunFinishedEvent = z.infer; type RunFinishedOutcome = z.infer; type RunFinishedSuccessOutcome = z.infer; type RunFinishedInterruptOutcome = z.infer; type RunErrorEvent = z.infer; type StepStartedEvent = z.infer; type StepFinishedEvent = z.infer; type ReasoningStartEvent = z.infer; type ReasoningMessageStartEvent = z.infer; type ReasoningMessageContentEvent = z.infer; type ReasoningMessageEndEvent = z.infer; type ReasoningMessageChunkEvent = z.infer; type ReasoningEndEvent = z.infer; type ReasoningEncryptedValueEvent = z.infer; type ReasoningEncryptedValueSubtype = z.infer; //#endregion export { AGUIConnectNotImplementedError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityDeltaEventSchema, ActivityMessage, ActivityMessageSchema, ActivitySnapshotEvent, ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AgentCapabilities, AgentCapabilitiesSchema, AssistantMessage, AssistantMessageSchema, AudioInputContent, AudioInputContentSchema, AudioInputPart, AudioInputPartSchema, BaseEvent, BaseEventFields, BaseEventProps, BaseEventSchema, BaseMessageSchema, BinaryInputContent, BinaryInputContentSchema, Context, ContextSchema, CustomEvent, CustomEventProps, CustomEventSchema, DeveloperMessage, DeveloperMessageSchema, DocumentInputContent, DocumentInputContentSchema, DocumentInputPart, DocumentInputPartSchema, EventPayloadOf, EventSchemas, EventType, type ExecutionCapabilities, ExecutionCapabilitiesSchema, FunctionCall, FunctionCallSchema, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, type IdentityCapabilities, IdentityCapabilitiesSchema, ImageInputContent, ImageInputContentSchema, ImageInputPart, ImageInputPartSchema, InputContent, InputContentDataSource, InputContentDataSourceSchema, InputContentPart, InputContentSchema, InputContentSource, InputContentSourceSchema, InputContentUrlSource, InputContentUrlSourceSchema, Interrupt, InterruptSchema, Message, MessageSchema, MessagesSnapshotEvent, MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type OutputCapabilities, OutputCapabilitiesSchema, RawEvent, RawEventProps, RawEventSchema, type ReasoningCapabilities, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEvent, ReasoningEndEventProps, ReasoningEndEventSchema, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, ReasoningStartEvent, ReasoningStartEventProps, ReasoningStartEventSchema, ResumeEntry, ResumeEntrySchema, ResumeStatus, Role, RoleSchema, RunAgentInput, RunAgentInputSchema, RunErrorEvent, RunErrorEventProps, RunErrorEventSchema, RunFinishedEvent, RunFinishedEventProps, RunFinishedEventSchema, RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, RunFinishedOutcome, RunFinishedOutcomeSchema, RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunStartedEvent, RunStartedEventProps, RunStartedEventSchema, State, type StateCapabilities, StateCapabilitiesSchema, StateDeltaEvent, StateDeltaEventProps, StateDeltaEventSchema, StateSchema, StateSnapshotEvent, StateSnapshotEventProps, StateSnapshotEventSchema, StepFinishedEvent, StepFinishedEventProps, StepFinishedEventSchema, StepStartedEvent, StepStartedEventProps, StepStartedEventSchema, type SubAgentInfo, SubAgentInfoSchema, SystemMessage, SystemMessageSchema, TextInputContent, TextInputContentSchema, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageChunkEventSchema, TextMessageContentEvent, TextMessageContentEventProps, TextMessageContentEventSchema, TextMessageEndEvent, TextMessageEndEventProps, TextMessageEndEventSchema, TextMessageStartEvent, TextMessageStartEventProps, TextMessageStartEventSchema, ThinkingEndEvent, ThinkingEndEventProps, ThinkingEndEventSchema, ThinkingStartEvent, ThinkingStartEventProps, ThinkingStartEventSchema, ThinkingTextMessageContentEvent, ThinkingTextMessageContentEventProps, ThinkingTextMessageContentEventSchema, ThinkingTextMessageEndEvent, ThinkingTextMessageEndEventProps, ThinkingTextMessageEndEventSchema, ThinkingTextMessageStartEvent, ThinkingTextMessageStartEventProps, ThinkingTextMessageStartEventSchema, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallArgsEventSchema, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallChunkEventSchema, ToolCallEndEvent, ToolCallEndEventProps, ToolCallEndEventSchema, ToolCallResultEvent, ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEvent, ToolCallStartEventProps, ToolCallStartEventSchema, ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type TransportCapabilities, TransportCapabilitiesSchema, UserMessage, UserMessageSchema, VideoInputContent, VideoInputContentSchema, VideoInputPart, VideoInputPartSchema }; //# sourceMappingURL=index.d.ts.map