Optional
filterDetermines whether a message should be included in the history iteration.
Fetches initial history data for an agent.
Optional
getRetrieves dynamic system prompt messages for an agent.
Called when the history array changes (e.g., after push or pop).
Called when the history instance is disposed.
Called when the history instance is initialized.
Called when the last message is popped from the history.
Called when a new message is pushed to the history.
Called for each message during iteration when reading.
Called at the start of a history read operation.
Called at the end of a history read operation.
Provides a reference to the history instance after creation.
Callbacks for managing history instance lifecycle and message handling.