pub struct OpenAiStyleEventMapper;Expand description
Fallback openai-style mapping when no event_map rules are provided.
Trait Implementations§
Source§impl Mapper for OpenAiStyleEventMapper
impl Mapper for OpenAiStyleEventMapper
Source§fn map<'life0, 'async_trait>(
&'life0 self,
input: BoxStream<'static, Value>,
) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, StreamingEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn map<'life0, 'async_trait>(
&'life0 self,
input: BoxStream<'static, Value>,
) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, StreamingEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
A mapper takes a stream of JSON values and returns a stream of unified events
Auto Trait Implementations§
impl Freeze for OpenAiStyleEventMapper
impl RefUnwindSafe for OpenAiStyleEventMapper
impl Send for OpenAiStyleEventMapper
impl Sync for OpenAiStyleEventMapper
impl Unpin for OpenAiStyleEventMapper
impl UnwindSafe for OpenAiStyleEventMapper
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