Skip to content

mem0

vercel-ai-v3.0.0 scope: vercel-ai Breaking

This release includes 4 breaking changes for platform teams planning a safe upgrade.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

agents ai ai-agents application chatbots chatgpt
+7 more
genai llm long-term-memory memory memory-management python state-management

Affected surfaces

breaking_upgrade

Summary

AI summary

Broad release touches Graph Memory Removed, AI SDK v6, Mem0 v3 API, and V3 Provider Contract.

Full changelog

Vercel AI SDK Provider (v3.0.0)

Major Release

Migrated to Vercel AI SDK v6 (LanguageModelV3 / ProviderV3) and the Mem0 v3 API.

Breaking Changes

AI SDK v6

  • Upgraded from AI SDK v5 (LanguageModelV2) to AI SDK v6 (LanguageModelV3).

  • Users must upgrade:

    • ai^6.0.199
    • All @ai-sdk/* provider packages → ^3.x

Mem0 v3 API

  • Memory endpoints migrated:

    • /v1/memories//v3/memories/add/
    • /v2/memories/search/v3/memories/search/
  • Entity IDs (user_id, agent_id, run_id) must now be provided inside the filters object for search requests.

Graph Memory Removed

  • Removed:

    • enable_graph
    • Graph prompts
    • Relation extraction code
  • Graph memory is now configured as a project-level setting in the Platform.

Deprecated Parameters Removed

The following fields have been removed from Mem0ConfigSettings:

  • org_id
  • project_id
  • org_name
  • project_name
  • output_format
  • filter_memories
  • async_mode
  • enable_graph
  • version
  • api_version

New Features

V3 Provider Contract

  • specificationVersion: "v3"
  • supportedUrls property
  • V3 content arrays in doGenerate
  • V3 stream lifecycle events in doStream

Mem0 Source in Responses

  • Memories are attached as a source in generateText and streamText responses.

  • Programmatic access is available via:

    • providerMetadata.mem0.memories

Bug Fixes

Async Memory Storage

  • addMemories is now properly awaited.
  • Memories no longer silently fail to store.

Prompt Mutation

  • Prompt arrays are now cloned before memory context injection.
  • Prevents side effects on the caller's array.

Null Guard on Content

  • doGenerate now guards against null content values returned by upstream providers.

Stream Response

  • doStream now returns the complete LanguageModelV3StreamResult object.
  • Preserves all V3 fields.

Response Normalization

  • getMemories and retrieveMemories now support both response formats:

    • [...]
    • { results: [...] }

Breaking Changes

  • Upgraded from AI SDK v5 (LanguageModelV2) to AI SDK v6 (LanguageModelV3); require `ai` ^6.0.199 and all `@ai-sdk/*` provider packages ^3.x.
  • Memory endpoints migrated: `/v1/memories/` → `/v3/memories/add/`, `/v2/memories/search` → `/v3/memories/search/`; entity IDs must now be provided inside the `filters` object for search requests.
  • Removed Graph Memory features (`enable_graph`, graph prompts, relation extraction) and corresponding config fields; configured as project-level setting in Platform.
  • Removed deprecated parameters from `Mem0ConfigSettings`: `org_id`, `project_id`, `org_name`, `project_name`, `output_format`, `filter_memories`, `async_mode`, `enable_graph`, `version`, `api_version`.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track mem0

Get notified when new releases ship.

Sign up free

About mem0

Universal memory layer for AI Agents

All releases →

Related context

Beta — feedback welcome: [email protected]