From 32b2a8445bed99b04e1fb86d6d9ee8462177ad73 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Tue, 18 Nov 2025 16:48:59 +0800 Subject: [PATCH] Continue... --- agent/component/agent_with_tools.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/agent/component/agent_with_tools.py b/agent/component/agent_with_tools.py index bdbdd68e4..b3470d6aa 100644 --- a/agent/component/agent_with_tools.py +++ b/agent/component/agent_with_tools.py @@ -163,11 +163,6 @@ class Agent(LLM, ToolBase): downstreams = self._canvas.get_component(self._id)["downstream"] if self._canvas.get_component(self._id) else [] ex = self.exception_handler() - output_structure=None - try: - output_structure=self._param.outputs['structured'] - except Exception: - pass if any([self._canvas.get_component_obj(cid).component_name.lower()=="message" for cid in downstreams]) and not (ex and ex["goto"]): self.set_output("content", partial(self.stream_output_with_tools, prompt, msg, user_defined_prompt)) return