0

SurrealDB Integration

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

Example · مثال

Content

SurrealDB Integration

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

Setup

uv pip install surrealdb

Configuration

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

Examples

  • [surrealdb_for_agent.py](surrealdb_for_agent.py) - Agent with SurrealDB storage
  • [surrealdb_for_team.py](surrealdb_for_team.py) - Team with SurrealDB storage
  • [surrealdb_for_workflow.py](surrealdb_for_workflow.py) - Workflow with SurrealDB storage

Source and license

Source
Agno
Original
agno-agi/agno/cookbook/06_storage/surrealdb
License
Apache-2.0