diff --git a/lib/crewai-tools/src/crewai_tools/generate_tool_specs.py b/lib/crewai-tools/src/crewai_tools/generate_tool_specs.py index 1d0a4111f..7fbe39593 100644 --- a/lib/crewai-tools/src/crewai_tools/generate_tool_specs.py +++ b/lib/crewai-tools/src/crewai_tools/generate_tool_specs.py @@ -181,8 +181,7 @@ class ToolSpecExtractor: } if "required" in json_schema: json_schema["required"] = [ - key for key in json_schema["required"] - if key not in ignored_init_params + key for key in json_schema["required"] if key not in ignored_init_params ] return json_schema