use crate::prelude::*;
#[derive(Clone, Debug, Display, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum Role {
System,
User,
Assistant,
}
impl Role {
pub fn is_system(&self) -> bool {
Self::System == *self
}
pub fn is_user(&self) -> bool {
Self::User == *self
}
pub fn is_assistant(&self) -> bool {
Self::Assistant == *self
}
}