pub struct CreateThreadRequestBuilder { /* private fields */ }
Expand description
Builder for CreateThreadRequest
.
Implementations§
Source§impl CreateThreadRequestBuilder
impl CreateThreadRequestBuilder
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 CreateThreadRequestBuilder
impl Clone for CreateThreadRequestBuilder
Source§fn clone(&self) -> CreateThreadRequestBuilder
fn clone(&self) -> CreateThreadRequestBuilder
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 CreateThreadRequestBuilder
impl Debug for CreateThreadRequestBuilder
Auto Trait Implementations§
impl Freeze for CreateThreadRequestBuilder
impl RefUnwindSafe for CreateThreadRequestBuilder
impl Send for CreateThreadRequestBuilder
impl Sync for CreateThreadRequestBuilder
impl Unpin for CreateThreadRequestBuilder
impl UnwindSafe for CreateThreadRequestBuilder
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