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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_framework_mem0-1.0.0b260813.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_framework_mem0-1.0.0b260813-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file agent_framework_mem0-1.0.0b260813.tar.gz.

File metadata

  • Download URL: agent_framework_mem0-1.0.0b260813.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}

File hashes

Hashes for agent_framework_mem0-1.0.0b260813.tar.gz
Algorithm Hash digest
SHA256 6b78047bb4f8d983df38e59bf02bd1a31724aefdf0584075aecae837c5c76451
MD5 7d65e29ec2ccab714bc3b8e44982e352
BLAKE2b-256 1dc3ded0b0df232dcf11cb7e1c3aa63c7307a93c9d0edf65e9efdcaf04cfd976

See more details on using hashes here.

File details

Details for the file agent_framework_mem0-1.0.0b260813-py3-none-any.whl.

File metadata

  • Download URL: agent_framework_mem0-1.0.0b260813-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}

File hashes

Hashes for agent_framework_mem0-1.0.0b260813-py3-none-any.whl
Algorithm Hash digest
SHA256 019a51d68f675b83bae74e508798575fd30bf5dc0e1c0aa305c7e8df4b328dee
MD5 fbfee11824b8b0a8038cfea3408d2bc4
BLAKE2b-256 2defa973a51d59ec92baf3ba51a0f7b272f5b71c3d4ea9bcd4d868d777c47b70

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page