Skip to main content

AsyncMemoryRouter

Trait AsyncMemoryRouter 

Source
pub trait AsyncMemoryRouter: MemoryRouter {
    // Required method
    fn route_async<'a>(
        &'a self,
        query: &'a str,
    ) -> Pin<Box<dyn Future<Output = RoutingDecision> + Send + 'a>>;
}
Expand description

Async extension for LLM-capable routers.

Required Methods§

Source

fn route_async<'a>( &'a self, query: &'a str, ) -> Pin<Box<dyn Future<Output = RoutingDecision> + Send + 'a>>

Implementors§