pub struct FnToolHandler<Ctx, F> { /* private fields */ }Expand description
A tool handler backed by an async closure.
Created via super::tool_fn or super::tool_fn_with_ctx.
Trait Implementations§
Source§impl<Ctx, F> Debug for FnToolHandler<Ctx, F>
impl<Ctx, F> Debug for FnToolHandler<Ctx, F>
Source§impl<Ctx, F, Fut, O> ToolHandler<Ctx> for FnToolHandler<Ctx, F>
impl<Ctx, F, Fut, O> ToolHandler<Ctx> for FnToolHandler<Ctx, F>
Source§fn definition(&self) -> ToolDefinition
fn definition(&self) -> ToolDefinition
Returns the tool’s definition (name, description, parameter schema).
Auto Trait Implementations§
impl<Ctx, F> Freeze for FnToolHandler<Ctx, F>where
F: Freeze,
impl<Ctx, F> !RefUnwindSafe for FnToolHandler<Ctx, F>
impl<Ctx, F> Send for FnToolHandler<Ctx, F>where
F: Send,
impl<Ctx, F> Sync for FnToolHandler<Ctx, F>where
F: Sync,
impl<Ctx, F> Unpin for FnToolHandler<Ctx, F>where
F: Unpin,
impl<Ctx, F> !UnwindSafe for FnToolHandler<Ctx, F>
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