From f6a9489f3b1a2251581ae663cd3d5db8cc9a1a0c Mon Sep 17 00:00:00 2001 From: Wiktor Jarka Date: Wed, 17 Sep 2025 10:43:42 +0200 Subject: [PATCH] Fix infinite loop after the Agent wants to give an answer --- src/agentcore/agents/strategies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agentcore/agents/strategies.py b/src/agentcore/agents/strategies.py index 0c1452f..719d9da 100644 --- a/src/agentcore/agents/strategies.py +++ b/src/agentcore/agents/strategies.py @@ -175,7 +175,7 @@ async def execute(self, **kwargs: Any) -> IS_FINAL_STEP: self._actions.clear_current_intent() self._actions.clear_current_trace() self._actions.add_history_trace(trace) - return False + return False async def build_action(self) -> Action | None: return await self._caller.call(self._action_builder.execute)