Skip to main content

DEFAULT_MAX_TURNS

Constant DEFAULT_MAX_TURNS 

Source
pub const DEFAULT_MAX_TURNS: usize = 8 /* 8usize */;
Available on crate feature tool-loop only.
Expand description

The turn bound when none is set.

Four more than the two rounds a discover-then-query catalogue needs (examples/rig-agent measured six as enough on 2026-10-20), and small enough that a model which never stops calling tools fails in seconds rather than at the executor timeout.