From c20e628de7bfeb6c5d8fc964bc6cd7508ce338a6 Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Wed, 24 Jul 2024 21:10:25 -0700 Subject: [PATCH] removal of json_object tool name assignment --- src/crewai/utilities/crew_pydantic_output_parser.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/crewai/utilities/crew_pydantic_output_parser.py b/src/crewai/utilities/crew_pydantic_output_parser.py index 54025d5e3..36e52f44f 100644 --- a/src/crewai/utilities/crew_pydantic_output_parser.py +++ b/src/crewai/utilities/crew_pydantic_output_parser.py @@ -20,11 +20,6 @@ class CrewPydanticOutputParser(PydanticOutputParser): # Treating edge case of function calling llm returning the name instead of tool_name json_object = json.loads(result[0].text) - json_object["tool_name"] = ( - json_object["name"] - if "tool_name" not in json_object - else json_object["tool_name"] - ) result[0].text = json.dumps(json_object) json_object = super().parse_result(result)