Skip to main content

systemprompt_cli/commands/admin/evals/
mod.rs

1//! `admin evals` case-capture commands.
2//!
3//! Paid execution is available only through supervised experiments so every
4//! dispatch is reservation-backed and generation-pinned.
5//!
6//! Copyright (c) systemprompt.io — Business Source License 1.1.
7//! See <https://systemprompt.io> for licensing details.
8
9pub mod promote;
10mod shared;
11
12use anyhow::Result;
13use clap::Subcommand;
14
15use crate::context::CommandContext;
16use crate::shared::render_result;
17
18#[derive(Debug, Subcommand)]
19pub enum EvalsCommands {
20    #[command(about = "Promote an AI request into the golden case set")]
21    Promote(promote::PromoteArgs),
22}
23
24pub async fn execute(cmd: EvalsCommands, ctx: &CommandContext) -> Result<()> {
25    let result = match cmd {
26        EvalsCommands::Promote(args) => promote::execute(args, ctx).await?,
27    };
28    render_result(&result, &ctx.cli);
29    Ok(())
30}