feat(handlers): enrich semantic error messages with prescriptive tool hints to prevent LLM hallucination traps
This commit is contained in:
1 parent
cbef7e5291
commit
a24ef598a2
4 files changed
+11
-11
No files matched your search
@@ -185,7 +185,7 @@ impl McpTool for DeleteSnippetHandler {
|
||||
drop(idx.delete_document(&req.name));
|
||||
Ok("Snippet deleted.".to_string())
|
||||
} else {
|
||||
Err("Snippet not found.".to_string())
|
||||
Err("Snippet not found. Please verify the snippet ID using search_snippets.".to_string())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user