pub struct ToolContract {
pub name: String,
pub description: String,
pub input_schema: Value,
}Expand description
One tool exactly as the contract records it.
Fields§
§name: StringTool name as agents call it.
description: StringDescription shown in the catalog.
input_schema: ValueJSON Schema for the tool’s arguments.
Trait Implementations§
Source§impl Clone for ToolContract
impl Clone for ToolContract
Source§fn clone(&self) -> ToolContract
fn clone(&self) -> ToolContract
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 ToolContract
impl RefUnwindSafe for ToolContract
impl Send for ToolContract
impl Sync for ToolContract
impl Unpin for ToolContract
impl UnsafeUnpin for ToolContract
impl UnwindSafe for ToolContract
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