feat(tui): show router inference metrics beside router lines

This commit is contained in:
2026-06-03 15:41:51 +04:00
parent c2fb17f6ee
commit 80a72d370e
6 changed files with 45 additions and 7 deletions
+8 -1
View File
@@ -50,8 +50,15 @@ const (
// RouterEntry is one line in a session's conversation transcript.
type RouterEntry struct {
Role string // user | router | tool
Role string // user | router | tool | narration | narration_llm
Content string
Metrics *TurnMetrics
}
// TurnMetrics carries optional latency + token cost for a ROUTER chat turn.
type TurnMetrics struct {
LatencyMs int64
TotalTokens int
}
// EventEntry is a row in the event stream.