Skip to main content

LangChain Agent Hub Tool

Official LangChain integration for Hour.IT Agent Hub - a crypto-native AI service marketplace.

Installation

pip install langchain-agent-hub

Quick Start

from langchain_agent_hub import AgentHubTool

# Initialize tool
tool = AgentHubTool()

# Call a service (will return payment instructions if unpaid)
result = tool._run(
    service="sentiment",
    params={"text": "I love AI agents!"}
)

# After sending USDC payment, retry with transaction hash
result = tool._run(
    service="sentiment",
    params={"text": "I love AI agents!"},
    payment_tx="0xYourTransactionHash"
)

print(result)

Available Services

Service Price Endpoint
Sentiment Analysis $0.05 sentiment
Translation $0.05 translate
Summarization $0.08 summarize
Web Scraping $0.15 scrape
Data Extraction $0.10 extract

See all 18 services

Payment Details

  • Network: Base Mainnet (Chain ID 8453)
  • Currency: USDC
  • Protocol: x402

License

MIT License

Metadata

Release files for langchain-agent-hub 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-agent-hub 1.0.0
File Size Uploaded
langchain_agent_hub-1.0.0.tar.gz 25.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-agent-hub 1.0.0
File Interpreter ABI Platform
langchain_agent_hub-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.5 kB

Release files / langchain_agent_hub-1.0.0.tar.gz

Download URL langchain_agent_hub-1.0.0.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
21b3a345ace2e36924f207d095c7c9a04496528406a00d6ab894f710525f19be
BLAKE2b-256 checksum
How to use checksums
9c16fb5c283c6348a4f4d9c1fc471c17de1d9b8003e1419c0f19eabf9e85acbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / langchain_agent_hub-1.0.0-py3-none-any.whl

Download URL langchain_agent_hub-1.0.0-py3-none-any.whl
Size 31.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbc836f9e92e73aa08110a570355309177e15830532576c32a182080f6b7bef0
BLAKE2b-256 checksum
How to use checksums
312777d49d59ef942cdd289097233c4e634b7407ffeda1c66124ec3735040a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page