pub struct QueryProcessor { /* private fields */ }Expand description
Processes user queries using the ReAct pattern.
Coordinates:
- Query enhancement (@ file references)
- Message preparation
- LLM calls with progress display
- Tool execution
Implementations§
Source§impl QueryProcessor
impl QueryProcessor
Sourcepub fn with_working_dir(working_dir: PathBuf) -> Self
pub fn with_working_dir(working_dir: PathBuf) -> Self
Create a new query processor with an explicit working directory.
Sourcepub async fn process(
&mut self,
query: &str,
session_manager: &mut SessionManager,
tool_registry: &ToolRegistry,
plan_requested: bool,
) -> Result<QueryResult, ReplError>
pub async fn process( &mut self, query: &str, session_manager: &mut SessionManager, tool_registry: &ToolRegistry, plan_requested: bool, ) -> Result<QueryResult, ReplError>
Process a user query.
Adds the user message to the session, enhances the query with file references, and delegates to the ReAct loop for execution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryProcessor
impl RefUnwindSafe for QueryProcessor
impl Send for QueryProcessor
impl Sync for QueryProcessor
impl Unpin for QueryProcessor
impl UnsafeUnpin for QueryProcessor
impl UnwindSafe for QueryProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more