pub struct ToolBuilder { /* private fields */ }
Expand description
Builder for creating a function tool.
Implementations§
Source§impl ToolBuilder
impl ToolBuilder
Sourcepub fn with_description<S: Into<String>>(self, description: S) -> Self
pub fn with_description<S: Into<String>>(self, description: S) -> Self
Adds a description to the function.
Sourcepub fn with_parameter(self, parameter: ParameterBuilder) -> Self
pub fn with_parameter(self, parameter: ParameterBuilder) -> Self
Adds a parameter to the function.
Auto Trait Implementations§
impl Freeze for ToolBuilder
impl RefUnwindSafe for ToolBuilder
impl Send for ToolBuilder
impl Sync for ToolBuilder
impl Unpin 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