pub struct ToolExec<Ctx = ()>(/* private fields */);Expand description
Marker for tool executions.
The Ctx type parameter matches the context type used by ToolRegistry<Ctx>.
- Input:
ToolRequest - Output:
ToolResponse
Trait Implementations§
Source§impl<Ctx: Send + Sync + 'static> Interceptable for ToolExec<Ctx>
impl<Ctx: Send + Sync + 'static> Interceptable for ToolExec<Ctx>
Source§type Input = ToolRequest
type Input = ToolRequest
Input to the operation.
Source§type Output = ToolResponse
type Output = ToolResponse
Output from the operation.
Source§impl<Ctx, F> Interceptor<ToolExec<Ctx>> for Approval<F>
impl<Ctx, F> Interceptor<ToolExec<Ctx>> for Approval<F>
Auto Trait Implementations§
impl<Ctx> Freeze for ToolExec<Ctx>
impl<Ctx> RefUnwindSafe for ToolExec<Ctx>
impl<Ctx> Send for ToolExec<Ctx>
impl<Ctx> Sync for ToolExec<Ctx>
impl<Ctx> Unpin for ToolExec<Ctx>
impl<Ctx> UnwindSafe for ToolExec<Ctx>
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