One assistant turn: text output, tool calls, and token usage.
| 31 | |
| 32 | @dataclass |
| 33 | class TurnRecord: |
| 34 | """One assistant turn: text output, tool calls, and token usage.""" |
| 35 | |
| 36 | index: int |
| 37 | text: str |
| 38 | tool_calls: list[ToolCall] = field(default_factory=list) |
| 39 | input_tokens: int = 0 |
| 40 | output_tokens: int = 0 |
| 41 | duration_ms: float | None = None |
| 42 | """Wall-clock time from turn start to turn end. ``None`` when the |
| 43 | runner cannot observe per-turn boundaries cleanly.""" |
| 44 | |
| 45 | |
| 46 | @dataclass |
no outgoing calls