ForegroundCallBudgetConfig class final

The agent.foregroundCallBudgetSeconds / agent.foregroundCallAutoConvert config (issue #1786). Strict: a bad schema throws at boot; the budget must be a positive integer; autoConvert is offer (default) or auto. Per-tool-kind overrides are a second-tier opt-in and are REJECTED in the core tier (a map where the integer/enum is expected fails validation).

Constructors

ForegroundCallBudgetConfig({Duration budget = const Duration(seconds: defaultForegroundCallBudgetSeconds), bool autoConvert = false, Duration cancelGrace = const Duration(seconds: defaultStuckCancelGraceSeconds)})
const

Properties

autoConvert → bool
true = rung 1 auto-converts at B/2 (unattended-friendly, reversible backgrounding) instead of surfacing the one-key offer.
final
budget → Duration
The wall-clock budget B. Force-escalation fires at B; the offer rung at B/2.
final
cancelGrace → Duration
Bounded wait for an escalated call to observe its cancellation before the supervisor abandons it and captures the partial output — a token- ignoring zombie cannot stretch the unreachability window past B + grace. Internal knob (not yaml-exposed); defaults to the stuck supervisor's grace.
final
hashCode → int
The hash code for this object.
no setterinherited
offerAt → Duration
When rung 1 fires.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromLeaves({Object? budgetSeconds, Object? autoConvert}) → ForegroundCallBudgetConfig
Parses the two flat agent: leaves (foregroundCallBudgetSeconds, foregroundCallAutoConvert), applying the defaults for absent ones.