compass.utilities.costs.compute_total_cost_and_token_from_totals#

compute_total_cost_and_token_from_totals(totals)[source]#

Compute total cost and token counts together from tracked usage

Returns:

dict – Keys: "cost" (float), "prompt_tokens" (int), "response_tokens" (int).