Const
Readonly
callbacks: Partial<IHistoryInstanceCallbacks>Readonly
clientId: stringDisposes of the history, clearing all data if agentName is null. Invokes onDispose callback if provided.
Iterates over history messages, applying filters and system prompts if configured. Invokes onRead callbacks during iteration if provided.
Removes and returns the last message from the in-memory history. Invokes onPop and onChange callbacks if provided.
Adds a new message to the in-memory history. Invokes onPush and onChange callbacks if provided.
Initializes the history for an agent, loading initial data if needed.
Manages an in-memory history of messages without persistence.