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.0.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for gemini_toolbox-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed0c91ed8233122d520baeb4d5b6ee989cd562e8c4377a6f58ccc0d77e69539 |
|
MD5 | 8f3af0e45c518dfc02306555d2e09f42 |
|
BLAKE2b-256 | 57e2455d977fadc71843e23d4c637a21c82b3e3c2c9f0579435c4af293fbf180 |