pub struct NoOpAgent;Expand description
A no-op agent that simply outputs the instructions file.
This agent is primarily used for debug sessions where we want to show
the instructions but not execute any actual AI agent. It uses cat
to display the instructions file and then exits.
Trait Implementations§
Source§impl Agent for NoOpAgent
impl Agent for NoOpAgent
Source§fn build_command(&self, instructions_path: &str) -> Vec<String>
fn build_command(&self, instructions_path: &str) -> Vec<String>
Returns the command to execute the agent with the given instruction file
Source§fn volumes(&self) -> Vec<(String, String, String)>
fn volumes(&self) -> Vec<(String, String, String)>
Returns the volumes to mount for this agent
Format: Vec<(host_path, container_path, options)> where options is like “:ro” for read-only
Source§fn create_log_processor(
&self,
_file_system: Arc<dyn FileSystemOperations>,
) -> Box<dyn LogProcessor>
fn create_log_processor( &self, _file_system: Arc<dyn FileSystemOperations>, ) -> Box<dyn LogProcessor>
Creates a log processor for this agent’s output
Auto Trait Implementations§
impl Freeze for NoOpAgent
impl RefUnwindSafe for NoOpAgent
impl Send for NoOpAgent
impl Sync for NoOpAgent
impl Unpin for NoOpAgent
impl UnwindSafe for NoOpAgent
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