MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / get_model_usage

Function get_model_usage

src/bootstrap/state.py:595–598  ·  view source on GitHub ↗

Return the per-model usage map. Callers may read but should not mutate; use ``add_to_total_cost_state`` to record.

()

Source from the content-addressed store, hash-verified

593
594
595def 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
601def get_usage_for_model(model: str) -> ModelUsage | None:

Calls

no outgoing calls