(into: TokenUsage, src: TokenUsage)
| 558 | } |
| 559 | |
| 560 | function addUsage(into: TokenUsage, src: TokenUsage): void { |
| 561 | (into as any).inputOther += src.inputOther; |
| 562 | (into as any).output += src.output; |
| 563 | (into as any).inputCacheRead += src.inputCacheRead; |
| 564 | (into as any).inputCacheCreation += src.inputCacheCreation; |
| 565 | } |
| 566 | |
| 567 | // ── Tool-result normalization (mirror of agent-core) ───────────────────────── |
| 568 | // These replicate agent-core's `toolResultOutputForModel` so vis's model-view |