pub struct CreateThreadAndRunRequestToolResources {
pub code_interpreter: Option<CreateThreadAndRunRequestToolResourcesCodeInterpreter>,
pub file_search: Option<CreateThreadAndRunRequestToolResourcesFileSearch>,
}
Expand description
A set of resources that are used by the assistant’s tools. 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.
Fields§
§code_interpreter: Option<CreateThreadAndRunRequestToolResourcesCodeInterpreter>
§file_search: Option<CreateThreadAndRunRequestToolResourcesFileSearch>
Implementations§
Source§impl CreateThreadAndRunRequestToolResources
impl CreateThreadAndRunRequestToolResources
Sourcepub fn builder() -> CreateThreadAndRunRequestToolResourcesBuilder<((), ())>
pub fn builder() -> CreateThreadAndRunRequestToolResourcesBuilder<((), ())>
Create a builder for building CreateThreadAndRunRequestToolResources
.
On the builder, call .code_interpreter(...)
(optional), .file_search(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateThreadAndRunRequestToolResources
.
Trait Implementations§
Source§impl Clone for CreateThreadAndRunRequestToolResources
impl Clone for CreateThreadAndRunRequestToolResources
Source§fn clone(&self) -> CreateThreadAndRunRequestToolResources
fn clone(&self) -> CreateThreadAndRunRequestToolResources
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 Default for CreateThreadAndRunRequestToolResources
impl Default for CreateThreadAndRunRequestToolResources
Source§fn default() -> CreateThreadAndRunRequestToolResources
fn default() -> CreateThreadAndRunRequestToolResources
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateThreadAndRunRequestToolResources
impl<'de> Deserialize<'de> for CreateThreadAndRunRequestToolResources
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 CreateThreadAndRunRequestToolResources
impl PartialEq for CreateThreadAndRunRequestToolResources
Source§fn eq(&self, other: &CreateThreadAndRunRequestToolResources) -> bool
fn eq(&self, other: &CreateThreadAndRunRequestToolResources) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateThreadAndRunRequestToolResources
Auto Trait Implementations§
impl Freeze for CreateThreadAndRunRequestToolResources
impl RefUnwindSafe for CreateThreadAndRunRequestToolResources
impl Send for CreateThreadAndRunRequestToolResources
impl Sync for CreateThreadAndRunRequestToolResources
impl Unpin for CreateThreadAndRunRequestToolResources
impl UnwindSafe for CreateThreadAndRunRequestToolResources
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