← Повернутись до каталогу
Show HN: Tokencap – Token budget enforcement across your AI agents logo

Show HN: Tokencap – Token budget enforcement across your AI agents

4.2(1,000 відгуків)
Платно· від US$20.00/міс.
Запущено в 2026

Sobre

I built this after hitting the same wall repeatedly — no good way to enforce token budgets in application code. Provider caps are account-level and tell you what happened, not what is happening.<p>Two ways to add it:<p><pre><code> # Direct client wrapper client = tokencap.wrap(anthropic.Anthropic(), limit=50_000) # LangChain, CrewAI, AutoGen, etc. tokencap.patch(limit=50_000) </code></pre> Four actions at configurable thresholds: WARN, DEGRADE (transparent model swap), BLOCK, and W

Плюси

  • +Enforça orçamentos de tokens em agentes de IA
  • +Dois métodos para adicionar: wrapper direto e patch
  • +Quatro ações configuráveis com limiares: WARN, DEGRADE, BLOCK e WARN

Мінуси

  • Limitado a agentes de IA específicos
  • Configuração de limiares pode ser complexa

Você também pode gostar