AgentWiringSpec class final

The per-run parameters WiredAgentCore.buildAgentStack needs to construct the Agent. Pure data — the host's callbacks arrive as fields, the builder owns the assembly.

Constructors

AgentWiringSpec({required Model model, required String systemPrompt, int maxEmptyRetries = 1, int emptyHiccupRetries = 3, Duration emptyHiccupBaseDelay = const Duration(milliseconds: 500), Duration emptyHiccupMaxBackoff = const Duration(milliseconds: 8000), void onRunIdleTimeout(Object error)?, void onRunWatchdogPaused()?, int? contextWindowCap, StuckToolConfig? stuckTool, bool wireDump = false, OverWindowRelief? overWindowRelief, ToolMisuseBreaker? toolMisuseBreaker, MessageCapPolicy? messageCapPolicy, MessageCapRelief? messageCapRelief})
const

Properties

contextWindowCap → int?
final
emptyHiccupBaseDelay → Duration
gh-1577: first backoff sleep between empty-hiccup retries (tests pin it to Duration.zero).
final
emptyHiccupMaxBackoff → Duration
gh-1577: cap on the exponential empty-hiccup backoff.
final
emptyHiccupRetries → int
gh-1577: the empty-hiccup retry budget, threaded next to maxEmptyRetries so the CLI and every host can tune it (the loop default is 3).
final
hashCode → int
The hash code for this object.
no setterinherited
maxEmptyRetries → int
final
messageCapPolicy → MessageCapPolicy?
final
messageCapRelief → MessageCapRelief?
final
model → Model
final
onRunIdleTimeout → void Function(Object error)?
final
onRunWatchdogPaused → void Function()?
final
overWindowRelief → MessageCapRelief?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stuckTool → StuckToolConfig?
final
systemPrompt → String
final
toolMisuseBreaker → ToolMisuseBreaker?
final
wireDump → bool
final

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