public interface LLMCompactionLifecycleObserver extends LLMCompactionObserver
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.
session.withCompactionObserver(progress) where progress implements this interface.
| Modifier and Type | Member | Description |
|---|---|---|
| public | afterCompactionafterCompaction(replaced as Boolean) as Void |
Reports completion after the replacement context has been checkpointed. |
| public | compactionFailedcompactionFailed(exception as Exception) as Void |
Reports a provider or checkpoint failure; the original exception propagates. |