mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-07 15:18:29 +00:00
Fix issue #2798: Remove duplicate tool results in messages
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -214,8 +214,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user