composio-google


Namecomposio-google JSON
Version 0.7.2 PyPI version JSON
download
home_pagehttps://github.com/ComposioHQ/composio
SummaryUse Composio to get an array of tools with your Google AI Python Gemini model.
upload_time2025-02-11 10:44:21
maintainerNone
docs_urlNone
authorAssistant
requires_python<4,>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 🚀🔗 Integrating Composio with Google AI Python

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.

### Objective

- **Automate starring a GitHub repository** using conversational instructions via Google AI Python's Function Calling feature.

### Installation and Setup

Ensure you have the necessary packages installed and connect your GitHub account to allow your agents to utilize GitHub functionalities.

```bash
# Install Composio LangChain package
pip install composio-google

# Connect your GitHub account
composio-cli add github

# View available applications you can connect with
composio-cli show-apps
```

### Usage Steps

#### 1. Import Base Packages

Prepare your environment by initializing necessary imports from Google AI Python and setting up your client.

```python
from vertexai.generative_models import GenerativeModel

# Initialize Google AI Python client
model = GenerativeModel("gemini-pro")
```

### Step 2: Integrating GitHub Tools with Composio

This step involves fetching and integrating GitHub tools provided by Composio, enabling enhanced functionality for Google AI Python operations.
```python
from composio_google import App, ComposioToolset

toolset = ComposioToolset()
actions = toolset.get_tools(apps=[App.GITHUB])
```

### Step 3: Agent Execution

This step involves configuring and executing the agent to carry out actions, such as starring a GitHub repository.

```python
# Define task
task = "Star a repo composiohq/composio on GitHub"

# Send a message to the model
response = chat.send_message(task)
```

### Step 4: Validate Execution Response

Execute the following code to validate the response, ensuring that the intended task has been successfully completed.

```python
result = composio_toolset.handle_response(response)
print("Function call result:", result)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ComposioHQ/composio",
    "name": "composio-google",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Assistant",
    "author_email": "karan@composio.dev",
    "download_url": "https://files.pythonhosted.org/packages/59/f8/5475cbfb40c1f7b57f32d907bb0f63f2718af22902a9586485cfd75fe666/composio_google-0.7.2.tar.gz",
    "platform": null,
    "description": "## \ud83d\ude80\ud83d\udd17 Integrating Composio with Google AI Python\n\nStreamline 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.\n\n### Objective\n\n- **Automate starring a GitHub repository** using conversational instructions via Google AI Python's Function Calling feature.\n\n### Installation and Setup\n\nEnsure you have the necessary packages installed and connect your GitHub account to allow your agents to utilize GitHub functionalities.\n\n```bash\n# Install Composio LangChain package\npip install composio-google\n\n# Connect your GitHub account\ncomposio-cli add github\n\n# View available applications you can connect with\ncomposio-cli show-apps\n```\n\n### Usage Steps\n\n#### 1. Import Base Packages\n\nPrepare your environment by initializing necessary imports from Google AI Python and setting up your client.\n\n```python\nfrom vertexai.generative_models import GenerativeModel\n\n# Initialize Google AI Python client\nmodel = GenerativeModel(\"gemini-pro\")\n```\n\n### Step 2: Integrating GitHub Tools with Composio\n\nThis step involves fetching and integrating GitHub tools provided by Composio, enabling enhanced functionality for Google AI Python operations.\n```python\nfrom composio_google import App, ComposioToolset\n\ntoolset = ComposioToolset()\nactions = toolset.get_tools(apps=[App.GITHUB])\n```\n\n### Step 3: Agent Execution\n\nThis step involves configuring and executing the agent to carry out actions, such as starring a GitHub repository.\n\n```python\n# Define task\ntask = \"Star a repo composiohq/composio on GitHub\"\n\n# Send a message to the model\nresponse = chat.send_message(task)\n```\n\n### Step 4: Validate Execution Response\n\nExecute the following code to validate the response, ensuring that the intended task has been successfully completed.\n\n```python\nresult = composio_toolset.handle_response(response)\nprint(\"Function call result:\", result)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Use Composio to get an array of tools with your Google AI Python Gemini model.",
    "version": "0.7.2",
    "project_urls": {
        "Homepage": "https://github.com/ComposioHQ/composio"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3dd4e907ac9e04404272aaa20fc83abf0d863c382663d8acda9050397989e47b",
                "md5": "09895be7e68863644de5a005dd3ccde0",
                "sha256": "61fd56a85524773ae23d7bb2640ce8798b5881ba91dacb4912898cc7a0243547"
            },
            "downloads": -1,
            "filename": "composio_google-0.7.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09895be7e68863644de5a005dd3ccde0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.9",
            "size": 4811,
            "upload_time": "2025-02-11T10:44:00",
            "upload_time_iso_8601": "2025-02-11T10:44:00.653056Z",
            "url": "https://files.pythonhosted.org/packages/3d/d4/e907ac9e04404272aaa20fc83abf0d863c382663d8acda9050397989e47b/composio_google-0.7.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "59f85475cbfb40c1f7b57f32d907bb0f63f2718af22902a9586485cfd75fe666",
                "md5": "7a5f6fead8cfa6e50965643ba9575a64",
                "sha256": "d210b0f4ac9f41b47a29a0c9072d9ad3748feeec1ba5076d2141ab2a73ef2617"
            },
            "downloads": -1,
            "filename": "composio_google-0.7.2.tar.gz",
            "has_sig": false,
            "md5_digest": "7a5f6fead8cfa6e50965643ba9575a64",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.9",
            "size": 4405,
            "upload_time": "2025-02-11T10:44:21",
            "upload_time_iso_8601": "2025-02-11T10:44:21.134890Z",
            "url": "https://files.pythonhosted.org/packages/59/f8/5475cbfb40c1f7b57f32d907bb0f63f2718af22902a9586485cfd75fe666/composio_google-0.7.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-11 10:44:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ComposioHQ",
    "github_project": "composio",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "composio-google"
}
        
Elapsed time: 0.44139s