#[non_exhaustive]pub enum TranscriptLane {
Display,
Spoken,
}Expand description
Output lane carried by an assistant realtime transcript item.
T9/T10: distinguishes display text (authored output the model writes,
e.g. OpenAI realtime response.output_text.delta) from spoken transcript
(text derived from audio output, e.g. response.output_audio_transcript.*).
The materializer at crate::session::Session::append_realtime_transcript_event
dispatches on this to flush either crate::types::AssistantBlock::Text
(for Display) or crate::types::AssistantBlock::Transcript with
source: TranscriptSource::Spoken (for Spoken).
Display is the default for items that arrive only via
RealtimeTranscriptEvent::AssistantTextDelta; an item is upgraded to
Spoken the first time an RealtimeTranscriptEvent::AssistantTranscriptDelta
fragment arrives for it. Mixed-lane content on the same item_id is not
expected from any provider today; if observed the first lane wins
(the materializer cannot retroactively re-classify a partially-flushed
item) and a tracing::warn! is emitted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Trait Implementations§
Source§impl Clone for TranscriptLane
impl Clone for TranscriptLane
Source§fn clone(&self) -> TranscriptLane
fn clone(&self) -> TranscriptLane
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TranscriptLane
impl Debug for TranscriptLane
Source§impl Default for TranscriptLane
impl Default for TranscriptLane
Source§fn default() -> TranscriptLane
fn default() -> TranscriptLane
Source§impl<'de> Deserialize<'de> for TranscriptLane
impl<'de> Deserialize<'de> for TranscriptLane
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for TranscriptLane
impl Hash for TranscriptLane
Source§impl JsonSchema for TranscriptLane
impl JsonSchema for TranscriptLane
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for TranscriptLane
impl Ord for TranscriptLane
Source§fn cmp(&self, other: &TranscriptLane) -> Ordering
fn cmp(&self, other: &TranscriptLane) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TranscriptLane
impl PartialEq for TranscriptLane
Source§fn eq(&self, other: &TranscriptLane) -> bool
fn eq(&self, other: &TranscriptLane) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TranscriptLane
impl PartialOrd for TranscriptLane
Source§impl Serialize for TranscriptLane
impl Serialize for TranscriptLane
impl Copy for TranscriptLane
impl Eq for TranscriptLane
impl StructuralPartialEq for TranscriptLane
Auto Trait Implementations§
impl Freeze for TranscriptLane
impl RefUnwindSafe for TranscriptLane
impl Send for TranscriptLane
impl Sync for TranscriptLane
impl Unpin for TranscriptLane
impl UnsafeUnpin for TranscriptLane
impl UnwindSafe for TranscriptLane
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.