pub struct StubModelRouter;Expand description
A stub model router that rejects all requests with a descriptive error.
Used when the server starts without a real provider-backed router. Health checks and other non-model endpoints still work; only model API requests will return an error.
Trait Implementations§
Source§impl LanguageModelRouter for StubModelRouter
impl LanguageModelRouter for StubModelRouter
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 StubModelRouter
impl RefUnwindSafe for StubModelRouter
impl Send for StubModelRouter
impl Sync for StubModelRouter
impl Unpin for StubModelRouter
impl UnsafeUnpin for StubModelRouter
impl UnwindSafe for StubModelRouter
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