pub struct Item {
pub id: Option<String>,
pub type: Option<ItemType>,
pub status: Option<ItemStatus>,
pub role: Option<ItemRole>,
pub content: Option<Vec<ItemContent>>,
pub call_id: Option<String>,
pub name: Option<String>,
pub arguments: Option<String>,
pub output: Option<String>,
}
Available on crate feature
realtime
only.Fields§
§id: Option<String>
The unique ID of the item.
type: Option<ItemType>
The type of the item (“message”, “function_call”, “function_call_output”).
status: Option<ItemStatus>
The status of the item (“completed”, “in_progress”, “incomplete”).
role: Option<ItemRole>
The role of the message sender (“user”, “assistant”, “system”).
content: Option<Vec<ItemContent>>
The content of the message.
call_id: Option<String>
The ID of the function call (for “function_call” items).
name: Option<String>
The name of the function being called (for “function_call” items).
arguments: Option<String>
The arguments of the function call (for “function_call” items).
output: Option<String>
The output of the function call (for “function_call_output” items).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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 From<Item> for ConversationItemCreateEvent
impl From<Item> for ConversationItemCreateEvent
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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