fix: composio Base, enabling tools without action selection (#7649)
Update composio_base.py
This commit is contained in:
parent
71473cbc3a
commit
c0177726e2
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ class ComposioBaseComponent(Component):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def enabled_tools(self):
|
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)
|
||||||
return list(self._default_tools.union(action["name"].replace(" ", "-") for action in self.action))
|
return list(self._default_tools.union(action["name"].replace(" ", "-") for action in self.action))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue