struct

Anthropic::Messages::Request

Inherits JSON::Serializable / Anthropic::Resource / Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, model : String, max_tokens : Int32, messages : Array(Anthropic::Message), system : Anthropic::MessageContent | Array(Anthropic::MessageContent) | String | Nil = nil, metadata : Nil | Hash(String, String) = nil, stop_sequences : Nil | Array(String) = nil, stream : Bool | Nil = nil, temperature : Float64 | Nil = nil, tools : Nil | String = nil, top_k : Int64 | Nil = nil, top_p : Float64 | Nil = nil, extra_headers : HTTP::Headers | Nil = nil, extra_query : Anthropic::Messages::Query | Nil = nil, extra_body : Anthropic::Messages::Body | Nil = nil)
Source

Instance methods

extra_body
Source
extra_headers
Source
extra_query
Source
max_tokens
Source
messages
Source
metadata
Source
model
Source
stop_sequences
Source
stream?
Source
system
Source
temperature
Source
tools
Source
top_k
Source
top_p
Source