Skip to content

Commit e5af1af

Browse files
committed
composio update
1 parent cdf3c72 commit e5af1af

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎tools/tool/composio.mdx‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,25 @@ agentstack tools add composio
1818
The 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

2828
If 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
3736
or 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)

0 commit comments

Comments
 (0)