- JSON request bodies and framework-generated tool JSON use consistent object-key ordering. Array order and authored history strings are preserved. Cache reuse depends on the provider.
TokenUsageTotalsrecords usage and independent coverage for total usage, cache reads, and cache writes. Run results, streams, and checkpoints preserve these measurements.- Token usage includes Anthropic cache reads and writes, and Gemini tool-use prompt tokens.
- MCP results preserve embedded text or binary content and correctly decode resource-link names.
- Responses requests support
prompt_cache_keyandsafety_identifier. StreamEventJSONCodecrejects invalid timestamps. Provider decoders reject malformed token counts.
See the documentation for usage and API details.
Full changelog: v5.5.0...v6.0.0