Skip to main content

SubagentNotifier

Trait SubagentNotifier 

Source
pub trait SubagentNotifier: Debug + Send {
    type Error: Into<Error> + Send + Sync + 'static;
    type Subagent: SubagentConnector;

    // Required method
    async fn created(
        &self,
        agent: &Agent,
        prompt: &str,
    ) -> Result<Self::Subagent, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

async fn created( &self, agent: &Agent, prompt: &str, ) -> Result<Self::Subagent, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§