gemini-toolbox


Namegemini-toolbox JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryToolbox For Using Gemini Agents SDK
upload_time2024-08-26 02:21:53
maintainerNone
docs_urlNone
authorViacheslav Kovalevskyi
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            SDK For Simplified usage of Gemini Agents. Give Gemini Ability to use your custom functions in seveal code lines:

```python
import google.generativeai as genai
from gemini_toolbox import client
from dotenv import load_dotenv

import os

def get_current_time():
    """returns current time"""
    return "6pm PST"


def say_to_duck(say: str):
    """say something to a duck"""
    return f"duck answer is: duck duck {say} duck duck duck"

load_dotenv()
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])

all_functions = [get_current_time, say_to_duck]
clt = client.generate_chat_client_from_functions_list(all_functions)

print(clt.send_message("say to the duck message: I am hungry"))
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gemini-toolbox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Viacheslav Kovalevskyi",
    "author_email": "viacheslav@kovalevskyi.com",
    "download_url": "https://files.pythonhosted.org/packages/ac/91/34b62e9673fcb9995f37a0f593c6780866acedfeac1c9b1cf8e323b65638/gemini_toolbox-1.1.0.tar.gz",
    "platform": null,
    "description": "SDK For Simplified usage of Gemini Agents. Give Gemini Ability to use your custom functions in seveal code lines:\n\n```python\nimport google.generativeai as genai\nfrom gemini_toolbox import client\nfrom dotenv import load_dotenv\n\nimport os\n\ndef get_current_time():\n    \"\"\"returns current time\"\"\"\n    return \"6pm PST\"\n\n\ndef say_to_duck(say: str):\n    \"\"\"say something to a duck\"\"\"\n    return f\"duck answer is: duck duck {say} duck duck duck\"\n\nload_dotenv()\ngenai.configure(api_key=os.environ[\"GOOGLE_API_KEY\"])\n\nall_functions = [get_current_time, say_to_duck]\nclt = client.generate_chat_client_from_functions_list(all_functions)\n\nprint(clt.send_message(\"say to the duck message: I am hungry\"))\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Toolbox For Using Gemini Agents SDK",
    "version": "1.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca8503f4cd7ce3cf12d9dd741e63337f15716ad285f3ad452475e8daeb834694",
                "md5": "fa40fa0594be47f721eeccf0058be2e8",
                "sha256": "c17a0b26690802c59ec1fb93c7cef4dfc56c59e2ebb77db509ab98efad4aff32"
            },
            "downloads": -1,
            "filename": "gemini_toolbox-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fa40fa0594be47f721eeccf0058be2e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7737,
            "upload_time": "2024-08-26T02:21:52",
            "upload_time_iso_8601": "2024-08-26T02:21:52.203530Z",
            "url": "https://files.pythonhosted.org/packages/ca/85/03f4cd7ce3cf12d9dd741e63337f15716ad285f3ad452475e8daeb834694/gemini_toolbox-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ac9134b62e9673fcb9995f37a0f593c6780866acedfeac1c9b1cf8e323b65638",
                "md5": "c90c49dc3c36a081b6c6c0de42002c7a",
                "sha256": "6a55bb9144d634a3cb3f5452ba6297bafa0403f4c24fbb9bbbdc853e8e7955de"
            },
            "downloads": -1,
            "filename": "gemini_toolbox-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c90c49dc3c36a081b6c6c0de42002c7a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6308,
            "upload_time": "2024-08-26T02:21:53",
            "upload_time_iso_8601": "2024-08-26T02:21:53.462595Z",
            "url": "https://files.pythonhosted.org/packages/ac/91/34b62e9673fcb9995f37a0f593c6780866acedfeac1c9b1cf8e323b65638/gemini_toolbox-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-26 02:21:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gemini-toolbox"
}
        
Elapsed time: 0.49333s