Skip to main content
This setting is only supported for Claude models.
Controls how aggressively Claude manages conversation context by pruning conversation history when LLM token limits are reached. This setting allows you to balance cost optimization against context preservation for longer conversations.

Syntax

Properties

ai_settings
object
An object that contains various AI settings. See ai_settings for more information.

Examples

Optimize for cost with aggressive context pruning
Balance cost and context preservation
Preserve maximum context