pub trait SubagentConnector {
type Error: Into<Error>;
// Required methods
async fn push_chunk(&self, chunk: StreamingChunk);
fn tool_call(
&self,
agent: &Agent,
call: &ToolCall,
) -> Result<(), Self::Error>;
fn tool_result(
&self,
agent: &Agent,
call: &ToolCall,
result: &Result<String, Error>,
) -> Result<(), Self::Error>;
}Required Associated Types§
Required Methods§
async fn push_chunk(&self, chunk: StreamingChunk)
fn tool_call(&self, agent: &Agent, call: &ToolCall) -> Result<(), Self::Error>
fn tool_result( &self, agent: &Agent, call: &ToolCall, result: &Result<String, Error>, ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".