pub struct PreparedTools {
pub tool_defs: Vec<ToolDef>,
pub by_name: HashMap<String, Arc<dyn BaseTool>>,
pub tools: Vec<Arc<dyn BaseTool>>,
}Expand description
Result of prepare_tools(): contains everything you need to work with tools.
§Fields
tool_defs: Tool definitions for binding to a model (model.bind_tools(prepared.tool_defs))by_name: Name-to-tool lookup map for executing tool callstools: The original tools list (for passing toToolNode, etc.)
Fields§
§tool_defs: Vec<ToolDef>§by_name: HashMap<String, Arc<dyn BaseTool>>§tools: Vec<Arc<dyn BaseTool>>Auto Trait Implementations§
impl !RefUnwindSafe for PreparedTools
impl !UnwindSafe for PreparedTools
impl Freeze for PreparedTools
impl Send for PreparedTools
impl Sync for PreparedTools
impl Unpin for PreparedTools
impl UnsafeUnpin for PreparedTools
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