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

# Store Message • AI Agent SDK

> store_message: Persist a message to the store.

# store\_message

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**DeliveryGuaranteeProtocol**](../classes/DeliveryGuaranteeProtocol) class in the [**protocols**](../modules/protocols) module.

Persist a message to the store.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def store_message(event: GatewayEvent) -> str
```

## Parameters

<ParamField query="event" type="GatewayEvent" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  The event\_id of the stored message
</ResponseField>

## Source

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