systemprompt-cli 0.52.0

Unified CLI for systemprompt.io AI governance: agent orchestration, MCP governance, analytics, profiles, cloud deploy, and self-hosted operations.
Documentation
//! `admin evals` case-capture commands.
//!
//! Paid execution is available only through supervised experiments so every
//! dispatch is reservation-backed and generation-pinned.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

pub mod promote;
mod shared;

use anyhow::Result;
use clap::Subcommand;

use crate::context::CommandContext;
use crate::shared::render_result;

#[derive(Debug, Subcommand)]
pub enum EvalsCommands {
    #[command(about = "Promote an AI request into the golden case set")]
    Promote(promote::PromoteArgs),
}

pub async fn execute(cmd: EvalsCommands, ctx: &CommandContext) -> Result<()> {
    let result = match cmd {
        EvalsCommands::Promote(args) => promote::execute(args, ctx).await?,
    };
    render_result(&result, &ctx.cli);
    Ok(())
}