Structs§
- ApiFailure
Tracker - API failure tracking for exponential backoff
- History
Validation Report - Validation report for conversation history state
- Missing
Output - Record of a missing output in conversation history
- Tool
Call Id - Unique identifier for a tool call.
Enums§
- Output
Status - Status of a tool execution
- Pairable
History Item - Items that participate in call/output pairing for validation
Functions§
- ensure_
call_ outputs_ present - Ensure all tool calls have corresponding outputs in the message list.
- normalize_
history - Normalize history to enforce call/output pairing invariants.
- recover_
history_ from_ crash - Recover from crashed or interrupted session by fixing history invariants.
- remove_
orphan_ outputs - Remove outputs without corresponding calls (orphaned outputs) from the message list.
- safe_
history_ split_ point - Find a split point that keeps tool-call outputs paired with their calls.
- summarize_
list - validate_
history_ invariants - Validate that conversation history maintains call/output invariants.