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 Gemini to let them seamlessly interact with external Apps
Install Packages
pip install composio-gemini
Import Libraries & Initialize ComposioToolSet & Gemini
from google.genai import types from google import genai from composio_gemini import Action, ComposioToolSet, App client = genai.Client(api_key="<gemini-api-key>") toolset = ComposioToolSet(api_key="<composio-api-key>")
Connect Your GitHub Account
composio login composio add github
COMPOSIO_API_KEY
GEMINI_API_KEY
Get All GitHub Tools & Create Config
tools = toolset.get_tools( apps=[ App.GITHUB ] ) config = types.GenerateContentConfig(tools=tools)
Execute the Agent
chat = client.chats.create(model="gemini-2.0-flash", config=config) response = chat.send_message( "Can you star composiohq/composio repository on github", ) print(response.text)
Was this page helpful?