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

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BotMessage**](../classes/BotMessage) class in the [**protocols**](../modules/protocols) 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

<ResponseField name="Returns" type="str">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/protocols.py#L632">
  `praisonaiagents/bots/protocols.py` at line 632
</Card>
