pub struct ContentFilter { /* private fields */ }Expand description
Processor that filters content parts, keeping only those that match a predicate.
Implementations§
Source§impl ContentFilter
impl ContentFilter
Trait Implementations§
Source§impl RequestProcessor for ContentFilter
impl RequestProcessor for ContentFilter
Source§fn process_request<'life0, 'async_trait>(
&'life0 self,
request: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmRequest, ProcessorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_request<'life0, 'async_trait>(
&'life0 self,
request: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmRequest, ProcessorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process the request, potentially modifying it.
Auto Trait Implementations§
impl Freeze for ContentFilter
impl RefUnwindSafe for ContentFilter
impl Send for ContentFilter
impl Sync for ContentFilter
impl Unpin for ContentFilter
impl UnsafeUnpin for ContentFilter
impl UnwindSafe for ContentFilter
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