Return a summary of token usage.
(self)
| 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 | } |
no outgoing calls
no test coverage detected