MCPcopy Index your code
hub / github.com/usestrix/strix / _llm_usage

Function _llm_usage

strix/interface/utils.py:244–249  ·  view source on GitHub ↗
(report_state: Any)

Source from the content-addressed store, hash-verified

242
243
244def _llm_usage(report_state: Any) -> dict[str, Any]:
245 if hasattr(report_state, "get_total_llm_usage"):
246 usage = report_state.get_total_llm_usage()
247 return usage if isinstance(usage, dict) else {}
248 usage = getattr(report_state, "run_record", {}).get("llm_usage")
249 return usage if isinstance(usage, dict) else {}
250
251
252def _int_stat(usage: dict[str, Any], key: str) -> int:

Callers 2

_build_llm_usage_statsFunction · 0.85
build_tui_stats_textFunction · 0.85

Calls 1

get_total_llm_usageMethod · 0.80

Tested by

no test coverage detected