pub struct ToolSnippet {
pub name: String,
pub description: String,
}Expand description
A one-line description of a tool for the “Available tools” section. Uses prompt_snippet() when available, falling back to description().
Fields§
§name: String§description: StringTrait Implementations§
Source§impl Clone for ToolSnippet
impl Clone for ToolSnippet
Source§fn clone(&self) -> ToolSnippet
fn clone(&self) -> ToolSnippet
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 moreAuto Trait Implementations§
impl Freeze for ToolSnippet
impl RefUnwindSafe for ToolSnippet
impl Send for ToolSnippet
impl Sync for ToolSnippet
impl Unpin for ToolSnippet
impl UnsafeUnpin for ToolSnippet
impl UnwindSafe for ToolSnippet
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