Expand description
What a session has spent and asked for over its turns — kept on its
SessionState (in session-state), so it outlives the engine that ran
them. Its token total is also in the session log (agix.spend), so it
outlives the process.
Structs§
- Goal
Spend - The node of the goal whose rounds spend into it.
- Goal
Spend Record - Session
Calls - The model calls and tool calls of a session’s own agent, summed over the turns it ran since it was loaded.
- Session
Ledger - Spend
Record - What a session has spent since it was created, and its goal since it was set, as the session log records them.
- Token
Target - An output token target, kept until it is met, given up on, or cleared — a turn that ends otherwise leaves it running into the next.
Constants§
- SPEND_
EVENT - SPEND_
NS - Log namespace and event under which a
SpendRecordis written.