Struct langchain_rust::semantic_router::Router
source · pub struct Router {
pub name: String,
pub utterances: Vec<String>,
pub embedding: Option<Vec<Vec<f64>>>,
pub similarity: Option<f64>,
pub tool_description: Option<String>,
}
Fields§
§name: String
§utterances: Vec<String>
§embedding: Option<Vec<Vec<f64>>>
§similarity: Option<f64>
§tool_description: Option<String>
Implementations§
Trait Implementations§
source§impl PartialEq for Router
impl PartialEq for Router
impl Eq for Router
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.