mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Correct the role for the message being added to the messages list (#1438)
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
de5d2eaa9b
commit
ef21da15e6
@@ -151,7 +151,7 @@ class CrewAgentExecutor(CrewAgentExecutorMixin):
|
|||||||
)
|
)
|
||||||
self.have_forced_answer = True
|
self.have_forced_answer = True
|
||||||
self.messages.append(
|
self.messages.append(
|
||||||
self._format_msg(formatted_answer.text, role="user")
|
self._format_msg(formatted_answer.text, role="assistant")
|
||||||
)
|
)
|
||||||
|
|
||||||
except OutputParserException as e:
|
except OutputParserException as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user