pub struct Router { /* private fields */ }Expand description
Main router for AI agent routing
Implementations§
Source§impl Router
impl Router
Sourcepub fn new(config: RouterConfig) -> Result<Self>
pub fn new(config: RouterConfig) -> Result<Self>
Create a new router with the given configuration
Sourcepub fn route(&self, request: RoutingRequest) -> Result<RoutingResponse>
pub fn route(&self, request: RoutingRequest) -> Result<RoutingResponse>
Route a request through the system
Sourcepub fn reload_model(&self) -> Result<()>
pub fn reload_model(&self) -> Result<()>
Reload the model from disk
Sourcepub fn config(&self) -> &RouterConfig
pub fn config(&self) -> &RouterConfig
Get router configuration
Sourcepub fn circuit_breaker_status(&self) -> Option<bool>
pub fn circuit_breaker_status(&self) -> Option<bool>
Get circuit breaker status
Auto Trait Implementations§
impl !Freeze for Router
impl !RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin 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