Skip to main content

Module token_usage

Module token_usage 

Source
Expand description

agents logs token-usage — CLI-side dispatch. Leaf: subscribe (wait for the stored total_tokens snapshot to change or the instance lock to drop).

Modules§

get
agents logs token-usage get — read an agent’s current stored total_tokens snapshot. total_tokens is null when no agent-completion usage has been recorded for the AIH yet.
subscribe
agents logs token-usage subscribe — wait for an agent’s stored total_tokens snapshot to change, OR for its instance lock to drop. One-shot: emits exactly one item then ends.

Functions§

execute