rho-coding-agent 3.0.0

A fast Rust agent harness with a small footprint and opinionated defaults
#[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>,
    /// Skills loaded before the first model request, in order, as one batch
    /// of host-requested `skill` calls.
    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
    }
}