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 logSurrealVectorStore— semantic search (HNSW index)SurrealGraphStore— knowledge graph traversal viaRELATE/->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"}(wheninit_schema()provisions the HNSW index) - Memory:
{"transactions"}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentforge_memory_surrealdb-0.2.3.tar.gz.
File metadata
- Download URL: agentforge_memory_surrealdb-0.2.3.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8d03b40bf3a1f56b026e8ec59ee2fa243bfec821a8b4cfe8396d909036362a0
|
|
| MD5 |
47d774e591cd2dabc5a380423c51736e
|
|
| BLAKE2b-256 |
4a28fa0f80145c11d5cfa9bdcc2e72c9f5abc4c820e52e1abfeb7e2bbc5a76fc
|
File details
Details for the file agentforge_memory_surrealdb-0.2.3-py3-none-any.whl.
File metadata
- Download URL: agentforge_memory_surrealdb-0.2.3-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75640fbf94a672bc1530fd65d325fda1605a13292bdc372c6e23c41ff1737c1f
|
|
| MD5 |
bf769f9f721ddbfea88e946ce2496b35
|
|
| BLAKE2b-256 |
7b24a88684ea869a069611bb06f83873679a6bffe2e6950abe5a6c8e9ca2a4a9
|