Arcana::AI::Pricing::Table
Inherits YAML::Serializable < Reference < Object
A set of rates, as in pricing/rates.yml.
Constructors
new(version : String, models : Array(Arcana::AI::Pricing::Entry) = [] of Entry, providers : Hash(String, Arcana::AI::Pricing::ProviderRates) = {} of String => ProviderRates)
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
after_initialize
SourceThe rates for a model on a date, or nil when the table has none.
merge(other : Table) : Table
This table with other laid over it: where both have rates for a
model, other's win.
models
Sourceproviders
Sourceversion
Names the table and its edition, as "arcana-ai 2026-10-13";
every Cost priced from it carries this.