fn is_truncation_candidate(msg: &Value) -> boolExpand 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.