pub struct AssistantUpdateParams {
pub model: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub instructions: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub reasoning_effort: Option<String>,
pub response_format: Option<Value>,
pub tools: Option<Vec<Value>>,
pub tool_resources: Option<Value>,
}Expand description
Request body for POST /assistants/{id} (update). All fields optional.
Fields§
§model: Option<String>§name: Option<String>§description: Option<String>§instructions: Option<String>§metadata: Option<HashMap<String, String>>§temperature: Option<f64>§top_p: Option<f64>§reasoning_effort: Option<String>§response_format: Option<Value>§tools: Option<Vec<Value>>§tool_resources: Option<Value>Implementations§
Source§impl AssistantUpdateParams
impl AssistantUpdateParams
pub fn new() -> Self
pub fn model(self, model: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn instructions(self, instructions: impl Into<String>) -> Self
pub fn metadata(self, metadata: HashMap<String, String>) -> Self
pub fn tools(self, tools: Vec<Value>) -> Self
pub fn tool_resources(self, tool_resources: Value) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn temperature(self, temperature: f64) -> Self
pub fn top_p(self, top_p: f64) -> Self
pub fn reasoning_effort(self, effort: impl Into<String>) -> Self
pub fn response_format(self, response_format: Value) -> Self
Trait Implementations§
Source§impl Clone for AssistantUpdateParams
impl Clone for AssistantUpdateParams
Source§fn clone(&self) -> AssistantUpdateParams
fn clone(&self) -> AssistantUpdateParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AssistantUpdateParams
impl Debug for AssistantUpdateParams
Source§impl Default for AssistantUpdateParams
impl Default for AssistantUpdateParams
Source§fn default() -> AssistantUpdateParams
fn default() -> AssistantUpdateParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AssistantUpdateParams
impl RefUnwindSafe for AssistantUpdateParams
impl Send for AssistantUpdateParams
impl Sync for AssistantUpdateParams
impl Unpin for AssistantUpdateParams
impl UnsafeUnpin for AssistantUpdateParams
impl UnwindSafe for AssistantUpdateParams
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