pub struct InputMessage {
pub type_: Option<InputMessageType>,
pub role: InputMessageRole,
pub status: Option<InputMessageStatus>,
pub content: InputMessageContentList,
}
Expand description
A message input to the model with a role indicating instruction following
hierarchy. Instructions given with the developer
or system
role take
precedence over instructions given with the user
role.
Fields§
§type_: Option<InputMessageType>
The type of the message input. Always set to message
.
role: InputMessageRole
The role of the message input. One of user
, system
, or developer
.
status: Option<InputMessageStatus>
The status of item. One of in_progress
, completed
, or
incomplete
. Populated when items are returned via API.
content: InputMessageContentList
Implementations§
Source§impl InputMessage
impl InputMessage
Trait Implementations§
Source§impl Clone for InputMessage
impl Clone for InputMessage
Source§fn clone(&self) -> InputMessage
fn clone(&self) -> InputMessage
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 moreSource§impl Debug for InputMessage
impl Debug for InputMessage
Source§impl<'de> Deserialize<'de> for InputMessage
impl<'de> Deserialize<'de> for InputMessage
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputMessage
impl PartialEq for InputMessage
Source§impl Serialize for InputMessage
impl Serialize for InputMessage
impl StructuralPartialEq for InputMessage
Auto Trait Implementations§
impl Freeze for InputMessage
impl RefUnwindSafe for InputMessage
impl Send for InputMessage
impl Sync for InputMessage
impl Unpin for InputMessage
impl UnwindSafe for InputMessage
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