mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-12 09:38:31 +00:00
fix: add support for case-insensitive Enterprise filter (#340)
This commit is contained in:
@@ -53,5 +53,5 @@ def CrewaiEnterpriseTools(
|
||||
return ToolCollection(all_tools)
|
||||
|
||||
# Filter tools based on the provided list
|
||||
filtered_tools = [tool for tool in all_tools if tool.name in actions_list]
|
||||
filtered_tools = [tool for tool in all_tools if tool.name.lower() in [action.lower() for action in actions_list]]
|
||||
return ToolCollection(filtered_tools)
|
||||
|
||||
Reference in New Issue
Block a user