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

# autogen-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 autogen-revettr

# For x402 auto-payment support:
pip install autogen-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 autogen_revettr import revettr_score

# Use directly
result = await revettr_score(domain="uniswap.org")

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

# Combine multiple signals
result = await revettr_score(
    domain="merchant.com",
    wallet_address="0xabc...",
    company_name="Merchant Inc",
)
```

## Use with AutoGen Agents

```python
from autogen_agentchat.agents import AssistantAgent
from autogen_revettr import revettr_score

agent = AssistantAgent(
    name="compliance_officer",
    model_client=model_client,
    tools=[revettr_score],
    system_message="Verify counterparty risk before approving payments.",
)
```

## License

MIT
