pub struct ToolEntry {
pub schema: Tool,
pub handler: ToolHandler,
pub system_prompt: Option<String>,
pub before_run: Option<BeforeRunHook>,
}Expand description
A registered tool: schema + handler + optional lifecycle hooks.
Fields§
§schema: ToolTool schema for the LLM.
handler: ToolHandlerDispatch handler.
system_prompt: Option<String>Appended to agent system prompt at build time.
before_run: Option<BeforeRunHook>Injected before each agent turn (auto-recall, context, etc).
Auto Trait Implementations§
impl Freeze for ToolEntry
impl !RefUnwindSafe for ToolEntry
impl Send for ToolEntry
impl Sync for ToolEntry
impl Unpin for ToolEntry
impl UnsafeUnpin 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