struct

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cache_control
Source
diagnostics
Source
inference_geo
Source
messages
Source
model
Source
output_config
Source
system
Source
thinking
Source
tool_choice
Source
tools
Source