pub enum RealtimeServerEvent {
Show 46 variants
SessionCreated,
SessionUpdated,
ConversationCreated,
ConversationItemCreated,
ConversationItemAdded,
ConversationItemDone,
ConversationItemDeleted,
ConversationItemRetrieved,
ConversationItemTruncated,
ConversationItemInputAudioTranscriptionCompleted,
ConversationItemInputAudioTranscriptionDelta,
ConversationItemInputAudioTranscriptionFailed,
ConversationItemInputAudioTranscriptionSegment,
InputAudioBufferCleared,
InputAudioBufferCommitted,
InputAudioBufferSpeechStarted,
InputAudioBufferSpeechStopped,
InputAudioBufferTimeoutTriggered,
InputAudioBufferDtmfEventReceived,
OutputAudioBufferStarted,
OutputAudioBufferStopped,
OutputAudioBufferCleared,
ResponseCreated,
ResponseDone,
ResponseOutputItemAdded,
ResponseOutputItemDone,
ResponseContentPartAdded,
ResponseContentPartDone,
ResponseOutputTextDelta,
ResponseOutputTextDone,
ResponseOutputAudioDelta,
ResponseOutputAudioDone,
ResponseOutputAudioTranscriptDelta,
ResponseOutputAudioTranscriptDone,
ResponseFunctionCallArgumentsDelta,
ResponseFunctionCallArgumentsDone,
ResponseMcpCallArgumentsDelta,
ResponseMcpCallArgumentsDone,
ResponseMcpCallInProgress,
ResponseMcpCallCompleted,
ResponseMcpCallFailed,
McpListToolsInProgress,
McpListToolsCompleted,
McpListToolsFailed,
RateLimitsUpdated,
Error,
}Expand description
Realtime API server events received over WebSocket/WebRTC/SIP connections.
Variants§
SessionCreated
SessionUpdated
ConversationCreated
ConversationItemCreated
ConversationItemAdded
ConversationItemDone
ConversationItemDeleted
ConversationItemRetrieved
ConversationItemTruncated
ConversationItemInputAudioTranscriptionCompleted
ConversationItemInputAudioTranscriptionDelta
ConversationItemInputAudioTranscriptionFailed
ConversationItemInputAudioTranscriptionSegment
InputAudioBufferCleared
InputAudioBufferCommitted
InputAudioBufferSpeechStarted
InputAudioBufferSpeechStopped
InputAudioBufferTimeoutTriggered
InputAudioBufferDtmfEventReceived
OutputAudioBufferStarted
OutputAudioBufferStopped
OutputAudioBufferCleared
ResponseCreated
ResponseDone
ResponseOutputItemAdded
ResponseOutputItemDone
ResponseContentPartAdded
ResponseContentPartDone
ResponseOutputTextDelta
ResponseOutputTextDone
ResponseOutputAudioDelta
ResponseOutputAudioDone
ResponseOutputAudioTranscriptDelta
ResponseOutputAudioTranscriptDone
ResponseFunctionCallArgumentsDelta
ResponseFunctionCallArgumentsDone
ResponseMcpCallArgumentsDelta
ResponseMcpCallArgumentsDone
ResponseMcpCallInProgress
ResponseMcpCallCompleted
ResponseMcpCallFailed
McpListToolsInProgress
McpListToolsCompleted
McpListToolsFailed
RateLimitsUpdated
Error
Implementations§
Source§impl RealtimeServerEvent
impl RealtimeServerEvent
pub const SESSION_CREATED: &'static str = "session.created"
pub const SESSION_UPDATED: &'static str = "session.updated"
pub const CONVERSATION_CREATED: &'static str = "conversation.created"
pub const CONVERSATION_ITEM_CREATED: &'static str = "conversation.item.created"
pub const CONVERSATION_ITEM_ADDED: &'static str = "conversation.item.added"
pub const CONVERSATION_ITEM_DONE: &'static str = "conversation.item.done"
pub const CONVERSATION_ITEM_DELETED: &'static str = "conversation.item.deleted"
pub const CONVERSATION_ITEM_RETRIEVED: &'static str = "conversation.item.retrieved"
pub const CONVERSATION_ITEM_TRUNCATED: &'static str = "conversation.item.truncated"
pub const CONVERSATION_ITEM_INPUT_AUDIO_TRANSCRIPTION_COMPLETED: &'static str = "conversation.item.input_audio_transcription.completed"
pub const CONVERSATION_ITEM_INPUT_AUDIO_TRANSCRIPTION_DELTA: &'static str = "conversation.item.input_audio_transcription.delta"
pub const CONVERSATION_ITEM_INPUT_AUDIO_TRANSCRIPTION_FAILED: &'static str = "conversation.item.input_audio_transcription.failed"
pub const CONVERSATION_ITEM_INPUT_AUDIO_TRANSCRIPTION_SEGMENT: &'static str = "conversation.item.input_audio_transcription.segment"
pub const INPUT_AUDIO_BUFFER_CLEARED: &'static str = "input_audio_buffer.cleared"
pub const INPUT_AUDIO_BUFFER_COMMITTED: &'static str = "input_audio_buffer.committed"
pub const INPUT_AUDIO_BUFFER_SPEECH_STARTED: &'static str = "input_audio_buffer.speech_started"
pub const INPUT_AUDIO_BUFFER_SPEECH_STOPPED: &'static str = "input_audio_buffer.speech_stopped"
pub const INPUT_AUDIO_BUFFER_TIMEOUT_TRIGGERED: &'static str = "input_audio_buffer.timeout_triggered"
pub const INPUT_AUDIO_BUFFER_DTMF_EVENT_RECEIVED: &'static str = "input_audio_buffer.dtmf_event_received"
pub const OUTPUT_AUDIO_BUFFER_STARTED: &'static str = "output_audio_buffer.started"
pub const OUTPUT_AUDIO_BUFFER_STOPPED: &'static str = "output_audio_buffer.stopped"
pub const OUTPUT_AUDIO_BUFFER_CLEARED: &'static str = "output_audio_buffer.cleared"
pub const RESPONSE_CREATED: &'static str = "response.created"
pub const RESPONSE_DONE: &'static str = "response.done"
pub const RESPONSE_OUTPUT_ITEM_ADDED: &'static str = "response.output_item.added"
pub const RESPONSE_OUTPUT_ITEM_DONE: &'static str = "response.output_item.done"
pub const RESPONSE_CONTENT_PART_ADDED: &'static str = "response.content_part.added"
pub const RESPONSE_CONTENT_PART_DONE: &'static str = "response.content_part.done"
pub const RESPONSE_OUTPUT_TEXT_DELTA: &'static str = "response.output_text.delta"
pub const RESPONSE_OUTPUT_TEXT_DONE: &'static str = "response.output_text.done"
pub const RESPONSE_OUTPUT_AUDIO_DELTA: &'static str = "response.output_audio.delta"
pub const RESPONSE_OUTPUT_AUDIO_DONE: &'static str = "response.output_audio.done"
pub const RESPONSE_OUTPUT_AUDIO_TRANSCRIPT_DELTA: &'static str = "response.output_audio_transcript.delta"
pub const RESPONSE_OUTPUT_AUDIO_TRANSCRIPT_DONE: &'static str = "response.output_audio_transcript.done"
pub const RESPONSE_FUNCTION_CALL_ARGUMENTS_DELTA: &'static str = "response.function_call_arguments.delta"
pub const RESPONSE_FUNCTION_CALL_ARGUMENTS_DONE: &'static str = "response.function_call_arguments.done"
pub const RESPONSE_MCP_CALL_ARGUMENTS_DELTA: &'static str = "response.mcp_call_arguments.delta"
pub const RESPONSE_MCP_CALL_ARGUMENTS_DONE: &'static str = "response.mcp_call_arguments.done"
pub const RESPONSE_MCP_CALL_IN_PROGRESS: &'static str = "response.mcp_call.in_progress"
pub const RESPONSE_MCP_CALL_COMPLETED: &'static str = "response.mcp_call.completed"
pub const RESPONSE_MCP_CALL_FAILED: &'static str = "response.mcp_call.failed"
pub const MCP_LIST_TOOLS_IN_PROGRESS: &'static str = "mcp_list_tools.in_progress"
pub const MCP_LIST_TOOLS_COMPLETED: &'static str = "mcp_list_tools.completed"
pub const MCP_LIST_TOOLS_FAILED: &'static str = "mcp_list_tools.failed"
pub const RATE_LIMITS_UPDATED: &'static str = "rate_limits.updated"
pub const ERROR: &'static str = "error"
pub const fn as_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for RealtimeServerEvent
impl Clone for RealtimeServerEvent
Source§fn clone(&self) -> RealtimeServerEvent
fn clone(&self) -> RealtimeServerEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 RealtimeServerEvent
impl Debug for RealtimeServerEvent
Source§impl Display for RealtimeServerEvent
impl Display for RealtimeServerEvent
Source§impl Hash for RealtimeServerEvent
impl Hash for RealtimeServerEvent
Source§impl PartialEq for RealtimeServerEvent
impl PartialEq for RealtimeServerEvent
impl Copy for RealtimeServerEvent
impl Eq 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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.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> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP