AnthropicProviderOptionsValidator
Namespace AgentPrism · Assembly
AgentPrism.Anthropic.dllValidates AnthropicProviderOptions settings at application startup.
public sealed class AnthropicProviderOptionsValidator : IValidateOptions<AnthropicProviderOptions>Inheritance
Section titled “Inheritance”object ← AnthropicProviderOptionsValidator
Implements
Section titled “Implements”IValidateOptions<AnthropicProviderOptions>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Validation is written by hand; ValidateDataAnnotations relies on
reflection and produces IL2026. AgentPrism.Anthropic must stay AOT
compatible.
Failure messages never contain the API key. Validation messages go to the log and the startup exception; leaking the key there would expose it.
Constructors
Section titled “Constructors”AnthropicProviderOptionsValidator()
Section titled “ AnthropicProviderOptionsValidator()”public AnthropicProviderOptionsValidator()Methods
Section titled “Methods”Validate(string?, AnthropicProviderOptions)
Section titled “ Validate(string?, AnthropicProviderOptions)”public ValidateOptionsResult Validate(string? name, AnthropicProviderOptions options)Parameters
Section titled “Parameters”name string?
options AnthropicProviderOptions