Skip to main content

Module state

Module state 

Source

Structs§

ApiFailureTracker
API failure tracking for exponential backoff
HistoryValidationReport
Validation report for conversation history state
MissingOutput
Record of a missing output in conversation history
ToolCallId
Unique identifier for a tool call.

Enums§

OutputStatus
Status of a tool execution
PairableHistoryItem
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.