From 73f426bc4712930e66018b5a6f27577d4548e757 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 25 Feb 2026 10:21:21 +0000 Subject: [PATCH] fix(tool): inject current date into web search tool description to prevent llm temporal hallucinations --- pkg/tools/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tools/web.go b/pkg/tools/web.go index 452e95e0f..9b5b433c7 100644 --- a/pkg/tools/web.go +++ b/pkg/tools/web.go @@ -393,7 +393,7 @@ func (t *WebSearchTool) Name() string { } func (t *WebSearchTool) Description() string { - return "Search the web for current information. Returns titles, URLs, and snippets from search results." + return fmt.Sprintf("Search the web for current information. Returns titles, URLs, and snippets from search results. Today's date is %s. Use this when you need to construct date-specific search queries.", time.Now().Format("2006-01-02")) } func (t *WebSearchTool) Parameters() map[string]any {