pub struct ToolDesc {
pub name: String,
pub description: String,
pub schema: Value,
}Expand description
A tool as the prompt describes it.
Fields§
§name: String§description: String§schema: ValueJSON Schema of the arguments.
Trait Implementations§
impl StructuralPartialEq for ToolDesc
Auto Trait Implementations§
impl Forget for ToolDesc
impl Freeze for ToolDesc
impl Move for ToolDesc
impl RefUnwindSafe for ToolDesc
impl Send for ToolDesc
impl Sync for ToolDesc
impl Unpin for ToolDesc
impl UnsafeUnpin for ToolDesc
impl UnwindSafe for ToolDesc
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