pub enum RealtimeResponseStatusDetailsReason {
TurnDetected,
ClientCancelled,
MaxOutputTokens,
ContentFilter,
}
Expand description
The reason the Response did not complete. For a cancelled
Response,
one of turn_detected
(the server VAD detected a new start of speech)
or client_cancelled
(the client sent a cancel event). For an
incomplete
Response, one of max_output_tokens
or content_filter
(the server-side safety filter activated and cut off the response).
Variants§
TurnDetected
turn_detected
ClientCancelled
client_cancelled
MaxOutputTokens
max_output_tokens
ContentFilter
content_filter
Trait Implementations§
Source§impl Clone for RealtimeResponseStatusDetailsReason
impl Clone for RealtimeResponseStatusDetailsReason
Source§fn clone(&self) -> RealtimeResponseStatusDetailsReason
fn clone(&self) -> RealtimeResponseStatusDetailsReason
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for RealtimeResponseStatusDetailsReason
impl<'de> Deserialize<'de> for RealtimeResponseStatusDetailsReason
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 RealtimeResponseStatusDetailsReason
impl PartialEq for RealtimeResponseStatusDetailsReason
Source§fn eq(&self, other: &RealtimeResponseStatusDetailsReason) -> bool
fn eq(&self, other: &RealtimeResponseStatusDetailsReason) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for RealtimeResponseStatusDetailsReason
impl StructuralPartialEq for RealtimeResponseStatusDetailsReason
Auto Trait Implementations§
impl Freeze for RealtimeResponseStatusDetailsReason
impl RefUnwindSafe for RealtimeResponseStatusDetailsReason
impl Send for RealtimeResponseStatusDetailsReason
impl Sync for RealtimeResponseStatusDetailsReason
impl Unpin for RealtimeResponseStatusDetailsReason
impl UnwindSafe for RealtimeResponseStatusDetailsReason
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