DEFAULT_MAX_OBSERVATION_STEPS

Constant DEFAULT_MAX_OBSERVATION_STEPS 

Source
pub const DEFAULT_MAX_OBSERVATION_STEPS: usize = 15;
Expand description

Default value for AgentConfig::max_observation_steps.

An exploratory-tool-only batch (every call matches a pattern in AgentConfig::observation_tools) may repeat up to this many times before loop detection fires. 15 is generous for multi-page browsing, multi-directory walking, and paginated API tasks while still catching a genuinely confused agent within a reasonable token budget.