pub struct Assistant {Show 13 fields
pub id: String,
pub object: String,
pub created_at: i64,
pub name: Option<String>,
pub description: Option<String>,
pub model: String,
pub instructions: Option<String>,
pub tools: Vec<AssistantTool>,
pub file_ids: Vec<String>,
pub metadata: HashMap<String, String>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub response_format: Option<ResponseFormat>,
}Expand description
An assistant object.
Fields§
§id: StringThe identifier of the assistant.
object: StringThe object type, which is always “assistant”.
created_at: i64The Unix timestamp (in seconds) for when the assistant was created.
name: Option<String>The name of the assistant.
description: Option<String>The description of the assistant.
model: StringID of the model to use.
instructions: Option<String>The system instructions that the assistant uses.
tools: Vec<AssistantTool>A list of tool enabled on the assistant.
file_ids: Vec<String>A list of file IDs attached to this assistant.
metadata: HashMap<String, String>Set of key-value pairs that can be attached to an object.
temperature: Option<f32>What sampling temperature to use, between 0 and 2.
top_p: Option<f32>An alternative to sampling with temperature.
response_format: Option<ResponseFormat>Specifies the format that the model must output.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Assistant
impl<'de> Deserialize<'de> for Assistant
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 Assistant
impl RefUnwindSafe for Assistant
impl Send for Assistant
impl Sync for Assistant
impl Unpin for Assistant
impl UnwindSafe for Assistant
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