MessageCapRepairEvent class final
Emitted when the gh-1680 message-cap self-heal ran: the provider refused
the request because the message ARRAY exceeded its per-request cap
(array length N exceeds limit M). The cap was learned per model, the
outbound payload was coalesced (outbound-only — the session JSONL is
byte-identical), and — when the host configured MessageCapRelief — a
compaction pass ran before the single retry. Repairs are never silent.
- Inheritance
-
- Object
- AgentEvent
- MessageCapRepairEvent
Constructors
- MessageCapRepairEvent({required int messageCount, int? learnedCap, bool compacted = false, String? providerError})
-
const
Properties
- compacted → bool
-
Whether a host compaction pass ran over the live transcript before
the retry (the MessageCapRelief answered non-null).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- learnedCap → int?
-
The cap learned from the refusal text; null when the refusal carried
no parseable limit (cap-unknown, edge E1).
final
- messageCount → int
-
The message count that rode the refused request — the number the
provider's cap refused.
final
- providerError → String?
-
The raw provider error that triggered the heal.
final
- 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