pub enum ToolEntry {
Runtime(Arc<dyn ToolEntryTrait>),
Declaration(Tool),
}Expand description
An entry in the builder’s tool list — either a runtime ToolKind or a declaration.
Variants§
Runtime(Arc<dyn ToolEntryTrait>)
A runtime tool with a handler function.
Declaration(Tool)
A wire-level tool declaration (e.g., built-in tools like Google Search).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolEntry
impl !RefUnwindSafe for ToolEntry
impl Send for ToolEntry
impl Sync for ToolEntry
impl Unpin for ToolEntry
impl !UnwindSafe for ToolEntry
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