← 카탈로그로 돌아가기
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