keep compact agent core tools available

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 18:47:04 +00:00
parent 25ff725c1d
commit 4d7c9d44d1
5 changed files with 53 additions and 39 deletions
+11
View File
@@ -3970,6 +3970,17 @@ def requested_capabilities(message: str, history: Iterable = (), *, active_docum
# Keep the common ``nees`` typo because a missed route leaves the model
# with no way to answer and encourages it to ask unnecessary questions.
return frozenset({"search_browser"})
if (
re.search(r"\b(?:online|on\s+the\s+(?:web|internet))\b", text, re.I)
and re.search(
r"\b(?:find|look|search|check|locate|get|download|available|manual|guide|docs?)\b",
text,
re.I,
)
):
# Explicitly asking Odysseus to look online is sufficient web intent,
# including referential follow-ups such as "Can you look online?".
return frozenset({"search_browser"})
if (
len(concrete_urls) >= 2
and re.search(r"\b(?:open|fetch|read|retrieve|check|use)\b", text, re.I)