Skip to main content

is_recoverable_length

Function is_recoverable_length 

Source
pub fn is_recoverable_length(
    message: &AssistantMessage,
    desired_max_output: u64,
) -> bool
Expand description

Whether a length stop ended below the intended output limit, so one compact-and-retry attempt may recover it. desired_max_output is the limit before any clamping to the context.