> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# For Recipe • AI Agent SDK

> for_recipe: Preset for recipe/workflow use cases with many tool calls.

# for\_recipe

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**ContextConfig**](../classes/ContextConfig) class in the [**models**](../modules/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

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def for_recipe() -> 'ContextConfig'
```

### Returns

<ResponseField name="Returns" type="'ContextConfig'">
  ContextConfig with recipe-optimized settings
</ResponseField>

## Uses

* `cls`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/context/models.py#L351">
  `praisonaiagents/context/models.py` at line 351
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Recipes Concept" icon="book-open" href="/docs/concepts/recipes" />

  <Card title="Recipes Guide" icon="utensils" href="/docs/guides/recipes/index" />

  <Card title="Modular Recipes" icon="puzzle-piece" href="/docs/features/modular-recipes" />
</CardGroup>
