Struct AnthropicModelProfile
Capability descriptor for an Anthropic model: which request fields the target
model accepts. Resolved from the model id by using a static
generation table plus a fail-forward default — an unrecognised id is
treated as so a future model release does
not get sent a now-removed field and 400.
This is Anthropic-scoped on purpose (the OpenAI-compatible providers accept
sampling and need no such gating). Generalise to an IModelProfile only if a
second provider ever needs per-model request shaping.
public readonly record struct AnthropicModelProfile : IEquatable<AnthropicModelProfile>
Implements
Properties
Sampling
public AnthropicSamplingPolicy Sampling { get; init; }
SamplingSupported
Whether any sampling knob may be sent at all. false only for
public bool SamplingSupported { get; }
Tier
public AnthropicModelTier Tier { get; init; }
Methods
Resolve(string?, string?)
Resolves the profile for modelId. When
public static AnthropicModelProfile Resolve(string? modelId, string? tierOverride = null)
TryParseTier(string?, out AnthropicModelTier)
Parses an explicit tier-name override; returns false when unset/unknown.
public static bool TryParseTier(string? name, out AnthropicModelTier tier)
Constructors
AnthropicModelProfile(AnthropicModelTier, AnthropicSamplingPolicy)
Capability descriptor for an Anthropic model: which request fields the target