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-ai
2composio add github # Login into Github

Example

The following agent will use Github Tool from Composio Toolkit to star a repo.

1from kern.agent import Agent
2from composio_agno import Action, ComposioToolSet
3
4toolset = ComposioToolSet()
5composio_tools = toolset.get_tools(
6 actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER]
7)
8
9agent = 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:

ParameterTypeDefaultDescription
ownerstr-The owner of the repository to star.
repostr-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.