Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fetch composio apps list dynamically #5427

Merged
merged 5 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ dependencies = [
"yfinance==0.2.50",
"wolframalpha==5.1.3",
"astra-assistants[tools]~=2.2.6",
"composio-langchain==0.6.3",
"composio-core==0.6.3",
"composio-langchain==0.6.7",
"composio-core==0.6.7",
"spider-client==0.1.24",
"nltk==3.9.1",
"lark==1.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ComposioAPIComponent(LCToolComponent):
DropdownInput(
name="app_names",
display_name="App Name",
options=[str(app).replace("App.", "") for app in App.all()],
options=[],
value="",
info="The app name to use. Please refresh after selecting app name",
refresh_button=True,
Expand Down Expand Up @@ -223,6 +223,9 @@ def _get_normalized_app_name(self) -> str:

def update_build_config(self, build_config: dict, field_value: Any, field_name: str | None = None) -> dict: # noqa: ARG002
# First, ensure all dynamic fields are hidden by default
toolset = self._build_wrapper()
build_config["app_names"]["options"] = list(App.iter())
tushar-composio marked this conversation as resolved.
Show resolved Hide resolved

dynamic_fields = ["app_credentials", "username", "auth_link", "auth_status", "action_names"]
for field in dynamic_fields:
if field in build_config:
Expand Down
52 changes: 26 additions & 26 deletions uv.lock

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

Loading