public compact() as Boolean
Compacts the active context on demand using the configured compactor.
True when the provider supplied a replacement context; false if there is no conversation to compact or no summary was returned.
session.compact()