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, )