MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / get_usage_summary

Method get_usage_summary

src/harness/agentic_loop/session.py:64–71  ·  view source on GitHub ↗

Return a summary of token usage.

(self)

Source from the content-addressed store, hash-verified

62 self.completion_tokens += usage.get("completion_tokens", 0)
63
64 def get_usage_summary(self) -> dict[str, Any]:
65 """Return a summary of token usage."""
66 return {
67 "turns": self.turn_count,
68 "total_tokens": self.total_tokens,
69 "prompt_tokens": self.prompt_tokens,
70 "completion_tokens": self.completion_tokens,
71 }

Callers 2

runMethod · 0.80
run_interactiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected