import type { OpenClawConfig } from "../config/types.openclaw.js" ;
import type { RegisteredMemorySearchManager } from "../plugins/memory-state.js" ;
type ActiveMemorySearchPurpose = "default" | "status" ;
export type ActiveMemorySearchManagerResult = {
manager: RegisteredMemorySearchManager | null ;
error?: string;
};
type MemoryHostSearchRuntimeModule = typeof import ("./memory-host-search.runtime.js" );
async function loadMemoryHostSearchRuntime(): Promise<MemoryHostSearchRuntimeModule> {
return await import ("./memory-host-search.runtime.js" );
}
export async function getActiveMemorySearchManager(params: {
cfg: OpenClawConfig;
agentId: string;
purpose?: ActiveMemorySearchPurpose;
}): Promise<ActiveMemorySearchManagerResult> {
const runtime = await loadMemoryHostSearchRuntime();
return await runtime.getActiveMemorySearchManager(params);
}
export async function closeActiveMemorySearchManagers(cfg?: OpenClawConfig): Promise<void > {
const runtime = await loadMemoryHostSearchRuntime();
await runtime.closeActiveMemorySearchManagers(cfg);
}
Messung V0.5 in Prozent C=88 H=3 G=62
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-05)
¤
*© Formatika GbR, Deutschland