#[derive(Clone, Debug, PartialEq)]
pub(super) struct TurnPrompt {
pub(super) model: String,
pub(super) display: String,
pub(super) history: String,
pub(super) persisted_display: Option<String>,
pub(super) skills: Vec<String>,
}
impl TurnPrompt {
pub(super) fn standard(model: String, display: String) -> Self {
Self {
history: model.clone(),
model,
display,
persisted_display: None,
skills: Vec::new(),
}
}
pub(super) fn command(model: String, command: String) -> Self {
Self {
model,
display: command.clone(),
history: command.clone(),
persisted_display: Some(command),
skills: Vec::new(),
}
}
pub(super) fn with_skill(mut self, name: String) -> Self {
self.skills.push(name);
self
}
}