Skip to main content

DEFAULT_RECENT_WINDOW

Constant DEFAULT_RECENT_WINDOW 

Source
pub const DEFAULT_RECENT_WINDOW: usize = 3;
Expand description

Default sliding-window size for recent_* counts and windowed severity.

A short horizon captures “what is the agent doing right now” while keeping signals sticky — an error or stall persists a few recovery turns instead of flickering off the moment one clean result lands. Override per request by passing a window to ToolSignals::from_request.