Skip to main content

Neo4j-backed MemoryStore and GraphStore for AgentForge

Project description

agentforge-memory-neo4j

Neo4j-backed MemoryStore and GraphStore for the AgentForge framework.

What this is

  • Neo4jMemoryStoreMemoryStore (claim audit log) over Neo4j. Claims map to (:Claim {…}) nodes; queries become parameterised Cypher.
  • Neo4jGraphStoreGraphStore (knowledge graph traversal) over Neo4j. Nodes and edges map directly to property graph nodes and relationships. match() and traverse() compile to Cypher.

Both pass the locked agentforge_core.testing.run_*_conformance suites — drop-in alternatives to agentforge-memory-sqlite when you need real graph semantics, multi-writer concurrency, or production operability (clustering, fine-grained auth, query planner).

Usage

from agentforge_memory_neo4j import Neo4jGraphStore

async with Neo4jGraphStore.from_url(
    "bolt://localhost:7687",
    auth=("neo4j", "password"),
    database="neo4j",
) 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_NEO4J=1 NEO4J_URL=bolt://localhost:7687 \
  NEO4J_USER=neo4j NEO4J_PASSWORD=test \
  uv run pytest packages/agentforge-memory-neo4j/tests/integration -v

Capabilities

{"transactions", "cypher", "fulltext"} — Neo4j 5.x ships native fulltext indexes; transactions are first-class (every write goes through session.execute_write).

Vector search is not declared: Neo4j 5.x has vector indexes but adopting them is tracked separately. Pair Neo4j with agentforge-memory-postgres (pgvector) or agentforge-memory-sqlite for embeddings.

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_neo4j-0.2.3.tar.gz (24.0 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_neo4j-0.2.3-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_memory_neo4j-0.2.3.tar.gz.

File metadata

  • Download URL: agentforge_memory_neo4j-0.2.3.tar.gz
  • Upload date:
  • Size: 24.0 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

Hashes for agentforge_memory_neo4j-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4058cde1dc5aafe9ef061ac526ef5dfa72308fb6239cd709a242992d1a28a72a
MD5 290533150ad4b0a7caf5929587bf6907
BLAKE2b-256 8086e63d3a664271cec0aa56e6b215065a3508dc34705810deeb81f9f46e8fc9

See more details on using hashes here.

File details

Details for the file agentforge_memory_neo4j-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: agentforge_memory_neo4j-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 22.8 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

Hashes for agentforge_memory_neo4j-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7882e0a4bc27d89bc17116b7671f6a96c71ea5d6f264fe75744a0b729ea2f83
MD5 f1f9b39e38a60800d3283399475dd045
BLAKE2b-256 05bae3f5d5557e4ae443605a968db3a8afbca7d7fba3683cfd78941cebe1f876

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