pub struct Next<'a> { /* private fields */ }Expand description
The remaining middleware chain plus the underlying tool.
Consumed on call to prevent double-invoke.
Implementations§
Source§impl<'a> Next<'a>
impl<'a> Next<'a>
Sourcepub async fn run(
self,
call: &'a ToolCall,
ctx: &'a ToolContext,
) -> Result<ToolOutput, ToolError>
pub async fn run( self, call: &'a ToolCall, ctx: &'a ToolContext, ) -> Result<ToolOutput, ToolError>
Continue the middleware chain, eventually calling the tool.
Auto Trait Implementations§
impl<'a> Freeze for Next<'a>
impl<'a> !RefUnwindSafe for Next<'a>
impl<'a> Send for Next<'a>
impl<'a> Sync for Next<'a>
impl<'a> Unpin for Next<'a>
impl<'a> UnsafeUnpin for Next<'a>
impl<'a> !UnwindSafe for Next<'a>
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