Skip to main content

PROTECTED_TAIL_COUNT

Constant PROTECTED_TAIL_COUNT 

Source
pub const PROTECTED_TAIL_COUNT: usize = 8;
Expand description

Number of trailing messages (by index) always preserved from truncation regardless of role or content size.

These are the immediate conversational context the model needs to respond coherently — sized to span several recent tool-call/result pairs so a live tool exchange is never half-elided.