Quoted Ref • AI Agent SDK

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

QuotedRef

Defined in the protocols module.

AI Agent

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 str

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

Internal & Generic Methods
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 514