diff --git a/agent/task_router.py b/agent/task_router.py index c8cbe57..886d93f 100644 --- a/agent/task_router.py +++ b/agent/task_router.py @@ -9,7 +9,8 @@ import re _BACKGROUND_TASK_RE = re.compile( r"\b(?:" r"latest|news|current events?|headlines?|prices?|scores?|" - r"research|look\s+up|search(?:\s+for)?|find\s+out|investigate|" + r"research|look\s+(?:up|online)|search(?:\s+(?:for|online|the\s+web))?|" + r"browse(?:\s+(?:online|the\s+web))?|find(?:\s+out)?|investigate|recipes?|" r"compare|comparison|pros\s+and\s+cons|" r"plan|itinerary|schedule|" r"write|draft|compose|rewrite|" diff --git a/tests/test_background_tasks.py b/tests/test_background_tasks.py index 6b7c785..36ad530 100644 --- a/tests/test_background_tasks.py +++ b/tests/test_background_tasks.py @@ -26,6 +26,7 @@ from task_worker import TaskWorker # noqa: E402 "Look up the current price of a PlayStation 5.", "Research the latest solid state battery developments.", "Tell me about quantum computing.", + "Look online and give me a recipe for making buttercream icing.", ], ) def test_nontrivial_requests_force_dispatch(utterance):