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

# Bot Response • Rust AI Agent SDK

> BotResponse: A bot response.

# BotResponse

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

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

A bot response.

## Fields

| Name          | Type                       | Description         |
| ------------- | -------------------------- | ------------------- |
| `content`     | `String`                   | Response content    |
| `reply_to`    | `Option&lt;String&gt;`     | Reply to message ID |
| `attachments` | `Vec&lt;BotAttachment&gt;` | Attachments         |
| `actions`     | `Vec&lt;BotAction&gt;`     | Actions/buttons     |

## Methods

### `text`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn text(content: impl Into<String>) -> Self
```

Create a simple text response

**Parameters:**

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

### `reply_to`

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

Set reply to

**Parameters:**

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

### `attachment`

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

Add an attachment

**Parameters:**

| Name         | Type            |
| ------------ | --------------- |
| `attachment` | `BotAttachment` |

### `action`

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

Add an action

**Parameters:**

| Name     | Type        |
| -------- | ----------- |
| `action` | `BotAction` |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Bots" icon="robot" href="/docs/rust/bots" />

  <Card title="Rust AGUI" icon="display" href="/docs/rust/agui" />
</CardGroup>
