pub enum RealtimeTranscriptEvent {
ItemObserved {
item_id: String,
previous_item_id: Option<String>,
role: RealtimeTranscriptRole,
response_id: Option<String>,
},
ItemSkipped {
item_id: String,
previous_item_id: Option<String>,
},
UserTranscriptFinal {
item_id: String,
previous_item_id: Option<String>,
content_index: u32,
text: String,
},
AssistantTextDelta {
response_id: String,
delta_id: String,
item_id: String,
previous_item_id: Option<String>,
content_index: u32,
delta: String,
},
AssistantTranscriptTruncated {
response_id: String,
item_id: String,
content_index: u32,
text: String,
},
AssistantTurnCompleted {
response_id: String,
stop_reason: StopReason,
usage: Usage,
},
AssistantTurnInterrupted {
response_id: String,
},
}Expand description
A typed, identity-bearing realtime transcript event consumed by the session.
Variants§
ItemObserved
Observe a provider item and its causal predecessor without committing content yet.
Fields
§
role: RealtimeTranscriptRoleItemSkipped
Observe a provider item that participates in provider causal ordering but must not materialize transcript content.
UserTranscriptFinal
Provider finalized the transcript for a user input item.
AssistantTextDelta
Provider emitted an assistant text delta for an output item.
Fields
AssistantTranscriptTruncated
Provider reported the assistant output item was truncated to the heard transcript prefix.
AssistantTurnCompleted
Provider turn reached a terminal boundary. The session decides which staged assistant items, if any, are now canonical.
AssistantTurnInterrupted
Provider turn was interrupted before terminal materialization.
Trait Implementations§
Source§impl Clone for RealtimeTranscriptEvent
impl Clone for RealtimeTranscriptEvent
Source§fn clone(&self) -> RealtimeTranscriptEvent
fn clone(&self) -> RealtimeTranscriptEvent
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 Debug for RealtimeTranscriptEvent
impl Debug for RealtimeTranscriptEvent
Source§impl<'de> Deserialize<'de> for RealtimeTranscriptEvent
impl<'de> Deserialize<'de> for RealtimeTranscriptEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RealtimeTranscriptEvent
impl PartialEq for RealtimeTranscriptEvent
Source§fn eq(&self, other: &RealtimeTranscriptEvent) -> bool
fn eq(&self, other: &RealtimeTranscriptEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RealtimeTranscriptEvent
impl Serialize for RealtimeTranscriptEvent
impl StructuralPartialEq for RealtimeTranscriptEvent
Auto Trait Implementations§
impl Freeze for RealtimeTranscriptEvent
impl RefUnwindSafe for RealtimeTranscriptEvent
impl Send for RealtimeTranscriptEvent
impl Sync for RealtimeTranscriptEvent
impl Unpin for RealtimeTranscriptEvent
impl UnsafeUnpin for RealtimeTranscriptEvent
impl UnwindSafe for RealtimeTranscriptEvent
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