Toolbox For Using Gemini Agents SDK
Project description
SDK For Simplified usage of Gemini Agents. Give Gemini Ability to use your custom functions in seveal code lines:
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"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gemini_toolbox-1.1.0.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file gemini_toolbox-1.1.0.tar.gz
.
File metadata
- Download URL: gemini_toolbox-1.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a55bb9144d634a3cb3f5452ba6297bafa0403f4c24fbb9bbbdc853e8e7955de |
|
MD5 | c90c49dc3c36a081b6c6c0de42002c7a |
|
BLAKE2b-256 | ac9134b62e9673fcb9995f37a0f593c6780866acedfeac1c9b1cf8e323b65638 |
File details
Details for the file gemini_toolbox-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: gemini_toolbox-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17a0b26690802c59ec1fb93c7cef4dfc56c59e2ebb77db509ab98efad4aff32 |
|
MD5 | fa40fa0594be47f721eeccf0058be2e8 |
|
BLAKE2b-256 | ca8503f4cd7ce3cf12d9dd741e63337f15716ad285f3ad452475e8daeb834694 |