pub struct CreateAssistantRequest {
pub model: CreateAssistantRequest_Model,
pub name: Option<String>,
pub description: Option<String>,
pub instructions: Option<String>,
pub reasoning_effort: Option<ReasoningEffort>,
pub tools: Option<Vec<CreateAssistantRequest_Tools>>,
pub tool_resources: Option<CreateAssistantRequest_ToolResources>,
pub metadata: Option<Metadata>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub response_format: Option<AssistantsApiResponseFormatOption>,
}
Fields§
§model: CreateAssistantRequest_Model
§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.
reasoning_effort: Option<ReasoningEffort>
§tools: Option<Vec<CreateAssistantRequest_Tools>>
A list of tool enabled on the assistant.
tool_resources: Option<CreateAssistantRequest_ToolResources>
§metadata: Option<Metadata>
§temperature: Option<f64>
What sampling temperature to use, between 0 and 2.
top_p: Option<f64>
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
response_format: Option<AssistantsApiResponseFormatOption>
Trait Implementations§
Source§impl Clone for CreateAssistantRequest
impl Clone for CreateAssistantRequest
Source§fn clone(&self) -> CreateAssistantRequest
fn clone(&self) -> CreateAssistantRequest
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 moreAuto Trait Implementations§
impl Freeze for CreateAssistantRequest
impl RefUnwindSafe for CreateAssistantRequest
impl Send for CreateAssistantRequest
impl Sync for CreateAssistantRequest
impl Unpin for CreateAssistantRequest
impl UnwindSafe for CreateAssistantRequest
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