pub struct AssistantMessageItem {
pub id: String,
pub object: String,
pub created_at: i64,
pub thread_id: String,
pub content: Vec<ResponseOutputText>,
}Expand description
Assistant-authored message within a thread.
Fields§
§id: StringIdentifier of the thread item.
object: StringType discriminator that is always chatkit.thread_item.
created_at: i64Unix timestamp (in seconds) for when the item was created.
thread_id: StringIdentifier of the parent thread.
content: Vec<ResponseOutputText>Ordered assistant response segments.
Trait Implementations§
Source§impl Clone for AssistantMessageItem
impl Clone for AssistantMessageItem
Source§fn clone(&self) -> AssistantMessageItem
fn clone(&self) -> AssistantMessageItem
Returns a duplicate of the value. Read more
1.0.0 · 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 AssistantMessageItem
impl Debug for AssistantMessageItem
Source§impl Default for AssistantMessageItem
impl Default for AssistantMessageItem
Source§fn default() -> AssistantMessageItem
fn default() -> AssistantMessageItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantMessageItem
impl<'de> Deserialize<'de> for AssistantMessageItem
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 AssistantMessageItem
impl PartialEq for AssistantMessageItem
Source§impl Serialize for AssistantMessageItem
impl Serialize for AssistantMessageItem
impl StructuralPartialEq for AssistantMessageItem
Auto Trait Implementations§
impl Freeze for AssistantMessageItem
impl RefUnwindSafe for AssistantMessageItem
impl Send for AssistantMessageItem
impl Sync for AssistantMessageItem
impl Unpin for AssistantMessageItem
impl UnwindSafe for AssistantMessageItem
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