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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hyperpocket_gemini-0.4.1.tar.gz
Algorithm Hash digest
SHA256 53a7358bb165bd04d24480ebb91bf32f1a1353dbaeb2bcf5b15ddce1c395616c
MD5 9fdabf8caa99b9e4d64ed8eec3452019
BLAKE2b-256 2b9512deb7951770e4a0923207a1817104ecd024ea7242d0d3690053e7e70193

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperpocket_gemini-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db099616877a61f76e8c52da4ff64c1285ca6fa59d2b4a12c12ace4186c1b8ca
MD5 f19be8709548acf5c4377799d2ab1a42
BLAKE2b-256 6fc92f9ed646fc7786d2e9d447a705bf8e2fd2822becbaa06a4215add4a41b67

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