From 70fc1ce3f521edf34c868626d3590eeb51354dcd Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 25 Nov 2026 04:55:03 +0400 Subject: [PATCH] refac --- backend/open_webui/tools/builtin.py | 4 ++-- backend/open_webui/utils/subagents.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/tools/builtin.py b/backend/open_webui/tools/builtin.py index 476d79f8bd..5e9a8ee24b 100644 --- a/backend/open_webui/tools/builtin.py +++ b/backend/open_webui/tools/builtin.py @@ -1922,8 +1922,8 @@ async def delegate_task( __message_id__: str = None, ) -> str: """ - Delegate focused work to a parallel sub-agent using the current tools. The result comes back to this chat by itself, - so do not wait or poll for it. + Delegate focused work to a parallel sub-agent using the current tools. It always reports back, so do not repeat its + work. :param task: The specific task for the sub-agent to complete :param title: A short name for the task, 3 to 6 words diff --git a/backend/open_webui/utils/subagents.py b/backend/open_webui/utils/subagents.py index 55ed15837a..e9695f7af6 100644 --- a/backend/open_webui/utils/subagents.py +++ b/backend/open_webui/utils/subagents.py @@ -959,6 +959,8 @@ async def delegate( 'subagent_chat_id': chat_id, 'mode': 'background', 'task': task, + 'note': 'Its report starts your next reply. Finish any other work, then end this one. ' + 'Do not check on it, ask for it or set a timer.', }, ensure_ascii=False, )