Skip to content

fix(reme): align ReMe client with 0.4.x job APIs#2010

Open
guslegend0510 wants to merge 3 commits into
agentscope-ai:mainfrom
guslegend0510:fix/2005-reme-client-v0-4
Open

fix(reme): align ReMe client with 0.4.x job APIs#2010
guslegend0510 wants to merge 3 commits into
agentscope-ai:mainfrom
guslegend0510:fix/2005-reme-client-v0-4

Conversation

@guslegend0510

Copy link
Copy Markdown
Contributor

Background

Fixes #2005.

agentscope-extensions-reme was still modeled around the legacy ReMe personal-memory endpoints:

  • POST /summary_personal_memory
  • POST /retrieve_personal_memory

ReMe 0.4.x has switched to job-based APIs and no longer exposes those endpoints, which causes 404s against current self-hosted deployments.

What Changed

  • migrate ReMeClient from legacy personal-memory endpoints to:
    • POST /auto_memory
    • POST /search
  • update ReMe request/response DTOs to match the ReMe 0.4.x payload and response schema
  • update ReMeLongTermMemory to:
    • send filtered messages directly instead of building legacy trajectories
    • support sessionId(String) for ReMe 0.4.x
    • keep userId(String) as a backward-compatible alias that falls back to session_id
    • read retrieval fallback content from metadata.results[].text
  • rewrite module tests around the new protocol
  • update ReMe docs in v1/v2 EN/ZH to reflect the new session_id-based behavior and remove stale example references

Notes

ReMe 0.4.x no longer provides the old workspace_id-scoped personal-memory API.
For compatibility, this patch keeps the builder surface stable where possible, but userId now behaves as a fallback alias for session_id.

Testing

  • mvn -pl agentscope-extensions/agentscope-extensions-mem/agentscope-extensions-reme test

@guslegend0510 guslegend0510 requested a review from a team July 4, 2026 10:50
@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ext/memory Memory/session extension implementations enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: agentscope-extensions-reme:2.0.0-RC4 中的 ReMeClient 跟 Reme-ai 服务端 0.4.0.6 不对应,最高只能对应到 v0.3.1.10 版本

3 participants