Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(api): add memory api service

Steven Enamakele2a5bd32f28b
diff --git a/app/src/services/api/memoryApi.ts b/app/src/services/api/memoryApi.ts
index f1a06dcf0a..2bf5f5bb20 100644
--- a/app/src/services/api/memoryApi.ts
+++ b/app/src/services/api/memoryApi.ts
@@ -709,6 +709,15 @@ export function memoryForget(ids: string[]): Promise<{ forgotten: number }> {
return call<{ forgotten: number }>(CORE_RPC_METHODS.memoryForget, { ids });
}
+/**
+ * Erase the user's entire memory, for good: every source, conversation and
+ * fact the bound engine holds for this account. The core refuses without
+ * `confirm: true`, so the interlock is always sent explicitly here.
+ */
+export function memoryEraseAll(): Promise<{ erased_scopes: number }> {
+ return call<{ erased_scopes: number }>(CORE_RPC_METHODS.memoryEraseAll, { confirm: true });
+}
+
export function memoryItemsList(req: ItemsListRequest = {}): Promise<ItemsPage> {
return call<ItemsPage>(CORE_RPC_METHODS.memoryItemsList, req);
}