klyn.llm.LLMChatSession.withCompactionObserver
method
public withCompactionObserver(observer as LLMCompactionObserver) as LLMChatSession:
Description

Attaches an observer notified before the context compactor starts.

UI implementations should enqueue events because compaction runs from the request worker thread.