Expand description
agents logs token-usage — per-AIH token-usage snapshot subtree.
Leaves:
get— read the current storedtotal_tokens(no waiting).subscribe— wait for the storedtotal_tokensto change (or the instance lock to drop).
Modules§
- get
agents logs token-usage get— read an agent’s current storedtotal_tokenssnapshot (no waiting).total_tokensis null when no agent-completion usage has been recorded for the AIH yet.- subscribe
agents logs token-usage subscribe— wait for an agent’s storedtotal_tokenssnapshot to change, OR for its instance lock to drop. One-shot: yields exactly one result — a token-usage value (Item) or the literal string"agents_inactive"— then ends.