MCPcopy Index your code
hub / github.com/lsdefine/GenericAgent / get

Function get

frontends/cost_tracker.py:107–111  ·  view source on GitHub ↗
(thread_name: str)

Source from the content-addressed store, hash-verified

105
106
107def get(thread_name: str) -> TokenStats:
108 with _lock:
109 if thread_name not in _trackers:
110 _trackers[thread_name] = TokenStats()
111 return _trackers[thread_name]
112
113
114def reset(thread_name: str) -> None:

Callers 2

record_patchedFunction · 0.85
print_patchedFunction · 0.85

Calls 1

TokenStatsClass · 0.85

Tested by

no test coverage detected