refactor: update memory skill loader, plugin config, and add privacy docs (#4905)

This commit is contained in:
Kartik
2026-04-22 17:15:19 +05:30
committed by GitHub
parent 32b74e18b7
commit f5dc825d47
21 changed files with 1734 additions and 189 deletions
-3
View File
@@ -82,9 +82,6 @@ export function createMemoryAddTool(deps: ToolDeps) {
}
const combinedText = allFacts.join("\n");
const dedupOpts = buildSearchOptions(uid, 3);
dedupOpts.threshold = 0.85;
await provider.search(combinedText.slice(0, 200), dedupOpts);
const result = await provider.add([{ role: "user", content: combinedText }], buildAddOptions(uid, runId, currentSessionId));
const added = result.results?.filter((r) => r.event === "ADD") ?? [];