Struct async_openai_wasm::types::AssistantObject
source · pub struct AssistantObject {
pub id: String,
pub object: String,
pub created_at: i32,
pub name: Option<String>,
pub description: Option<String>,
pub model: String,
pub instructions: Option<String>,
pub tools: Vec<AssistantTools>,
pub file_ids: Vec<String>,
pub metadata: Option<HashMap<String, Value>>,
}
Expand description
Represents an assistant
that can call the model and use tools.
Fields§
§id: String
The identifier, which can be referenced in API endpoints.
object: String
The object type, which is always assistant
.
created_at: i32
The Unix timestamp (in seconds) for when the assistant was created.
name: Option<String>
The name of the assistant. The maximum length is 256 characters.
description: Option<String>
The description of the assistant. The maximum length is 512 characters.
model: String
§instructions: Option<String>
The system instructions that the assistant uses. The maximum length is 32768 characters.
tools: Vec<AssistantTools>
A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant.
Tools can be of types code_interpreter
, retrieval
, or function
.
file_ids: Vec<String>
A list of file IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order.
metadata: Option<HashMap<String, Value>>
Trait Implementations§
source§impl Clone for AssistantObject
impl Clone for AssistantObject
source§fn clone(&self) -> AssistantObject
fn clone(&self) -> AssistantObject
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§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>,
source§impl PartialEq for AssistantObject
impl PartialEq for AssistantObject
source§fn eq(&self, other: &AssistantObject) -> bool
fn eq(&self, other: &AssistantObject) -> bool
self
and other
values to be equal, and is used
by ==
.