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

# Template Config • Rust AI Agent SDK

> TemplateConfig: Configuration for prompt templates

# TemplateConfig

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

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

Configuration for prompt templates

## Fields

| Name                | Type                   | Description       |
| ------------------- | ---------------------- | ----------------- |
| `system`            | `Option&lt;String&gt;` | System template   |
| `prompt`            | `Option&lt;String&gt;` | Prompt template   |
| `response`          | `Option&lt;String&gt;` | Response template |
| `use_system_prompt` | `bool`                 | Use system prompt |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new() -> Self
```

Create a new template config

### `system`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn system(mut self, template: impl Into<String>) -> Self
```

Set system template

**Parameters:**

| Name       | Type                      |
| ---------- | ------------------------- |
| `template` | `impl Into&lt;String&gt;` |

### `prompt`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn prompt(mut self, template: impl Into<String>) -> Self
```

Set prompt template

**Parameters:**

| Name       | Type                      |
| ---------- | ------------------------- |
| `template` | `impl Into&lt;String&gt;` |

### `response`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn response(mut self, template: impl Into<String>) -> Self
```

Set response template

**Parameters:**

| Name       | Type                      |
| ---------- | ------------------------- |
| `template` | `impl Into&lt;String&gt;` |

### `no_system_prompt`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn no_system_prompt(mut self) -> Self
```

Disable system prompt

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/config.rs#L915">
  `praisonai/src/config.rs` at line 915
</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" />

  <Card title="Rust Templates" icon="file-code" href="/docs/rust/templates" />

  <Card title="Rust Prompts" icon="message" href="/docs/rust/prompts" />
</CardGroup>
