Structs§
- Error
Event - Message
Event - Result
Event - Session
Start Event - Text
Delta Event - Tool
EndEvent - Tool
Start Event - Usage
Data - Token usage and cost data.
- Usage
Delta Event - Incremental usage report emitted during streaming.
Enums§
Functions§
- extract_
tool_ calls - Extract paired ToolStart/ToolEnd events by call_id.
- now_ms
- Returns the current epoch time in milliseconds.
- sum_
costs - Sum all cost_usd values from UsageDelta and Result events.
- total_
tokens - Sum all input and output tokens from UsageDelta events.