struct

Crig::Providers::Anthropic::AnthropicCompletionRequest

Inherits Struct < Value < Object

Constructors

from_params(params : AnthropicRequestParams) : self
Source
new(model : String, messages : Array(Message), max_tokens : Int64, system : Array(SystemContent) = [] of SystemContent, temperature : Float64 | Nil = nil, tool_choice : ToolChoice | Nil = nil, tools : Array(ToolDefinition) = [] of ToolDefinition, output_config : OutputConfig | Nil = nil, additional_params : JSON::Any | Nil = nil)
Source

Instance methods

additional_params
Source
max_tokens
Source
messages
Source
model
Source
output_config
Source
system
Source
temperature
Source
to_json_value
Source
tool_choice
Source
tools
Source