Skip to main content

Module conversation

Module conversation 

Source

Modules§

message
turn
Turn tracking for conversation context management.

Structs§

ContextStats
Context budget statistics for logging/debugging.
Conversation

Functions§

looks_corrupted
Detect output that almost-certainly came from a corrupted provider stream (binary bytes decoded as UTF-8, mojibake from wrong encoding, KV-cache poisoning after timeout/retry, etc.) and should NOT be committed to conversation history.