pub struct ToolBuilder(/* private fields */);Expand description
Builder for Tool.
Implementations§
Source§impl ToolBuilder
impl ToolBuilder
pub fn allowed_callers(self, value: impl Into<Vec<AllowedCaller>>) -> Self
pub fn cache_control(self, value: impl Into<CacheControl>) -> Self
pub fn defer_loading(self, value: impl Into<bool>) -> Self
pub fn description(self, value: impl Into<String>) -> Self
pub fn eager_input_streaming(self, value: impl Into<bool>) -> Self
pub fn input_examples(self, value: impl Into<Vec<Value>>) -> Self
pub fn strict(self, value: impl Into<bool>) -> Self
pub fn type_(self, value: impl Into<ToolType>) -> Self
pub fn rest(self, value: Rest) -> Self
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