pub trait SubAgentSession: Send + Sync {
// Required method
fn steer(&self, prompt: &str) -> Result<(), String>;
// Provided methods
fn sanitize_for_resume(&self) -> usize { ... }
fn continue_run(&self, _prompt: &str) -> Result<SubTaskOutcome, String> { ... }
fn subscribe(
&self,
_listener: SubAgentSessionListener,
) -> Option<SubAgentSessionUnsubscribe> { ... }
}Required Methods§
Provided Methods§
fn sanitize_for_resume(&self) -> usize
fn continue_run(&self, _prompt: &str) -> 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".