pub struct Assistant {
pub id: String,
pub object: String,
pub created_at: i64,
pub model: String,
pub name: Option<String>,
pub description: Option<String>,
pub instructions: Option<String>,
pub tools: Vec<BetaTool>,
pub metadata: Option<HashMap<String, String>>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
}Expand description
An assistant object.
Fields§
§id: String§object: String§created_at: i64§model: String§name: Option<String>§description: Option<String>§instructions: Option<String>§tools: Vec<BetaTool>§metadata: Option<HashMap<String, String>>§temperature: Option<f64>§top_p: Option<f64>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 UnsafeUnpin 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