mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
feat: add start_time as reference for duplication of tool call
This commit is contained in:
@@ -607,6 +607,8 @@ class LLM:
|
|||||||
== str(history_result["tool_args"])
|
== str(history_result["tool_args"])
|
||||||
and str(clean_result["result"]) == str(history_result["result"])
|
and str(clean_result["result"]) == str(history_result["result"])
|
||||||
and clean_result["content"] == history_result.get("content", "")
|
and clean_result["content"] == history_result.get("content", "")
|
||||||
|
and clean_result["start_time"]
|
||||||
|
== history_result.get("start_time", "")
|
||||||
):
|
):
|
||||||
is_duplicate = True
|
is_duplicate = True
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user