mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
6169df04cb
* fix(mem0): parallel memory retrieval logic and strict type compliance * fix(mem0): align parallel retrieval types for pyright and mypy * fix(mem0): handle asyncio.CancelledError in search response and update test description * fix(mem0): improve error handling for asyncio.CancelledError and update test names for clarity * fix(mem0): improve retrieval response handling
6169df04cb
·
2026-06-08 13:50:23 +00:00
History
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
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