Skip to main content

SubagentDispatcher

Trait SubagentDispatcher 

Source
pub trait SubagentDispatcher:
    Send
    + Sync
    + 'static {
    // Required methods
    fn id(&self) -> SubagentDispatcherId;
    fn definitions(&self) -> Vec<SubagentDefinition>;
    fn dispatch<'life0, 'async_trait>(
        &'life0 self,
        parent_thread_id: ThreadId,
        parent_turn_id: TurnId,
        request: SubagentRequest,
    ) -> Pin<Box<dyn Future<Output = Result<SubagentResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn dispatch_traced<'life0, 'async_trait>(
        &'life0 self,
        parent_thread_id: ThreadId,
        parent_turn_id: TurnId,
        request: SubagentRequest,
        trace_sink: Option<Arc<dyn SubagentTraceSink>>,
    ) -> Pin<Box<dyn Future<Output = Result<SubagentResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn id(&self) -> SubagentDispatcherId

Source

fn definitions(&self) -> Vec<SubagentDefinition>

Source

fn dispatch<'life0, 'async_trait>( &'life0 self, parent_thread_id: ThreadId, parent_turn_id: TurnId, request: SubagentRequest, ) -> Pin<Box<dyn Future<Output = Result<SubagentResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn dispatch_traced<'life0, 'async_trait>( &'life0 self, parent_thread_id: ThreadId, parent_turn_id: TurnId, request: SubagentRequest, trace_sink: Option<Arc<dyn SubagentTraceSink>>, ) -> Pin<Box<dyn Future<Output = Result<SubagentResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§