Back to Agno

SurrealDB Integration

cookbook/06_storage/surrealdb/README.md

2.6.4733 B
Original Source

SurrealDB Integration

Examples demonstrating SurrealDB integration with Agno agents, teams, and workflows.

Setup

shell
uv pip install surrealdb

Configuration

python
credentials = { "username": "root", "password": "root" }
db = SurrealDb(
  None,                   # existing connection
  "ws://localhost:8000",  # url
  credentials,            # credentials
  "agno_ns",              # namespace
  "example_db",           # database
)

Examples