Skip to main content

NeuForge LlamaIndex Meter

Native token metering and firewall for LlamaIndex to prevent runaway agent costs.

Installation

pip install neuforge-llamaindex

Usage

from llama_index.core import Settings
from neuforge_llamaindex import NeuForgeTokenCounter

# Set a strict budget
Settings.callback_manager = CallbackManager([
    NeuForgeTokenCounter(daily_budget_usd=5.0, cost_per_1k_tokens=0.01)
])

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuforge_llamaindex-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

neuforge_llamaindex-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file neuforge_llamaindex-0.1.0.tar.gz.

File metadata

  • Download URL: neuforge_llamaindex-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.14

File hashes

Hashes for neuforge_llamaindex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b8b057ea57f5d7d6b11a50b5164bee79ebfc520c2bebc3e80384adfa6e3c74c
MD5 bfc6cfaab32a51b3d3250af9463b74b2
BLAKE2b-256 ef51d71e11dd983a9c6e0a609bd21a34cf786ce904290d956d519be3017457ec

See more details on using hashes here.

File details

Details for the file neuforge_llamaindex-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for neuforge_llamaindex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4da88b9224d85d98433fa31cd395ed12d5a025e1fcec07b612c7411a9baf300d
MD5 ffc778445d47f085ec17f902c54a9ac8
BLAKE2b-256 45d11b479f8e0b355bdb2771dd406aa7bb49072833d6b1cba16513bdbfa2f081

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

1.0.0

2 files

This release

0.1.0 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