Skip to content

AnthropicModelCapabilities

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicModelCapabilities

What a Claude model id accepts on the Messages API.

Inheritance: object

View source

AnthropicModelCapabilities(int, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool)

Section titled “AnthropicModelCapabilities(int, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool)”
public AnthropicModelCapabilities(int maxOutputTokens, bool supportsStructuredOutput, bool supportsAdaptiveThinking, bool rejectsSamplingParameters, bool supportsXhighEffort, bool rejectsThinkingDisabledAboveHighEffort, bool rejectsThinkingDisabled, bool rejectsBudgetThinking, bool rejectsForcedToolUse, bool isKnownModel, bool supportsBetweenToolsThinking = false)

Creates a capability set.

Parameters

Name Type Description
maxOutputTokens int
supportsStructuredOutput bool
supportsAdaptiveThinking bool
rejectsSamplingParameters bool
supportsXhighEffort bool
rejectsThinkingDisabledAboveHighEffort bool
rejectsThinkingDisabled bool
rejectsBudgetThinking bool
rejectsForcedToolUse bool
isKnownModel bool
supportsBetweenToolsThinking bool

View source

public bool IsKnownModel { get; }

The id is a recognized Claude model rather than a forward-compatible guess.

Value: bool

View source

public int MaxOutputTokens { get; }

Model output token ceiling.

Value: int

View source

public bool RejectsBudgetThinking { get; }

Budget-based thinking is rejected and sent as adaptive thinking.

Value: bool

View source

public bool RejectsForcedToolUse { get; }

Forced tool choice is rejected.

Value: bool

View source

public bool RejectsSamplingParameters { get; }

Temperature, top-p, and top-k are rejected.

Value: bool

View source

public bool RejectsThinkingDisabled { get; }

The model always thinks and rejects disabled thinking.

Value: bool

View source

public bool RejectsThinkingDisabledAboveHighEffort { get; }

Thinking cannot be disabled at effort above high.

Value: bool

View source

public bool SupportsAdaptiveThinking { get; }

Thinking is adaptive rather than budget-based.

Value: bool

View source

public bool SupportsBetweenToolsThinking { get; }

Thinking type between_tools is accepted. It is the lowest thinking setting on models that reject disabled thinking.

Value: bool

View source

public bool SupportsStructuredOutput { get; }

Native output_config.format is available.

Value: bool

View source

public bool SupportsXhighEffort { get; }

Effort xhigh is accepted.

Value: bool

View source

public static AnthropicModelCapabilities Get(string modelId)

Resolves capabilities from a model id, including Bedrock-style prefixes.

Parameters

Name Type Description
modelId string

Returns: AnthropicModelCapabilities

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product