pub struct ToolSetBuilder { /* private fields */ }Expand description
Builder for static, runtime-defined, and embedding tools.
Implementations§
Source§impl ToolSetBuilder
impl ToolSetBuilder
Sourcepub fn static_tool<T>(self, tool: T) -> Selfwhere
T: Tool + 'static,
pub fn static_tool<T>(self, tool: T) -> Selfwhere
T: Tool + 'static,
Add a typed static tool.
Sourcepub fn dynamic_tool(self, tool: DynamicTool) -> Self
pub fn dynamic_tool(self, tool: DynamicTool) -> Self
Add a runtime-defined tool.
Sourcepub fn portable_dynamic_tool(self, tool: PortableDynamicTool) -> Self
pub fn portable_dynamic_tool(self, tool: PortableDynamicTool) -> Self
Add a context-free dynamic tool through the classic adapter.
Sourcepub fn retrieved_tool<T>(self, tool: T) -> Selfwhere
T: ToolEmbedding + 'static,
pub fn retrieved_tool<T>(self, tool: T) -> Selfwhere
T: ToolEmbedding + 'static,
Add a tool that is retrieved from an embedding index at prompt time.
Trait Implementations§
Source§impl Default for ToolSetBuilder
impl Default for ToolSetBuilder
Source§fn default() -> ToolSetBuilder
fn default() -> ToolSetBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ToolSetBuilder
impl !UnwindSafe for ToolSetBuilder
impl Freeze for ToolSetBuilder
impl Send for ToolSetBuilder
impl Sync for ToolSetBuilder
impl Unpin for ToolSetBuilder
impl UnsafeUnpin for ToolSetBuilder
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