pub struct Repl {
pub state: ReplState,
/* private fields */
}Expand description
Interactive REPL for AI-powered coding assistance.
Orchestrates reading user input, dispatching slash commands, and processing AI queries via the ReAct loop.
Fields§
§state: ReplStateShared REPL state.
Implementations§
Source§impl Repl
impl Repl
Sourcepub fn new(session_manager: SessionManager, tool_registry: ToolRegistry) -> Self
pub fn new(session_manager: SessionManager, tool_registry: ToolRegistry) -> Self
Create a new REPL instance.
Sourcepub fn set_initial_message(&mut self, message: String)
pub fn set_initial_message(&mut self, message: String)
Set an initial message to be processed when the REPL starts.
This message will be processed as a user query before entering the interactive input loop.
Auto Trait Implementations§
impl !Freeze for Repl
impl RefUnwindSafe for Repl
impl Send for Repl
impl Sync for Repl
impl Unpin for Repl
impl UnsafeUnpin for Repl
impl UnwindSafe for Repl
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