pub struct CreateConversationRequestArgs { /* private fields */ }Expand description
Builder for CreateConversationRequest.
Implementations§
Source§impl CreateConversationRequestArgs
impl CreateConversationRequestArgs
Sourcepub fn metadata<VALUE: Into<Metadata>>(&mut self, value: VALUE) -> &mut Self
pub fn metadata<VALUE: Into<Metadata>>(&mut self, value: VALUE) -> &mut Self
Set of 16 key-value pairs that can be attached to an object.
Sourcepub fn items<VALUE: Into<Vec<InputItem>>>(&mut self, value: VALUE) -> &mut Self
pub fn items<VALUE: Into<Vec<InputItem>>>(&mut self, value: VALUE) -> &mut Self
Initial items to include in the conversation context. You may add up to 20 items at a time.
Sourcepub fn build(&self) -> Result<CreateConversationRequest, OpenAIError>
pub fn build(&self) -> Result<CreateConversationRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateConversationRequestArgs
impl Clone for CreateConversationRequestArgs
Source§fn clone(&self) -> CreateConversationRequestArgs
fn clone(&self) -> CreateConversationRequestArgs
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CreateConversationRequestArgs
impl RefUnwindSafe for CreateConversationRequestArgs
impl Send for CreateConversationRequestArgs
impl Sync for CreateConversationRequestArgs
impl Unpin for CreateConversationRequestArgs
impl UnwindSafe for CreateConversationRequestArgs
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