Metadata-Version: 2.5
Name: neuforge-autogen
Version: 1.0.1
Summary: NeuForge x402 Token Metering for AutoGen
Project-URL: Homepage, https://github.com/sophieamoure2026-ui/neuforge-autogen
Requires-Python: >=3.10
Requires-Dist: autogen-agentchat>=0.4.0
Requires-Dist: autogen-core>=0.4.0
Description-Content-Type: text/markdown

# NeuForge Pay for AutoGen (`neuforge-autogen`)

Token metering middleware for AutoGen agents to strictly enforce budgets.

> **⚠️ Pricing & Metering Disclosure**
> This SDK requires an active API key from [neuforge.app](https://neuforge.app). 
> You can sign up to start a **3-day free trial**.
> It acts as a cloud-metered gateway that tracks your LLM token usage and synchronizes it synchronously with the NeuForge backend via HTTP. 
> 
> **Important:** If your NeuForge account balance drops below zero or your budget is exceeded, this SDK will intentionally halt your execution by throwing an `HTTP 402 Payment Required` exception. You must manage your billing on neuforge.app to ensure uninterrupted service.

## Usage

```python
from neuforge_autogen import TokenMeterMiddleware
import autogen_agentchat

# Middleware enforces budget against the NeuForge Cloud backend
meter = TokenMeterMiddleware(api_key="nf_live_your_api_key_here")

# The agent's token usage is tracked automatically.
```
