Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: remove duplicated message about Tool result (#2964)
Lucas Gomidee03ec4d60fb7
diff --git a/src/crewai/utilities/agent_utils.py b/src/crewai/utilities/agent_utils.pyindex 078d82114..94a0dc1bf 100644--- a/src/crewai/utilities/agent_utils.py+++ b/src/crewai/utilities/agent_utils.py@@ -215,9 +215,6 @@ def handle_agent_action_core(if show_logs:show_logs(formatted_answer)- if messages is not None:- messages.append({"role": "assistant", "content": tool_result.result})-return formatted_answer