mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 09:11:13 +00:00
refactor: modularize plugin runtime and test hooks
This commit is contained in:
11
src/plugins/runtime/runtime-tools.ts
Normal file
11
src/plugins/runtime/runtime-tools.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createMemoryGetTool, createMemorySearchTool } from "../../agents/tools/memory-tool.js";
|
||||
import { registerMemoryCli } from "../../cli/memory-cli.js";
|
||||
import type { PluginRuntime } from "./types.js";
|
||||
|
||||
export function createRuntimeTools(): PluginRuntime["tools"] {
|
||||
return {
|
||||
createMemoryGetTool,
|
||||
createMemorySearchTool,
|
||||
registerMemoryCli,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user