query
Method
This is a method of the Agent class in the agent module.Query knowledge and get a structured answer with citations. This is the recommended method for getting answers with source citations. Returns a structured result with answer, citations, context used, and metadata.
Signature
Parameters
The question to answer **kwargs: Additional arguments (top_k, rerank, etc.)
Returns
RAGResult with answer, citations, context_used, and metadata
Exceptions
ValueError
ValueError
If no knowledge is configured
ImportError
ImportError
If RAG module is not available

