AnthropicModelOptions
Namespace: E2E
public sealed class AnthropicModelOptionsInheritance: object
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; init; }Value: string
ApiKeyEnv
Section titled “ApiKeyEnv”public string ApiKeyEnv { get; init; }Environment variable read when ApiKey is empty. Defaults to ANTHROPIC_API_KEY.
Value: string
BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; init; }The API root; requests go to {BaseUrl}/messages.
Value: string
CacheBreakpoints
Section titled “CacheBreakpoints”public bool CacheBreakpoints { get; init; }Marks the system prompt and the newest message as cache breakpoints. On by default, as upstream.
Value: bool
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; init; }Value: IReadOnlyDictionary<string, string>
MaxTokens
Section titled “MaxTokens”public int MaxTokens { get; init; }The output cap each call sends. The Messages API requires one.
Value: int
public required string Model { get; init; }Value: string
Provider
Section titled “Provider”public string Provider { get; init; }The key this client reads in ProviderOptions. Its fields are added to the body as given.
Value: string
Version
Section titled “Version”public string Version { get; init; }The anthropic-version header.
Value: string
Methods
Section titled “Methods”ResolveApiKey()
Section titled “ResolveApiKey()”public string? ResolveApiKey()Returns: string