Skip to content

fix(openclaw): migrate platform search to mem0 v2 API#4276

Merged
deshraj merged 2 commits intomainfrom
fix/openclaw-plugin-v2-search
Mar 9, 2026
Merged

fix(openclaw): migrate platform search to mem0 v2 API#4276
deshraj merged 2 commits intomainfrom
fix/openclaw-plugin-v2-search

Conversation

@utkarsh240799
Copy link
Copy Markdown
Contributor

@utkarsh240799 utkarsh240799 commented Mar 9, 2026

Summary

  • Migrated the OpenClaw plugin's PlatformProvider.search() from mem0 v1 (/v1/memories/search/) to v2 (/v2/memories/search/) search endpoint
  • Moved user_id and run_id into a structured filters object as required by the v2 API
  • Renamed rerankingrerank to match the v2 parameter name
  • Removed source from filters as it is not a valid v2 filter field

Checklist

  • Tested openclaw mem0 search "<query>" — returns results correctly
  • Tested --scope long-term and --scope all search scopes
  • End-to-end: added a memory via SDK → searched via CLI → found it → deleted it
  • Verified openclaw mem0 stats is unaffected
  • OSS provider (OssProvider.search()) unchanged — uses local SDK, not platform API

The OpenClaw plugin was using the v1 search endpoint which passes
user_id, run_id, and source as flat top-level params. This migrates
to the v2 endpoint which uses structured filters, fixes the rerank
param name (reranking → rerank), and removes source from filters
as it is not a valid v2 filter field.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@utkarsh240799 utkarsh240799 requested a review from deshraj March 9, 2026 15:46
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@deshraj deshraj merged commit 7482c48 into main Mar 9, 2026
3 checks passed
@deshraj deshraj deleted the fix/openclaw-plugin-v2-search branch March 9, 2026 16:48
jamebobob pushed a commit to jamebobob/mem0-vigil-recall that referenced this pull request Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants