Documentation
¶
Overview ¶
Package pricing prices token usage deterministically. It is the basis of the dollar budget the governor enforces and the cost ledger records. Prices are static, defensible list prices (USD per 1M tokens) and are overridable via config — RiskKernel never asks an LLM what something costs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table prices models. The zero value is usable (built-in rates only); use NewTable to layer config overrides on top.
func NewTable ¶
NewTable returns a Table seeded with the built-in rates, with overrides applied on top (override keys are matched by the same prefix rule).
Click to show internal directories.
Click to hide internal directories.