Skip to main content

GatewayMessage

Defined in the protocols module.
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)

Properties

content
Union
No description available.
sender_id
str
No description available.
session_id
str
No description available.
message_id
str
No description available.
timestamp
float
No description available.
metadata
Dict
No description available.
reply_to
Optional
No description available.
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary for serialization.