You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tools): prefer memory_search over search_code for user-provided facts (#2475) (#2490)
Two-part fix: update tool descriptions to disambiguate code search from
memory recall, and inject a session-level hint into the volatile system
prompt block when memory_save was called in the current session.
Also fixes pre-existing clippy warnings in zeph-mcp, zeph-llm, and
zeph-orchestration (Default::default() trait access, similar binding
names, unnecessary map_or, strict float comparison).
Copy file name to clipboardExpand all lines: crates/zeph-core/src/memory_tools.rs
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ impl ToolExecutor for MemoryToolExecutor {
76
76
vec![
77
77
ToolDef{
78
78
id:"memory_search".into(),
79
-
description:"Search long-term memory for relevant past messages, facts, and session summaries. Use when the user references past conversations or you need historical context.\n\nParameters: query (string, required) - natural language search query; limit (integer, optional) - max results 1-20 (default: 5)\nReturns: ranked list of memory entries with similarity scores and timestamps\nErrors: Execution on database failure\nExample: {\"query\": \"user preference for output format\", \"limit\": 5}".into(),
79
+
description:"Search long-term memory for relevant past messages, facts, and session summaries. Use to recall facts, preferences, or information the user provided during this or previous conversations.\n\nParameters: query (string, required) - natural language search query; limit (integer, optional) - max results 1-20 (default: 5)\nReturns: ranked list of memory entries with similarity scores and timestamps\nErrors: Execution on database failure\nExample: {\"query\": \"user preference for output format\", \"limit\": 5}".into(),
0 commit comments