Struct async_openai::types::ModifyAssistantRequestArgs
source · pub struct ModifyAssistantRequestArgs { /* private fields */ }
Expand description
Builder for ModifyAssistantRequest
.
Implementations§
source§impl ModifyAssistantRequestArgs
impl ModifyAssistantRequestArgs
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn instructions<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn tools<VALUE: Into<Vec<AssistantTools>>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn file_ids<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn file_ids<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
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. If a file was previously attached to the list but does not show up in the list, it will be deleted from the assistant.
pub fn metadata<VALUE: Into<HashMap<String, Value>>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn build(&self) -> Result<ModifyAssistantRequest, OpenAIError>
pub fn build(&self) -> Result<ModifyAssistantRequest, OpenAIError>
Trait Implementations§
source§impl Clone for ModifyAssistantRequestArgs
impl Clone for ModifyAssistantRequestArgs
source§fn clone(&self) -> ModifyAssistantRequestArgs
fn clone(&self) -> ModifyAssistantRequestArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModifyAssistantRequestArgs
impl Debug for ModifyAssistantRequestArgs
Auto Trait Implementations§
impl RefUnwindSafe for ModifyAssistantRequestArgs
impl Send for ModifyAssistantRequestArgs
impl Sync for ModifyAssistantRequestArgs
impl Unpin for ModifyAssistantRequestArgs
impl UnwindSafe for ModifyAssistantRequestArgs
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