pub struct PathEventMapper { /* private fields */ }Expand description
Manifest-driven path mapper for streaming frames. Supports:
- content_path (text deltas)
- tool_call_path (OpenAI-style tool_calls delta array)
- usage_path (usage metadata)
Implementations§
Trait Implementations§
Source§impl Mapper for PathEventMapper
impl Mapper for PathEventMapper
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 PathEventMapper
impl RefUnwindSafe for PathEventMapper
impl Send for PathEventMapper
impl Sync for PathEventMapper
impl Unpin for PathEventMapper
impl UnwindSafe for PathEventMapper
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