pub struct Tool {
pub id: String,
pub description: String,
pub parameters: Value,
pub execute: Option<ToolExecutor>,
pub require_approval: bool,
}Fields§
§id: String§description: String§parameters: Value§execute: Option<ToolExecutor>§require_approval: boolImplementations§
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