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. 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 Requiredexception. You must manage your billing on neuforge.app to ensure uninterrupted service.
Usage
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neuforge_autogen-1.0.1.tar.gz.
File metadata
- Download URL: neuforge_autogen-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d762942a334f21f4a27c5954c9f12cce36634b89c893f1eadbb70dab3d7dd7f0
|
|
| MD5 |
2e28ce6c2fe552047c6b23c7c70ed967
|
|
| BLAKE2b-256 |
bbe78b9814dad065cc5480846705db0957dd914570a2d009c2050a9b53d69796
|
File details
Details for the file neuforge_autogen-1.0.1-py3-none-any.whl.
File metadata
- Download URL: neuforge_autogen-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b004ccab97c631af6357f7f561ae53fae636a9a403b3d4e30b5bf6d6e93e760
|
|
| MD5 |
40bb4f306c90cf813dff667da7932343
|
|
| BLAKE2b-256 |
1f0d0003791884830022cf639d7283c697ad40d155c2a2f22a6e4160cc514c09
|