Skip to content

AnthropicModelCatalog

Namespace AgentPrism · Assembly AgentPrism.Anthropic.dll

Builds the catalog shown to the UI from the model definitions in provider settings.

public static class AnthropicModelCatalog

objectAnthropicModelCatalog

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

AgentPrism carries no built-in model list. Model names and prices change far faster than a NuGet package’s release cadence; a list baked into the code goes stale quickly.

The catalog is not a validation list: a model name absent from it can still be used — the provider sends the request to Anthropic as given. The catalog only feeds the UI’s model picker and cost calculation.

"AgentPrism": { "Providers": { "Anthropic": {
"Models": [
{ "Name": "claude-sonnet-5", "ContextWindowTokens": 200000, "InputCostPerMillionTokens": 3 }
]
}}}

Builds the catalog from the model definitions in settings.

public static IReadOnlyList<ModelDescriptor> Build(AnthropicProviderOptions options)

options AnthropicProviderOptions

Provider settings.

IReadOnlyList<ModelDescriptor>

The model list, sorted by name. Empty when there are no definitions.

When the same name is defined more than once, the last definition wins. Comparison is case-insensitive. Nameless entries are ignored.

ArgumentNullException

options is null.