Skip to main content

is_empty_assistant_turn

Function is_empty_assistant_turn 

Source
pub fn is_empty_assistant_turn(content: &[AssistantContent]) -> bool
Expand description

Whether a generated assistant turn is empty: every part is blank (AssistantContent::is_blank, the rule replay drops parts by). An empty turn must not enter history.