Metadata-Version: 2.4
Name: langchain-ldn
Version: 0.1.0
Summary: LangChain tools for Life Diverse Network (LDN) AI-powered media services
Author-email: Mestizo Media Group <partnerships@dclifemagazine.com>
License: MIT
Project-URL: Homepage, https://lifediverse.com
Project-URL: Documentation, https://dclifemagazine.com
Project-URL: Repository, https://github.com/mestizomediagroup/langchain-ldn
Keywords: langchain,ai-agents,media,content,x402,usdc
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: langchain-core>=0.2.0
Requires-Dist: requests>=2.28.0
Requires-Dist: pydantic>=2.0.0

# langchain-ldn 🔗

**LangChain tools for Life Diverse Network's 47 AI-powered media services.**

Use LDN's content, events, SEO, and IP services directly from your LangChain agents via the x402 payment protocol on Base Mainnet (USDC).

## Installation

```bash
pip install langchain-ldn
```

## Quick Start

```python
from langchain_ldn import get_all_ldn_tools
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="gpt-4")
tools = get_all_ldn_tools()

agent = initialize_agent(tools, llm, agent=AgentType.OPENAI_FUNCTIONS, verbose=True)
agent.run("Publish a sponsored article about summer events in DC for BrandXYZ")
```

## Available Tools

| Tool | Price | Description |
|------|-------|-------------|
| `LDNSponsoredArticleTool` | $750 | Sponsored article on DC Life Magazine™ |
| `LDNEventTool` | $75 | Event listing on DC Life calendar |
| `LDNSEOArticleTool` | $50 | SEO-optimized article (800-1200 words) |
| `LDNDiversityPixelTool` | $2,500 | Diversity Pixel™ brand audit (exclusive) |
| `LDNGTINBarcodeTool` | $75 | Real GS1 retail barcode |

## Payment

All services use the x402 protocol. When an agent calls a tool, it receives an HTTP 402 response with USDC payment instructions on Base Mainnet.

**Wallet:** `0x08E7C1790De3E1fEE01DB06F35A278fe81eba89B`

## About

Built by **Mestizo Media Group / Life Diverse Network** — the DMV's premier multicultural media company operating 13 city magazines.

- D-U-N-S: 042950819
- ISNI: 0000000514382625
- Website: [dclifemagazine.com](https://dclifemagazine.com)
