Skip to content

AnthropicProviderNames

Namespace AgentPrism · Assembly AgentPrism.Anthropic.dll

The provider name registered by UseAnthropic and the ModelBinding.ProviderSettings keys.

public static class AnthropicProviderNames

objectAnthropicProviderNames

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

These names are stable. Agent definitions are stored in the database under these names; changing them breaks stored definitions.

The provider that uses the Anthropic Messages API: anthropic.

public const string Anthropic = "anthropic"

string

The setting key that turns on prompt caching: anthropic.promptCaching (boolean).

public const string PromptCachingSetting = "anthropic.promptCaching"

string

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.

The prefix for provider-specific settings: anthropic.

public const string SettingsPrefix = "anthropic"

string

The setting key that provides the extended-thinking budget: anthropic.thinking.budgetTokens (integer).

public const string ThinkingBudgetTokensSetting = "anthropic.thinking.budgetTokens"

string

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.

All setting keys this provider supports.

public static IReadOnlyList<string> SupportedSettings { get; }

IReadOnlyList<string>

A key absent from this list is not silently ignored; it fails compilation and the error message lists this list.