klyn.llm.LLMChatSession.compact
method
public compact() as Boolean
Description

Compacts the active context on demand using the configured compactor.

Returns

True when the provider supplied a replacement context; false if there is no conversation to compact or no summary was returned.

Throws
  • Exception if no compactor is configured or the provider fails.
Example
session.compact()