pub struct MessageObject {Show 14 fields
pub id: String,
pub object: String,
pub created_at: i64,
pub thread_id: String,
pub status: String,
pub incomplete_details: Option<MessageObject_IncompleteDetails>,
pub completed_at: Option<i64>,
pub incomplete_at: Option<i64>,
pub role: String,
pub content: Vec<MessageObject_Content>,
pub assistant_id: Option<String>,
pub run_id: Option<String>,
pub attachments: Option<Vec<MessageObject_Attachments>>,
pub metadata: Option<Metadata>,
}
Expand description
Represents a message within a thread.
Fields§
§id: String
The identifier, which can be referenced in API endpoints.
object: String
The object type, which is always thread.message
.
created_at: i64
The Unix timestamp (in seconds) for when the message was created.
thread_id: String
The thread ID that this message belongs to.
status: String
The status of the message, which can be either in_progress
,
incomplete
, or completed
.
incomplete_details: Option<MessageObject_IncompleteDetails>
§completed_at: Option<i64>
The Unix timestamp (in seconds) for when the message was completed.
incomplete_at: Option<i64>
The Unix timestamp (in seconds) for when the message was marked as incomplete.
role: String
The entity that produced the message.
content: Vec<MessageObject_Content>
The content of the message in array of text and/or images.
assistant_id: Option<String>
If applicable, the ID of the assistant that authored this message.
run_id: Option<String>
The ID of the run associated with the creation of this message.
attachments: Option<Vec<MessageObject_Attachments>>
A list of files attached to the message, and the tools they were added to.
metadata: Option<Metadata>
Trait Implementations§
Source§impl Clone for MessageObject
impl Clone for MessageObject
Source§fn clone(&self) -> MessageObject
fn clone(&self) -> MessageObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more