Return the per-model usage map. Callers may read but should not mutate; use ``add_to_total_cost_state`` to record.
()
| 593 | |
| 594 | |
| 595 | def get_model_usage() -> dict[str, ModelUsage]: |
| 596 | """Return the per-model usage map. Callers may read but should not |
| 597 | mutate; use ``add_to_total_cost_state`` to record.""" |
| 598 | return _STATE.model_usage |
| 599 | |
| 600 | |
| 601 | def get_usage_for_model(model: str) -> ModelUsage | None: |
no outgoing calls