Gateway Message • AI Agent SDK

GatewayMessage: A message sent through the gateway.

GatewayMessage

Defined in the protocols module.

AI Agent

A message sent through the gateway.

Attributes: content: Message content (text or structured data) sender_id: Sender identifier session_id: Session this message belongs to message_id: Unique message identifier timestamp: Message creation time metadata: Additional message metadata reply_to: ID of message being replied to (optional) presentation: Optional interactive presentation (buttons, menus, etc.)

Properties

ResponseField Union

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField float

No description available.

ResponseField Dict[str, Any]

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[MessagePresentation]

No description available.

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

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1182


Related Documentation