pub struct AssistantCreateRequest {
pub model: String,
pub name: Option<String>,
pub description: Option<String>,
pub instructions: Option<String>,
pub tools: Option<Vec<BetaTool>>,
pub metadata: Option<HashMap<String, String>>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
}Expand description
Request body for creating an assistant.
Fields§
§model: String§name: Option<String>§description: Option<String>§instructions: Option<String>§tools: Option<Vec<BetaTool>>§metadata: Option<HashMap<String, String>>§temperature: Option<f64>§top_p: Option<f64>Implementations§
Trait Implementations§
Source§impl Clone for AssistantCreateRequest
impl Clone for AssistantCreateRequest
Source§fn clone(&self) -> AssistantCreateRequest
fn clone(&self) -> AssistantCreateRequest
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 AssistantCreateRequest
impl Debug for AssistantCreateRequest
Auto Trait Implementations§
impl Freeze for AssistantCreateRequest
impl RefUnwindSafe for AssistantCreateRequest
impl Send for AssistantCreateRequest
impl Sync for AssistantCreateRequest
impl Unpin for AssistantCreateRequest
impl UnsafeUnpin for AssistantCreateRequest
impl UnwindSafe for AssistantCreateRequest
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