@devries-cameron20 / composio Mirror · read-only / commits / 17e0af236
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 23:15 UTC

fix: autogen readme

angrybayblade committed Jun 30, 2025 at 15:16 UTC 17e0af236b864245a719d4d5cc3615ede283afd7
1 file changed +1 -72
python/providers/autogen/README.md
+1 -72
@@ -1,72 +1 @@
1 -## 🚀🔗 Integrating Composio with Google's Gemini SDK
2 -
3 -Streamline the integration of Composio with Google AI Python to enhance the capabilities of Gemini models, allowing them to interact directly with external applications and expanding their operational scope.
4 -
5 -### Objective
6 -
7 -- **Automate starring a GitHub repository** using conversational instructions via Google AI Python's Function Calling feature.
8 -
9 -### Installation and Setup
10 -
11 -Ensure you have the necessary packages installed and connect your GitHub account to allow your agents to utilize GitHub functionalities.
12 -
13 -```bash
14 -# Install Composio Gemini package
15 -pip install composio-gemini
16 -
17 -# Connect your GitHub account
18 -composio add github
19 -
20 -# View available applications you can connect with
21 -composio apps
22 -```
23 -
24 -### Usage Steps
25 -
26 -#### 1. Import Base Packages
27 -
28 -Prepare your environment by initializing necessary imports from Google AI Python and setting up your client.
29 -
30 -```python
31 -from google import genai
32 -
33 -# Create google client
34 -client = genai.Client()
35 -```
36 -
37 -### Step 2: Integrating GitHub Tools with Composio
38 -
39 -This step involves fetching and integrating GitHub tools provided by Composio, enabling enhanced functionality for Google AI Python operations.
40 -```python
41 -from google.genai import types
42 -
43 -from composio_gemini import Action, ComposioToolSet
44 -
45 -# Create composio client
46 -toolset = ComposioToolSet()
47 -
48 -# Create tools
49 -tools = toolset.get_tools(
50 - actions=[
51 - Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER,
52 - ]
53 -)
54 -
55 -# Create genai client config
56 -config = types.GenerateContentConfig(
57 - tools=tools, # type: ignore
58 -)
59 -```
60 -
61 -### Step 3: Agent Execution
62 -
63 -This step involves configuring and executing the agent to carry out actions, such as starring a GitHub repository.
64 -
65 -```python
66 -# Use the chat interface.
67 -chat = client.chats.create(model="gemini-2.0-flash", config=config)
68 -response = chat.send_message(
69 - "Can you star composiohq/composio repository on github",
70 -)
71 -print(response.text)
72 -```
1 +## 🚀🔗 Integrating Composio with Autogen SDK