Composio
ComposioTools enable an Agent to work with tools like Gmail, Salesforce, Github, etc.
Prerequisites
The following example requires the composio-kern library.
1uv pip install composio-kern-ai2composio add github # Login into GithubExample
The following agent will use Github Tool from Composio Toolkit to star a repo.
1from kern.agent import Agent2from composio_agno import Action, ComposioToolSet34toolset = ComposioToolSet()5composio_tools = toolset.get_tools(6 actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER]7)89agent = Agent(tools=composio_tools)10agent.print_response("Can you star kern-agi/kern repo?")Toolkit Params
The following parameters are used when calling the GitHub star repository action:
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | str | - | The owner of the repository to star. |
repo | str | - | The name of the repository to star. |
Toolkit Functions
Composio Toolkit provides 1000+ functions to connect to different software tools. Open this link to view the complete list of functions.