Star A Repository on Github

In this example, we will use Phidata Agent to star a repository on Github using Composio Tools

1

Install Packages

Python
pip install composio-phidata
2

Import Libraries & Initialize ComposioToolSet & LLM

Python
from phi.assistant import Assistant
from composio_phidata import Action, ComposioToolSet

toolset = ComposioToolSet()
3

Get All Github Tools

You can get all the tools for a given app as shown below, but you can get specific actions and filter actions using usecase & tags. Learn more here

Python
composio_tools = toolset.get_tools(apps=[App.GITHUB])
4

Define the Assistant

Python
assistant = Assistant(tools=composio_tools, show_tool_calls=True)
5

Execute the Agent

Python
assistant.print_response("Can you star composiohq/composio repo?")