pub struct LoggingInterceptor;Expand description
An interceptor that logs tool call requests and results via tracing.
Trait Implementations§
Source§impl Debug for LoggingInterceptor
impl Debug for LoggingInterceptor
Source§impl Default for LoggingInterceptor
impl Default for LoggingInterceptor
Source§fn default() -> LoggingInterceptor
fn default() -> LoggingInterceptor
Returns the “default value” for a type. Read more
Source§impl ToolCallInterceptor for LoggingInterceptor
impl ToolCallInterceptor for LoggingInterceptor
Source§fn intercept<'a>(
&'a self,
request: McpToolCallRequest,
next: InterceptorNext<'a>,
) -> Pin<Box<dyn Future<Output = Result<McpToolCallResult, McpAdapterError>> + Send + 'a>>
fn intercept<'a>( &'a self, request: McpToolCallRequest, next: InterceptorNext<'a>, ) -> Pin<Box<dyn Future<Output = Result<McpToolCallResult, McpAdapterError>> + Send + 'a>>
Intercept a tool call. Read more
Auto Trait Implementations§
impl Freeze for LoggingInterceptor
impl RefUnwindSafe for LoggingInterceptor
impl Send for LoggingInterceptor
impl Sync for LoggingInterceptor
impl Unpin for LoggingInterceptor
impl UnsafeUnpin for LoggingInterceptor
impl UnwindSafe for LoggingInterceptor
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