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

# Gateway Message • AI Agent SDK

> GatewayMessage: A message sent through the gateway.

# GatewayMessage

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

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

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

<ResponseField name="content" type="Union">
  No description available.
</ResponseField>

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

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

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

<ResponseField name="timestamp" type="float">
  No description available.
</ResponseField>

<ResponseField name="metadata" type="Dict">
  No description available.
</ResponseField>

<ResponseField name="reply_to" type="Optional">
  No description available.
</ResponseField>

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

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Gateway Feature" icon="tower-broadcast" href="/docs/features/gateway" />
</CardGroup>
