pub enum RealtimeServerEvent {
Show 32 variants
ConversationCreated(RealtimeServerEventConversationCreated),
ConversationItemCreated(RealtimeServerEventConversationItemCreated),
ConversationItemDeleted(RealtimeServerEventConversationItemDeleted),
ConversationItemInputAudioTranscriptionCompleted(RealtimeServerEventConversationItemInputAudioTranscriptionCompleted),
ConversationItemInputAudioTranscriptionDelta(RealtimeServerEventConversationItemInputAudioTranscriptionDelta),
ConversationItemInputAudioTranscriptionFailed(RealtimeServerEventConversationItemInputAudioTranscriptionFailed),
ConversationItemRetrieved(RealtimeServerEventConversationItemRetrieved),
ConversationItemTruncated(RealtimeServerEventConversationItemTruncated),
Error(RealtimeServerEventError),
InputAudioBufferCleared(RealtimeServerEventInputAudioBufferCleared),
InputAudioBufferCommitted(RealtimeServerEventInputAudioBufferCommitted),
InputAudioBufferSpeechStarted(RealtimeServerEventInputAudioBufferSpeechStarted),
InputAudioBufferSpeechStopped(RealtimeServerEventInputAudioBufferSpeechStopped),
RateLimitsUpdated(RealtimeServerEventRateLimitsUpdated),
ResponseAudioDelta(RealtimeServerEventResponseAudioDelta),
ResponseAudioDone(RealtimeServerEventResponseAudioDone),
ResponseAudioTranscriptDelta(RealtimeServerEventResponseAudioTranscriptDelta),
ResponseAudioTranscriptDone(RealtimeServerEventResponseAudioTranscriptDone),
ResponseContentPartAdded(RealtimeServerEventResponseContentPartAdded),
ResponseContentPartDone(RealtimeServerEventResponseContentPartDone),
ResponseCreated(RealtimeServerEventResponseCreated),
ResponseDone(RealtimeServerEventResponseDone),
ResponseFunctionCallArgumentsDelta(RealtimeServerEventResponseFunctionCallArgumentsDelta),
ResponseFunctionCallArgumentsDone(RealtimeServerEventResponseFunctionCallArgumentsDone),
ResponseOutputItemAdded(RealtimeServerEventResponseOutputItemAdded),
ResponseOutputItemDone(RealtimeServerEventResponseOutputItemDone),
ResponseTextDelta(RealtimeServerEventResponseTextDelta),
ResponseTextDone(RealtimeServerEventResponseTextDone),
SessionCreated(RealtimeServerEventSessionCreated),
SessionUpdated(RealtimeServerEventSessionUpdated),
TranscriptionSessionCreated(RealtimeServerEventTranscriptionSessionCreated),
TranscriptionSessionUpdated(RealtimeServerEventTranscriptionSessionUpdated),
}Expand description
Represents the different types of events sent by the server in a Realtime session.
§Used By
- Realtime WebSocket client implementations (for deserializing incoming events).
Variants§
ConversationCreated(RealtimeServerEventConversationCreated)
Conversation created event.
ConversationItemCreated(RealtimeServerEventConversationItemCreated)
Conversation item created event.
ConversationItemDeleted(RealtimeServerEventConversationItemDeleted)
Conversation item deleted event.
ConversationItemInputAudioTranscriptionCompleted(RealtimeServerEventConversationItemInputAudioTranscriptionCompleted)
Input audio transcription completed event.
ConversationItemInputAudioTranscriptionDelta(RealtimeServerEventConversationItemInputAudioTranscriptionDelta)
Input audio transcription delta event.
ConversationItemInputAudioTranscriptionFailed(RealtimeServerEventConversationItemInputAudioTranscriptionFailed)
Input audio transcription failed event.
ConversationItemRetrieved(RealtimeServerEventConversationItemRetrieved)
Conversation item retrieved event.
ConversationItemTruncated(RealtimeServerEventConversationItemTruncated)
Conversation item truncated event.
Error(RealtimeServerEventError)
Error event.
InputAudioBufferCleared(RealtimeServerEventInputAudioBufferCleared)
Input audio buffer cleared event.
InputAudioBufferCommitted(RealtimeServerEventInputAudioBufferCommitted)
Input audio buffer committed event.
InputAudioBufferSpeechStarted(RealtimeServerEventInputAudioBufferSpeechStarted)
Input audio buffer speech started event.
InputAudioBufferSpeechStopped(RealtimeServerEventInputAudioBufferSpeechStopped)
Input audio buffer speech stopped event.
RateLimitsUpdated(RealtimeServerEventRateLimitsUpdated)
Rate limits updated event.
ResponseAudioDelta(RealtimeServerEventResponseAudioDelta)
Response audio delta event.
ResponseAudioDone(RealtimeServerEventResponseAudioDone)
Response audio done event.
ResponseAudioTranscriptDelta(RealtimeServerEventResponseAudioTranscriptDelta)
Response audio transcript delta event.
ResponseAudioTranscriptDone(RealtimeServerEventResponseAudioTranscriptDone)
Response audio transcript done event.
ResponseContentPartAdded(RealtimeServerEventResponseContentPartAdded)
Response content part added event.
ResponseContentPartDone(RealtimeServerEventResponseContentPartDone)
Response content part done event.
ResponseCreated(RealtimeServerEventResponseCreated)
Response created event.
ResponseDone(RealtimeServerEventResponseDone)
Response done event.
ResponseFunctionCallArgumentsDelta(RealtimeServerEventResponseFunctionCallArgumentsDelta)
Response function call arguments delta event.
ResponseFunctionCallArgumentsDone(RealtimeServerEventResponseFunctionCallArgumentsDone)
Response function call arguments done event.
ResponseOutputItemAdded(RealtimeServerEventResponseOutputItemAdded)
Response output item added event.
ResponseOutputItemDone(RealtimeServerEventResponseOutputItemDone)
Response output item done event.
ResponseTextDelta(RealtimeServerEventResponseTextDelta)
Response text delta event.
ResponseTextDone(RealtimeServerEventResponseTextDone)
Response text done event.
SessionCreated(RealtimeServerEventSessionCreated)
Session created event.
SessionUpdated(RealtimeServerEventSessionUpdated)
Session updated event.
TranscriptionSessionCreated(RealtimeServerEventTranscriptionSessionCreated)
Transcription session created event.
TranscriptionSessionUpdated(RealtimeServerEventTranscriptionSessionUpdated)
Transcription session updated event.
Trait Implementations§
Source§impl Clone for RealtimeServerEvent
impl Clone for RealtimeServerEvent
Source§fn clone(&self) -> RealtimeServerEvent
fn clone(&self) -> RealtimeServerEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RealtimeServerEvent
impl Debug for RealtimeServerEvent
Source§impl<'de> Deserialize<'de> for RealtimeServerEvent
impl<'de> Deserialize<'de> for RealtimeServerEvent
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 PartialEq for RealtimeServerEvent
impl PartialEq for RealtimeServerEvent
impl StructuralPartialEq for RealtimeServerEvent
Auto Trait Implementations§
impl Freeze for RealtimeServerEvent
impl RefUnwindSafe for RealtimeServerEvent
impl Send for RealtimeServerEvent
impl Sync for RealtimeServerEvent
impl Unpin for RealtimeServerEvent
impl UnwindSafe for RealtimeServerEvent
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<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
Source§type Val = <C as Collection>::Val
type Val = <C as Collection>::Val
Entry in complex collections.
For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.Source§fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
Source§fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.
Source§type Entry = <C as CollectionValToEntry<Val>>::Entry
type Entry = <C as CollectionValToEntry<Val>>::Entry
Entry is defined by the Collection trait.