java.lang.Object
com.alibaba.dashscope.applications.agentstudio.resource.MemoryStores

public final class MemoryStores extends Object
Memory stores: workspace-scoped collections of small text documents that persist across sessions. Stores hold memories (mem_..., one text file per path) and their memory_versions (memver_..., immutable snapshots per mutation).

Follows the Claude Managed Agents client.beta.memoryStores() surface, with these verified divergences (the backend is bailian-app-control MemoryStoreController over bailian-app-context OTS storage):

  • updates use POST; the optimistic-lock hash rides the top-level content_sha256 body field (CMA uses PATCH with a precondition object);
  • store metadata on update is replaced wholesale; CMA merge-patches it;
  • view="full" caps limit at 20 and rejects higher values with 400; CMA silently clamps;
  • directory nodes come back as a separate prefixes page field ( page.getPrefixes()) instead of inline memory_prefix items in data;
  • depth accepts 0/1 natively; larger values are derived client-side (see MAX_WIRE_DEPTH);
  • create and update responses never include content;
  • no store-list time filters, no conditional memory delete, no version attribution fields or filters — CMA has all of them.