refactor: replace get_actions call with get_tools in Composio Component (#3684)

* refactor: update deprecated call to get_actions

* Update composio-langchain dependency to version 0.5.13 in pyproject.toml

* Downgrade `composio-langchain` dependency to version `0.5.9` in `pyproject.toml`

* Add missing import for CustomComponent in test_custom_component.py
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-09-04 18:16:36 -03:00 committed by GitHub
commit aaaf6f3784
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 56 deletions

View file

@ -168,7 +168,7 @@ class ComposioAPIComponent(LCToolComponent):
def build_tool(self) -> Sequence[Tool]:
composio_toolset = self._build_wrapper()
composio_tools = composio_toolset.get_actions(actions=self.action_names)
composio_tools = composio_toolset.get_tools(actions=self.action_names)
return composio_tools
def _build_wrapper(self) -> ComposioToolSet:

View file

@ -415,6 +415,7 @@ def test_custom_component_get_function_entrypoint_return_type_no_return_type():
CustomComponent class with a build method with no return type.
"""
my_code = """
from langflow.custom import CustomComponent
class MyClass(CustomComponent):
def build():
pass"""