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§
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".