Skip to main content

plan_is_productive

Function plan_is_productive 

Source
pub fn plan_is_productive(
    messages: &[SharedMessage],
    plan: &RolloverPlan,
) -> bool
Expand description

Whether plan is worth applying: it must shrink the history estimate by more than [MIN_SHRINK_TOKENS] and keep every tool call paired as it was.