MCPcopy Create free account
hub / github.com/SqueezeAILab/LLMCompiler / get_stats

Method get_stats

src/callbacks/callbacks.py:35–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self.all_times = []
34
35 def get_stats(self) -> dict[str, int]:
36 return {
37 "calls": self.cnt,
38 "input_tokens": self.input_tokens,
39 "output_tokens": self.output_tokens,
40 "all_times": self.all_times,
41 }
42
43
44class AsyncStatsCallbackHandler(AsyncCallbackHandler):

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected