public withCompactionProvider(provider as LLMProvider) as LLMChatSession
Selects a separate transport for context summaries, keeping ordinary requests on the session provider. A null value restores the default. This permits a bounded HTTP timeout and output budget for compaction.
| Parameter | Description |
|---|---|
provider | Summary provider, or null to reuse the main provider. |
This session.
session.withCompactionProvider(summaryProvider)