Ask a question to get started
Enter to send•Shift+Enter new line
Stats accumulated over a single agent turn (or full session).
SessionStats( self, request_count: int = 0, input_tokens: int = 0, output_tokens: int = 0, wall_time_seconds: float = 0.0, per_model: dict[str, ModelStats] = dict() )
Accumulate token counts for one completed LLM request.
Updates both the session totals and the per-model breakdown.
Merge another SessionStats into this one (mutates self).
SessionStats
Used to accumulate per-turn stats into a session-level total.