Structs§
- Session
Economics - Tracks token usage and tool calls for a session.
- Tool
Cost - Token cost of a single tool result within a turn.
- Tool
Record - A record of a tool call.
- Turn
Budget - Per-turn breakdown of context consumed. Populated at turn end and surfaced in the SPECULAR panel.
Constants§
- INPUT_
PRICE_ PER_ 1K - Input token price: $0.002 per 1K tokens.
- OUTPUT_
PRICE_ PER_ 1K - Output token price: $0.006 per 1K tokens.