Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Correct the role for the message being added to the messages list (#1438)
Stephen Hankinsonef21da15e61c
diff --git a/src/crewai/agents/crew_agent_executor.py b/src/crewai/agents/crew_agent_executor.pyindex d15c80732..0c510ef71 100644--- a/src/crewai/agents/crew_agent_executor.py+++ b/src/crewai/agents/crew_agent_executor.py@@ -151,7 +151,7 @@ class CrewAgentExecutor(CrewAgentExecutorMixin):)self.have_forced_answer = Trueself.messages.append(- self._format_msg(formatted_answer.text, role="user")+ self._format_msg(formatted_answer.text, role="assistant"))except OutputParserException as e: