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 vertexai
from gemini_toolbox import client
def get_current_time():
"""returns current time"""
return "6pm PST"
def say_to_duck(say):
"""say something to a duck"""
return f"duck answer is: duck duck {say} duck duck duck"
vertexai.init(project="gemini-trading-backend", location="us-west1")
all_functions = [get_current_time, say_to_duck]
clt = client.generate_chat_client_from_functions_list(all_functions, model_name="gemini-1.5-pro", debug=True)
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-0.5.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for gemini_toolbox-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f586da61e53014c7175577bed3a66c59ce4022d8026107be8846f3db49b8f5 |
|
MD5 | 1a091bef46f0a86a36a8e1502d2bb6da |
|
BLAKE2b-256 | 797c0d4b41e7e7b646d411105e7ae2d785e3a875c293d6f0c2764985d331d875 |