Struct async_openai::types::CreateRunRequest
source · pub struct CreateRunRequest {
pub assistant_id: String,
pub model: Option<String>,
pub instructions: Option<String>,
pub additional_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.
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>
Overrides the instructions of the assistant. This is useful for modifying the behavior on a per-run basis.
additional_instructions: Option<String>
Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions.
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 CreateRunRequest
impl Clone for CreateRunRequest
source§fn clone(&self) -> CreateRunRequest
fn clone(&self) -> CreateRunRequest
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 CreateRunRequest
impl Debug for CreateRunRequest
source§impl Default for CreateRunRequest
impl Default for CreateRunRequest
source§fn default() -> CreateRunRequest
fn default() -> CreateRunRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateRunRequest
impl<'de> Deserialize<'de> for CreateRunRequest
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 CreateRunRequest
impl PartialEq for CreateRunRequest
source§fn eq(&self, other: &CreateRunRequest) -> bool
fn eq(&self, other: &CreateRunRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CreateRunRequest
impl Serialize for CreateRunRequest
impl StructuralPartialEq for CreateRunRequest
Auto Trait Implementations§
impl RefUnwindSafe for CreateRunRequest
impl Send for CreateRunRequest
impl Sync for CreateRunRequest
impl Unpin for CreateRunRequest
impl UnwindSafe for CreateRunRequest
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