ContentReplacementState class

Per-conversation-thread state for the aggregate tool result budget.

State must be stable to preserve prompt cache:

  • seenIds: results that have passed through the budget check (replaced or not). Once seen, a result's fate is frozen for the conversation.
  • replacements: subset of seenIds that were persisted to disk and replaced with previews, mapped to the exact preview string shown to the model.

Constructors

ContentReplacementState({Set<String>? seenIds, Map<String, String>? replacements})

Properties

hashCode int
The hash code for this object.
no setterinherited
replacements Map<String, String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seenIds Set<String>
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