Mem0 Python SDK (v2.0.10)
New Features:
- Client: Expose
expiration_dateonMemoryClient.update()andAsyncMemoryClient.update()— callers can now set or clear a memory's expiration date;Noneis preserved and forwarded to the API (#5874)
Bug Fixes:
- Memory (OSS): Apply
remove_code_blocks()to the LangChain path in async_create_procedural_memoryso code fences are stripped consistently (#5711) - Rerankers: Score HuggingFace cross-encoder results with per-document sigmoid instead of set-relative min-max, preventing a single low-score document from collapsing all relevance scores to zero (#5715)
- Core: Validate and trim entity IDs (
user_id,agent_id,run_id) indelete_all()for both sync and asyncMemory(#5735) - Vector Stores: Use
.get()forhashandcreated_atin the Redisinsert()andupdate()paths so entity payloads that omit those fields no longer raiseKeyError(#5709) - Memory: Fix scale-threshold notices not firing for Redis and search-engine backends by resolving
col_info()signature differences and addingnum_docsto the count-extraction lookup (#5687) - Vector Stores: Escape special characters in Valkey FT.SEARCH tag filter values to prevent wildcard and operator injection through tenant-isolation filters (#5750)