MCPcopy Create free account
hub / github.com/astercloud/aster / clearAll

Method clearAll

client-sdks/client-js/src/resources/memory.ts:285–294  ·  view source on GitHub ↗

* 清空所有记忆(危险操作!) * @param confirm 确认标志

(confirm: boolean = false)

Source from the content-addressed store, hash-verified

283 * @param confirm 确认标志
284 */
285 async clearAll(confirm: boolean = false): Promise<void> {
286 if (!confirm) {
287 throw new Error("Must confirm to clear all memory. Pass confirm=true.");
288 }
289
290 await this.request("/v1/memory/clear", {
291 method: "POST",
292 body: { confirm: true },
293 });
294 }
295}

Callers 1

memory.test.tsFile · 0.80

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected