pub struct CreateThreadRequestArgs { /* private fields */ }
Expand description
Builder for CreateThreadRequest
.
Implementations§
Source§impl CreateThreadRequestArgs
impl CreateThreadRequestArgs
Sourcepub fn messages<VALUE: Into<Vec<CreateMessageRequest>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn messages<VALUE: Into<Vec<CreateMessageRequest>>>( &mut self, value: VALUE, ) -> &mut Self
A list of messages to start the thread with.
Sourcepub fn tool_resources<VALUE: Into<CreateAssistantToolResources>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn tool_resources<VALUE: Into<CreateAssistantToolResources>>( &mut self, value: VALUE, ) -> &mut Self
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.
pub fn metadata<VALUE: Into<HashMap<String, Value>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<CreateThreadRequest, OpenAIError>
pub fn build(&self) -> Result<CreateThreadRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateThreadRequestArgs
impl Clone for CreateThreadRequestArgs
Source§fn clone(&self) -> CreateThreadRequestArgs
fn clone(&self) -> CreateThreadRequestArgs
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 CreateThreadRequestArgs
impl Debug for CreateThreadRequestArgs
Auto Trait Implementations§
impl Freeze for CreateThreadRequestArgs
impl RefUnwindSafe for CreateThreadRequestArgs
impl Send for CreateThreadRequestArgs
impl Sync for CreateThreadRequestArgs
impl Unpin for CreateThreadRequestArgs
impl UnwindSafe for CreateThreadRequestArgs
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