LLMCompactionLifecycleObserver
interfacein packageklyn.genai.llm
public interface LLMCompactionLifecycleObserver extends LLMCompactionObserver
└ LLMCompactionLifecycleObserver

Optional completion hooks for an LLMChatSession's compaction observer. Existing LLMCompactionObserver implementations need only beforeCompaction(). Hooks run on the request worker; enqueue UI updates instead of painting.

Example

session.withCompactionObserver(progress) where progress implements this interface.

Methods
Modifier and Type Member Description
public afterCompaction
afterCompaction(replaced as Boolean) as Void
Reports completion after the replacement context has been checkpointed.
public compactionFailed
compactionFailed(exception as Exception) as Void
Reports a provider or checkpoint failure; the original exception propagates.