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.3.0.tar.gz (21.8 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.3.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentforge_memory_surrealdb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6f97061ecc2aef8a74d8f850189f0fdfd1a15bd10c849f02e354242eacd81901
MD5 f90e1612138a5c7c062aa2737b863508
BLAKE2b-256 aa25715be4814f2f819eb7c0df543cbe9289308c6cb270cf264682dcc1bbe747

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_memory_surrealdb-0.3.0.tar.gz:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for agentforge_memory_surrealdb-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cf52b24ac305973d6fff4fee56a1096189c6ec76199df0d86dd250beaae9339
MD5 36ab3d79429400e9ad964887a5271bde
BLAKE2b-256 978601cdf467f39a45da8ef5aebafd9cb91eee8ff19d8043be0ffea1fc5d453f

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_memory_surrealdb-0.3.0-py3-none-any.whl:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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