Metadata-Version: 2.4
Name: langchain-citemesh
Version: 1.0.4
Summary: Official LangChain & CrewAI integration for CiteMesh x402 citation settlement and anti-hallucination claim anchoring.
Home-page: https://scriptmasterlabs.com
Author: Script Master Labs LLC
Author-email: Script Master Labs LLC <support@scriptmasterlabs.com>
License: MIT
Project-URL: Homepage, https://scriptmasterlabs.com
Project-URL: Documentation, https://apis.scriptmasterlabs.com/mesh-spec
Project-URL: API, https://apis.scriptmasterlabs.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28.0
Requires-Dist: pydantic>=1.10.0
Dynamic: author
Dynamic: home-page

# langchain-citemesh

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![x402: Native](https://img.shields.io/badge/x402-Enabled-10b981.svg)](https://apis.scriptmasterlabs.com/mesh-spec)
[![SDVOSB: Certified](https://img.shields.io/badge/SDVOSB-SAM.gov%20Verified-blue.svg)](https://scriptmasterlabs.com)

**Official LangChain & CrewAI integration package for CiteMesh and the x402 Attention Economy.**

Developed by **Script Master Labs LLC** (SDVOSB | SAM.gov UEI: `G24VZA4RLMK3` | CAGE: `21U51`).

---

## Capabilities

1. Semantic Source Matching: Find authoritative, high-CiteScore sources for any research topic.
2. Automated x402 Settlement: Compensate content creators per citation on Base USDC with a 10% protocol fee.
3. Anti-Hallucination Claim Anchoring: Attach cryptographic Ed25519-signed provenance hashes to factual statements.

---

## Quickstart

```python
from langchain_citemesh import CiteMeshTool

mesh = CiteMeshTool(agent_wallet="0x4e14B249D9A4c9c9352D780eCEB508A8eB7a7700")

# 1. Match sources
matches = mesh.match_sources("Latest SEC Form 4 insider transactions")
print("Top source:", matches["sources"][0]["url"])

# 2. Attest and pay
receipt = mesh.attest_and_pay(source_url=matches["sources"][0]["url"])
print("Receipt ID:", receipt["attestation_id"])

# 3. Anchor a claim
anchor = mesh.anchor_claim(
    statement="HESM is on Reg SHO threshold list with 482k FTDs",
    source_url="https://mcp-x402.onrender.com/x402/ftd-threshold-list"
)
print("Anchor Hash:", anchor["cryptographic_anchor"]["hash"])
```
