pub struct ScoredTool {
pub entry: ToolEntry,
pub score: f64,
}Expand description
A tool ranked by relevance to a query.
Fields§
§entry: ToolEntryThe tool entry that matched.
score: f64Cosine similarity score in [0.0, 1.0]. Higher is more relevant.
Trait Implementations§
Source§impl Clone for ScoredTool
impl Clone for ScoredTool
Source§fn clone(&self) -> ScoredTool
fn clone(&self) -> ScoredTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoredTool
impl Debug for ScoredTool
Source§impl<'de> Deserialize<'de> for ScoredTool
impl<'de> Deserialize<'de> for ScoredTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScoredTool
impl RefUnwindSafe for ScoredTool
impl Send for ScoredTool
impl Sync for ScoredTool
impl Unpin for ScoredTool
impl UnsafeUnpin for ScoredTool
impl UnwindSafe for ScoredTool
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