SelfReflectionConfig class

Tuning parameters for SelfReflectionModule.

Constructors

SelfReflectionConfig({int stalledProgressThreshold = 3, int toolLoopWindowSize = 4, int maxFailuresBeforeReflect = 2, int noToolProgressThreshold = 5, int maxHistorySize = 50, bool enableLLMReflection = true, double minSeverityToStore = 0.3})
const

Properties

enableLLMReflection → bool
Whether to use the LLM for generating rich reflections.
final
hashCode → int
The hash code for this object.
no setterinherited
maxFailuresBeforeReflect → int
How many task failures trigger an urgent reflection.
final
maxHistorySize → int
Maximum reflection records to keep in memory.
final
minSeverityToStore → double
Minimum severity score to store a reflection in AgentMemoryStore.
final
noToolProgressThreshold → int
How many consecutive think-only iterations trigger reflection.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stalledProgressThreshold → int
How many iterations with zero task progress before flagging stall.
final
toolLoopWindowSize → int
Window size for detecting repeated tool calls.
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