Neo4j Memory Provider: add C# usage docs#426
Merged
westey-m merged 2 commits intoJul 16, 2026
Merged
Conversation
Fills in the C# zone of the Neo4j Memory Provider page, previously just a "not yet available" placeholder, with Prerequisites/Installation/Usage/Key features/Resources sections mirroring the Python zone's structure. Documents the AgentMemory / AgentMemory.AgentFramework NuGet packages (a community .NET port of the Neo4j Labs memory provider, not an official Neo4j Labs package) and links to its source repo and the upcoming Agent Framework retail-assistant sample. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
|
Learn Build status updates of commit f785079:
|
westey-m
reviewed
Jul 16, 2026
westey-m
reviewed
Jul 16, 2026
…s index - List the Neo4j Memory Provider under the C# Memory AI Context Providers table in integrations/index.md (previously only linked from the Python pivot), per westey-m's review comment. - Update the C# usage sample to use AddNeo4jAgentMemory's configureMemory/ configureNeo4j overload (the prior single-arg call didn't resolve without an extra import), drop the now-redundant AddAgentMemoryCore/IClock/ IIdGenerator registrations AddNeo4jAgentMemory already wires up, and pass configureLlm so AutoExtractOnPersist isn't a silent no-op. - Wrap the agent in .WithMemoryOwnerScoping(services) instead of a manual BeginOwnerScope around RunAsync, matching the scoping fix from microsoft/agent-framework#7096 (BeginOwnerScope doesn't reliably cover the tool-calling loop). - Fix NEO4J_USER -> NEO4J_USERNAME and overstated .NET 9.0 -> 8.0 prerequisite to match the sibling Neo4j GraphRAG page and the library's actual multi-targeting. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
|
Learn Build status updates of commit 9e20d24: ✅ Validation status: passed
For more details, please refer to the build report. |
Contributor
Author
|
ready :) |
westey-m
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AgentMemory/AgentMemory.AgentFrameworkNuGet packages: DI registration (AddNeo4jAgentMemory,AddAgentMemoryCore,AddAgentMemoryFramework), theNeo4jMemoryContextProvider(bidirectionalAIContextProvider), andMemoryToolFactorymemory tools — verified against a working sample.AgentWithMemory_Step06_MemoryUsingAgentMemory) — currently pending merge via microsoft/agent-framework#7096.Test plan
Neo4jMemoryContextProvider,MemoryToolFactory,WithMemoryIdentity,IWritableMemoryOwnerContext) matches a real, building .NET sample.