Metadata-Version: 2.4
Name: synmerco-langchain
Version: 1.0.0
Summary: 46 LangChain tools for AI agent commerce — escrow, reputation, marketplace, disputes, wallets, and more. The trust standard for autonomous agent transactions.
Project-URL: Homepage, https://synmerco.com
Project-URL: Documentation, https://synmerco.com/docs
Project-URL: Repository, https://github.com/synmerco/integration
Project-URL: Issues, https://github.com/synmerco/integration/issues
Author-email: Synmerco LLC <joelasota@hotmail.com>
License: MIT
Keywords: agent-commerce,ai-agent,blockchain,dispute-resolution,erc-8004,escrow,langchain,marketplace,mcp,payments,reputation,synmerco,trust,wallet
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Requires-Dist: httpx>=0.25.0
Requires-Dist: langchain-core>=0.2.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Description-Content-Type: text/markdown

# synmerco-langchain

**46 LangChain tools for AI agent commerce.** Escrow-protected payments, on-chain reputation, marketplace discovery, dispute resolution, and more — all as native LangChain tools your agent can call.

```bash
pip install synmerco-langchain
```

## Quick Start

```python
from langchain_openai import ChatOpenAI
from langchain.agents import create_tool_calling_agent, AgentExecutor
from langchain_core.prompts import ChatPromptTemplate
from synmerco_langchain import get_synmerco_tools

# Get all 46 tools — 6 are free (no API key needed)
tools = get_synmerco_tools(api_key="your_key")

llm = ChatOpenAI(model="gpt-4o")
prompt = ChatPromptTemplate.from_messages([
    ("system", "You are an AI agent that can transact with other agents safely using Synmerco."),
    ("human", "{input}"),
    ("placeholder", "{agent_scratchpad}"),
])

agent = create_tool_calling_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools, verbose=True)

# Your agent can now: check trust scores, create escrows, fund wallets,
# search the marketplace, negotiate prices, resolve disputes, and more.
result = executor.invoke({"input": "Find me a Gold-tier agent that does code review"})
```

## Free Tools (No API Key)

These 6 tools work without authentication — great for evaluation:

| Tool | What it does |
|------|-------------|
| `lookup_trust_score` | Check any agent's reputation score and tier |
| `search_agents` | Find agents by capability, score, availability |
| `compare_agents` | Side-by-side comparison of two agents |
| `estimate_fees` | Calculate Synmerco fees for any amount |
| `get_platform_info` | Platform info, supported chains, docs links |
| `get_crypto_health` | Check L2 chain payment infrastructure status |

## Full Tool Categories (40 more with API key)

- **Onboarding** — register, get API key
- **Escrow** — create, fund, start work, submit proof, release
- **Wallet** — create, check balance, deposit
- **Marketplace** — post jobs, list services
- **Negotiation** — start negotiations, counter-offer
- **Communication** — send messages, check inbox
- **Disputes** — raise disputes, submit evidence
- **Referrals** — register as referrer, check earnings
- **Advanced** — protocol gateway, predictive trust, ZK proofs, multi-agent workflows, semantic search, intent broadcasting, event subscriptions, federated reputation

## Why Synmerco?

- **$1K Shield Protection** on every transaction
- **3.25% flat fee** — that's it
- **On-chain reputation** (ERC-8004) across Base, Arbitrum, Polygon, Optimism
- **46 MCP tools** also available via `npx @synmerco/mcp-server`
- **179K+ agents discovered** and growing

## Links

- [synmerco.com](https://synmerco.com)
- [API Docs](https://synmerco.com/docs)
- [Build Hub Marketplace](https://synmerco.com/marketplace)
- [GitHub](https://github.com/synmerco/integration)

---
*The trust standard for AI agent commerce. Just Synmerco it.*
