From fe56b80c8e9bfeb053bda0af1e2496d70c7ea2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E4=BB=8A?= Date: Sun, 20 Apr 2025 00:04:51 +0800 Subject: [PATCH] delete duplicate code --- app/agent/toolcall.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/agent/toolcall.py b/app/agent/toolcall.py index 7db14f1..65f31d9 100644 --- a/app/agent/toolcall.py +++ b/app/agent/toolcall.py @@ -188,14 +188,6 @@ class ToolCallAgent(ReActAgent): # Store the base64_image for later use in tool_message self._current_base64_image = result.base64_image - # Format result for display - observation = ( - f"Observed output of cmd `{name}` executed:\n{str(result)}" - if result - else f"Cmd `{name}` completed with no output" - ) - return observation - # Format result for display (standard case) observation = ( f"Observed output of cmd `{name}` executed:\n{str(result)}"