You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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();
|
|
},
|
|
};
|