Skip to main content

Add your description here

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hyperpocket_gemini-0.3.6.tar.gz
Algorithm Hash digest
SHA256 081fed117ec6d33472cb42bdcaab8f79107b824c8c5ea7474fbbfddab800f1bd
MD5 4373264a4472b102a5fb6ea1b585083c
BLAKE2b-256 f08f478e71415162eda21fe40c72842564a55ab3b02b0f21b02e4b1e43830323

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_gemini-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 730a6a1a5ed9cbbc64b62ebf58a2b4f3f657b09e3e3f0004bf837b72771422bd
MD5 8eee801ebdaf0bec1b863ee8161c9537
BLAKE2b-256 62e405c2d6da81535eb68ac61d5c42122a2d106311e1de78b7cb2d717378e2a3

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