Stores model capability and pricing metadata used by adapters, budget guards, and cost estimation.
const registry = new ModelRegistry();registry.assertCapability('gpt-4o', 'supportsTools', 'tool calling');registry.updatePrices({ 'gpt-4o': { inputPrice: 4.5, outputPrice: 18 },}); Copy
const registry = new ModelRegistry();registry.assertCapability('gpt-4o', 'supportsTools', 'tool calling');registry.updatePrices({ 'gpt-4o': { inputPrice: 4.5, outputPrice: 18 },});
Optional
Stores model capability and pricing metadata used by adapters, budget guards, and cost estimation.
Example