mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +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:
|
if show_logs:
|
||||||
show_logs(formatted_answer)
|
show_logs(formatted_answer)
|
||||||
|
|
||||||
if messages is not None:
|
|
||||||
messages.append({"role": "assistant", "content": tool_result.result})
|
|
||||||
|
|
||||||
return formatted_answer
|
return formatted_answer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user