Creates a new instance of TurnStateEntry.
Optionalvalue: Record<string, unknown>The initial value for the entry.
OptionalstorageKey: stringOptional storage key used to persist the entry.
Gets whether the entry value has changed since its creation or last update.
True if the value has changed, otherwise false.
Gets whether the entry has been marked for deletion.
True if the entry is marked for deletion, otherwise false.
Gets the storage key associated with this entry.
The storage key, or undefined if no storage key was specified.
Gets the current value of the entry. If the entry was marked for deletion, it will be reset to an empty object and marked as not deleted.
The current value of the entry.
Represents an entry in the turn state that can be tracked for changes and stored.