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§
fn route_async<'a>( &'a self, query: &'a str, ) -> Pin<Box<dyn Future<Output = RoutingDecision> + Send + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".