pub struct SanitizationInterceptor { /* private fields */ }Expand description
Interceptor that sanitizes prompts by removing sensitive patterns
Implementations§
Trait Implementations§
Source§impl RequestInterceptor for SanitizationInterceptor
impl RequestInterceptor for SanitizationInterceptor
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
Auto Trait Implementations§
impl Freeze for SanitizationInterceptor
impl RefUnwindSafe for SanitizationInterceptor
impl Send for SanitizationInterceptor
impl Sync for SanitizationInterceptor
impl Unpin for SanitizationInterceptor
impl UnwindSafe for SanitizationInterceptor
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