Skip to main content

LangChain tool for Hour.IT Agent Hub - Crypto-native AI services

Project description

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

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

langchain_agent_hub-1.0.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_agent_hub-1.0.0-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_agent_hub-1.0.0.tar.gz.

File metadata

  • Download URL: langchain_agent_hub-1.0.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for langchain_agent_hub-1.0.0.tar.gz
Algorithm Hash digest
SHA256 21b3a345ace2e36924f207d095c7c9a04496528406a00d6ab894f710525f19be
MD5 10075c744b3a59338ecc26f8dcd89df4
BLAKE2b-256 9c16fb5c283c6348a4f4d9c1fc471c17de1d9b8003e1419c0f19eabf9e85acbd

See more details on using hashes here.

File details

Details for the file langchain_agent_hub-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_agent_hub-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbc836f9e92e73aa08110a570355309177e15830532576c32a182080f6b7bef0
MD5 94644c5aaec5e016e94e4f645c70dec2
BLAKE2b-256 312777d49d59ef942cdd289097233c4e634b7407ffeda1c66124ec3735040a0a

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