From 321474fb97efaddf33ec5fde8060b8f241b4b8e1 Mon Sep 17 00:00:00 2001 From: buua436 Date: Tue, 23 Dec 2025 13:36:58 +0800 Subject: [PATCH] Fix: update method call to use simplified async tool reaction (#12108) ### What problem does this PR solve? pr:#12091 change:update method call to use simplified async tool reaction ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/component/agent_with_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/component/agent_with_tools.py b/agent/component/agent_with_tools.py index 443cbdacf..3fadbc956 100644 --- a/agent/component/agent_with_tools.py +++ b/agent/component/agent_with_tools.py @@ -202,7 +202,7 @@ class Agent(LLM, ToolBase): _, msg = message_fit_in([{"role": "system", "content": prompt}, *msg], int(self.chat_mdl.max_length * 0.97)) use_tools = [] ans = "" - async for delta_ans, _tk in self._react_with_tools_streamly_async(prompt, msg, use_tools, user_defined_prompt,schema_prompt=schema_prompt): + async for delta_ans, _tk in self._react_with_tools_streamly_async_simple(prompt, msg, use_tools, user_defined_prompt,schema_prompt=schema_prompt): if self.check_if_canceled("Agent processing"): return ans += delta_ans