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

# Prompt Text • AI Agent SDK

> prompt_text: Text for the agent turn, with any resolved quote rendered inline.

# prompt\_text

Method

> This is a method of the [**BotMessage**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/BotMessage.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Text for the agent turn, with any resolved quote rendered inline.

When the user replied to or quoted an earlier message, the resolved
reference (:attr:`quoted`) is rendered as a compact quoted block above
the new text so the model can honour the referent, e.g.::

\[In reply to: "Here are three options: 1) …  2) …  3) …"]
do the second one

With no quote this is identical to :attr:`text`. The quoted content is
injected as context only, never as a control frame — consistent with
the `allow_control` primitive.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def prompt_text() -> str
```

### Returns

**Returns** `str`

The result of the operation.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/protocols.py#L632)**
>
> `praisonaiagents/bots/protocols.py` at line 632


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.