Skip to main content

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

Union
No description available.
str
No description available.
str
No description available.
str
No description available.
float
No description available.
Dict[str, Any]
No description available.
Optional[str]
No description available.
Optional[MessagePresentation]
No description available.
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary for serialization.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 786

Gateway Feature