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

# Quoted Ref • AI Agent SDK

> QuotedRef: Resolved content of a message a user replied to or quoted.

# QuotedRef

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

<Badge color="blue">AI Agent</Badge>

Resolved content of a message a user replied to or quoted.

Chat platforms carry only the *id* of a quoted message on the admission
path; the referenced text/media must be resolved and attached so the agent
can honour the referent ("do the second one", "why?"). This is that
resolved reference, rendered into the prompt as a compact quoted block.

Attributes:
message\_id: Platform-specific id of the quoted message.
text: Resolved text of the quoted message ("" if unavailable).
author: `"bot"` when quoting the bot's own message, else `"user"`.

## Properties

<ResponseField name="message_id" type="str">
  No description available.
</ResponseField>

<ResponseField name="text" type="str">
  No description available.
</ResponseField>

<ResponseField name="author" type="str">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **from\_dict**: Create from dictionary.
  * **to\_dict**: Convert to dictionary.
</Accordion>

## Source

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