pub struct NullAgent;Expand description
A no-op AgentAccess implementation.
Used when constructing a crate::CommandContext for a dispatch block that does not invoke
any agent-access commands (e.g., the session/debug-only registry block in Agent::run).
Allows the borrow checker to accept a split borrow: sink holds &mut channel while
agent holds this zero-size sentinel instead of &mut self.
Trait Implementations§
Source§impl AgentAccess for NullAgent
impl AgentAccess for NullAgent
Source§fn memory_tiers<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn memory_tiers<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return formatted memory tier statistics. Read more
Source§fn memory_promote<'a>(
&'a mut self,
_ids_str: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn memory_promote<'a>( &'a mut self, _ids_str: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Promote message IDs to the semantic tier. Read more
Source§fn graph_stats<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn graph_stats<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return graph memory statistics (entity/edge/community counts). Read more
Source§fn graph_entities<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn graph_entities<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return the list of all graph entities (up to 50). Read more
Source§fn graph_facts<'a>(
&'a mut self,
_name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn graph_facts<'a>( &'a mut self, _name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return facts for the entity matching
name. Read moreSource§fn graph_history<'a>(
&'a mut self,
_name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn graph_history<'a>( &'a mut self, _name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return edge history for the entity matching
name. Read moreSource§fn graph_communities<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn graph_communities<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return the list of detected graph communities. Read more
Source§fn graph_backfill<'a>(
&'a mut self,
_limit: Option<usize>,
_progress_cb: &'a mut (dyn FnMut(String) + Send),
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn graph_backfill<'a>( &'a mut self, _limit: Option<usize>, _progress_cb: &'a mut (dyn FnMut(String) + Send), ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Run graph backfill, calling
progress_cb for each progress update. Read moreSource§fn guidelines<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn guidelines<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return the current compression guidelines. Read more
Source§fn handle_model<'a>(
&'a mut self,
_arg: &'a str,
) -> Pin<Box<dyn Future<Output = String> + Send + 'a>>
fn handle_model<'a>( &'a mut self, _arg: &'a str, ) -> Pin<Box<dyn Future<Output = String> + Send + 'a>>
Handle
/model [arg] and return a user-visible result.Source§fn handle_provider<'a>(
&'a mut self,
_arg: &'a str,
) -> Pin<Box<dyn Future<Output = String> + Send + 'a>>
fn handle_provider<'a>( &'a mut self, _arg: &'a str, ) -> Pin<Box<dyn Future<Output = String> + Send + 'a>>
Handle
/provider [arg] and return a user-visible result.Source§fn handle_skill<'a>(
&'a mut self,
_args: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn handle_skill<'a>( &'a mut self, _args: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Handle
/skill [subcommand] and return a user-visible result. Read moreSource§fn handle_skills<'a>(
&'a mut self,
_args: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn handle_skills<'a>( &'a mut self, _args: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Handle
/skills [subcommand] and return a user-visible result. Read moreSource§fn handle_feedback_command<'a>(
&'a mut self,
_args: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn handle_feedback_command<'a>( &'a mut self, _args: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Handle
/feedback <skill_name> <message> and return a user-visible result. Read moreSource§fn handle_policy<'a>(
&'a mut self,
_args: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn handle_policy<'a>( &'a mut self, _args: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Handle
/policy [status|check ...] and return a user-visible result. Read moreSource§fn list_scheduled_tasks<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommandError>> + Send + 'a>>
fn list_scheduled_tasks<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommandError>> + Send + 'a>>
List scheduled tasks. Read more
Source§fn lsp_status<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn lsp_status<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return formatted LSP status. Read more
Source§fn session_recap<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn session_recap<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Produce the session recap text. Read more
Source§fn compact_context<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn compact_context<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Compact the context window and return a user-visible status string. Read more
Source§fn reset_conversation<'a>(
&'a mut self,
_keep_plan: bool,
_no_digest: bool,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn reset_conversation<'a>( &'a mut self, _keep_plan: bool, _no_digest: bool, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Start a new conversation and return a user-visible status string. Read more
Source§fn cache_stats(&self) -> String
fn cache_stats(&self) -> String
Return formatted tool orchestrator cache statistics.
Source§fn session_status<'a>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn session_status<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Return a formatted session status string. Read more
Source§fn guardrail_status(&self) -> String
fn guardrail_status(&self) -> String
Return formatted guardrail status.
Source§fn focus_status(&self) -> String
fn focus_status(&self) -> String
Return formatted Focus Agent status.
Source§fn sidequest_status(&self) -> String
fn sidequest_status(&self) -> String
Return formatted
SideQuest eviction stats.Source§fn load_image<'a>(
&'a mut self,
_path: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn load_image<'a>( &'a mut self, _path: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Load an image from
path and enqueue it for the next message. Read moreSource§fn handle_mcp<'a>(
&'a mut self,
_args: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn handle_mcp<'a>( &'a mut self, _args: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Handle
/mcp [add|list|tools|remove] and send output via the agent channel. Read moreSource§fn handle_plan<'a>(
&'a mut self,
_input: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn handle_plan<'a>( &'a mut self, _input: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Dispatch a
/plan command and send output via the agent channel. Read moreSource§fn handle_experiment<'a>(
&'a mut self,
_input: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
fn handle_experiment<'a>( &'a mut self, _input: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>
Dispatch a
/experiment command and send output via the agent channel. Read moreAuto Trait Implementations§
impl Freeze for NullAgent
impl RefUnwindSafe for NullAgent
impl Send for NullAgent
impl Sync for NullAgent
impl Unpin for NullAgent
impl UnsafeUnpin for NullAgent
impl UnwindSafe for NullAgent
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