pub struct EvalItem {
pub role: EvalItemRole,
pub content: EvalItemContent,
pub type: Option<EvalItemType>,
}
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. Messages with the
assistant
role are presumed to have been generated by the model in previous
interactions.
Fields§
§role: EvalItemRole
The role of the message input. One of user
, assistant
, system
, or
developer
.
content: EvalItemContent
Text inputs to the model - can contain template strings.
type: Option<EvalItemType>
The type of the message input. Always message
.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EvalItem
impl<'de> Deserialize<'de> for EvalItem
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
impl StructuralPartialEq for EvalItem
Auto Trait Implementations§
impl Freeze for EvalItem
impl RefUnwindSafe for EvalItem
impl Send for EvalItem
impl Sync for EvalItem
impl Unpin for EvalItem
impl UnwindSafe for EvalItem
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