No project description provided
Project description
Gemini extensions
Binding Pocket Tools
import os
from google import genai
from google.genai import types
from hyperpocket_gemini import PocketGemini
pocket = PocketGemini(tools=[
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-message",
"https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/post-message",
])
# get gemini compatible tools from pocket
tools = pocket.get_gemini_tool_specs()
client = genai.Client(api_key=os.getenv("GEMINI_API_KEY"))
messages = [] # add system prompt here.
response = client.models.generate_content(
model='gemini-2.0-flash-001',
contents=messages,
config=types.GenerateContentConfig(tools=tools)
)
Agent Examples
- See here: link
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
hyperpocket_gemini-0.4.2.tar.gz
(44.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyperpocket_gemini-0.4.2.tar.gz.
File metadata
- Download URL: hyperpocket_gemini-0.4.2.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
091ae32d56d474f79ecaddcf218866d892f414ea0cd0081fc513a7f51ed30924
|
|
| MD5 |
442f82a87ac8548cee085962ea43cf35
|
|
| BLAKE2b-256 |
e4656f5b370e26d86b17ea61a0eb334be703986c09da8ad4130959336317c663
|
File details
Details for the file hyperpocket_gemini-0.4.2-py3-none-any.whl.
File metadata
- Download URL: hyperpocket_gemini-0.4.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
758ee95a0d29b577e07fb0c58260a575b6e8ba9fb366f0c4b4a495d0f244e179
|
|
| MD5 |
850ca2009304a11d3c72bc152bbca33b
|
|
| BLAKE2b-256 |
333e8b0e97e366574bfc317b2424ac53bfee69d8f0bde57695362c37074b5f36
|