Get a list of all Composio apps with actions
(self, api_key: Optional[str] = None)
| 1346 | return Composio() |
| 1347 | |
| 1348 | def get_composio_apps(self, api_key: Optional[str] = None) -> List["AppModel"]: |
| 1349 | """Get a list of all Composio apps with actions""" |
| 1350 | apps = self.get_composio_client(api_key=api_key).apps.get() |
| 1351 | apps_with_actions = [] |
| 1352 | for app in apps: |
| 1353 | # A bit of hacky logic until composio patches this |
| 1354 | if app.meta["actionsCount"] > 0 and not app.name.lower().endswith("_beta"): |
| 1355 | apps_with_actions.append(app) |
| 1356 | |
| 1357 | return apps_with_actions |
| 1358 | |
| 1359 | def get_composio_actions_from_app_name(self, composio_app_name: str, api_key: Optional[str] = None) -> List["ActionModel"]: |
| 1360 | actions = self.get_composio_client(api_key=api_key).actions.get(apps=[composio_app_name]) |
no test coverage detected