Struct async_openai::types::CreateRunRequestArgs
source · pub struct CreateRunRequestArgs { /* private fields */ }
Expand description
Builder for CreateRunRequest
.
Implementations§
source§impl CreateRunRequestArgs
impl CreateRunRequestArgs
sourcepub fn assistant_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn assistant_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The ID of the assistant to use to execute this run.
sourcepub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
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.
sourcepub fn instructions<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn instructions<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Overrides the instructions of the assistant. This is useful for modifying the behavior on a per-run basis.
sourcepub fn additional_instructions<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn additional_instructions<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
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.
sourcepub fn tools<VALUE: Into<Vec<AssistantTools>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn tools<VALUE: Into<Vec<AssistantTools>>>( &mut self, value: VALUE ) -> &mut Self
Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.
pub fn metadata<VALUE: Into<HashMap<String, Value>>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn build(&self) -> Result<CreateRunRequest, OpenAIError>
pub fn build(&self) -> Result<CreateRunRequest, OpenAIError>
Trait Implementations§
source§impl Clone for CreateRunRequestArgs
impl Clone for CreateRunRequestArgs
source§fn clone(&self) -> CreateRunRequestArgs
fn clone(&self) -> CreateRunRequestArgs
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 CreateRunRequestArgs
impl Debug for CreateRunRequestArgs
Auto Trait Implementations§
impl RefUnwindSafe for CreateRunRequestArgs
impl Send for CreateRunRequestArgs
impl Sync for CreateRunRequestArgs
impl Unpin for CreateRunRequestArgs
impl UnwindSafe for CreateRunRequestArgs
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