Skip to main content

estimate_session_costs

Function estimate_session_costs 

Source
pub fn estimate_session_costs(
    provider: &str,
    model: &str,
    usage: &Usage,
) -> Option<SessionCostEstimate>
Expand description

Resolve pricing for provider/model and estimate session costs from accumulated harness usage. Returns None when the model cannot be resolved or pricing metadata is unavailable.