klyn.llm.LLMHistoryObserver.historyChanged
method
public historyChanged(message as LLMThreadMessage, context as ArrayList<LLMThreadMessage>)
Description

Records one appended message or a replacement of the compacted context.

Parameters
ParameterDescription
messageNew message, or null after context compaction.
contextSnapshot of the active provider context; changing the list does not modify the session. Tool call metadata must be retained on disk.
Example
journal.historyChanged(message, session.messages())