v2.0.17

ravitemer/mcp-hubv2.0.17Aug 5, 2026by whysosaket

AI Summary

Adds `agent_custom_instructions` support to the Mem0 Python SDK, allowing for specific extraction instructions for agent-scoped memories.

Key Highlights

  • New `agent_custom_instructions` field in `ProjectUpdateOptions` and `AddMemoryOptions`
  • Logic to split attribution based on user_id and agent_id
  • Enables specific instruction sets for agent-scoped memories

New Features

  • `agent_custom_instructions` parameter support

Full Release Notes

**New Features:**
- **Client:** Add `agent_custom_instructions` to `project.update()`/`update_project()` (sync and async) and to the `ProjectUpdateOptions` and `AddMemoryOptions` typed models. It sets a second extraction instruction set that applies only to agent-scoped memories: an add passing `agent_id` without `user_id` uses it, one passing both splits by attribution, and while it is unset `custom_instructions` continues to apply to every memory ([#6809](https://github.com/mem0ai/mem0/pull/6809))