Skip to main content

SubAgentSession

Trait SubAgentSession 

Source
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§

Source

fn steer(&self, prompt: &str) -> Result<(), String>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§