This directory is the canonical implementation specification for MongoDB integrations for Microsoft Agent Framework. Every normative implementation requirement is maintained in this document set; architectural decisions are recorded separately in Architectural Decision Records.
| Surface | Canonical identity |
|---|---|
| GitHub repository | mongo/ms-agent-framework-mongodb |
| Python distribution | agent-framework-mongodb |
| Python import root | agent_framework_mongodb |
| .NET package and namespace | MongoDB.AgentFramework |
- Project scope and decisions
- System architecture
- Packages and namespaces
- Memory
- Chat History
- RAG
- Index management
- Knowledge ingestion
- Interfaces and parity
- Configuration
- Resilience and errors
- Observability and security
- Session and workflow persistence
- Implementation map
- Testing
- Quality and release
- Samples and documentation
- Compatibility and migration
- References
These specifications are the implementation source of truth. Accepted ADRs record approved architectural choices. If an accepted ADR and these specifications conflict, implementation is blocked until a dedicated documentation change reconciles them. Proposed ADRs do not authorize deviations. Public API, stored schema, index definition, package identity, compatibility, security-boundary, and release-policy changes require an ADR.
This document is the implementation specification for the independently maintained repository
mongo/ms-agent-framework-mongodb. The repository will provide MongoDB integrations for Microsoft Agent Framework in both
Python and .NET.
The repository contains five distinct public runtime features:
- Memory: persistent semantic recall of agent conversations using MongoDB Vector Search.
- Chat History: exact, ordered persistence of one conversation through Agent Framework history abstractions.
- Retrieval-Augmented Generation (RAG): read-only retrieval from an existing MongoDB knowledge collection using ANN, ENN, full-text, and hybrid RRF search.
- Session Store: complete serialized
AgentSessionsnapshots, including provider-owned session state. - Workflow Checkpoint Store: resumable workflow execution state, lineage, pending requests, and committed executor state.
This document is intended to be sufficient context for an implementation team or coding agent. It records the architecture, required behavior, interface direction, migration plan, validation requirements, release model, and primary references. Implementation must not begin by changing Microsoft Agent Framework core types.
The key words MUST, MUST NOT, REQUIRED, SHOULD, SHOULD NOT, and MAY in this document describe implementation priority:
- MUST/MUST NOT/REQUIRED: release-blocking requirements.
- SHOULD/SHOULD NOT: strong recommendations that require a recorded design decision to override.
- MAY: optional behavior that must not change required semantics.
When this document distinguishes a verified fact from a design recommendation, verified facts come from the referenced framework source or MongoDB documentation. Recommendations define this project's intended interface and may be changed only through an architectural decision record (ADR).