pub struct AssistantTextCollector { /* private fields */ }Expand description
Incremental assistant text collector for one turn stream. Keeps explicit state to avoid duplicate text from both delta and completed payloads.
Implementations§
Source§impl AssistantTextCollector
impl AssistantTextCollector
Sourcepub fn push_envelope(&mut self, envelope: &Envelope)
pub fn push_envelope(&mut self, envelope: &Envelope)
Consume one envelope and update internal text state. Allocation: O(delta) for appended text and newly seen item ids. Complexity: O(1).
Trait Implementations§
Source§impl Clone for AssistantTextCollector
impl Clone for AssistantTextCollector
Source§fn clone(&self) -> AssistantTextCollector
fn clone(&self) -> AssistantTextCollector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantTextCollector
impl Debug for AssistantTextCollector
Source§impl Default for AssistantTextCollector
impl Default for AssistantTextCollector
Source§fn default() -> AssistantTextCollector
fn default() -> AssistantTextCollector
Returns the “default value” for a type. Read more
Source§impl PartialEq for AssistantTextCollector
impl PartialEq for AssistantTextCollector
impl Eq for AssistantTextCollector
impl StructuralPartialEq for AssistantTextCollector
Auto Trait Implementations§
impl Freeze for AssistantTextCollector
impl RefUnwindSafe for AssistantTextCollector
impl Send for AssistantTextCollector
impl Sync for AssistantTextCollector
impl Unpin for AssistantTextCollector
impl UnsafeUnpin for AssistantTextCollector
impl UnwindSafe for AssistantTextCollector
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