ContextLedger
Defined in the models module.Tracks token usage across context segments. Provides per-segment token counts and total usage.
Properties
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
Methods
total()
Total tokens across all segments.
get_segment()
Get token count for a segment.
set_segment()
Set token count for a segment.
add_segment()
Add tokens to a segment.
Internal & Generic Methods
Internal & Generic Methods
- to_dict: Convert to dictionary.
- copy: Create a copy of this ledger.

