agentix.pricing¶
pricing ¶
USD cost estimation from token usage.
Provider adapters that know their model's pricing set ModelResponse.cost_usd;
the loop sums it into AgentOutcome.cost_usd. This module holds a small price
table for current Claude models and a helper to compute cost. Prices are USD per
1M tokens as (input, output) and may drift — override via register_price.