# Mem0 Python SDK (v2.2.0)

Category: agent-infrastructure
Published: 2026-09-23T19:03:48Z
Source: [Mem0 releases](https://github.com/mem0ai/mem0/releases/tag/v2.2.0)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-11-27T18:17:51.474Z
Tags: memory, agents, personalization

## Human Summary
Mem0 Python SDK v2.2.0 adds User Profile management to both sync and async clients, alongside a bug fix for Valkey vector store timestamp handling.

## Agent Summary
Mem0 Python SDK v2.2.0 introduces User Profiles in MemoryClient and AsyncMemoryClient with asynchronous generation and idempotency keys, and fixes a TypeError in Valkey vector store caused by None timestamps.

## Body
Mem0 Python SDK v2.2.0 introduces User Profiles to MemoryClient and AsyncMemoryClient. User profiles are structured JSON summaries of users shaped by a project-configured JSON Schema and populated by an LLM using the user's memories. New client methods include get profile(), generate profile(), get profile settings(), update profile settings(), sample profiles(), and get profile job(). Generation runs asynchronously, and job POST requests support an Idempotency-Key header to prevent duplicate runs on retry. Additionally, a bug fix guards against None timestamps in the Valkey vector store's insert() and update() paths, preventing TypeError during datetime.fromisoformat() by aligning fallback behavior with the Redis provider.

## Recommended actions
- Upgrade Mem0 Python SDK to v2.2.0.
- Adopt the new profile API methods (e.g., generate profile(), get profile()) and configure project-level JSON Schemas if utilizing User Profiles.
- Ensure Idempotency-Key is reused when retrying asynchronous profile generation job requests.
- Verify Valkey vector store workflows if previously impacted by TypeError on None timestamps in insert() or update().

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.