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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_memory_neo4j-0.3.0.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_memory_neo4j-0.3.0.tar.gz
Algorithm Hash digest
SHA256 12d63115124949ee4b1d26c2928ad79e0d38fa1184d4415d0dedda5b2a64790d
MD5 c884a2f7cca7df4b83df7d6b6cd648e0
BLAKE2b-256 2b0eaf6c7e8a47ebbc0dbeec1e719cc84be7746f550aed43c175fc04da21f92e

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_memory_neo4j-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_neo4j-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_memory_neo4j-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c39d97893da5824e1265edb3fd0e34988aa0477ea38d8aeb83f69ad2de8b1b91
MD5 ed8c68cc05b2fe4de04331619cd98f1a
BLAKE2b-256 e8b024e272da0d3c3b238880faee97c693dc89ba46134d65c9f0de54b16299f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_memory_neo4j-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