INNER CODE UNIT · Rust
info
xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:280
pub fn info(&self) -> &AcpAgentInfo {
&self.info
}
/// False once the agent actor has stopped — child exit, connection
/// failure, or shutdown. Every request on a dead handle fails, so callers
/// caching handles should relaunch instead of retrying.
pub fn is_alive(&self) -> bool {
!self.command_tx.is_closed()
}
pub fn stderr(&self) -> String {
self.stderr.snapshot()
}
pub async fn next_event(&self) -> Option<AcpSessionEvent> {
self.event_rx.lock().await.recv().await
}