Skip to main content

SurrealDB-backed MemoryStore, VectorStore, and GraphStore for AgentForge

Project description

agentforge-memory-surrealdb

SurrealDB-backed MemoryStore, VectorStore, and GraphStore for the AgentForge framework.

What this is

SurrealDB is uniquely multi-modal: a single store supports documents, graphs, and vectors. This package implements all three locked contracts against one SurrealDB connection:

  • SurrealMemoryStore — claim audit log
  • SurrealVectorStore — semantic search (HNSW index)
  • SurrealGraphStore — knowledge graph traversal via RELATE / ->edge-> SurrealQL syntax

All three pass the locked agentforge_core.testing.run_*_conformance suites.

Usage

from agentforge_memory_surrealdb import (
    SurrealGraphStore,
    SurrealMemoryStore,
    SurrealVectorStore,
)

async with SurrealGraphStore.from_url(
    "ws://localhost:8000/rpc",
    namespace="agentforge",
    database="dev",
    auth=("root", "root"),
) as store:
    await store.add_node(GraphNode(id="paper:1", labels=("Doc",)))
    ...

Local development

docker compose -f docker-compose.dev.yml up -d
RUN_LIVE_SURREAL=1 SURREAL_URL=ws://localhost:8000/rpc \
  uv run pytest packages/agentforge-memory-surrealdb/tests/integration -v

Capabilities

  • Graph: {"transactions", "surrealql", "vector", "live_query"}
  • Vector: {"native_ann"} (when init_schema() provisions the HNSW index)
  • Memory: {"transactions"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentforge_memory_surrealdb-0.2.4.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentforge_memory_surrealdb-0.2.4-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_memory_surrealdb-0.2.4.tar.gz.

File metadata

File hashes

Hashes for agentforge_memory_surrealdb-0.2.4.tar.gz
Algorithm Hash digest
SHA256 80a626187b7cc602d3ea47d0ee728d26f8f184e200582a09b454c9f4670b9a1e
MD5 a49d50ee2ff14435e376041ea7d2f98e
BLAKE2b-256 e07295a593057158b844618e867667f82e5e623a1895b6bc7a282abb26f1f979

See more details on using hashes here.

File details

Details for the file agentforge_memory_surrealdb-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_memory_surrealdb-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 006f0587bfeddf127ebbaedd41fba77634c6d2cdc1570c45aa5d0f35d024581d
MD5 23e54d389f478f05234b9f3f21feac8b
BLAKE2b-256 a1903b30437fa5ff73b36fadd2faca090c50391d4e17e2d9d087429aed11280f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page