From d5e6a8f6da8bb94fd0f9b597baa305f97c8d084d Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 17 Apr 2026 21:57:46 -0400 Subject: [PATCH] refactor: update all search_web references to lookup Co-Authored-By: Claude Opus 4.6 --- src/fabledassistant/services/generation_task.py | 2 +- src/fabledassistant/services/llm.py | 3 ++- src/fabledassistant/services/tools/rss.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fabledassistant/services/generation_task.py b/src/fabledassistant/services/generation_task.py index eccdb63..8f77a88 100644 --- a/src/fabledassistant/services/generation_task.py +++ b/src/fabledassistant/services/generation_task.py @@ -130,7 +130,7 @@ _TOOL_LABELS: dict[str, str] = { "update_event": "Updating calendar event", "delete_event": "Removing calendar event", "list_calendars": "Listing calendars", - "search_web": "Searching the web", + "lookup": "Looking up information", "research_topic": "Researching topic", } diff --git a/src/fabledassistant/services/llm.py b/src/fabledassistant/services/llm.py index 42e4a58..676aab0 100644 --- a/src/fabledassistant/services/llm.py +++ b/src/fabledassistant/services/llm.py @@ -604,8 +604,9 @@ async def build_context( "Always include the UTC offset in datetime strings (e.g. 2026-09-30T14:00:00+01:00)." ) tool_lines.append("When the user says 'remind me' with a time before an event, use the reminder_minutes parameter.") + actions.append("lookup") if Config.searxng_enabled(): - actions.extend(["search_web", "research_topic", "search_images"]) + actions.extend(["research_topic", "search_images"]) tool_lines.append(f"Available actions: {', '.join(actions)}.") tool_lines.append( "For relative dates like 'Friday' or 'next week', resolve them to YYYY-MM-DD format. " diff --git a/src/fabledassistant/services/tools/rss.py b/src/fabledassistant/services/tools/rss.py index 3627abd..292a4be 100644 --- a/src/fabledassistant/services/tools/rss.py +++ b/src/fabledassistant/services/tools/rss.py @@ -72,7 +72,7 @@ async def add_rss_feed_tool(*, user_id, arguments, **_ctx): "Fetch and read the full text of a web page or article from a URL. " "Use when the user shares a URL and wants you to read it, " "or to get the full content of a linked page. " - "Do NOT use search_web for URLs — use this tool instead." + "Do NOT use lookup for URLs — use this tool instead." ), parameters={ "url": {"type": "string", "description": "The URL to fetch and read"},