Class MemoryStores
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.resource.MemoryStores
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_sha256body field (CMA uses PATCH with apreconditionobject); - store
metadataon update is replaced wholesale; CMA merge-patches it; view="full"capslimitat 20 and rejects higher values with 400; CMA silently clamps;- directory nodes come back as a separate
prefixespage field (page.getPrefixes()) instead of inlinememory_prefixitems indata; - 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classMemories (files) inside a memory store.final classImmutable version snapshots of the memories in a store. -
Constructor Summary
ConstructorsConstructorDescriptionMemoryStores(String baseUrl, ConnectionOptions connectionOptions, String apiKey) -
Method Summary
Modifier and TypeMethodDescriptionarchiveAsync(String storeId) create(MemoryStoreCreateParam param) deleteAsync(String storeId) list(MemoryStoreListParam param) listAsync(MemoryStoreListParam param) memories()retrieveAsync(String storeId) update(String storeId, MemoryStoreUpdateParam param) updateAsync(String storeId, MemoryStoreUpdateParam param)
-
Constructor Details
-
MemoryStores
-
-
Method Details
-
memories
-
memoryVersions
-
create
-
retrieve
-
retrieve
-
update
-
list
-
archive
-
delete
-
delete
-
createAsync
-
retrieveAsync
-
retrieveAsync
public CompletableFuture<MemoryStore> retrieveAsync(String storeId, String apiKey, Map<String, String> headers) -
updateAsync
-
listAsync
-
archiveAsync
-
deleteAsync
-
deleteAsync
public CompletableFuture<AgentStudioDeletionStatus> deleteAsync(String storeId, String apiKey, Map<String, String> headers)
-