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)