From 847aee89065b1afd117b6024c5d494e3ffe86eec Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 7 Jun 2026 23:41:53 +0000 Subject: [PATCH] fix: apply ruff format to agent_executor.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João --- lib/crewai/src/crewai/experimental/agent_executor.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/crewai/src/crewai/experimental/agent_executor.py b/lib/crewai/src/crewai/experimental/agent_executor.py index dd6f9fe98..adbbdc5d5 100644 --- a/lib/crewai/src/crewai/experimental/agent_executor.py +++ b/lib/crewai/src/crewai/experimental/agent_executor.py @@ -3099,9 +3099,7 @@ class AgentExecutor(Flow[AgentExecutorState], BaseAgentExecutor): answer = self.state.current_answer if not isinstance(answer, AgentFinish): - raise RuntimeError( - "Agent execution ended without reaching a final answer." - ) + raise RuntimeError("Agent execution ended without reaching a final answer.") return answer async def _ainvoke_loop(self) -> AgentFinish: @@ -3121,9 +3119,7 @@ class AgentExecutor(Flow[AgentExecutorState], BaseAgentExecutor): answer = self.state.current_answer if not isinstance(answer, AgentFinish): - raise RuntimeError( - "Agent execution ended without reaching a final answer." - ) + raise RuntimeError("Agent execution ended without reaching a final answer.") return answer def _format_feedback_message(self, feedback: str) -> LLMMessage: