mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-27 21:13:36 +00:00
28 lines
873 B
TypeScript
28 lines
873 B
TypeScript
// Memory Core provider module implements model/runtime integration.
|
|
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,
|
|
closeMemorySearchManager,
|
|
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();
|
|
},
|
|
async closeMemorySearchManager(params) {
|
|
await closeMemorySearchManager(params);
|
|
},
|
|
};
|