pub struct LoggingInterceptor { /* private fields */ }Expand description
Interceptor that logs requests
Implementations§
Trait Implementations§
Source§impl RequestInterceptor for LoggingInterceptor
impl RequestInterceptor for LoggingInterceptor
Source§fn intercept_request<'life0, 'async_trait>(
&'life0 self,
request: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn intercept_request<'life0, 'async_trait>(
&'life0 self,
request: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Intercept and potentially modify a request before it’s sent to the provider
Source§impl ResponseInterceptor for LoggingInterceptor
impl ResponseInterceptor for LoggingInterceptor
Source§fn intercept_response<'life0, 'async_trait>(
&'life0 self,
response: LlmResponse,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn intercept_response<'life0, 'async_trait>(
&'life0 self,
response: LlmResponse,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Intercept and potentially modify a response after it’s received from the provider
Auto Trait Implementations§
impl Freeze for LoggingInterceptor
impl RefUnwindSafe for LoggingInterceptor
impl Send for LoggingInterceptor
impl Sync for LoggingInterceptor
impl Unpin 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