maxToolCallCount property
int
get
maxToolCallCount
Effective maximum tool calls; non-positive values fall back to 5.
Implementation
int get maxToolCallCount {
final explicit = hasMaxToolCalls() ? maxToolCalls : 0;
return explicit > 0 ? explicit : 5;
}