LLMContextPreparation
interfacein packageklyn.llm
public interface LLMContextPreparation
LLMContextPreparation

Optional provider hook, called before principal context checks and transport. Queued user messages can be appended before compaction decides its budget. Compaction requests do not invoke this hook. It runs on the session owner.

Example

class MyProvider implements LLMProvider, LLMContextPreparation: ...

Methods
Modifier and Type Member Description
public prepareContext
prepareContext() as Void throws Exception
Prepares the owning session's messages before a principal request.