AnthropicReasoning
Namespace: Vercel.AI.Anthropic
public static class AnthropicReasoningMaps SDK reasoning levels onto Anthropic thinking and effort.
Inheritance: object
Methods
Section titled “Methods”IsCustom(string?)
Section titled “IsCustom(string?)”public static bool IsCustom(string? reasoning)True when reasoning asks for a concrete mode rather than the provider default.
Parameters
| Name | Type | Description |
|---|---|---|
reasoning |
string |
Returns: bool
MapBudget(string, int, IList<AnthropicWarning>)
Section titled “MapBudget(string, int, IList<AnthropicWarning>)”public static int? MapBudget(string reasoning, int maxOutputTokens, IList<AnthropicWarning> warnings)Token budget for budget-based thinking. Clamped to at least 1024.
Parameters
| Name | Type | Description |
|---|---|---|
reasoning |
string | |
maxOutputTokens |
int | |
warnings |
IList<AnthropicWarning> |
Returns: int?
Resolve(string?, string, AnthropicModelCapabilities, IList<AnthropicWarning>)
Section titled “Resolve(string?, string, AnthropicModelCapabilities, IList<AnthropicWarning>)”public static AnthropicReasoningConfig? Resolve(string? reasoning, string modelId, AnthropicModelCapabilities capabilities, IList<AnthropicWarning> warnings)Maps a reasoning level. Returns null for provider-default.
Parameters
| Name | Type | Description |
|---|---|---|
reasoning |
string | |
modelId |
string | |
capabilities |
AnthropicModelCapabilities | |
warnings |
IList<AnthropicWarning> |
Returns: AnthropicReasoningConfig
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product