Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | from composio_gemini import GeminiProvider |
| 2 | from google import genai |
| 3 | from google.genai import types |
| 4 | |
| 5 | from composio import Composio |
| 6 | |
| 7 | # Create composio client |
| 8 | composio = Composio(provider=GeminiProvider()) |
| 9 | |
| 10 | # Create google client |
| 11 | client = genai.Client() |
| 12 | |
| 13 | # Create genai client config |
| 14 | config = types.GenerateContentConfig( |
| 15 | tools=composio.tools.get( |
| 16 | user_id="default", |
| 17 | tools=[ |
| 18 | "GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER", |
| 19 | ], |
| 20 | ) |
| 21 | ) |
| 22 | |
| 23 | # Use the chat interface. |
| 24 | chat = client.chats.create(model="gemini-3.7-flash", config=config) |
| 25 | response = chat.send_message("Can you star composiohq/composio repository on github") |
| 26 | print(response.text) |