pub struct CreateThreadAndRunRequest {
pub assistant_id: String,
pub thread: Option<CreateThreadRequest>,
pub model: Option<String>,
pub instructions: Option<String>,
pub tools: Option<Vec<AssistantTools>>,
pub metadata: Option<HashMap<String, Value>>,
}
Fields§
§assistant_id: String
The ID of the assistant to use to execute this run.
thread: Option<CreateThreadRequest>
If no thread is provided, an empty thread will be created.
model: Option<String>
The ID of the Model to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
instructions: Option<String>
Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis.
tools: Option<Vec<AssistantTools>>
Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.
metadata: Option<HashMap<String, Value>>
Trait Implementations§
source§impl Clone for CreateThreadAndRunRequest
impl Clone for CreateThreadAndRunRequest
source§fn clone(&self) -> CreateThreadAndRunRequest
fn clone(&self) -> CreateThreadAndRunRequest
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 CreateThreadAndRunRequest
impl Debug for CreateThreadAndRunRequest
source§impl Default for CreateThreadAndRunRequest
impl Default for CreateThreadAndRunRequest
source§fn default() -> CreateThreadAndRunRequest
fn default() -> CreateThreadAndRunRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateThreadAndRunRequest
impl<'de> Deserialize<'de> for CreateThreadAndRunRequest
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 CreateThreadAndRunRequest
impl PartialEq for CreateThreadAndRunRequest
source§fn eq(&self, other: &CreateThreadAndRunRequest) -> bool
fn eq(&self, other: &CreateThreadAndRunRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateThreadAndRunRequest
Auto Trait Implementations§
impl Freeze for CreateThreadAndRunRequest
impl RefUnwindSafe for CreateThreadAndRunRequest
impl Send for CreateThreadAndRunRequest
impl Sync for CreateThreadAndRunRequest
impl Unpin for CreateThreadAndRunRequest
impl UnwindSafe for CreateThreadAndRunRequest
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