Skip to main content

is_context_overflow_error

Function is_context_overflow_error 

Source
pub fn is_context_overflow_error(err: &MicroClawError) -> bool
Expand description

Provider-agnostic detection of a “request exceeds the model context window” error. The agent loop compacts the session and retries once when it sees one of these instead of failing the turn.