> ## 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 Event • AI Agent SDK

> GatewayEvent: A gateway event with metadata.

# GatewayEvent

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

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

A gateway event with metadata.

Attributes:
type: The event type
data: Event payload
event\_id: Unique event identifier
timestamp: Event creation time
source: Source identifier (agent\_id, client\_id, etc.)
target: Target identifier (optional, for directed events)

## Properties

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

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

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

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

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

<ResponseField name="target" 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#L63">
  `praisonaiagents/gateway/protocols.py` at line 63
</Card>

***

## Related Documentation

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