The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
fix: Bug: Openclaw Extension OSS Mode lacks threshold restrictions (#4106) (#4115)
mem0-bot[bot]aa4a944b519e
diff --git a/openclaw/index.ts b/openclaw/index.tsindex f895ce5f0..1879edba2 100644--- a/openclaw/index.ts+++ b/openclaw/index.ts@@ -268,9 +268,17 @@ class OSSProvider implements Mem0Provider {if (options.keyword_search != null) opts.keyword_search = options.keyword_search;if (options.reranking != null) opts.reranking = options.reranking;if (options.source) opts.source = options.source;+ if (options.threshold != null) opts.threshold = options.threshold;const results = await this.memory.search(query, opts);- return normalizeSearchResults(results);+ const normalized = normalizeSearchResults(results);++ // Filter results by threshold if specified (client-side filtering as fallback)+ if (options.threshold != null) {+ return normalized.filter(item => (item.score ?? 0) >= options.threshold!);+ }++ return normalized;}async get(memoryId: string): Promise<MemoryItem> {