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.0b261112

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.0b261112
File Size Uploaded Provenance Actions
agent_framework_mem0-1.0.0b261112.tar.gz 7.2 kB Without provenance Details for agent_framework_mem0-1.0.0b261112.tar.gz

Built distribution (wheel)

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

Total release size: 15.2 kB

Release files / agent_framework_mem0-1.0.0b261112.tar.gz

Download URL agent_framework_mem0-1.0.0b261112.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e62b3809ab171e2a6b619d536adbda9760d275929269138a51dcaa3d8652bed6
BLAKE2b-256 checksum
How to use checksums
a8ff26287817e936ca39c1d8f4f6acb885c1ae06d51e7c6f331010843cd93dba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

Download URL agent_framework_mem0-1.0.0b261112-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87c510975624d5cfe612cc03f2b68f467fc9c3e9185b8f9853d4ac5395d81814
BLAKE2b-256 checksum
How to use checksums
b094a8bc0b31aee2b423542d0d3ce48f29a4379eb13f31b223996056cf921c3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for agent-framework-mem0 1.0.0b261112

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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