Expand description
Lossless conversation-history validation before provider requests.
Validation never repairs history by deleting records or inventing tool outcomes. A missing, orphaned, duplicate, or misplaced record is returned as an explicit error so the host can recover it from durable state or block the request without changing canonical history.
Structs§
- Normalize
Report - Counts observed while validating a complete history.
Enums§
- History
Validation Error - Why canonical history cannot be sent to a provider.
- Synthetic
Reason - A terminal outcome proven by durable host state.
Constants§
- SYNTHETIC_
CANCELLED_ MARKER - Substring present in every explicitly recorded cancelled result body.
- SYNTHETIC_
ERROR_ MARKER - Substring present in every explicitly recorded error result body.
Functions§
- normalize_
history - Validate canonical tool call/result structure without modifying
messages. - normalize_
provider_ messages - Validate the JSON message vector immediately before an
LlmDriverrequest. The input remains byte-for-byte unchanged on success and failure. - synthetic_
tool_ result - Build a typed terminal result after the host has verified durable evidence.