pub enum RealtimeTranscriptMaterializedMessage {
User {
item_id: String,
text: String,
},
Assistant {
item_id: String,
response_id: String,
text: String,
stop_reason: StopReason,
usage: Usage,
lane: TranscriptLane,
},
}Expand description
Canonical message materialized by applying a realtime transcript event.
Variants§
User
Assistant
Fields
§
stop_reason: StopReason§
lane: TranscriptLaneT9/T10: which output lane the staged content arrived on.
Drives whether the materializer flushes
crate::types::AssistantBlock::Text (Display) or
crate::types::AssistantBlock::Transcript with
source: TranscriptSource::Spoken (Spoken).
Trait Implementations§
Source§impl Clone for RealtimeTranscriptMaterializedMessage
impl Clone for RealtimeTranscriptMaterializedMessage
Source§fn clone(&self) -> RealtimeTranscriptMaterializedMessage
fn clone(&self) -> RealtimeTranscriptMaterializedMessage
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 moreSource§impl PartialEq for RealtimeTranscriptMaterializedMessage
impl PartialEq for RealtimeTranscriptMaterializedMessage
Source§fn eq(&self, other: &RealtimeTranscriptMaterializedMessage) -> bool
fn eq(&self, other: &RealtimeTranscriptMaterializedMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RealtimeTranscriptMaterializedMessage
Auto Trait Implementations§
impl Freeze for RealtimeTranscriptMaterializedMessage
impl RefUnwindSafe for RealtimeTranscriptMaterializedMessage
impl Send for RealtimeTranscriptMaterializedMessage
impl Sync for RealtimeTranscriptMaterializedMessage
impl Unpin for RealtimeTranscriptMaterializedMessage
impl UnsafeUnpin for RealtimeTranscriptMaterializedMessage
impl UnwindSafe for RealtimeTranscriptMaterializedMessage
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