pub struct AssistantObject {
pub id: String,
pub object: String,
pub created_at: i64,
pub name: Option<String>,
pub description: Option<String>,
pub model: Model,
pub instructions: Option<String>,
pub tools: Vec<HashMap<String, String>>,
pub file_ids: Vec<String>,
pub metadata: HashMap<String, String>,
pub headers: Option<HashMap<String, String>>,
}
Expand description
Represents an assistant object with its properties.
Fields§
§id: String
Unique identifier for the assistant.
object: String
Object type, typically “assistant”.
created_at: i64
Timestamp of when the assistant was created.
name: Option<String>
Optional name of the assistant.
description: Option<String>
Optional description of the assistant.
model: Model
Model used by the assistant.
instructions: Option<String>
Optional instructions for the assistant.
tools: Vec<HashMap<String, String>>
Tools associated with the assistant.
file_ids: Vec<String>
File IDs associated with the assistant.
metadata: HashMap<String, String>
Metadata for the assistant.
headers: Option<HashMap<String, String>>
Optional headers associated with the assistant.
Trait Implementations§
Source§impl Debug for AssistantObject
impl Debug for AssistantObject
Source§impl<'de> Deserialize<'de> for AssistantObject
impl<'de> Deserialize<'de> for AssistantObject
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 AssistantObject
impl RefUnwindSafe for AssistantObject
impl Send for AssistantObject
impl Sync for AssistantObject
impl Unpin for AssistantObject
impl UnwindSafe for AssistantObject
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