aa-cli 0.0.1-alpha.9

aasm — command-line tool for Agent Assembly
1
2
3
4
5
6
7
8
9
10
11
//! HTTP client for cost API queries.

use crate::config::ResolvedContext;
use crate::error::CliError;

use super::models::CostResponse;

/// Fetch cost summary from the gateway API.
pub async fn fetch_costs(ctx: &ResolvedContext) -> Result<CostResponse, CliError> {
    crate::client::get_json(ctx, "/api/v1/costs").await
}