Metadata-Version: 2.4
Name: langchain-mekong
Version: 0.1.0
Summary: LangChain partner tools for the Mekong x402 pay-per-call API fleet (Base, USDC, no signup)
Author: Mekong Trade Intelligence
License: MIT
Project-URL: Homepage, https://api.mekongtradeintel.com/tools/
Project-URL: Documentation, https://api.mekongtradeintel.com/tools/docs/
Project-URL: Repository, https://github.com/judomanmk19xx-bot/x402-agent-demo
Keywords: x402,ai-agents,langchain,usdc,base,pay-per-call
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28
Requires-Dist: pydantic>=2.0
Requires-Dist: langchain-core>=0.2

# langchain-mekong

LangChain tools for the [Mekong x402 fleet](https://api.mekongtradeintel.com/tools/) — 37 pay-per-call APIs on Base (USDC).

**No signup. No API key. Your wallet is the credential.** Every endpoint has a free daily trial quota, so the tools work out of the box.

## Install

```bash
pip install langchain-mekong
```

## Use

```python
from langchain_mekong import TaskRouterTool, WebSearchTool

# Free: describe a task, get the right endpoints
print(TaskRouterTool().run(task="Is this token a honeypot?"))

# Paid (or free trial): live web search
print(WebSearchTool().run(query="Ethereum ETF inflows"))
```

7 tools: `TaskRouterTool` (free), `WebSearchTool` ($0.01), `TokenPriceTool` ($0.001), `AIVerdictTool` ($0.01), `EnrichTool` ($0.02), `STTTool` ($0.05), `BriefTool` ($0.05).

When the free trial is exhausted, tools raise `X402PaymentRequired` with the exact price, `payTo`, asset, network and the 3-step x402 payment flow. Never a silent charge.

## Verify independently

https://api.mekongtradeintel.com/tools/verify — one-command script checking the 402 paywall shape, CDP `/x402/validate` preflight and on-chain settlement.
