pub struct Tool(/* private fields */);Implementations§
Source§impl Tool
impl Tool
pub fn parallel_safe(&self) -> bool
Sourcepub fn mutating(&self) -> bool
pub fn mutating(&self) -> bool
Whether this tool may mutate the workspace (see TypedTool::mutating).
pub fn name(&self) -> &str
pub fn definition(&self) -> ToolDefinition
pub async fn execute(&self, args: Value, ctx: ToolContext) -> ToolOutput
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tool
impl !UnwindSafe for Tool
impl Freeze for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
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