pub struct AssistantCreateParams {
pub model: String,
pub description: Option<String>,
pub instructions: Option<String>,
pub metadata: Option<Value>,
pub name: Option<String>,
pub reasoning_effort: Option<Value>,
pub response_format: Option<Value>,
pub temperature: Option<f64>,
pub tool_resources: Option<ToolResources>,
pub tools: Option<Vec<Value>>,
pub top_p: Option<f64>,
}Fields§
§model: StringID of the model to use.
description: Option<String>The description of the assistant. The maximum length is 512 characters.
instructions: Option<String>The system instructions that the assistant uses.
metadata: Option<Value>Set of 16 key-value pairs that can be attached to an object.
name: Option<String>The name of the assistant. The maximum length is 256 characters.
reasoning_effort: Option<Value>Constrains effort on reasoning for
response_format: Option<Value>Specifies the format that the model must output.
temperature: Option<f64>What sampling temperature to use, between 0 and 2.
tool_resources: Option<ToolResources>A set of resources that are used by the assistant’s tools.
tools: Option<Vec<Value>>A list of tool enabled on the assistant.
top_p: Option<f64>An alternative to sampling with temperature, called nucleus sampling, where the
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<'de> Deserialize<'de> for AssistantCreateParams
impl<'de> Deserialize<'de> for AssistantCreateParams
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 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