Anthropic::BetaTokenCountParams
Inherits JSON::Serializable < Struct < Value < Object
Beta token count request parameters
Constructors
new(model : String, messages : Array(MessageParam), system : SystemPrompt | Nil = nil, tools : Array(ToolDefinition | ServerTool) | Nil = nil, tool_choice : ToolChoice | 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, diagnostics : DiagnosticsParam | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cache_control
Sourcecontainer
Sourcecontext_management
Sourcediagnostics
Sourceinference_geo
Sourcemcp_servers
Sourcemessages
Sourcemodel
Sourceoutput_config
Sourceoutput_format
Sourcespeed
Sourcesystem
Sourcethinking
Sourcetool_choice
Sourcetools
Source