pub struct InputMessageArgs { /* private fields */ }Expand description
Builder for InputMessage.
Implementations§
Source§impl InputMessageArgs
impl InputMessageArgs
Sourcepub fn content<VALUE: Into<Vec<InputContent>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn content<VALUE: Into<Vec<InputContent>>>( &mut self, value: VALUE, ) -> &mut Self
A list of one or many input items to the model, containing different content types.
Sourcepub fn role<VALUE: Into<InputRole>>(&mut self, value: VALUE) -> &mut Self
pub fn role<VALUE: Into<InputRole>>(&mut self, value: VALUE) -> &mut Self
The role of the message input. One of user, system, or developer.
Note: assistant is NOT allowed here; use OutputMessage instead.
Sourcepub fn status<VALUE: Into<OutputStatus>>(&mut self, value: VALUE) -> &mut Self
pub fn status<VALUE: Into<OutputStatus>>(&mut self, value: VALUE) -> &mut Self
The status of the item. One of in_progress, completed, or incomplete.
Populated when items are returned via API.
Sourcepub fn build(&self) -> Result<InputMessage, OpenAIError>
pub fn build(&self) -> Result<InputMessage, OpenAIError>
Trait Implementations§
Source§impl Clone for InputMessageArgs
impl Clone for InputMessageArgs
Source§fn clone(&self) -> InputMessageArgs
fn clone(&self) -> InputMessageArgs
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 InputMessageArgs
impl RefUnwindSafe for InputMessageArgs
impl Send for InputMessageArgs
impl Sync for InputMessageArgs
impl Unpin for InputMessageArgs
impl UnwindSafe for InputMessageArgs
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