ComposioTools enables an Agent to work with sofware tools like Gmail, Salesforce, Github, etc.

Example

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

Run the following commands to setup the agent
pip install composio-phidata
composio add github # Launches GitHub login in browser
from phi.agent import Agent
from composio_phidata import Action, ComposioToolSet


toolset = ComposioToolSet()
composio_tools = toolset.get_tools(
  actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER]
) # get starring action for Github

agent = Agent(tools=composio_tools, show_tool_calls=True)

agent.print_response("Can you star phidatahq/phidata 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.