Class InMemoryLLMPricingRegistry

java.lang.Object
com.tnsai.llm.observability.InMemoryLLMPricingRegistry
All Implemented Interfaces:
LLMPricingRegistry

public final class InMemoryLLMPricingRegistry extends Object implements LLMPricingRegistry
In-memory LLMPricingRegistry populated programmatically via InMemoryLLMPricingRegistry.Builder (issue #79). Default registry for tests and code-driven configuration; a JSON-backed registry shipping vendor rate cards for the 11 framework providers is a focused follow-up.

Rates are per-1K-tokens (the convention every major provider publishes); the registry handles the × usage / 1000 math so callers don't repeat it. Rounding: 6 decimal places via RoundingMode.HALF_UP — sub-fractional-cent precision is the minimum practical for sub-1K-token chats.

Since:
0.5.0 (issue #79)