pub enum CreateEvalItem {
Message(EvalItem),
Simple(SimpleInputMessage),
}Expand description
A chat message that makes up the prompt or context.
Variants§
Message(EvalItem)
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.
Simple(SimpleInputMessage)
SimpleInputMessage
Trait Implementations§
Source§impl Clone for CreateEvalItem
impl Clone for CreateEvalItem
Source§fn clone(&self) -> CreateEvalItem
fn clone(&self) -> CreateEvalItem
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 CreateEvalItem
impl Debug for CreateEvalItem
Source§impl<'de> Deserialize<'de> for CreateEvalItem
impl<'de> Deserialize<'de> for CreateEvalItem
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 CreateEvalItem
impl PartialEq for CreateEvalItem
Source§impl Serialize for CreateEvalItem
impl Serialize for CreateEvalItem
impl StructuralPartialEq for CreateEvalItem
Auto Trait Implementations§
impl Freeze for CreateEvalItem
impl RefUnwindSafe for CreateEvalItem
impl Send for CreateEvalItem
impl Sync for CreateEvalItem
impl Unpin for CreateEvalItem
impl UnwindSafe for CreateEvalItem
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