> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Single Store Agent Storage

## Example

```python storage.py theme={null}
from phi.storage.agent.singlestore import S2AgentStorage

# Create a storage backend using the SingleStore database
storage = S2AgentStorage(
    # store sessions in the ai.sessions table
    table_name="agent_sessions",
    # db_engine: SingleStore database engine
    db_engine=db_engine,
    # schema: SingleStore schema
    schema="ai",
)

# Add storage to the Agent
agent = Agent(storage=storage)
```

## Params

<Snippet file="storage-s2-params.mdx" />
