pub struct AssistantCreateParams {
pub model: 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.
Fields§
§model: 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 AssistantCreateParams
impl AssistantCreateParams
pub fn new(model: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn instructions(self, instructions: impl Into<String>) -> Self
pub fn metadata(self, metadata: HashMap<String, 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
pub fn tools(self, tools: Vec<Value>) -> Self
pub fn tool_resources(self, tool_resources: Value) -> Self
Trait Implementations§
Source§impl Clone for AssistantCreateParams
impl Clone for AssistantCreateParams
Source§fn clone(&self) -> AssistantCreateParams
fn clone(&self) -> AssistantCreateParams
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 AssistantCreateParams
impl Debug for AssistantCreateParams
Source§impl Default for AssistantCreateParams
impl Default for AssistantCreateParams
Source§fn default() -> AssistantCreateParams
fn default() -> AssistantCreateParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AssistantCreateParams
impl RefUnwindSafe for AssistantCreateParams
impl Send for AssistantCreateParams
impl Sync for AssistantCreateParams
impl Unpin for AssistantCreateParams
impl UnsafeUnpin for AssistantCreateParams
impl UnwindSafe for AssistantCreateParams
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