Answer prose round 1: 0 🔴, 7 🟡 (0 misread); make the entry kinds' docstrings match the code, untangle after_mark and checked, and rename three tests to what they check

This commit was merged in pull request #441.
This commit is contained in:
2026-11-09 00:52:37 +01:00
parent 7a5df16882
commit 09159d7158
6 changed files with 13 additions and 14 deletions
-1
View File
@@ -46,7 +46,6 @@ def commit_time(worker: list[Entry], home: str) -> str | None:
def tokens_in(turns: list[AssistantTurn]) -> int:
# Each turn is one content block of a message, and carries the message's usage.
usages = {turn.message_id or turn.uuid: turn.usage for turn in turns}
return sum(usage_count(usage, "input_tokens") + usage_count(usage, "cache_creation_input_tokens") for usage in usages.values())