pub struct ModifyAssistantRequest {
pub model: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub instructions: Option<String>,
pub tools: Option<Vec<AssistantTool>>,
pub file_ids: Option<Vec<String>>,
pub metadata: Option<HashMap<String, String>>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub response_format: Option<ResponseFormat>,
}Expand description
Modifies an existing assistant.
Fields§
§model: Option<String>ID of the model to use.
name: Option<String>The name of the assistant.
description: Option<String>The description of the assistant.
instructions: Option<String>The system instructions that the assistant uses.
tools: Option<Vec<AssistantTool>>A list of tool enabled on the assistant.
file_ids: Option<Vec<String>>A list of file IDs attached to this assistant.
metadata: Option<HashMap<String, String>>Set of key-value pairs that can be attached to an object.
temperature: Option<f32>What sampling temperature to use, between 0 and 2.
top_p: Option<f32>An alternative to sampling with temperature.
response_format: Option<ResponseFormat>Specifies the format that the model must output.
Trait Implementations§
Source§impl Clone for ModifyAssistantRequest
impl Clone for ModifyAssistantRequest
Source§fn clone(&self) -> ModifyAssistantRequest
fn clone(&self) -> ModifyAssistantRequest
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 ModifyAssistantRequest
impl Debug for ModifyAssistantRequest
Source§impl Default for ModifyAssistantRequest
impl Default for ModifyAssistantRequest
Source§fn default() -> ModifyAssistantRequest
fn default() -> ModifyAssistantRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModifyAssistantRequest
impl<'de> Deserialize<'de> for ModifyAssistantRequest
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
Auto Trait Implementations§
impl Freeze for ModifyAssistantRequest
impl RefUnwindSafe for ModifyAssistantRequest
impl Send for ModifyAssistantRequest
impl Sync for ModifyAssistantRequest
impl Unpin for ModifyAssistantRequest
impl UnwindSafe for ModifyAssistantRequest
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