pub struct RunRequest {
pub assistant_id: String,
pub model: Option<String>,
pub instructions: Option<String>,
pub tools: Option<Vec<AssistantTool>>,
pub file_ids: Option<Vec<String>>,
pub metadata: Option<HashMap<String, String>>,
}Expand description
Request to create a new run
Fields§
§assistant_id: StringThe ID of the assistant to use to execute this run
model: Option<String>The model to use for this run
instructions: Option<String>Override the default system message of the assistant
tools: Option<Vec<AssistantTool>>Override the tools the assistant can use for this run
file_ids: Option<Vec<String>>Override the file IDs the assistant can access
metadata: Option<HashMap<String, String>>Set of 16 key-value pairs that can be attached to an object
Implementations§
Source§impl RunRequest
Builder for RunRequest
impl RunRequest
Builder for RunRequest
Sourcepub fn builder() -> RunRequestBuilder
pub fn builder() -> RunRequestBuilder
Create a new builder for RunRequest
Trait Implementations§
Source§impl Clone for RunRequest
impl Clone for RunRequest
Source§fn clone(&self) -> RunRequest
fn clone(&self) -> RunRequest
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 RunRequest
impl Debug for RunRequest
Source§impl<'de> Deserialize<'de> for RunRequest
impl<'de> Deserialize<'de> for RunRequest
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 RunRequest
impl PartialEq for RunRequest
Source§impl Serialize for RunRequest
impl Serialize for RunRequest
impl StructuralPartialEq for RunRequest
Auto Trait Implementations§
impl Freeze for RunRequest
impl RefUnwindSafe for RunRequest
impl Send for RunRequest
impl Sync for RunRequest
impl Unpin for RunRequest
impl UnwindSafe for RunRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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