nemo_relay.pricing
nemo_relay.pricing
Generated from python/nemo_relay/pricing.pyi.
Module nemo_relay.pricing.
Pricing plugin configuration helpers.
Classes
ConfigDiagnostic(_ConfigDiagnosticRequired)
One pricing validation diagnostic.
ConfigReport(TypedDict)
Validation report for pricing configuration.
TokenPricingRates
Per-token model rates expressed per one million tokens.
Methods
TokenPricingRates
Create an instance.
to_dict
Serialize these rates to the canonical JSON object shape.
PromptCachePricing
Prompt-cache accounting settings for a pricing entry.
Methods
PromptCachePricing
Create an instance.
to_dict
Serialize this prompt-cache config to the canonical JSON object shape.
TokenRateTier
One threshold tier in a token rate schedule.
Methods
TokenRateTier
Create an instance.
to_dict
Serialize this rate tier to the canonical JSON object shape.
PromptTokenThresholdRateSchedule
Rate schedule selected by full-request prompt token thresholds.
Methods
PromptTokenThresholdRateSchedule
Create an instance.
to_dict
Serialize this rate schedule to the canonical JSON object shape.
ModelPricing
One model pricing catalog entry.
Methods
ModelPricing
Create an instance.
to_dict
Serialize this catalog entry to the canonical JSON object shape.
PricingCatalog
Inline pricing catalog payload.
Methods
PricingCatalog
Create an instance.
to_dict
Serialize this catalog to the canonical JSON object shape.
InlineSource
Pricing source backed by an inline catalog.
Methods
InlineSource
Create an instance.
to_dict
Serialize this source to the canonical JSON object shape.
FileSource
Pricing source backed by a JSON catalog file.
Methods
FileSource
Create an instance.
to_dict
Serialize this source to the canonical JSON object shape.
PricingConfig
Canonical config document for the top-level pricing component.
Methods
PricingConfig
Create an instance.
to_dict
Serialize this pricing config to the canonical JSON object shape.
ComponentSpec
Top-level pricing component wrapper.
Methods
ComponentSpec
Create an instance.
to_dict
Serialize this component to the canonical plugin shape.
Functions
validate_config
Validate a pricing config document without activating it.
Type Aliases And Constants
PRICING_PLUGIN_KIND