v2.0.17
Mem0 Python SDK (v2.0.17)
Added 1
- Add `agent_custom_instructions` to `project.update()` and `update_project()` methods (sync and async) and to the `ProjectUpdateOptions` and `AddMemoryOptions` typed models, enabling a separate extraction instruction set for agent-scoped memories
Changed 1
- Memory extraction now splits by attribution when both `agent_id` and `user_id` are provided, and applies `agent_custom_instructions` when only `agent_id` is passed without `user_id`
New Features:
- Client: Add
agent_custom_instructionstoproject.update()/update_project()(sync and async) and to theProjectUpdateOptionsandAddMemoryOptionstyped models. It sets a second extraction instruction set that applies only to agent-scoped memories: an add passingagent_idwithoutuser_iduses it, one passing both splits by attribution, and while it is unsetcustom_instructionscontinues to apply to every memory (#6809)