pub struct NoHost;Expand description
No-op host for embedded use.
Trait Implementations§
Source§impl Host for NoHost
impl Host for NoHost
Source§fn dispatch_ask_user(
&self,
args: &str,
conversation_id: Option<u64>,
) -> impl Future<Output = Result<String, String>> + Send
fn dispatch_ask_user( &self, args: &str, conversation_id: Option<u64>, ) -> impl Future<Output = Result<String, String>> + Send
Handle
ask_user — block until user replies. Read moreSource§fn dispatch_delegate(
&self,
args: &str,
agent: &str,
) -> impl Future<Output = Result<String, String>> + Send
fn dispatch_delegate( &self, args: &str, agent: &str, ) -> impl Future<Output = Result<String, String>> + Send
Handle
delegate — spawn sub-agent tasks. Read moreSource§fn conversation_cwd(&self, _conversation_id: u64) -> Option<PathBuf>
fn conversation_cwd(&self, _conversation_id: u64) -> Option<PathBuf>
Resolve the working directory for a conversation.
Returns
None to fall back to the runtime’s base cwd.Source§fn on_agent_event(
&self,
_agent: &str,
_conversation_id: u64,
_event: &AgentEvent,
)
fn on_agent_event( &self, _agent: &str, _conversation_id: u64, _event: &AgentEvent, )
Called when an agent event occurs. The daemon uses this to broadcast
protobuf events to console subscribers. Default: no-op.
Source§fn reply_to_ask(
&self,
_session: u64,
_content: String,
) -> impl Future<Output = Result<bool>> + Send
fn reply_to_ask( &self, _session: u64, _content: String, ) -> impl Future<Output = Result<bool>> + Send
Deliver a user reply to a pending
ask_user tool call.
Returns true if a pending ask was found and resolved.Source§fn set_conversation_cwd(
&self,
_conversation: u64,
_cwd: PathBuf,
) -> impl Future<Output = ()> + Send
fn set_conversation_cwd( &self, _conversation: u64, _cwd: PathBuf, ) -> impl Future<Output = ()> + Send
Set the working directory override for a conversation.
Source§fn clear_conversation_state(
&self,
_conversation: u64,
) -> impl Future<Output = ()> + Send
fn clear_conversation_state( &self, _conversation: u64, ) -> impl Future<Output = ()> + Send
Clear all per-conversation state (pending asks, CWD overrides).
Source§fn subscribe_events(&self) -> Option<Receiver<AgentEventMsg>>
fn subscribe_events(&self) -> Option<Receiver<AgentEventMsg>>
Subscribe to agent events. Returns
None if event broadcasting
is not supported by this host.Auto Trait Implementations§
impl Freeze for NoHost
impl RefUnwindSafe for NoHost
impl Send for NoHost
impl Sync for NoHost
impl Unpin for NoHost
impl UnsafeUnpin for NoHost
impl UnwindSafe for NoHost
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