Struct langchain_rust::semantic_router::RouteLayer
source · pub struct RouteLayer { /* private fields */ }
Implementations§
source§impl RouteLayer
impl RouteLayer
pub async fn add_routes( &mut self, routers: &mut [Router] ) -> Result<(), RouteLayerError>
pub async fn delete_route<S: Into<String>>( &mut self, route_name: S ) -> Result<(), RouteLayerError>
pub async fn get_routes(&self) -> Result<Vec<Router>, RouteLayerError>
pub async fn call<S: Into<String>>( &self, query: S ) -> Result<Option<RouteChoise>, RouteLayerError>
pub async fn call_embedding( &self, embedding: &[f64] ) -> Result<Option<RouteChoise>, RouteLayerError>
Auto Trait Implementations§
impl Freeze for RouteLayer
impl !RefUnwindSafe for RouteLayer
impl !Send for RouteLayer
impl !Sync for RouteLayer
impl Unpin for RouteLayer
impl !UnwindSafe for RouteLayer
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