AnthropicProviderNames
AgentPrism.Anthropic.dllThe provider name registered by UseAnthropic and the
ModelBinding.ProviderSettings keys.
public static class AnthropicProviderNamesInheritance
Section titled “Inheritance”object ← AnthropicProviderNames
Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”These names are stable. Agent definitions are stored in the database under these names; changing them breaks stored definitions.
Fields
Section titled “Fields”Anthropic
Section titled “ Anthropic”The provider that uses the Anthropic Messages API: anthropic.
public const string Anthropic = "anthropic"Field Value
Section titled “Field Value”PromptCachingSetting
Section titled “ PromptCachingSetting”The setting key that turns on prompt caching: anthropic.promptCaching (boolean).
public const string PromptCachingSetting = "anthropic.promptCaching"Field Value
Section titled “Field Value”Remarks
Section titled “Remarks”Defaults to off. Turning it on lowers cost but changes
behavior: cache_control is added to the request body, the fee for
creating a cache entry is higher than the normal input fee for short
prompts, and the model only caches prompts above a certain token
threshold. It is opted in explicitly so there is no silent default.
Measured against claude-haiku-4-5-20251001: with it on, the
response reported cache_creation_input_tokens=4209; with it off, this
counter never appeared.
SettingsPrefix
Section titled “ SettingsPrefix”The prefix for provider-specific settings: anthropic.
public const string SettingsPrefix = "anthropic"Field Value
Section titled “Field Value”ThinkingBudgetTokensSetting
Section titled “ ThinkingBudgetTokensSetting”The setting key that provides the extended-thinking budget:
anthropic.thinking.budgetTokens (integer).
public const string ThinkingBudgetTokensSetting = "anthropic.thinking.budgetTokens"Field Value
Section titled “Field Value”Remarks
Section titled “Remarks”The value must be smaller than ModelBinding.MaxOutputTokens; otherwise Anthropic rejects the request.
While thinking is on, Anthropic allows ModelBinding.Temperature
to be only 1. Any other temperature gets the request rejected with
invalid_request_error — measured against the live API.
Properties
Section titled “Properties”SupportedSettings
Section titled “ SupportedSettings”All setting keys this provider supports.
public static IReadOnlyList<string> SupportedSettings { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”A key absent from this list is not silently ignored; it fails compilation and the error message lists this list.