MCPcopy
hub / github.com/IBM/AssetOpsBench / TurnRecord

Class TurnRecord

src/agent/models.py:33–43  ·  view source on GitHub ↗

One assistant turn: text output, tool calls, and token usage.

Source from the content-addressed store, hash-verified

31
32@dataclass
33class 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

Callers 7

runMethod · 0.85
_flushFunction · 0.85
runMethod · 0.85
_build_trajectoryFunction · 0.85
build_trajectoryFunction · 0.85

Calls

no outgoing calls

Tested by 1