pub struct ThreadObject {
pub id: String,
pub object: String,
pub created_at: i32,
pub tool_resources: Option<AssistantToolResources>,
pub metadata: Option<HashMap<String, Value>>,
}
Expand description
Represents a thread that contains messages.
Fields§
§id: String
The identifier, which can be referenced in API endpoints.
object: String
The object type, which is always thread
.
created_at: i32
The Unix timestamp (in seconds) for when the thread was created.
tool_resources: Option<AssistantToolResources>
A set of resources that are made available to the assistant’s tools in this thread. The resources are specific to the type of tool. For example, the code_interpreter
tool requires a list of file IDs, while the file_search
tool requires a list of vector store IDs.
metadata: Option<HashMap<String, Value>>
Trait Implementations§
Source§impl Clone for ThreadObject
impl Clone for ThreadObject
Source§fn clone(&self) -> ThreadObject
fn clone(&self) -> ThreadObject
Returns a copy 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 ThreadObject
impl Debug for ThreadObject
Source§impl<'de> Deserialize<'de> for ThreadObject
impl<'de> Deserialize<'de> for ThreadObject
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 ThreadObject
impl PartialEq for ThreadObject
Source§impl Serialize for ThreadObject
impl Serialize for ThreadObject
impl StructuralPartialEq for ThreadObject
Auto Trait Implementations§
impl Freeze for ThreadObject
impl RefUnwindSafe for ThreadObject
impl Send for ThreadObject
impl Sync for ThreadObject
impl Unpin for ThreadObject
impl UnwindSafe for ThreadObject
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