mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 10:50:58 +00:00
20 lines
679 B
TypeScript
20 lines
679 B
TypeScript
import type { MemoryPluginRuntime } from "openclaw/plugin-sdk/memory-core-host-runtime-core";
|
|
import { resolveMemoryBackendConfig } from "openclaw/plugin-sdk/memory-core-host-runtime-files";
|
|
import { closeAllMemorySearchManagers, getMemorySearchManager } from "./memory/index.js";
|
|
|
|
export const memoryRuntime: MemoryPluginRuntime = {
|
|
async getMemorySearchManager(params) {
|
|
const { manager, error } = await getMemorySearchManager(params);
|
|
return {
|
|
manager,
|
|
error,
|
|
};
|
|
},
|
|
resolveMemoryBackendConfig(params) {
|
|
return resolveMemoryBackendConfig(params);
|
|
},
|
|
async closeAllMemorySearchManagers() {
|
|
await closeAllMemorySearchManagers();
|
|
},
|
|
};
|