pub struct TmuxSupervisor;Expand description
Portable supervisor: one detached tmux session per agent.
Trait Implementations§
Source§impl Supervisor for TmuxSupervisor
impl Supervisor for TmuxSupervisor
Source§fn drain(&self, spec: &AgentSpec, timeout: Duration) -> Result<DrainOutcome>
fn drain(&self, spec: &AgentSpec, timeout: Duration) -> Result<DrainOutcome>
Send Ctrl-C to the pane (kernel delivers SIGINT to the
foreground process), then poll for Stopped up to timeout.
Falls through to kill-session if the agent doesn’t exit in
time. Used by reload so in-flight tool calls and partial
assistant responses get a chance to flush instead of being
SIGKILL’d by the prior down().
fn up(&self, spec: &AgentSpec) -> Result<()>
fn down(&self, spec: &AgentSpec) -> Result<()>
fn state(&self, spec: &AgentSpec) -> Result<AgentState>
Auto Trait Implementations§
impl Freeze for TmuxSupervisor
impl RefUnwindSafe for TmuxSupervisor
impl Send for TmuxSupervisor
impl Sync for TmuxSupervisor
impl Unpin for TmuxSupervisor
impl UnsafeUnpin for TmuxSupervisor
impl UnwindSafe for TmuxSupervisor
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