struct

Anthropic::BetaMessageCreateParams

Inherits JSON::Serializable < Struct < Value < Object

Beta message create params - extends MessageCreateParams with output_schema

Constructors

new(model : String, max_tokens : Int32, messages : Array(MessageParam), stream : Bool | Nil = nil, system : SystemPrompt | Nil = nil, temperature : Float64 | Nil = nil, top_p : Float64 | Nil = nil, top_k : Int32 | Nil = nil, tools : Array(ToolDefinition | ServerTool) | Nil = nil, tool_choice : ToolChoice | Nil = nil, stop_sequences : Array(String) | Nil = nil, metadata : Metadata | Nil = nil, service_tier : String | Nil = nil, speed : String | Nil = nil, thinking : ThinkingConfig | Nil = nil, cache_control : CacheControl | Nil = nil, output_format : OutputFormat | Nil = nil, output_config : OutputConfig | Nil = nil, inference_geo : String | Nil = nil, context_management : ContextManagementConfig | Nil = nil, container : String | ContainerConfig | Nil = nil, mcp_servers : Array(MCPServerDefinition) | Nil = nil, fallbacks : FallbacksParam | Nil = nil, fallback_credit_token : FallbackCreditToken | Nil = nil, diagnostics : DiagnosticsParam | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cache_control
Source
container
Source
context_management
Source
diagnostics
Source
fallback_credit_token

Opaque credit token (bare string) or object form with redemption mode. Object form requires fallback-credit-2026-07-01.

Source
fallbacks

Server-side fallback chain (Array(FallbackParam)) or "default". Requires the server-side-fallback-2026-07-01 beta (auto-attached).

Source
inference_geo
Source
max_tokens
Source
mcp_servers
Source
messages
Source
metadata
Source
model
Source
output_config
Source
output_format
Source
service_tier
Source
speed
Source
stop_sequences
Source
stream
Source
system
Source
temperature
Source
thinking
Source
tool_choice
Source
tools
Source
top_k
Source
top_p
Source