pub struct ThreadCreateParams {
pub messages: Option<Vec<Message>>,
pub metadata: Option<Value>,
pub tool_resources: Option<ToolResources>,
}Fields§
§messages: Option<Vec<Message>>A list of messages to start the thread with.
metadata: Option<Value>Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
tool_resources: Option<ToolResources>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.
Trait Implementations§
Source§impl Clone for ThreadCreateParams
impl Clone for ThreadCreateParams
Source§fn clone(&self) -> ThreadCreateParams
fn clone(&self) -> ThreadCreateParams
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 ThreadCreateParams
impl Debug for ThreadCreateParams
Source§impl Default for ThreadCreateParams
impl Default for ThreadCreateParams
Source§fn default() -> ThreadCreateParams
fn default() -> ThreadCreateParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThreadCreateParams
impl<'de> Deserialize<'de> for ThreadCreateParams
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
Auto Trait Implementations§
impl Freeze for ThreadCreateParams
impl RefUnwindSafe for ThreadCreateParams
impl Send for ThreadCreateParams
impl Sync for ThreadCreateParams
impl Unpin for ThreadCreateParams
impl UnwindSafe for ThreadCreateParams
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