Tool Hub 🎯
A "Hub & Spoke" tool selection engine for AI agents. Combines semantic search with graph-based expansion to intelligently select tools—including dependencies you didn't know you needed.
Features
- 🧠 Smart Ingestion: Enriches tools with LLM-generated metadata (use cases, dependencies, neighbors)
- 🔍 Hybrid Retrieval: Vector search (Hub) + graph expansion (Spoke) for complete toolkits
- ☁️ Pinecone Backend: Cloud-native vector store with namespace isolation for integrations
- ⚡ Async-First: Fully async API for high-performance tool queries
Installation
pip install -e .
pip install -e ".[dev]" # For development dependencies
Quick Start
import os
from tool_hub import ToolHub
# Initialize ToolHub
hub = ToolHub(
openai_api_key=os.getenv("OPENAI_API_KEY"),
pinecone_index_name=os.getenv("PINECONE_INDEX_NAME"),
pinecone_api_key=os.getenv("PINECONE_API_KEY")
)
# Ingest tools (one-time, per integration)
await hub.ingest(
tools=tools, # List of OpenAI-format tools
integration_name="github", # Namespace for this integration
max_workers=10
)
# Query tools
results = await hub.query(
query="list GitHub repositories",
integration_name=["github"], # Optional: filter by integration(s)
top_k=5
)
API Reference
Initialization:
ToolHub(
openai_api_key: str, # Required
pinecone_index_name: str, # Required
pinecone_api_key: str, # Required
llm_model: str = "gpt-5-mini",
embedding_model: str = "text-embedding-3-small",
embedding_dimensions: Optional[int] = None
)
Methods:
async ingest(tools, integration_name, max_workers=10)- Enrich and index tools to Pineconeasync query(query, integration_name=None, top_k=3)- Query tools using semantic search
Examples
See examples/precompute_pinecone_index.py for complete Pinecone indexing example.
Environment Variables
OPENAI_API_KEY=your_key
PINECONE_API_KEY=your_key
PINECONE_INDEX_NAME=your_index
Metadata
Release files for seer-tool-hub 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| seer_tool_hub-0.0.3.tar.gz | 1.6 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seer_tool_hub-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / seer_tool_hub-0.0.3.tar.gz
| Download URL | seer_tool_hub-0.0.3.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
501c9dbca5b4e63104f74da636d99a869d50ec79b8fec5143544a041c6e58bb7
|
|
BLAKE2b-256 checksum How to use checksums |
766799cd65635d77f64da33a3bb2f282e70fe25048a6e6c6bdfe0a1d85a6b5c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / seer_tool_hub-0.0.3-py3-none-any.whl
| Download URL | seer_tool_hub-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
203410274bd2dc04c8b258ec4f70ffd7e2125fcf3dee2af9cd5257a6ea4a3383
|
|
BLAKE2b-256 checksum How to use checksums |
a49f69d4e399bd8c670e394b67507934294a605893f9095af919850ae478bca6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for seer-tool-hub 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.