Modelos
Listar modelos
client.Beta.Models.List(ctx, params) (*Page[BetaModelInfo], error)Liste os modelos disponíveis.
Obter um modelo
client.Beta.Models.Get(ctx, modelID, query) (*BetaModelInfo, error)Obtenha um modelo específico.
Models
type BetaCapabilitySupport struct { Supported }Indicates whether a capability is supported.
Indicates whether a capability is supported.
Whether this capability is supported by the model.
type BetaCompactionCapability struct { Summarize; Supported }Compaction capability details: whether the model accepts the top-level
compaction request parameter, with one entry per supported
compaction.type value.
Compaction capability details: whether the model accepts the top-level
compaction request parameter, with one entry per supported
compaction.type value.
Summarize BetaCapabilitySupportWhether the summarize compaction type is supported.
Whether the summarize compaction type is supported.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
type BetaContextManagementCapability struct { ClearThinking20251015; ClearToolUses20250919; Compact20260112; Supported }Context management capability details.
Context management capability details.
ClearThinking20251015 BetaCapabilitySupportWhether the clear_thinking_20251015 strategy is supported.
Whether the clear_thinking_20251015 strategy is supported.
Whether this capability is supported by the model.
ClearToolUses20250919 BetaCapabilitySupportWhether the clear_tool_uses_20250919 strategy is supported.
Whether the clear_tool_uses_20250919 strategy is supported.
Whether this capability is supported by the model.
Compact20260112 BetaCapabilitySupportWhether the compact_20260112 strategy is supported.
Whether the compact_20260112 strategy is supported.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
type BetaEffortCapability struct { High; Low; Max; /* 3 more */ }Effort (reasoning_effort) capability details.
Effort (reasoning_effort) capability details.
Whether the model supports high effort level.
Whether the model supports high effort level.
Whether this capability is supported by the model.
Whether the model supports low effort level.
Whether the model supports low effort level.
Whether this capability is supported by the model.
Whether the model supports max effort level.
Whether the model supports max effort level.
Whether this capability is supported by the model.
Medium BetaCapabilitySupportWhether the model supports medium effort level.
Whether the model supports medium effort level.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
Xhigh BetaCapabilitySupportWhether the model supports xhigh effort level.
Whether the model supports xhigh effort level.
Whether this capability is supported by the model.
type BetaModelCapabilities struct { Batch; Citations; CodeExecution; /* 8 more */ }Model capability information.
Model capability information.
type BetaModelInfo struct { Type: "model"; ID; AllowedFallbackModels; /* 9 more */ }
type BetaModelLine stringA Claude model line, such as opus or sonnet. More lines may be added as new values.
A Claude model line, such as opus or sonnet. More lines may be added as new values.
type BetaServerToolsCapability struct { CodeExecution; Supported; WebSearch }Web search and code execution tool support, with one entry per tool.
Web search and code execution tool support, with one entry per tool.
CodeExecution BetaCapabilitySupportWhether the model supports the code execution tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether the model supports the code execution tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
WebSearch BetaCapabilitySupportWhether the model supports the web search tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether the model supports the web search tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether this capability is supported by the model.
type BetaThinkingCapability struct { Supported; Types }Thinking capability details.
Thinking capability details.
Whether this capability is supported by the model.
Types BetaThinkingTypesSupported thinking type configurations.
Supported thinking type configurations.
Adaptive BetaCapabilitySupportWhether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether this capability is supported by the model.
Disabled BetaCapabilitySupportWhether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether this capability is supported by the model.
Enabled BetaCapabilitySupportWhether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether this capability is supported by the model.
type BetaThinkingTypes struct { Adaptive; Disabled; Enabled }Which thinking.type values the model accepts on requests. Read each key on its own: for example, enabled can be false while disabled is true.
Which thinking.type values the model accepts on requests. Read each key on its own: for example, enabled can be false while disabled is true.
Adaptive BetaCapabilitySupportWhether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether this capability is supported by the model.
Disabled BetaCapabilitySupportWhether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether this capability is supported by the model.
Enabled BetaCapabilitySupportWhether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether this capability is supported by the model.