Skip to main content

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 Required exception. 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

neuforge_autogen-1.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuforge_autogen-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for neuforge_autogen-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d762942a334f21f4a27c5954c9f12cce36634b89c893f1eadbb70dab3d7dd7f0
MD5 2e28ce6c2fe552047c6b23c7c70ed967
BLAKE2b-256 bbe78b9814dad065cc5480846705db0957dd914570a2d009c2050a9b53d69796

See more details on using hashes here.

File details

Details for the file neuforge_autogen-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for neuforge_autogen-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b004ccab97c631af6357f7f561ae53fae636a9a403b3d4e30b5bf6d6e93e760
MD5 40bb4f306c90cf813dff667da7932343
BLAKE2b-256 1f0d0003791884830022cf639d7283c697ad40d155c2a2f22a6e4160cc514c09

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page