export declare const schema: import("convex/server").SchemaDefinition<{ apiKeys: import("convex/server").TableDefinition; }, "required", "name">, { name: ["name", "_creationTime"]; }, {}, {}>; embeddings_128: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_256: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_512: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_768: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_1024: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_1408: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_1536: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_2048: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_3072: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_4096: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; threads: import("convex/server").TableDefinition[] | undefined; order?: number | undefined; status: "active" | "archived"; }, { userId: import("convex/values").VString; title: import("convex/values").VString; summary: import("convex/values").VString; status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>; defaultSystemPrompt: import("convex/values").VString; parentThreadIds: import("convex/values").VArray[] | undefined, import("convex/values").VId, "required">, "optional">; order: import("convex/values").VFloat64; }, "required", "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, { userId: ["userId", "_creationTime"]; }, { title: { searchField: "title"; filterFields: "userId"; }; }, {}>; messages: import("convex/server").TableDefinition | undefined; fileIds?: import("convex/values").GenericId<"files">[] | undefined; files?: any[] | undefined; error?: string | undefined; agentName?: string | undefined; model?: string | undefined; provider?: string | undefined; providerOptions?: Record> | undefined; message?: { providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; } | { providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; } | { providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; } | { providerOptions?: Record> | undefined; role: "system"; content: string; } | undefined; text?: string | undefined; providerMetadata?: Record> | undefined; reasoning?: string | undefined; usage?: { reasoningTokens?: number | undefined; cachedInputTokens?: number | undefined; promptTokens: number; completionTokens: number; totalTokens: number; } | undefined; sources?: ({ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; })[] | undefined; warnings?: ({ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; })[] | undefined; finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined; reasoningDetails?: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; })[] | undefined; parentMessageId?: import("convex/values").GenericId<"messages"> | undefined; stepId?: string | undefined; status: "pending" | "success" | "failed"; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; tool: boolean; }, { userId: import("convex/values").VString; threadId: import("convex/values").VId, "required">; order: import("convex/values").VFloat64; stepOrder: import("convex/values").VFloat64; embeddingId: import("convex/values").VUnion | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>; fileIds: import("convex/values").VArray[] | undefined, import("convex/values").VId, "required">, "optional">; error: import("convex/values").VString; status: import("convex/values").VUnion<"pending" | "success" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>; agentName: import("convex/values").VString; model: import("convex/values").VString; provider: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; message: import("convex/values").VUnion<{ providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; } | { providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; } | { providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; } | { providerOptions?: Record> | undefined; role: "system"; content: string; } | undefined, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; }, { role: import("convex/values").VLiteral<"user", "required">; content: import("convex/values").VUnion> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[], [import("convex/values").VString, import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; }, { type: import("convex/values").VLiteral<"image", "required">; image: import("convex/values").VUnion, import("convex/values").VBytes], "required", never>; mediaType: import("convex/values").VString; mimeType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mediaType" | "mimeType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; }, { type: import("convex/values").VLiteral<"file", "required">; data: import("convex/values").VUnion, import("convex/values").VBytes], "required", never>; filename: import("convex/values").VString; mediaType: import("convex/values").VString; mimeType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "image" | "mediaType" | "mimeType" | "data" | "filename">, "required">], "required", never>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; }, { role: import("convex/values").VLiteral<"assistant", "required">; content: import("convex/values").VUnion> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[], [import("convex/values").VString, import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; }, { type: import("convex/values").VLiteral<"file", "required">; data: import("convex/values").VUnion, import("convex/values").VBytes], "required", never>; filename: import("convex/values").VString; mediaType: import("convex/values").VString; mimeType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; }, { type: import("convex/values").VLiteral<"reasoning", "required">; text: import("convex/values").VString; signature: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; }, { type: import("convex/values").VLiteral<"redacted-reasoning", "required">; data: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data">, import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; }, { type: import("convex/values").VLiteral<"tool-call", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; input: import("convex/values").VAny; args: import("convex/values").VAny; providerExecuted: import("convex/values").VBoolean; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; }, { type: import("convex/values").VLiteral<"tool-call", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; args: import("convex/values").VAny; input: import("convex/values").VAny; providerExecuted: import("convex/values").VBoolean; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>], "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; }, { type: import("convex/values").VLiteral<"tool-result", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; output: import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; value: string; }, { type: import("convex/values").VLiteral<"text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "json"; value: any; }, { type: import("convex/values").VLiteral<"json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-text"; value: string; }, { type: import("convex/values").VLiteral<"error-text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-json"; value: any; }, { type: import("convex/values").VLiteral<"error-json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; }, { type: import("convex/values").VLiteral<"execution-denied", "required">; reason: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "reason">, import("convex/values").VObject<{ type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; }, { type: import("convex/values").VLiteral<"content", "required">; value: import("convex/values").VArray<({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{ type: "media"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"media", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; }, "required", "type" | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"file-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-url"; url: string; }, { type: import("convex/values").VLiteral<"file-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"image-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-url"; url: string; }, { type: import("convex/values").VLiteral<"image-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"image-file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "custom"; }, { type: import("convex/values").VLiteral<"custom", "required">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "url" | "fileId" | `fileId.${string}`>, "required">; }, "required", "type" | "value">], "optional", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}` | "reason">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerExecuted: import("convex/values").VBoolean; result: import("convex/values").VAny; isError: import("convex/values").VBoolean; args: import("convex/values").VAny; experimental_content: import("convex/values").VArray<({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined, import("convex/values").VUnion<{ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; }, [import("convex/values").VObject<{ type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; }, "required", "type" | "text">, import("convex/values").VObject<{ mimeType?: string | undefined; type: "image"; data: string; }, { type: import("convex/values").VLiteral<"image", "required">; data: import("convex/values").VString; mimeType: import("convex/values").VString; }, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}`>, import("convex/values").VUnion<{ title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, [import("convex/values").VObject<{ title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; }, { type: import("convex/values").VLiteral<"source", "required">; sourceType: import("convex/values").VLiteral<"url", "required">; id: import("convex/values").VString; url: import("convex/values").VString; title: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, { type: import("convex/values").VLiteral<"source", "required">; sourceType: import("convex/values").VLiteral<"document", "required">; id: import("convex/values").VString; mediaType: import("convex/values").VString; title: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; }, { type: import("convex/values").VLiteral<"tool-approval-request", "required">; approvalId: import("convex/values").VString; toolCallId: import("convex/values").VString; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "id" | "title" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}` | "output" | "url" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}` | "sourceType" | "approvalId">, "required">], "required", never>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; }, { role: import("convex/values").VLiteral<"tool", "required">; content: import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; }, { type: import("convex/values").VLiteral<"tool-result", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; output: import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; value: string; }, { type: import("convex/values").VLiteral<"text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "json"; value: any; }, { type: import("convex/values").VLiteral<"json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-text"; value: string; }, { type: import("convex/values").VLiteral<"error-text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-json"; value: any; }, { type: import("convex/values").VLiteral<"error-json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; }, { type: import("convex/values").VLiteral<"execution-denied", "required">; reason: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "reason">, import("convex/values").VObject<{ type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; }, { type: import("convex/values").VLiteral<"content", "required">; value: import("convex/values").VArray<({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{ type: "media"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"media", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; }, "required", "type" | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"file-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-url"; url: string; }, { type: import("convex/values").VLiteral<"file-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"image-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-url"; url: string; }, { type: import("convex/values").VLiteral<"image-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"image-file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "custom"; }, { type: import("convex/values").VLiteral<"custom", "required">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "url" | "fileId" | `fileId.${string}`>, "required">; }, "required", "type" | "value">], "optional", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}` | "reason">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerExecuted: import("convex/values").VBoolean; result: import("convex/values").VAny; isError: import("convex/values").VBoolean; args: import("convex/values").VAny; experimental_content: import("convex/values").VArray<({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined, import("convex/values").VUnion<{ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; }, [import("convex/values").VObject<{ type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; }, "required", "type" | "text">, import("convex/values").VObject<{ mimeType?: string | undefined; type: "image"; data: string; }, { type: import("convex/values").VLiteral<"image", "required">; data: import("convex/values").VString; mimeType: import("convex/values").VString; }, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; }, { type: import("convex/values").VLiteral<"tool-approval-response", "required">; approvalId: import("convex/values").VString; approved: import("convex/values").VBoolean; reason: import("convex/values").VString; providerExecuted: import("convex/values").VBoolean; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "providerExecuted" | "reason" | "approvalId" | "approved">], "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "reason" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}` | "approvalId" | "approved">, "required">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "system"; content: string; }, { role: import("convex/values").VLiteral<"system", "required">; content: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">; tool: import("convex/values").VBoolean; text: import("convex/values").VString; usage: import("convex/values").VObject<{ reasoningTokens?: number | undefined; cachedInputTokens?: number | undefined; promptTokens: number; completionTokens: number; totalTokens: number; } | undefined, { promptTokens: import("convex/values").VFloat64; completionTokens: import("convex/values").VFloat64; totalTokens: import("convex/values").VFloat64; reasoningTokens: import("convex/values").VFloat64; cachedInputTokens: import("convex/values").VFloat64; }, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; sources: import("convex/values").VArray<({ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; })[] | undefined, import("convex/values").VUnion<{ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, [import("convex/values").VObject<{ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; }, { type: import("convex/values").VLiteral<"source" | undefined, "optional">; sourceType: import("convex/values").VLiteral<"url", "required">; id: import("convex/values").VString; url: import("convex/values").VString; title: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, { type: import("convex/values").VLiteral<"source", "required">; sourceType: import("convex/values").VLiteral<"document", "required">; id: import("convex/values").VString; mediaType: import("convex/values").VString; title: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, "optional">; warnings: import("convex/values").VArray<({ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; })[] | undefined, import("convex/values").VUnion<{ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; }, [import("convex/values").VObject<{ details?: string | undefined; type: "unsupported-setting"; setting: string; }, { type: import("convex/values").VLiteral<"unsupported-setting", "required">; setting: import("convex/values").VString; details: import("convex/values").VString; }, "required", "type" | "setting" | "details">, import("convex/values").VObject<{ details?: string | undefined; type: "unsupported-tool"; tool: any; }, { type: import("convex/values").VLiteral<"unsupported-tool", "required">; tool: import("convex/values").VAny; details: import("convex/values").VString; }, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{ type: "other"; message: string; }, { type: import("convex/values").VLiteral<"other", "required">; message: import("convex/values").VString; }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">; finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>; reasoning: import("convex/values").VString; reasoningDetails: import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; })[] | undefined, import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; }, { type: import("convex/values").VLiteral<"reasoning", "required">; text: import("convex/values").VString; signature: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{ signature?: string | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; signature: import("convex/values").VString; }, "required", "type" | "text" | "signature">, import("convex/values").VObject<{ type: "redacted"; data: string; }, { type: import("convex/values").VLiteral<"redacted", "required">; data: import("convex/values").VString; }, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">; id: import("convex/values").VString; parentMessageId: import("convex/values").VId | undefined, "optional">; stepId: import("convex/values").VString; files: import("convex/values").VArray, "optional">; }, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, { threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"]; embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"]; }, { text_search: { searchField: "text"; filterFields: "userId" | "threadId"; }; }, {}>; streamingMessages: import("convex/server").TableDefinition> | undefined; format?: "UIMessageChunk" | "TextStreamPart" | undefined; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; state: { timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; } | { cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; } | { reason: string; kind: "aborted"; }; }, { userId: import("convex/values").VString; agentName: import("convex/values").VString; model: import("convex/values").VString; provider: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; format: import("convex/values").VUnion<"UIMessageChunk" | "TextStreamPart" | undefined, [import("convex/values").VLiteral<"UIMessageChunk", "required">, import("convex/values").VLiteral<"TextStreamPart", "required">], "optional", never>; threadId: import("convex/values").VId, "required">; order: import("convex/values").VFloat64; /** * The step order of the first message in the stream. * If the stream ends up with both a tool call and a tool result, * the stepOrder of the result will be +1 of the tool call. */ stepOrder: import("convex/values").VFloat64; state: import("convex/values").VUnion<{ timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; } | { cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; } | { reason: string; kind: "aborted"; }, [import("convex/values").VObject<{ timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; }, { kind: import("convex/values").VLiteral<"streaming", "required">; lastHeartbeat: import("convex/values").VFloat64; timeoutFnId: import("convex/values").VId | undefined, "optional">; }, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{ cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; }, { kind: import("convex/values").VLiteral<"finished", "required">; endedAt: import("convex/values").VFloat64; cleanupFnId: import("convex/values").VId | undefined, "optional">; }, "required", "kind" | "endedAt" | "cleanupFnId">, import("convex/values").VObject<{ reason: string; kind: "aborted"; }, { kind: import("convex/values").VLiteral<"aborted", "required">; reason: import("convex/values").VString; }, "required", "reason" | "kind">], "required", "reason" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt" | "cleanupFnId">; }, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId">, { threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"]; }, {}, {}>; streamDeltas: import("convex/server").TableDefinition; start: number; end: number; parts: any[]; }, { streamId: import("convex/values").VId, "required">; start: import("convex/values").VFloat64; end: import("convex/values").VFloat64; parts: import("convex/values").VArray, "required">; }, "required", "streamId" | "start" | "end" | "parts">, { streamId_start_end: ["streamId", "start", "end", "_creationTime"]; }, {}, {}>; memories: import("convex/server").TableDefinition | undefined; embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined; memory: string; }, { threadId: import("convex/values").VId | undefined, "optional">; userId: import("convex/values").VString; memory: import("convex/values").VString; embeddingId: import("convex/values").VUnion | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>; }, "required", "userId" | "threadId" | "embeddingId" | "memory">, { threadId: ["threadId", "_creationTime"]; userId: ["userId", "_creationTime"]; embeddingId: ["embeddingId", "_creationTime"]; }, {}, {}>; files: import("convex/server").TableDefinition; mediaType: import("convex/values").VString; /** @deprecated Use `mediaType` instead. */ mimeType: import("convex/values").VString; filename: import("convex/values").VString; hash: import("convex/values").VString; refcount: import("convex/values").VFloat64; lastTouchedAt: import("convex/values").VFloat64; }, "required", "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt">, { hash: ["hash", "_creationTime"]; refcount: ["refcount", "_creationTime"]; }, {}, {}>; }, true>; export declare const vv: Omit<{ id: (tableName: TableName) => import("convex/values").VId, "required">; null: () => import("convex/values").VNull; number: () => import("convex/values").VFloat64; float64: () => import("convex/values").VFloat64; bigint: () => import("convex/values").VInt64; int64: () => import("convex/values").VInt64; boolean: () => import("convex/values").VBoolean; string: () => import("convex/values").VString; bytes: () => import("convex/values").VBytes; literal: (literal: T) => import("convex/values").VLiteral; array: >(element: T_1) => import("convex/values").VArray; object: (fields: T_2) => import("convex/values").VObject, undefined>; } & { [Property_1 in Exclude]: import("convex/values").Infer; }>, T_2, "required", { [Property_2 in keyof T_2]: Property_2 | `${Property_2 & string}.${T_2[Property_2]["fieldPaths"]}`; }[keyof T_2] & string>; record: , Value extends import("convex/values").Validator>(keys: Key, values: Value) => import("convex/values").VRecord, Value["type"]>, Key, Value, "required", string>; union: []>(...members: T_3) => import("convex/values").VUnion; any: () => import("convex/values").VAny; optional: (value: T_4) => import("convex/values").VOptional; nullable: >(value: T_5) => import("convex/values").VUnion<(T_5 | import("convex/values").VNull)["type"], [T_5, import("convex/values").VNull], "required", (T_5 | import("convex/values").VNull)["fieldPaths"]>; }, "id"> & { id: ; _creationTime: number; userId?: string | undefined; title?: string | undefined; summary?: string | undefined; defaultSystemPrompt?: string | undefined; parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined; order?: number | undefined; status: "active" | "archived"; }; fieldPaths: ("status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order" | "_creationTime") | "_id"; indexes: { userId: ["userId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: { title: { searchField: "title"; filterFields: "userId"; }; }; vectorIndexes: {}; }; embeddings_128: { document: { _id: import("convex/values").GenericId<"embeddings_128">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_256: { document: { _id: import("convex/values").GenericId<"embeddings_256">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_512: { document: { _id: import("convex/values").GenericId<"embeddings_512">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_768: { document: { _id: import("convex/values").GenericId<"embeddings_768">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_1024: { document: { _id: import("convex/values").GenericId<"embeddings_1024">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_1408: { document: { _id: import("convex/values").GenericId<"embeddings_1408">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_1536: { document: { _id: import("convex/values").GenericId<"embeddings_1536">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_2048: { document: { _id: import("convex/values").GenericId<"embeddings_2048">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_3072: { document: { _id: import("convex/values").GenericId<"embeddings_3072">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_4096: { document: { _id: import("convex/values").GenericId<"embeddings_4096">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; files: { document: { _id: import("convex/values").GenericId<"files">; _creationTime: number; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; storageId: string; hash: string; refcount: number; lastTouchedAt: number; }; fieldPaths: ("_creationTime" | "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt") | "_id"; indexes: { hash: ["hash", "_creationTime"]; refcount: ["refcount", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; messages: { document: { _id: import("convex/values").GenericId<"messages">; _creationTime: number; id?: string | undefined; userId?: string | undefined; embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined; fileIds?: import("convex/values").GenericId<"files">[] | undefined; files?: any[] | undefined; error?: string | undefined; agentName?: string | undefined; model?: string | undefined; provider?: string | undefined; providerOptions?: Record> | undefined; message?: { providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; } | { providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; } | { providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; } | { providerOptions?: Record> | undefined; role: "system"; content: string; } | undefined; text?: string | undefined; providerMetadata?: Record> | undefined; reasoning?: string | undefined; usage?: { reasoningTokens?: number | undefined; cachedInputTokens?: number | undefined; promptTokens: number; completionTokens: number; totalTokens: number; } | undefined; sources?: ({ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; })[] | undefined; warnings?: ({ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; })[] | undefined; finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined; reasoningDetails?: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; })[] | undefined; parentMessageId?: import("convex/values").GenericId<"messages"> | undefined; stepId?: string | undefined; status: "pending" | "success" | "failed"; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; tool: boolean; }; fieldPaths: ("id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens") | "_id"; indexes: { threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"]; embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: { text_search: { searchField: "text"; filterFields: "userId" | "threadId"; }; }; vectorIndexes: {}; }; streamingMessages: { document: { _id: import("convex/values").GenericId<"streamingMessages">; _creationTime: number; userId?: string | undefined; agentName?: string | undefined; model?: string | undefined; provider?: string | undefined; providerOptions?: Record> | undefined; format?: "UIMessageChunk" | "TextStreamPart" | undefined; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; state: { timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; } | { cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; } | { reason: string; kind: "aborted"; }; }; fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId") | "_id"; indexes: { threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; streamDeltas: { document: { _id: import("convex/values").GenericId<"streamDeltas">; _creationTime: number; streamId: import("convex/values").GenericId<"streamingMessages">; start: number; end: number; parts: any[]; }; fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id"; indexes: { streamId_start_end: ["streamId", "start", "end", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; memories: { document: { _id: import("convex/values").GenericId<"memories">; _creationTime: number; userId?: string | undefined; threadId?: import("convex/values").GenericId<"threads"> | undefined; embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined; memory: string; }; fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id"; indexes: { threadId: ["threadId", "_creationTime"]; userId: ["userId", "_creationTime"]; embeddingId: ["embeddingId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; apiKeys: { document: { _id: import("convex/values").GenericId<"apiKeys">; _creationTime: number; name?: string | undefined; }; fieldPaths: ("_creationTime" | "name") | "_id"; indexes: { name: ["name", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; }>>(tableName: TableName) => import("convex/values").VId, "required">; doc: ; _creationTime: number; userId?: string | undefined; title?: string | undefined; summary?: string | undefined; defaultSystemPrompt?: string | undefined; parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined; order?: number | undefined; status: "active" | "archived"; }; fieldPaths: ("status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order" | "_creationTime") | "_id"; indexes: { userId: ["userId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: { title: { searchField: "title"; filterFields: "userId"; }; }; vectorIndexes: {}; }; embeddings_128: { document: { _id: import("convex/values").GenericId<"embeddings_128">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_256: { document: { _id: import("convex/values").GenericId<"embeddings_256">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_512: { document: { _id: import("convex/values").GenericId<"embeddings_512">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_768: { document: { _id: import("convex/values").GenericId<"embeddings_768">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_1024: { document: { _id: import("convex/values").GenericId<"embeddings_1024">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_1408: { document: { _id: import("convex/values").GenericId<"embeddings_1408">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_1536: { document: { _id: import("convex/values").GenericId<"embeddings_1536">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_2048: { document: { _id: import("convex/values").GenericId<"embeddings_2048">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_3072: { document: { _id: import("convex/values").GenericId<"embeddings_3072">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; embeddings_4096: { document: { _id: import("convex/values").GenericId<"embeddings_4096">; _creationTime: number; userId?: string | undefined; threadId?: string | undefined; model_table_userId?: string[] | undefined; model_table_threadId?: string[] | undefined; model: string; table: string; vector: number[]; }; fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector"); indexes: { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: import("convex/server").GenericTableSearchIndexes; vectorIndexes: { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }; }; files: { document: { _id: import("convex/values").GenericId<"files">; _creationTime: number; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; storageId: string; hash: string; refcount: number; lastTouchedAt: number; }; fieldPaths: ("_creationTime" | "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt") | "_id"; indexes: { hash: ["hash", "_creationTime"]; refcount: ["refcount", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; messages: { document: { _id: import("convex/values").GenericId<"messages">; _creationTime: number; id?: string | undefined; userId?: string | undefined; embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined; fileIds?: import("convex/values").GenericId<"files">[] | undefined; files?: any[] | undefined; error?: string | undefined; agentName?: string | undefined; model?: string | undefined; provider?: string | undefined; providerOptions?: Record> | undefined; message?: { providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; } | { providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; } | { providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; } | { providerOptions?: Record> | undefined; role: "system"; content: string; } | undefined; text?: string | undefined; providerMetadata?: Record> | undefined; reasoning?: string | undefined; usage?: { reasoningTokens?: number | undefined; cachedInputTokens?: number | undefined; promptTokens: number; completionTokens: number; totalTokens: number; } | undefined; sources?: ({ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; })[] | undefined; warnings?: ({ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; })[] | undefined; finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined; reasoningDetails?: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; })[] | undefined; parentMessageId?: import("convex/values").GenericId<"messages"> | undefined; stepId?: string | undefined; status: "pending" | "success" | "failed"; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; tool: boolean; }; fieldPaths: ("id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens") | "_id"; indexes: { threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"]; embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: { text_search: { searchField: "text"; filterFields: "userId" | "threadId"; }; }; vectorIndexes: {}; }; streamingMessages: { document: { _id: import("convex/values").GenericId<"streamingMessages">; _creationTime: number; userId?: string | undefined; agentName?: string | undefined; model?: string | undefined; provider?: string | undefined; providerOptions?: Record> | undefined; format?: "UIMessageChunk" | "TextStreamPart" | undefined; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; state: { timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; } | { cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; } | { reason: string; kind: "aborted"; }; }; fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId") | "_id"; indexes: { threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; streamDeltas: { document: { _id: import("convex/values").GenericId<"streamDeltas">; _creationTime: number; streamId: import("convex/values").GenericId<"streamingMessages">; start: number; end: number; parts: any[]; }; fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id"; indexes: { streamId_start_end: ["streamId", "start", "end", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; memories: { document: { _id: import("convex/values").GenericId<"memories">; _creationTime: number; userId?: string | undefined; threadId?: import("convex/values").GenericId<"threads"> | undefined; embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined; memory: string; }; fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id"; indexes: { threadId: ["threadId", "_creationTime"]; userId: ["userId", "_creationTime"]; embeddingId: ["embeddingId", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; apiKeys: { document: { _id: import("convex/values").GenericId<"apiKeys">; _creationTime: number; name?: string | undefined; }; fieldPaths: ("_creationTime" | "name") | "_id"; indexes: { name: ["name", "_creationTime"]; by_id: ["_id"]; by_creation_time: ["_creationTime"]; }; searchIndexes: {}; vectorIndexes: {}; }; }>>(tableName: TableName) => import("convex-helpers/validators").AddFieldsToValidator<{ apiKeys: import("convex/server").TableDefinition; }, "required", "name">, { name: ["name", "_creationTime"]; }, {}, {}>; embeddings_128: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_256: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_512: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_768: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_1024: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_1408: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_1536: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_2048: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_3072: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; embeddings_4096: import("convex/server").TableDefinition; table: import("convex/values").VString; userId: import("convex/values").VString; threadId: import("convex/values").VString; model_table_userId: import("convex/values").VArray, "optional">; model_table_threadId: import("convex/values").VArray, "optional">; vector: import("convex/values").VArray, "required">; }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, { model_table_threadId: ["model", "table", "threadId", "_creationTime"]; }, import("convex/server").GenericTableSearchIndexes, { vector: { vectorField: "vector"; dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096; filterFields: "model_table_userId" | "model_table_threadId"; }; }>; threads: import("convex/server").TableDefinition[] | undefined; order?: number | undefined; status: "active" | "archived"; }, { userId: import("convex/values").VString; title: import("convex/values").VString; summary: import("convex/values").VString; status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>; defaultSystemPrompt: import("convex/values").VString; parentThreadIds: import("convex/values").VArray[] | undefined, import("convex/values").VId, "required">, "optional">; order: import("convex/values").VFloat64; }, "required", "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, { userId: ["userId", "_creationTime"]; }, { title: { searchField: "title"; filterFields: "userId"; }; }, {}>; messages: import("convex/server").TableDefinition | undefined; fileIds?: import("convex/values").GenericId<"files">[] | undefined; files?: any[] | undefined; error?: string | undefined; agentName?: string | undefined; model?: string | undefined; provider?: string | undefined; providerOptions?: Record> | undefined; message?: { providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; } | { providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; } | { providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; } | { providerOptions?: Record> | undefined; role: "system"; content: string; } | undefined; text?: string | undefined; providerMetadata?: Record> | undefined; reasoning?: string | undefined; usage?: { reasoningTokens?: number | undefined; cachedInputTokens?: number | undefined; promptTokens: number; completionTokens: number; totalTokens: number; } | undefined; sources?: ({ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; })[] | undefined; warnings?: ({ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; })[] | undefined; finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined; reasoningDetails?: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; })[] | undefined; parentMessageId?: import("convex/values").GenericId<"messages"> | undefined; stepId?: string | undefined; status: "pending" | "success" | "failed"; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; tool: boolean; }, { userId: import("convex/values").VString; threadId: import("convex/values").VId, "required">; order: import("convex/values").VFloat64; stepOrder: import("convex/values").VFloat64; embeddingId: import("convex/values").VUnion | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>; fileIds: import("convex/values").VArray[] | undefined, import("convex/values").VId, "required">, "optional">; error: import("convex/values").VString; status: import("convex/values").VUnion<"pending" | "success" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>; agentName: import("convex/values").VString; model: import("convex/values").VString; provider: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; message: import("convex/values").VUnion<{ providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; } | { providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; } | { providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; } | { providerOptions?: Record> | undefined; role: "system"; content: string; } | undefined, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "user"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[]; }, { role: import("convex/values").VLiteral<"user", "required">; content: import("convex/values").VUnion> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[], [import("convex/values").VString, import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; type: "image"; image: string | ArrayBuffer; }, { type: import("convex/values").VLiteral<"image", "required">; image: import("convex/values").VUnion, import("convex/values").VBytes], "required", never>; mediaType: import("convex/values").VString; mimeType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mediaType" | "mimeType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; }, { type: import("convex/values").VLiteral<"file", "required">; data: import("convex/values").VUnion, import("convex/values").VBytes], "required", never>; filename: import("convex/values").VString; mediaType: import("convex/values").VString; mimeType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "image" | "mediaType" | "mimeType" | "data" | "filename">, "required">], "required", never>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "assistant"; content: string | ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[]; }, { role: import("convex/values").VLiteral<"assistant", "required">; content: import("convex/values").VUnion> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[], [import("convex/values").VString, import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; mediaType?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; type: "file"; data: string | ArrayBuffer; }, { type: import("convex/values").VLiteral<"file", "required">; data: import("convex/values").VUnion, import("convex/values").VBytes], "required", never>; filename: import("convex/values").VString; mediaType: import("convex/values").VString; mimeType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; }, { type: import("convex/values").VLiteral<"reasoning", "required">; text: import("convex/values").VString; signature: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "redacted-reasoning"; data: string; }, { type: import("convex/values").VLiteral<"redacted-reasoning", "required">; data: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data">, import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; input: any; }, { type: import("convex/values").VLiteral<"tool-call", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; input: import("convex/values").VAny; args: import("convex/values").VAny; providerExecuted: import("convex/values").VBoolean; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; input?: any; providerExecuted?: boolean | undefined; type: "tool-call"; toolCallId: string; toolName: string; args: any; }, { type: import("convex/values").VLiteral<"tool-call", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; args: import("convex/values").VAny; input: import("convex/values").VAny; providerExecuted: import("convex/values").VBoolean; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>], "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; }, { type: import("convex/values").VLiteral<"tool-result", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; output: import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; value: string; }, { type: import("convex/values").VLiteral<"text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "json"; value: any; }, { type: import("convex/values").VLiteral<"json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-text"; value: string; }, { type: import("convex/values").VLiteral<"error-text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-json"; value: any; }, { type: import("convex/values").VLiteral<"error-json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; }, { type: import("convex/values").VLiteral<"execution-denied", "required">; reason: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "reason">, import("convex/values").VObject<{ type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; }, { type: import("convex/values").VLiteral<"content", "required">; value: import("convex/values").VArray<({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{ type: "media"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"media", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; }, "required", "type" | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"file-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-url"; url: string; }, { type: import("convex/values").VLiteral<"file-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"image-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-url"; url: string; }, { type: import("convex/values").VLiteral<"image-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"image-file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "custom"; }, { type: import("convex/values").VLiteral<"custom", "required">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "url" | "fileId" | `fileId.${string}`>, "required">; }, "required", "type" | "value">], "optional", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}` | "reason">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerExecuted: import("convex/values").VBoolean; result: import("convex/values").VAny; isError: import("convex/values").VBoolean; args: import("convex/values").VAny; experimental_content: import("convex/values").VArray<({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined, import("convex/values").VUnion<{ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; }, [import("convex/values").VObject<{ type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; }, "required", "type" | "text">, import("convex/values").VObject<{ mimeType?: string | undefined; type: "image"; data: string; }, { type: import("convex/values").VLiteral<"image", "required">; data: import("convex/values").VString; mimeType: import("convex/values").VString; }, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}`>, import("convex/values").VUnion<{ title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, [import("convex/values").VObject<{ title?: string | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; type: "source"; url: string; sourceType: "url"; }, { type: import("convex/values").VLiteral<"source", "required">; sourceType: import("convex/values").VLiteral<"url", "required">; id: import("convex/values").VString; url: import("convex/values").VString; title: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, { type: import("convex/values").VLiteral<"source", "required">; sourceType: import("convex/values").VLiteral<"document", "required">; id: import("convex/values").VString; mediaType: import("convex/values").VString; title: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; type: "tool-approval-request"; toolCallId: string; approvalId: string; }, { type: import("convex/values").VLiteral<"tool-approval-request", "required">; approvalId: import("convex/values").VString; toolCallId: import("convex/values").VString; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "id" | "title" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}` | "output" | "url" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}` | "sourceType" | "approvalId">, "required">], "required", never>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "tool"; content: ({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[]; }, { role: import("convex/values").VLiteral<"tool", "required">; content: import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; args?: any; providerExecuted?: boolean | undefined; output?: { providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined; result?: any; isError?: boolean | undefined; experimental_content?: ({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined; type: "tool-result"; toolCallId: string; toolName: string; }, { type: import("convex/values").VLiteral<"tool-result", "required">; toolCallId: import("convex/values").VString; toolName: import("convex/values").VString; output: import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; value: string; } | { providerOptions?: Record> | undefined; type: "json"; value: any; } | { providerOptions?: Record> | undefined; type: "error-text"; value: string; } | { providerOptions?: Record> | undefined; type: "error-json"; value: any; } | { providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; } | { type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; } | undefined, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; value: string; }, { type: import("convex/values").VLiteral<"text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "json"; value: any; }, { type: import("convex/values").VLiteral<"json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-text"; value: string; }, { type: import("convex/values").VLiteral<"error-text", "required">; value: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "error-json"; value: any; }, { type: import("convex/values").VLiteral<"error-json", "required">; value: import("convex/values").VAny; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; reason?: string | undefined; type: "execution-denied"; }, { type: import("convex/values").VLiteral<"execution-denied", "required">; reason: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "reason">, import("convex/values").VObject<{ type: "content"; value: ({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[]; }, { type: import("convex/values").VLiteral<"content", "required">; value: import("convex/values").VArray<({ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; })[], import("convex/values").VUnion<{ providerOptions?: Record> | undefined; type: "text"; text: string; } | { type: "media"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "file-url"; url: string; } | { providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; } | { providerOptions?: Record> | undefined; type: "image-url"; url: string; } | { providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; } | { providerOptions?: Record> | undefined; type: "custom"; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{ type: "media"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"media", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; }, "required", "type" | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; filename?: string | undefined; type: "file-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"file-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-url"; url: string; }, { type: import("convex/values").VLiteral<"file-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-data"; mediaType: string; data: string; }, { type: import("convex/values").VLiteral<"image-data", "required">; data: import("convex/values").VString; mediaType: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-url"; url: string; }, { type: import("convex/values").VLiteral<"image-url", "required">; url: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "image-file-id"; fileId: string | Record; }, { type: import("convex/values").VLiteral<"image-file-id", "required">; fileId: import("convex/values").VUnion, [import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VString, "required", string>], "required", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; type: "custom"; }, { type: import("convex/values").VLiteral<"custom", "required">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "url" | "fileId" | `fileId.${string}`>, "required">; }, "required", "type" | "value">], "optional", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}` | "reason">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerExecuted: import("convex/values").VBoolean; result: import("convex/values").VAny; isError: import("convex/values").VBoolean; args: import("convex/values").VAny; experimental_content: import("convex/values").VArray<({ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; })[] | undefined, import("convex/values").VUnion<{ type: "text"; text: string; } | { mimeType?: string | undefined; type: "image"; data: string; }, [import("convex/values").VObject<{ type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; }, "required", "type" | "text">, import("convex/values").VObject<{ mimeType?: string | undefined; type: "image"; data: string; }, { type: import("convex/values").VLiteral<"image", "required">; data: import("convex/values").VString; mimeType: import("convex/values").VString; }, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}`>, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; providerExecuted?: boolean | undefined; reason?: string | undefined; type: "tool-approval-response"; approvalId: string; approved: boolean; }, { type: import("convex/values").VLiteral<"tool-approval-response", "required">; approvalId: import("convex/values").VString; approved: import("convex/values").VBoolean; reason: import("convex/values").VString; providerExecuted: import("convex/values").VBoolean; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "providerExecuted" | "reason" | "approvalId" | "approved">], "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "reason" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}` | "approvalId" | "approved">, "required">; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; role: "system"; content: string; }, { role: import("convex/values").VLiteral<"system", "required">; content: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">; tool: import("convex/values").VBoolean; text: import("convex/values").VString; usage: import("convex/values").VObject<{ reasoningTokens?: number | undefined; cachedInputTokens?: number | undefined; promptTokens: number; completionTokens: number; totalTokens: number; } | undefined, { promptTokens: import("convex/values").VFloat64; completionTokens: import("convex/values").VFloat64; totalTokens: import("convex/values").VFloat64; reasoningTokens: import("convex/values").VFloat64; cachedInputTokens: import("convex/values").VFloat64; }, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; sources: import("convex/values").VArray<({ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; })[] | undefined, import("convex/values").VUnion<{ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; } | { providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, [import("convex/values").VObject<{ title?: string | undefined; type?: "source" | undefined; providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; id: string; url: string; sourceType: "url"; }, { type: import("convex/values").VLiteral<"source" | undefined, "optional">; sourceType: import("convex/values").VLiteral<"url", "required">; id: import("convex/values").VString; url: import("convex/values").VString; title: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType">, import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; filename?: string | undefined; id: string; title: string; type: "source"; mediaType: string; sourceType: "document"; }, { type: import("convex/values").VLiteral<"source", "required">; sourceType: import("convex/values").VLiteral<"document", "required">; id: import("convex/values").VString; mediaType: import("convex/values").VString; title: import("convex/values").VString; filename: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, "optional">; warnings: import("convex/values").VArray<({ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; })[] | undefined, import("convex/values").VUnion<{ details?: string | undefined; type: "unsupported-setting"; setting: string; } | { details?: string | undefined; type: "unsupported-tool"; tool: any; } | { type: "other"; message: string; }, [import("convex/values").VObject<{ details?: string | undefined; type: "unsupported-setting"; setting: string; }, { type: import("convex/values").VLiteral<"unsupported-setting", "required">; setting: import("convex/values").VString; details: import("convex/values").VString; }, "required", "type" | "setting" | "details">, import("convex/values").VObject<{ details?: string | undefined; type: "unsupported-tool"; tool: any; }, { type: import("convex/values").VLiteral<"unsupported-tool", "required">; tool: import("convex/values").VAny; details: import("convex/values").VString; }, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{ type: "other"; message: string; }, { type: import("convex/values").VLiteral<"other", "required">; message: import("convex/values").VString; }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">; finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>; reasoning: import("convex/values").VString; reasoningDetails: import("convex/values").VArray<({ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; })[] | undefined, import("convex/values").VUnion<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; } | { signature?: string | undefined; type: "text"; text: string; } | { type: "redacted"; data: string; }, [import("convex/values").VObject<{ providerOptions?: Record> | undefined; providerMetadata?: Record> | undefined; signature?: string | undefined; type: "reasoning"; text: string; }, { type: import("convex/values").VLiteral<"reasoning", "required">; text: import("convex/values").VString; signature: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; providerMetadata: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; }, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{ signature?: string | undefined; type: "text"; text: string; }, { type: import("convex/values").VLiteral<"text", "required">; text: import("convex/values").VString; signature: import("convex/values").VString; }, "required", "type" | "text" | "signature">, import("convex/values").VObject<{ type: "redacted"; data: string; }, { type: import("convex/values").VLiteral<"redacted", "required">; data: import("convex/values").VString; }, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">; id: import("convex/values").VString; parentMessageId: import("convex/values").VId | undefined, "optional">; stepId: import("convex/values").VString; files: import("convex/values").VArray, "optional">; }, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, { threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"]; embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"]; }, { text_search: { searchField: "text"; filterFields: "userId" | "threadId"; }; }, {}>; streamingMessages: import("convex/server").TableDefinition> | undefined; format?: "UIMessageChunk" | "TextStreamPart" | undefined; order: number; threadId: import("convex/values").GenericId<"threads">; stepOrder: number; state: { timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; } | { cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; } | { reason: string; kind: "aborted"; }; }, { userId: import("convex/values").VString; agentName: import("convex/values").VString; model: import("convex/values").VString; provider: import("convex/values").VString; providerOptions: import("convex/values").VRecord> | undefined, import("convex/values").VString, import("convex/values").VRecord, import("convex/values").VString, import("convex/values").VAny, "required", string>, "optional", string>; format: import("convex/values").VUnion<"UIMessageChunk" | "TextStreamPart" | undefined, [import("convex/values").VLiteral<"UIMessageChunk", "required">, import("convex/values").VLiteral<"TextStreamPart", "required">], "optional", never>; threadId: import("convex/values").VId, "required">; order: import("convex/values").VFloat64; /** * The step order of the first message in the stream. * If the stream ends up with both a tool call and a tool result, * the stepOrder of the result will be +1 of the tool call. */ stepOrder: import("convex/values").VFloat64; state: import("convex/values").VUnion<{ timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; } | { cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; } | { reason: string; kind: "aborted"; }, [import("convex/values").VObject<{ timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "streaming"; lastHeartbeat: number; }, { kind: import("convex/values").VLiteral<"streaming", "required">; lastHeartbeat: import("convex/values").VFloat64; timeoutFnId: import("convex/values").VId | undefined, "optional">; }, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{ cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; kind: "finished"; endedAt: number; }, { kind: import("convex/values").VLiteral<"finished", "required">; endedAt: import("convex/values").VFloat64; cleanupFnId: import("convex/values").VId | undefined, "optional">; }, "required", "kind" | "endedAt" | "cleanupFnId">, import("convex/values").VObject<{ reason: string; kind: "aborted"; }, { kind: import("convex/values").VLiteral<"aborted", "required">; reason: import("convex/values").VString; }, "required", "reason" | "kind">], "required", "reason" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt" | "cleanupFnId">; }, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "state" | "state.reason" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId">, { threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"]; }, {}, {}>; streamDeltas: import("convex/server").TableDefinition; start: number; end: number; parts: any[]; }, { streamId: import("convex/values").VId, "required">; start: import("convex/values").VFloat64; end: import("convex/values").VFloat64; parts: import("convex/values").VArray, "required">; }, "required", "streamId" | "start" | "end" | "parts">, { streamId_start_end: ["streamId", "start", "end", "_creationTime"]; }, {}, {}>; memories: import("convex/server").TableDefinition | undefined; embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined; memory: string; }, { threadId: import("convex/values").VId | undefined, "optional">; userId: import("convex/values").VString; memory: import("convex/values").VString; embeddingId: import("convex/values").VUnion | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>; }, "required", "userId" | "threadId" | "embeddingId" | "memory">, { threadId: ["threadId", "_creationTime"]; userId: ["userId", "_creationTime"]; embeddingId: ["embeddingId", "_creationTime"]; }, {}, {}>; files: import("convex/server").TableDefinition; mediaType: import("convex/values").VString; /** @deprecated Use `mediaType` instead. */ mimeType: import("convex/values").VString; filename: import("convex/values").VString; hash: import("convex/values").VString; refcount: import("convex/values").VFloat64; lastTouchedAt: import("convex/values").VFloat64; }, "required", "mediaType" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt">, { hash: ["hash", "_creationTime"]; refcount: ["refcount", "_creationTime"]; }, {}, {}>; }[TableName]["validator"], { _id: import("convex/values").VId, "required">; _creationTime: import("convex/values").VFloat64; }>; }; export { vv as v }; export default schema; //# sourceMappingURL=schema.d.ts.map