Skip to main content

for_recipe

Method
This is a method of the ContextConfig class in the models module.
Preset for recipe/workflow use cases with many tool calls. Optimized for:
  • Preventing context overflow in multi-step workflows
  • Preserving important tool outputs
  • Triggering compaction earlier (70% vs 80%)
  • Limiting tool outputs to prevent explosion

Signature

def for_recipe() -> 'ContextConfig'

Returns

Returns
'ContextConfig'
ContextConfig with recipe-optimized settings