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

# Defaults Config • Rust AI Agent SDK

> DefaultsConfig: Defaults configuration for Agent parameters

# DefaultsConfig

> Defined in the [**Config Loader**](../modules/config_loader) module.

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

Defaults configuration for Agent parameters

## Fields

| Name                   | Type                              | Description                                 |
| ---------------------- | --------------------------------- | ------------------------------------------- |
| `model`                | `Option&lt;String&gt;`            | Default LLM model                           |
| `base_url`             | `Option&lt;String&gt;`            | Default base URL                            |
| `api_key`              | `Option&lt;String&gt;`            | Default API key (not recommended in config) |
| `allow_delegation`     | `bool`                            | ⚠️ Deprecated — use `handoffs=`             |
| `allow_code_execution` | `bool`                            | ⚠️ Deprecated — use `ExecutionConfig`       |
| `code_execution_mode`  | `String`                          | ⚠️ Deprecated — use `ExecutionConfig`       |
| `memory`               | `Option&lt;serde_json::Value&gt;` | Memory configuration                        |
| `knowledge`            | `Option&lt;serde_json::Value&gt;` | Knowledge configuration                     |
| `planning`             | `Option&lt;serde_json::Value&gt;` | Planning configuration                      |
| `reflection`           | `Option&lt;serde_json::Value&gt;` | Reflection configuration                    |
| `guardrails`           | `Option&lt;serde_json::Value&gt;` | Guardrails configuration                    |
| `web`                  | `Option&lt;serde_json::Value&gt;` | Web configuration                           |
| `output`               | `Option&lt;serde_json::Value&gt;` | Output configuration                        |
| `execution`            | `Option&lt;serde_json::Value&gt;` | Execution configuration                     |
| `caching`              | `Option&lt;serde_json::Value&gt;` | Caching configuration                       |
| `autonomy`             | `Option&lt;serde_json::Value&gt;` | Autonomy configuration                      |
| `skills`               | `Option&lt;serde_json::Value&gt;` | Skills configuration                        |
| `context`              | `Option&lt;serde_json::Value&gt;` | Context configuration                       |
| `hooks`                | `Option&lt;serde_json::Value&gt;` | Hooks configuration                         |
| `templates`            | `Option&lt;serde_json::Value&gt;` | Templates configuration                     |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Configuration" icon="gear" href="/docs/rust/configuration" />

  <Card title="Rust Installation" icon="download" href="/docs/rust/installation" />
</CardGroup>
