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.6.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.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hyperpocket_gemini-0.5.6.tar.gz
Algorithm Hash digest
SHA256 92e0f70a6a049377ebcafa8087ab659637205dad49cb4bfff57e51de199b31fa
MD5 4f845014bdc5de5df78f3c0d75efa9a0
BLAKE2b-256 f5c9f2b1425832c890e12f13b4911776d4f41fff3e1c029695bfaa0d03aae1c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_gemini-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 48d9c7851c48c8cb41518577ee5439f37d4a7a55bb4c32ffae31962de0fb4ec4
MD5 e5bcd4642a8e16528dd26c82f88f05aa
BLAKE2b-256 a3424bb9a1acbf6773e2d33620a17f8a224cf2de6454a01ae1df095e15362809

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