/** * RAG Tools Zod Schemas * * Zod schema definitions for RAG tool input validation. * * @module @wundr/mcp-server/tools/rag/schemas */ import { z } from 'zod'; /** * Schema for RAG file search input */ export declare const RagFileSearchSchema: z.ZodObject<{ query: z.ZodString; paths: z.ZodOptional>; includePatterns: z.ZodOptional>; excludePatterns: z.ZodOptional>; maxResults: z.ZodDefault>; minScore: z.ZodDefault>; mode: z.ZodDefault>>; includeContent: z.ZodDefault>; maxContentLength: z.ZodDefault>; }, "strip", z.ZodTypeAny, { query: string; maxResults: number; minScore: number; mode: "semantic" | "keyword" | "hybrid"; includeContent: boolean; maxContentLength: number; paths?: string[] | undefined; includePatterns?: string[] | undefined; excludePatterns?: string[] | undefined; }, { query: string; paths?: string[] | undefined; includePatterns?: string[] | undefined; excludePatterns?: string[] | undefined; maxResults?: number | undefined; minScore?: number | undefined; mode?: "semantic" | "keyword" | "hybrid" | undefined; includeContent?: boolean | undefined; maxContentLength?: number | undefined; }>; export type RagFileSearchInput = z.infer; /** * Schema for RAG store management input */ export declare const RagStoreManageSchema: z.ZodObject<{ action: z.ZodEnum<["create", "delete", "list", "status", "index", "clear", "optimize", "backup", "restore"]>; storeName: z.ZodOptional; config: z.ZodOptional>; embeddingModel: z.ZodOptional>; dimensions: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; }, { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; }>>; indexPaths: z.ZodOptional>; backupPath: z.ZodOptional; force: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "status" | "list" | "create" | "delete" | "index" | "clear" | "optimize" | "backup" | "restore"; storeName?: string | undefined; config?: { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; } | undefined; indexPaths?: string[] | undefined; backupPath?: string | undefined; force?: boolean | undefined; }, { action: "status" | "list" | "create" | "delete" | "index" | "clear" | "optimize" | "backup" | "restore"; storeName?: string | undefined; config?: { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; } | undefined; indexPaths?: string[] | undefined; backupPath?: string | undefined; force?: boolean | undefined; }>; export type RagStoreManageInput = z.infer; /** * Schema for RAG context builder input */ export declare const RagContextBuilderSchema: z.ZodObject<{ query: z.ZodString; strategy: z.ZodDefault>>; sources: z.ZodDefault, "many">>>; maxTokens: z.ZodDefault>; storeName: z.ZodOptional; additionalPaths: z.ZodOptional>; includeCode: z.ZodDefault>; includeDocs: z.ZodDefault>; conversationHistory: z.ZodOptional; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; role: "user" | "assistant"; }, { content: string; role: "user" | "assistant"; }>, "many">>; format: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { query: string; strategy: "custom" | "relevant" | "recent" | "comprehensive" | "focused"; sources: ("memory" | "files" | "store" | "combined")[]; maxTokens: number; includeCode: boolean; includeDocs: boolean; format: "plain" | "markdown" | "structured"; storeName?: string | undefined; additionalPaths?: string[] | undefined; conversationHistory?: { content: string; role: "user" | "assistant"; }[] | undefined; }, { query: string; storeName?: string | undefined; strategy?: "custom" | "relevant" | "recent" | "comprehensive" | "focused" | undefined; sources?: ("memory" | "files" | "store" | "combined")[] | undefined; maxTokens?: number | undefined; additionalPaths?: string[] | undefined; includeCode?: boolean | undefined; includeDocs?: boolean | undefined; conversationHistory?: { content: string; role: "user" | "assistant"; }[] | undefined; format?: "plain" | "markdown" | "structured" | undefined; }>; export type RagContextBuilderInput = z.infer; /** * RAG tool schema registry entries for integration with main ToolSchemas */ export declare const RagToolSchemaEntries: { readonly 'rag-file-search': { readonly schema: z.ZodObject<{ query: z.ZodString; paths: z.ZodOptional>; includePatterns: z.ZodOptional>; excludePatterns: z.ZodOptional>; maxResults: z.ZodDefault>; minScore: z.ZodDefault>; mode: z.ZodDefault>>; includeContent: z.ZodDefault>; maxContentLength: z.ZodDefault>; }, "strip", z.ZodTypeAny, { query: string; maxResults: number; minScore: number; mode: "semantic" | "keyword" | "hybrid"; includeContent: boolean; maxContentLength: number; paths?: string[] | undefined; includePatterns?: string[] | undefined; excludePatterns?: string[] | undefined; }, { query: string; paths?: string[] | undefined; includePatterns?: string[] | undefined; excludePatterns?: string[] | undefined; maxResults?: number | undefined; minScore?: number | undefined; mode?: "semantic" | "keyword" | "hybrid" | undefined; includeContent?: boolean | undefined; maxContentLength?: number | undefined; }>; readonly description: "Search files using semantic, keyword, or hybrid search with relevance scoring"; readonly category: "rag"; }; readonly 'rag-store-manage': { readonly schema: z.ZodObject<{ action: z.ZodEnum<["create", "delete", "list", "status", "index", "clear", "optimize", "backup", "restore"]>; storeName: z.ZodOptional; config: z.ZodOptional>; embeddingModel: z.ZodOptional>; dimensions: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; }, { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; }>>; indexPaths: z.ZodOptional>; backupPath: z.ZodOptional; force: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "status" | "list" | "create" | "delete" | "index" | "clear" | "optimize" | "backup" | "restore"; storeName?: string | undefined; config?: { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; } | undefined; indexPaths?: string[] | undefined; backupPath?: string | undefined; force?: boolean | undefined; }, { action: "status" | "list" | "create" | "delete" | "index" | "clear" | "optimize" | "backup" | "restore"; storeName?: string | undefined; config?: { type?: "memory" | "chromadb" | "pinecone" | "qdrant" | "weaviate" | undefined; metadata?: Record | undefined; embeddingModel?: "custom" | "openai" | "cohere" | "local" | undefined; dimensions?: number | undefined; } | undefined; indexPaths?: string[] | undefined; backupPath?: string | undefined; force?: boolean | undefined; }>; readonly description: "Create, manage, and maintain vector stores for RAG operations"; readonly category: "rag"; }; readonly 'rag-context-builder': { readonly schema: z.ZodObject<{ query: z.ZodString; strategy: z.ZodDefault>>; sources: z.ZodDefault, "many">>>; maxTokens: z.ZodDefault>; storeName: z.ZodOptional; additionalPaths: z.ZodOptional>; includeCode: z.ZodDefault>; includeDocs: z.ZodDefault>; conversationHistory: z.ZodOptional; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; role: "user" | "assistant"; }, { content: string; role: "user" | "assistant"; }>, "many">>; format: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { query: string; strategy: "custom" | "relevant" | "recent" | "comprehensive" | "focused"; sources: ("memory" | "files" | "store" | "combined")[]; maxTokens: number; includeCode: boolean; includeDocs: boolean; format: "plain" | "markdown" | "structured"; storeName?: string | undefined; additionalPaths?: string[] | undefined; conversationHistory?: { content: string; role: "user" | "assistant"; }[] | undefined; }, { query: string; storeName?: string | undefined; strategy?: "custom" | "relevant" | "recent" | "comprehensive" | "focused" | undefined; sources?: ("memory" | "files" | "store" | "combined")[] | undefined; maxTokens?: number | undefined; additionalPaths?: string[] | undefined; includeCode?: boolean | undefined; includeDocs?: boolean | undefined; conversationHistory?: { content: string; role: "user" | "assistant"; }[] | undefined; format?: "plain" | "markdown" | "structured" | undefined; }>; readonly description: "Build optimal context for LLM queries using multiple sources and strategies"; readonly category: "rag"; }; }; export type RagToolName = keyof typeof RagToolSchemaEntries; //# sourceMappingURL=schemas.d.ts.map