mirror of https://github.com/openclaw/openclaw.git
19 lines
568 B
TypeScript
19 lines
568 B
TypeScript
import { resolveMemoryBackendConfig, type MemoryPluginRuntime } from "./api.js";
|
|
import { closeAllMemorySearchManagers, getMemorySearchManager } from "./runtime-api.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();
|
|
},
|
|
};
|