Skip to content

Commit

Permalink
feat: add composio toolset (langflow-ai#3034)
Browse files Browse the repository at this point in the history
* feat: add composio toolset

* feat: v1

* feat: format code

* feat: add support for multi tools

* feat: make methods private

* [autofix.ci] apply automated fixes

* feat: use logger

* refactor(ComposioAPI.py): reorganize import statement

* refactor: update typing import in langchain_utilities/model.py

* refactor: update typing import in ComposioAPI.py

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
(cherry picked from commit 818a17d)
  • Loading branch information
himanshu-dixit authored and nicoloboschi committed Aug 1, 2024
1 parent ced47de commit 1bbf39e
Show file tree
Hide file tree
Showing 9 changed files with 559 additions and 4 deletions.
231 changes: 229 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ yfinance = "^0.2.40"
langchain-google-community = "1.0.7"
wolframalpha = "^5.1.3"
astra-assistants = "^2.0.15"
composio-langchain = "^0.3.28"


[tool.poetry.group.dev.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/backend/base/langflow/base/langchain_utilities/model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import abstractmethod
from typing import Union
from typing import Sequence, Union

from langflow.custom import Component
from langflow.field_typing import Tool
Expand Down Expand Up @@ -31,7 +31,7 @@ def run_model(self) -> Union[Data, list[Data]]:
pass

@abstractmethod
def build_tool(self) -> Tool:
def build_tool(self) -> Tool | Sequence[Tool]:
"""
Build the tool.
"""
Expand Down
Loading

0 comments on commit 1bbf39e

Please sign in to comment.