pub struct RealtimeConversationItemContent {
pub type: Option<Type>,
pub text: Option<String>,
pub id: Option<String>,
pub audio: Option<String>,
pub transcript: Option<String>,
}Fields§
§type: Option<Type>The content type (input_text, input_audio, item_reference, text, audio).
text: Option<String>The text content, used for input_text and text content types.
id: Option<String>ID of a previous conversation item to reference (for item_reference
content types in response.create events). These can reference both
client and server created items.
audio: Option<String>Base64-encoded audio bytes, used for input_audio content type.
transcript: Option<String>The transcript of the audio, used for input_audio and audio
content types.
Implementations§
Source§impl RealtimeConversationItemContent
impl RealtimeConversationItemContent
Sourcepub fn builder() -> RealtimeConversationItemContentBuilder<((), (), (), (), ())>
pub fn builder() -> RealtimeConversationItemContentBuilder<((), (), (), (), ())>
Create a builder for building RealtimeConversationItemContent.
On the builder, call .r#type(...)(optional), .text(...)(optional), .id(...)(optional), .audio(...)(optional), .transcript(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of RealtimeConversationItemContent.
Trait Implementations§
Source§impl Clone for RealtimeConversationItemContent
impl Clone for RealtimeConversationItemContent
Source§fn clone(&self) -> RealtimeConversationItemContent
fn clone(&self) -> RealtimeConversationItemContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more