Skip to main content

parse_api_usage

Function parse_api_usage 

Source
pub fn parse_api_usage(
    raw: &RawTokenUsage,
    model: &str,
    agent_id: &str,
    session_id: Option<i64>,
) -> ParsedUsage
Expand description

Parse raw API usage into a fully resolved ParsedUsage with cost estimate.