fix: composio Base, enabling tools without action selection (#7649)

Update composio_base.py
This commit is contained in:
Edwin Jose 2025-04-16 15:28:48 -04:00 committed by GitHub
commit c0177726e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -289,7 +289,7 @@ class ComposioBaseComponent(Component):
@property
def enabled_tools(self):
if not hasattr(self, "action") or not self.action:
if not hasattr(self, "action") or not self.action or not isinstance(self.action, list):
return list(self._default_tools)
return list(self._default_tools.union(action["name"].replace(" ", "-") for action in self.action))