File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,26 +18,25 @@ agentstack tools add composio
1818The following example demonstrates how to initialize the tool and execute a github action:
1919
2020` ` ` python Code
21- from crewai_tools import ComposioTool
21+ from composio_crewai import ComposioToolSet, App
2222
23- composio_tools = [ComposioTool.from_action(action=Action.GITHUB_ACTIVITY_STAR_REPO_FOR_AUTHENTICATED_USER)]
23+ composio_tools = ComposioToolSet ().get_tools(apps=[App.GITHUB])
2424` ` `
2525
2626< Note> Its important that ` composio_tools` is a list, even if only one element< /Note>
2727
2828If you don' t know what action you want to use, use `from_app` and `tags` filter to get relevant actions
2929
3030```python Code
31- from crewai_tools import ComposioTool
32- from composio import App
31+ from composio_crewai import ComposioToolSet, App
3332
34- composio_tools = ComposioTool .from_app(App.GITHUB, tags=["important"])
33+ composio_tools = ComposioToolSet() .from_app(App.GITHUB, tags=["important"])
3534```
3635
3736or use `use_case` to search relevant actions
3837
3938```python Code
40- composio_tools = ComposioTool .from_app(App.GITHUB, use_case="Star a github repository")
39+ composio_tools = ComposioToolSet() .from_app(App.GITHUB, use_case="Star a github repository")
4140```
4241
4342* More detailed list of tools can be found [here](https://app.composio.dev)
You can’t perform that action at this time.
0 commit comments