Skip to content

Latest commit

 

History

250 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ms-agent-framework-mongodb

MongoDB providers for Microsoft Agent Framework in Python and .NET.

Choose Memory for scoped semantic conversation recall, Chat History for an exact ordered transcript, RAG for read-only authoritative knowledge retrieval, Session Store for complete agent sessions, and Workflow Checkpoint Store for resumable workflow state and lineage. Applications may combine these deliberately; none substitutes for another.

Python package

The canonical distribution is agent-framework-mongodb and the import root is agent_framework_mongodb:

python -m pip install agent-framework-mongodb

No package has been published from this repository yet. Until publishing ownership is confirmed, build and install the reviewed artifact from python; do not depend on an unverified registry project with the same name.

Capability Choose it for Python sample
Memory scoped semantic recall from prior conversation Memory quickstart
Chat History exact ordered replay of supported messages History quickstart
RAG read-only retrieval from pre-ingested knowledge Vector, full text, hybrid
Session Store complete Agent Framework session snapshots Session persistence
Workflow Checkpoint Store resumable workflow state and lineage Checkpoint resume

Implementation-owned Python scenarios are also available for parent-document RAG, on-demand retrieval, workflow retrieval, Memory with RAG, structured metadata, and the bounded document loader. They use local model-free fixtures where a model client would otherwise require an owner-selected provider.

.NET package

The canonical NuGet package and namespace are both MongoDB.AgentFramework:

dotnet add package MongoDB.AgentFramework --prerelease

No package has been published from this repository yet. Until publishing ownership is confirmed, build and reference the reviewed artifact described in the .NET package guide; do not depend on an unverified registry project with the same name.

Capability Choose it for .NET sample
Memory scoped semantic recall from prior conversation Memory quickstart
Chat History exact ordered replay of supported messages History quickstart
RAG read-only retrieval from pre-ingested knowledge RAG quickstart
Session Store complete Agent Framework session snapshots Session persistence
Workflow Checkpoint Store resumable workflow state and lineage Checkpoint resume

Implementation-owned .NET scenarios are also available for parent-document RAG, on-demand retrieval, workflow retrieval, Memory with RAG, structured metadata, and the bounded document loader.

Configuration and safety

Samples use MONGODB_URI, MONGODB_DATABASE, and feature-specific collection, scope, and index variables documented in the Python samples guide and .NET samples guide. They validate setup before network access and contain no credentials. Use separate least-privilege runtime, index-provisioning, and sample-ingestion identities. Runtime RAG is read-only; it does not ingest documents or accept model-generated BSON, filters, field names, index names, or pipelines.

MongoDB Search, Vector Search, and native hybrid RRF require a compatible deployment and pre-created indexes. Credentialed compatibility evidence is not available in this repository yet, so publication remains blocked. See the Python compatibility evidence, .NET packaging evidence, Python release checklist, and .NET release operations guide. Maintainers use the Python release runbook and .NET release operations guide; the documented local rehearsals never publish.

Development

This repository is maintained under mongo/ms-agent-framework-mongodb. See implementation specifications, the implementation map, architectural decisions, and contribution requirements.

To build, install, and test both packages without publishing, follow the local build, installation, and testing guide.

Implemented provider guides:

Python and .NET quickstarts and the explicitly sample-only, write-capable ingestion demonstrations are documented in the python package guide and .NET package guide. Runtime RAG retrieval remains read-only and must use credentials separate from ingestion and index provisioning.

Warranty

The Software is provided as Open Source. This software is provided “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Legal

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Any use of third-party trademarks or logos are subject to those third-party's policies.

About

Azure Agent Framework connector for MongoDB

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages