pub struct ResultTruncatorMiddleware { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ToolResultMiddleware for ResultTruncatorMiddleware
impl ToolResultMiddleware for ResultTruncatorMiddleware
type Error = Infallible
fn intercept<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_tool_name: &'life1 str,
result: &'life2 mut ToolCallResult,
) -> Pin<Box<dyn Future<Output = Result<MiddlewareFlow, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for ResultTruncatorMiddleware
impl RefUnwindSafe for ResultTruncatorMiddleware
impl Send for ResultTruncatorMiddleware
impl Sync for ResultTruncatorMiddleware
impl Unpin for ResultTruncatorMiddleware
impl UnsafeUnpin for ResultTruncatorMiddleware
impl UnwindSafe for ResultTruncatorMiddleware
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