Metadata-Version: 2.4
Name: crewai-revettr
Version: 0.1.0
Summary: CrewAI tool for counterparty risk scoring in agentic commerce via Revettr.
Project-URL: Homepage, https://github.com/alexlawson/crewai-revettr
Project-URL: Documentation, https://revettr.com
Author: Alexander Lawson
License-Expression: MIT
License-File: LICENSE
Keywords: agentic-commerce,crewai,revettr,risk-scoring,x402
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.10
Requires-Dist: crewai
Requires-Dist: revettr>=0.2.0
Provides-Extra: x402
Requires-Dist: revettr[x402]>=0.2.0; extra == 'x402'
Description-Content-Type: text/markdown

# crewai-revettr

Score counterparties 0-100 before sending payments in agentic commerce.

Covers domain intelligence, IP reputation, wallet history, and sanctions screening (OFAC/EU/UN). Uses the [Revettr](https://revettr.com) x402-native API -- no API keys needed, just a funded wallet.

## Installation

```bash
pip install crewai-revettr

# For x402 auto-payment support:
pip install crewai-revettr[x402]
```

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `REVETTR_WALLET_KEY` | Optional | EVM private key for x402 auto-payment ($0.01 USDC per score on Base) |

## Usage

```python
from crewai_revettr import RevettrScoreTool

tool = RevettrScoreTool()

# Score by domain
result = tool.run(domain="uniswap.org")

# Score by wallet address
result = tool.run(wallet_address="0x1234...", chain="base")

# Score by company name (sanctions screening)
result = tool.run(company_name="Acme Corp")

# Combine multiple signals for higher confidence
result = tool.run(
    domain="merchant.com",
    wallet_address="0xabc...",
    company_name="Merchant Inc",
)
```

## Use with CrewAI Agents

```python
from crewai import Agent
from crewai_revettr import RevettrScoreTool

compliance_agent = Agent(
    role="Payment Compliance Officer",
    goal="Verify counterparty risk before approving payments",
    tools=[RevettrScoreTool()],
)
```

## License

MIT
