import type * as ElevenLabs from "../index"; export interface AgentKnowledgeBaseRagQueryRequestModel { /** Retrieval strategy to run, as in the agent's knowledge_base tool: semantic or keyword search for a query, cat to read one document in full, or ls to list the entries of a folder. Any strategy runs, whether or not the agent has it enabled. */ strategy?: ElevenLabs.SearchStrategy; /** Query to search the knowledge base for. Required for the semantic and keyword strategies. */ query?: string; /** IDs or names of knowledge base documents or folders. Semantic and keyword search only search these entries; cat reads the single document given; ls lists the single folder given, or the top level of the knowledge base when omitted. */ documents?: string[]; /** When true (the default), retrieval uses the agent's own RAG settings, reproducing exactly what the agent would retrieve. Set to false to retrieve with neutral default RAG settings instead (the agent's embedding model is always kept, since it determines which vector index exists). Useful for auditing the knowledge base independently of how a particular agent is tuned. */ useAgentDefaults?: boolean; /** Optional maximum total character length of document chunks returned. Overrides the selected RAG settings for this query only. */ maxDocumentsLength?: number; /** Optional maximum number of document chunks retrieved. Overrides the selected RAG settings for this query only. */ maxRetrievedRagChunksCount?: number; }