pub struct Router { /* private fields */ }Expand description
A model router backed by reqwest that instantiates concrete provider
model objects on demand from ProviderConfig entries.
Implementations§
Trait Implementations§
Source§impl LanguageModelRouter for Router
impl LanguageModelRouter for Router
Source§async fn route_model(
&self,
target: RoutingTarget,
) -> Result<Box<DynLanguageModel<'static>>>
async fn route_model( &self, target: RoutingTarget, ) -> Result<Box<DynLanguageModel<'static>>>
Routes to the appropriate language model implementation based on the routing target. Read more
Auto Trait Implementations§
impl Freeze for Router
impl !RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnsafeUnpin for Router
impl !UnwindSafe for Router
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more