pub struct RealtimeConversationItem {
pub id: Option<String>,
pub type: String,
pub object: Option<String>,
pub status: Option<String>,
pub role: Option<String>,
pub content: Option<Vec<RealtimeConversationItemContent>>,
pub call_id: Option<String>,
pub name: Option<String>,
pub arguments: Option<String>,
pub output: Option<String>,
}Expand description
Represents an item within the Realtime conversation context (message, function call, etc.). Used when creating/retrieving items via client/server events.
§Used By
RealtimeClientEventConversationItemCreateRealtimeServerEventConversationItemCreatedRealtimeServerEventConversationItemRetrievedRealtimeServerEventResponseOutputItemAddedRealtimeServerEventResponseOutputItemDone
Fields§
§id: Option<String>The unique ID of the item. Optional when creating, generated by server if omitted.
type: StringThe type of the item (message, function_call, function_call_output).
object: Option<String>Identifier for the API object type, always realtime.item.
status: Option<String>The status of the item (completed, incomplete). Used for consistency with server events.
role: Option<String>The role of the message sender (user, assistant, system), only for message items.
content: Option<Vec<RealtimeConversationItemContent>>The content of the message (text, audio), only for message items.
call_id: Option<String>The ID of the function call, for function_call and function_call_output items.
name: Option<String>The name of the function being called, for function_call items.
arguments: Option<String>The arguments of the function call (JSON string), for function_call items.
output: Option<String>The output of the function call (JSON string), for function_call_output items.
Implementations§
Source§impl RealtimeConversationItem
impl RealtimeConversationItem
Sourcepub fn former() -> RealtimeConversationItemFormer<RealtimeConversationItemFormerDefinition<(), RealtimeConversationItem, ReturnPreformed>>
pub fn former() -> RealtimeConversationItemFormer<RealtimeConversationItemFormerDefinition<(), RealtimeConversationItem, ReturnPreformed>>
Provides a mechanism to initiate the formation process with a default completion behavior.
Trait Implementations§
Source§impl Clone for RealtimeConversationItem
impl Clone for RealtimeConversationItem
Source§fn clone(&self) -> RealtimeConversationItem
fn clone(&self) -> RealtimeConversationItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RealtimeConversationItem
impl Debug for RealtimeConversationItem
Source§impl<'de> Deserialize<'de> for RealtimeConversationItem
impl<'de> Deserialize<'de> for RealtimeConversationItem
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<__Context, __Formed, __End> EntityToDefinition<__Context, __Formed, __End> for RealtimeConversationItemwhere
__End: FormingEnd<RealtimeConversationItemFormerDefinitionTypes<__Context, __Formed>>,
impl<__Context, __Formed, __End> EntityToDefinition<__Context, __Formed, __End> for RealtimeConversationItemwhere
__End: FormingEnd<RealtimeConversationItemFormerDefinitionTypes<__Context, __Formed>>,
Source§type Definition = RealtimeConversationItemFormerDefinition<__Context, __Formed, __End>
type Definition = RealtimeConversationItemFormerDefinition<__Context, __Formed, __End>
FormerDefinition associated with this entity. Read moreSource§type Types = RealtimeConversationItemFormerDefinitionTypes<__Context, __Formed>
type Types = RealtimeConversationItemFormerDefinitionTypes<__Context, __Formed>
FormerDefinitionTypes associated with this entity. Read moreSource§impl<__Context, __Formed> EntityToDefinitionTypes<__Context, __Formed> for RealtimeConversationItem
impl<__Context, __Formed> EntityToDefinitionTypes<__Context, __Formed> for RealtimeConversationItem
Source§impl<Definition> EntityToFormer<Definition> for RealtimeConversationItemwhere
Definition: FormerDefinition<Storage = RealtimeConversationItemFormerStorage>,
impl<Definition> EntityToFormer<Definition> for RealtimeConversationItemwhere
Definition: FormerDefinition<Storage = RealtimeConversationItemFormerStorage>,
Source§impl PartialEq for RealtimeConversationItem
impl PartialEq for RealtimeConversationItem
Source§impl Serialize for RealtimeConversationItem
impl Serialize for RealtimeConversationItem
impl StructuralPartialEq for RealtimeConversationItem
Auto Trait Implementations§
impl Freeze for RealtimeConversationItem
impl RefUnwindSafe for RealtimeConversationItem
impl Send for RealtimeConversationItem
impl Sync for RealtimeConversationItem
impl Unpin for RealtimeConversationItem
impl UnwindSafe for RealtimeConversationItem
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.