Skip to main content

NullAgent

Struct NullAgent 

Source
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

Source§

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>>

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>>

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>>

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>>

Return facts for the entity matching name. Read more
Source§

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 more
Source§

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>>

Run graph backfill, calling progress_cb for each progress update. Read more
Source§

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>>

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>>

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>>

Handle /skill [subcommand] and return a user-visible result. Read more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

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>>

Return formatted LSP status. Read more
Source§

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>>

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>>

Start a new conversation and return a user-visible status string. Read more
Source§

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>>

Return a formatted session status string. Read more
Source§

fn guardrail_status(&self) -> String

Return formatted guardrail status.
Source§

fn focus_status(&self) -> String

Return formatted Focus Agent status.
Source§

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>>

Load an image from path and enqueue it for the next message. Read more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

fn handle_agent_dispatch<'a>( &'a mut self, _input: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommandError>> + Send + 'a>>

Dispatch a /agent or @mention command and return an optional response string. Read more
Source§

fn handle_plugins<'a>( &'a mut self, _args: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, CommandError>> + Send + 'a>>

Handle /plugins [subcommand] [args] and return a user-visible result. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.