pub trait SubAgentSession: Send + Sync {
// Required method
fn steer(&self, prompt: &str) -> Result<(), String>;
// Provided methods
fn cancel(&self) -> bool { ... }
fn sanitize_for_resume(&self) -> usize { ... }
fn continue_run(&self, _prompt: &str) -> Result<SubTaskOutcome, String> { ... }
fn continue_run_with_snapshot(
&self,
prompt: &str,
_snapshot: SubTaskTurnSnapshot,
) -> Result<SubTaskOutcome, String> { ... }
fn subscribe(
&self,
_listener: SubAgentSessionListener,
) -> Option<SubAgentSessionUnsubscribe> { ... }
}Required Methods§
Provided Methods§
fn cancel(&self) -> bool
fn sanitize_for_resume(&self) -> usize
fn continue_run(&self, _prompt: &str) -> Result<SubTaskOutcome, String>
fn continue_run_with_snapshot( &self, prompt: &str, _snapshot: SubTaskTurnSnapshot, ) -> Result<SubTaskOutcome, String>
fn subscribe( &self, _listener: SubAgentSessionListener, ) -> Option<SubAgentSessionUnsubscribe>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".