pub type ScriptCost = CostAggregation;Expand description
Canonical, cross-SDK name for CostAggregation (#1193). TS exposes the
same shape as ScriptCost; Python re-exports both. New Rust code should
prefer this alias so the type name matches the other SDKs. The legacy
CostAggregation name is kept for back-compat — both refer to the same
type.
Aliased Type§
pub struct ScriptCost {
pub total_executions: i64,
pub total_cost_usd: f64,
pub avg_cost_usd: f64,
pub total_input_tokens: i64,
pub total_output_tokens: i64,
pub total_tool_tokens: i64,
pub by_version: Vec<VersionCost>,
}Fields§
§total_executions: i64§total_cost_usd: f64§avg_cost_usd: f64§total_input_tokens: i64§total_output_tokens: i64§total_tool_tokens: i64§by_version: Vec<VersionCost>