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
metadata: Option<Value>Set of 16 key-value pairs that can be attached to an object.
tool_resources: Option<ToolResources>A set of resources that are made available to the assistant’s tools in this
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 (const: unstable) · 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<'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 UnsafeUnpin 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