> ## 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.

# Context Preset • Rust AI Agent SDK

> ContextPreset: Context preset configuration

# ContextPreset

> Defined in the [**presets**](../modules/presets) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Context preset configuration

## Fields

| Name             | Type     | Description                      |
| ---------------- | -------- | -------------------------------- |
| `max_tokens`     | `usize`  | Maximum context tokens           |
| `strategy`       | `String` | Context window strategy          |
| `include_system` | `bool`   | Include system prompt in context |
| `include_tools`  | `bool`   | Include tool results in context  |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/presets.rs#L587">
  `praisonai/src/presets.rs` at line 587
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Context Management" icon="layer-group" href="/docs/rust/context-management" />

  <Card title="Rust Token Management" icon="coins" href="/docs/rust/token-management" />
</CardGroup>
