Anthropic::TokenCountParams
Inherits JSON::Serializable < Struct < Value < Object
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, thinking : ThinkingConfig | Nil = nil, cache_control : CacheControl | Nil = nil, output_config : OutputConfig | Nil = nil, inference_geo : String | Nil = nil, diagnostics : DiagnosticsParam | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cache_control
Sourcediagnostics
Sourceinference_geo
Sourcemessages
Sourcemodel
Sourceoutput_config
Sourcesystem
Sourcethinking
Sourcetool_choice
Sourcetools
Source