pub struct InputAudioBufferCommitEvent {
pub type_: String,
pub event_id: Option<String>,
}Expand description
Send this event to commit the user input audio buffer, which will create a new user message item in the conversation. This event will produce an error if the input audio buffer is empty. When in Server VAD mode, the client does not need to send this event, the server will commit the audio buffer automatically.
Fields§
§type_: StringThe event type, must be input_audio_buffer.commit.
event_id: Option<String>Optional client-generated ID used to identify this event.
Trait Implementations§
Source§impl Clone for InputAudioBufferCommitEvent
impl Clone for InputAudioBufferCommitEvent
Source§fn clone(&self) -> InputAudioBufferCommitEvent
fn clone(&self) -> InputAudioBufferCommitEvent
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 InputAudioBufferCommitEvent
impl Debug for InputAudioBufferCommitEvent
Source§impl<'de> Deserialize<'de> for InputAudioBufferCommitEvent
impl<'de> Deserialize<'de> for InputAudioBufferCommitEvent
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
Auto Trait Implementations§
impl Freeze for InputAudioBufferCommitEvent
impl RefUnwindSafe for InputAudioBufferCommitEvent
impl Send for InputAudioBufferCommitEvent
impl Sync for InputAudioBufferCommitEvent
impl Unpin for InputAudioBufferCommitEvent
impl UnsafeUnpin for InputAudioBufferCommitEvent
impl UnwindSafe for InputAudioBufferCommitEvent
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