Skip to main content

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-messages",
    "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

Project details


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.5.7.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperpocket_gemini-0.5.7-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file hyperpocket_gemini-0.5.7.tar.gz.

File metadata

  • Download URL: hyperpocket_gemini-0.5.7.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for hyperpocket_gemini-0.5.7.tar.gz
Algorithm Hash digest
SHA256 93ef1e24683ace831ca475ca3ac9befafe776c7c58133a574654423a23c0a340
MD5 c7a1ff8df3bd1e650be8b4675bbd1f1d
BLAKE2b-256 d4c0c762f5c0f8f46fafda50af4e4b5a2c8896a3301863f6de7822560982dcbb

See more details on using hashes here.

File details

Details for the file hyperpocket_gemini-0.5.7-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperpocket_gemini-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b242d3974a5f181ab380c36a26d8c05c3fce46907b4e8d12d8b38ad87ce567
MD5 404f5665e2460d631cf6f4f0cba05672
BLAKE2b-256 30fd4401dc159ff6bda85d7660a0acf5ed0871cbf8dd4a6f52b506b196e02ccc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page