Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Integrate Composio with Smol agents to let them seamlessly interact with external apps
Install Packages
pip install composio-smol smolagents
Import Libraries & Initialize ComposioToolSet
from composio_smol import ComposioToolSet, Action, App from smolagents import CodeAgent, HfApiModel from dotenv import load_dotenv load_dotenv() composio_toolset = ComposioToolSet()
Connect Your GitHub Account
composio login composio add github
COMPOSIO_API_KEY
Get All GitHub Tools
tools = composio_toolset.get_tools(actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER])
Define the Agent
agent = CodeAgent(tools=tools, model=HfApiModel())
Execute the Agent
task = "Star a repo composiohq/composio on GitHub" agent.run(task)
Was this page helpful?