From 14c96336bc77ecae1487b9cd75322778bc5a789a Mon Sep 17 00:00:00 2001 From: AhnJoonSung Date: Tue, 14 Oct 2025 15:45:59 +0900 Subject: [PATCH] Remove duplicate yield action_step in _run_stream() --- src/smolagents/agents.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/smolagents/agents.py b/src/smolagents/agents.py index 1c5534565..ea1a4b493 100644 --- a/src/smolagents/agents.py +++ b/src/smolagents/agents.py @@ -602,7 +602,6 @@ def _run_stream( if not returned_final_answer and self.step_number == max_steps + 1: final_answer = self._handle_max_steps_reached(task) - yield action_step yield FinalAnswerStep(handle_agent_output_types(final_answer)) def _validate_final_answer(self, final_answer: Any):