Structs§
- Composite
Callback - Cost
Tracking Callback - Callback handler that tracks token usage and estimated cost across model calls.
- Metrics
Callback - Callback that collects latency, token, and error metrics.
- Metrics
Snapshot - Snapshot of collected metrics.
- Model
Pricing - Per-model cost rates (USD per 1M tokens).
- Model
Usage - Per-model usage breakdown.
- Recording
Callback - A callback handler that records all received events for later inspection, useful for testing.
- StdOut
Callback Handler - A callback handler that prints events to stdout.
- Tool
Metrics - Metrics for a specific tool.
- Tracing
Callback - Usage
Snapshot - Accumulated usage stats for cost tracking.
Functions§
- default_
pricing - Build a default pricing table for common models (approximate, Feb 2026).