Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Get Started with Microsoft Agent Framework Mem0

Please install this package via pip:

pip install agent-framework-mem0 --pre

Memory Context Provider

The Mem0 context provider enables persistent memory capabilities for your agents, allowing them to remember user preferences and conversation context across different sessions and threads.

Basic Usage Example

See the Mem0 basic example which demonstrates:

  • Setting up an agent with Mem0 context provider
  • Teaching the agent user preferences
  • Retrieving information using remembered context across new threads
  • Persistent memory

Memory Scoping

The provider separates the scope used to store memories from the scope used to retrieve them:

  • application_id / agent_id / user_id stamp every memory that is written.
  • search_application_id / search_agent_id / search_user_id select which memories are searched.

Note: application_id and search_application_id are only supported by the Platform client (AsyncMemoryClient), not the OSS AsyncMemory client. Retrieval scope values never inherit from the storage scope. If none of the search_* values are set, no memories are retrieved and a warning is logged. Set search_user_id for per-user memory, and only set search_agent_id when memories under that agent are safe to share across all of its users.

provider = Mem0ContextProvider(
    api_key="your-key",
    user_id="user-id",
    search_user_id="user-id",
)

Telemetry

Mem0's telemetry is disabled by default when using this package. If you want to enable telemetry, set the environment variable before importing:

import os
os.environ["MEM0_TELEMETRY"] = "true"

from agent_framework.mem0 import Mem0ContextProvider

Metadata

Release files for agent-framework-mem0 1.0.0b261015

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-framework-mem0 1.0.0b261015
File Size Uploaded
agent_framework_mem0-1.0.0b261015.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-framework-mem0 1.0.0b261015
File Interpreter ABI Platform
agent_framework_mem0-1.0.0b261015-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / agent_framework_mem0-1.0.0b261015.tar.gz

Download URL agent_framework_mem0-1.0.0b261015.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
550be6b78fac2af56efab7962868027c57bf3ced09cf150a1be41b6ef383ead8
BLAKE2b-256 checksum
How to use checksums
2513e1c67994c76cb672f90aa481ac983c160d027c1e2da6bb76b9bc28bc106e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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}

Release files / agent_framework_mem0-1.0.0b261015-py3-none-any.whl

Download URL agent_framework_mem0-1.0.0b261015-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24ccefe2d5fa21dbbd4bf0c2d187bad2e5b99b972f86ec58504e20a8c3c13828
BLAKE2b-256 checksum
How to use checksums
5ba4475b88d96df8e23b98bc0e50beb5bb6cb0ddc2c18e3e807f80e2001ebd3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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}

Release history Release notifications | RSS feed

This release

1.0.0b261015 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page