import { z } from 'zod'; /** * Shared validation schemas for Conversation MCP API responses * * CRITICAL: These validators enforce the contract that the frontend depends on. * They should FAIL when responses contain serialized JSON strings instead of proper objects. * * Usage: * - Backend: Validate responses before returning to MCP clients * - Frontend: Validate responses after parsing from API * - Tests: Assert on response structure */ export declare const ConversationMessageRoleSchema: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; declare const MessageMetadataSchema: z.ZodObject<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConversationMessageSchema: z.ZodObject<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConversationHistoryResponseSchema: z.ZodObject<{ history: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ conversationId: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ conversationId: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ history: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ conversationId: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ conversationId: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ history: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ conversationId: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ conversationId: z.ZodOptional; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; messageCount: z.ZodOptional; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const SendMessageResponseSchema: z.ZodObject<{ conversationId: z.ZodOptional; messageId: z.ZodOptional; sequence: z.ZodOptional; created: z.ZodOptional; title: z.ZodOptional>; timestamp: z.ZodOptional; message: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; assistantMessage: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ conversationId: z.ZodOptional; messageId: z.ZodOptional; sequence: z.ZodOptional; created: z.ZodOptional; title: z.ZodOptional>; timestamp: z.ZodOptional; message: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; assistantMessage: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ conversationId: z.ZodOptional; messageId: z.ZodOptional; sequence: z.ZodOptional; created: z.ZodOptional; title: z.ZodOptional>; timestamp: z.ZodOptional; message: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; assistantMessage: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; conversationId: z.ZodOptional; role: z.ZodEnum<["user", "assistant", "system", "tool", "function"]>; content: z.ZodString; userId: z.ZodOptional; sequence: z.ZodOptional; createdAt: z.ZodString; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; metadata: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ secondOpinion: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; secondaryOpinions: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; synthesis: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectOutputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { primary: { model: string; response: string; tokensUsed?: number | undefined; latencyMs?: number | undefined; citations?: z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; secondaryOpinions?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; citations: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; url: z.ZodString; snippet: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; synthesis?: z.objectInputType<{ model: z.ZodString; response: z.ZodString; modelId: z.ZodOptional; modelDisplayName: z.ZodOptional; tokensUsed: z.ZodOptional; latencyMs: z.ZodOptional; cost: z.ZodOptional; sources: z.ZodOptional>; error: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; persistenceStatus: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ userMessageSaved: z.ZodOptional; assistantMessageSaved: z.ZodOptional; userMessageId: z.ZodOptional>; assistantMessageId: z.ZodOptional>; error: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const ListConversationsResponseSchema: z.ZodObject<{ conversations: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ conversations: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ conversations: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional>; createdAt: z.ZodOptional; lastMessageAt: z.ZodOptional; messageCount: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>, "many">>; hasMore: z.ZodOptional; nextCursor: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>; /** * Validate conversation.get-history response * * CRITICAL: This will FAIL if the response contains serialized JSON strings * instead of proper structured objects. This is intentional - it should drive * fixing the backend to return proper objects. */ export declare function validateHistoryResponse(response: unknown): z.infer; /** * Validate conversation.send-message response */ export declare function validateSendMessageResponse(response: unknown): z.infer; /** * Validate conversation.list response */ export declare function validateListConversationsResponse(response: unknown): z.infer; /** * Type exports for TypeScript consumers */ export type ConversationMessage = z.infer; export type ConversationHistoryResponse = z.infer; export type SendMessageResponse = z.infer; export type ListConversationsResponse = z.infer; export type ConversationMessageMetadata = z.infer; export {}; //# sourceMappingURL=conversationValidators.d.ts.map