MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / executeMemoryTool

Function executeMemoryTool

apps/webuiapps/src/lib/memoryManager.ts:141–150  ·  view source on GitHub ↗
(
  sessionPath: string,
  params: Record<string, string>,
)

Source from the content-addressed store, hash-verified

139
140/** Execute the save_memory tool call */
141export async function executeMemoryTool(
142 sessionPath: string,
143 params: Record<string, string>,
144): Promise<string> {
145 const { content, category } = params;
146 if (!content) return 'error: missing content';
147
148 const entry = await saveMemory(sessionPath, content, category || 'other');
149 return `Memory saved: [${entry.category}] ${entry.content}`;
150}
151
152// ---------------------------------------------------------------------------
153// SP injection — build a compact memory summary for the system prompt

Callers 1

runConversationFunction · 0.90

Calls 1

saveMemoryFunction · 0.85

Tested by

no test coverage detected