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)
SourceInstance methods
extra_body
Sourceextra_headers
Sourceextra_query
Sourcemax_tokens
Sourcemessages
Sourcemetadata
Sourcemodel
Sourcestop_sequences
Sourcestream?
Sourcesystem
Sourcetemperature
Sourcetools
Sourcetop_k
Sourcetop_p
Source