Skip to main content

is_truncation_candidate

Function is_truncation_candidate 

Source
fn is_truncation_candidate(msg: &Value) -> bool
Expand description

Returns true if this message’s role is eligible for content truncation.

Only role: "tool" and role: "assistant" are candidates. role: "system" and role: "user" are never truncated.