Functions§
- pending_
tool_ calls_ from_ messages - Pending tool calls after the last assistant turn in preloaded history.
- reconstruct_
messages_ with_ fallback - Reconstructs full messages from a sequence of events.
For
SessionEvent::Compressedevents: - repair_
events - Repair event log entries in place for recovery minimum set completeness.
- repair_
events_ with_ cap - repair_
llm_ completed - Normalize a single
LlmCompletedfor recovery (message fields only). - repair_
llm_ completed_ with_ cap - sanitize_
recovery_ text - Sanitize text for recovery paths: ensure valid UTF-8 and apply an optional
byte cap derived from the caller’s context config. When
max_bytesis 0 no cap is applied. - sanitize_
recovery_ text_ bounded