pub struct PartialStreamState {
pub reasoning_state: Option<ReasoningState>,
pub message_id: MessageId,
pub accumulated: String,
}Expand description
State of a partially-streamed assistant message detected in the event log.
Fields§
§reasoning_state: Option<ReasoningState>Prepared Astra effort recovered from the matching stream-start event.
message_id: MessageIdStable public id from the latest output.message.started event.
accumulated: StringAccumulated text from the last output.message.delta for the turn.
Empty when output.message.started was emitted but no delta arrived.
Trait Implementations§
Source§impl Clone for PartialStreamState
impl Clone for PartialStreamState
Source§fn clone(&self) -> PartialStreamState
fn clone(&self) -> PartialStreamState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PartialStreamState
impl RefUnwindSafe for PartialStreamState
impl Send for PartialStreamState
impl Sync for PartialStreamState
impl Unpin for PartialStreamState
impl UnsafeUnpin for PartialStreamState
impl UnwindSafe for PartialStreamState
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