pub struct AssistantObject {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<Tool>,
pub tool_resources: Option<ToolResources>,
pub metadata: Option<Metadata>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub response_format: Option<AssistantsApiResponseFormatOption>,
}Expand description
Represents an assistant that can call the model and use tools.
§Used By
/assistants(GET - inListAssistantsResponse, POST response)/assistants/{assistant_id}(GET, POST response)MessageObjectRunObjectRunStepObject
Fields§
§id: StringThe identifier, which can be referenced in API endpoints.
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. The maximum length is 256 characters.
description: Option<String>The description of the assistant. The maximum length is 512 characters.
model: StringID of the model to use.
instructions: Option<String>The system instructions that the assistant uses. The maximum length is 256,000 characters.
tools: Vec<Tool>A list of tool enabled on the assistant. Maximum 128 tools.
tool_resources: Option<ToolResources>A set of resources used by the assistant’s tools.
metadata: Option<Metadata>Set of 16 key-value pairs attached to the object.
temperature: Option<f32>Sampling temperature between 0 and 2. Defaults to 1.
top_p: Option<f32>Nucleus sampling probability. Defaults to 1.
response_format: Option<AssistantsApiResponseFormatOption>The response format specified for the assistant.
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§impl Serialize for AssistantObject
impl Serialize for AssistantObject
impl StructuralPartialEq for AssistantObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
Source§type Val = <C as Collection>::Val
type Val = <C as Collection>::Val
Entry in complex collections.
For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.Source§fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
Source§fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.
Source§type Entry = <C as CollectionValToEntry<Val>>::Entry
type Entry = <C as CollectionValToEntry<Val>>::Entry
Entry is defined by the Collection trait.