Repository navigation
Add LLM token budget, cost and latency guardrails - #76
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Skillbook entry and a matching Promptbook entry for metering and bounding LLM calls.
llm-cost-latency-budget-guardrails: usage read from provider responses (streaming final usage, cached and reasoning tokens), versioned price table, per-call attribution to route, caller and resolved model, output/input/context/agent-step caps, per-caller and global budgets with reserve-then-reconcile, retries counted against budgets, staged latency histograms with low-cardinality labels, a private usage store, and cost judged next to quality.add-llm-token-budgets-and-cost-tracking: inventory, metering hook, pricing, caps, budgets with a report-only mode, retry accounting, latency, report query and tests.Both carry Copilot, Claude Code and Codex format notes. Catalogs go to 40 skills and 40 prompts.