pub struct ToolBuilder { /* private fields */ }Implementations§
Source§impl ToolBuilder
impl ToolBuilder
pub fn new(name: impl Into<String>, description: impl Into<String>) -> Self
pub fn schema(self, schema: Value) -> Self
pub fn read_only(self, read_only: bool) -> Self
pub fn should_defer(self, defer: bool) -> Self
pub fn search_hints(self, hints: Vec<String>) -> Self
pub fn handler<F>(self, f: F) -> Self
pub fn build(self) -> impl Tool
Auto Trait Implementations§
impl Freeze for ToolBuilder
impl !RefUnwindSafe for ToolBuilder
impl Send for ToolBuilder
impl Sync for ToolBuilder
impl Unpin for ToolBuilder
impl UnsafeUnpin for ToolBuilder
impl !UnwindSafe for ToolBuilder
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