struct Anthropic::Messages::Request

Included Modules

Extended Modules

Defined in:

messages.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(*, model : String, max_tokens : Int32, messages : Array(Anthropic::Message), system : Nil | String = 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) #

Instance Method Detail

def extra_body : Body | Nil #

def extra_headers : HTTP::Headers | Nil #

def extra_query : Query | Nil #

def max_tokens : Int32 #

def messages : Array(Message) #

def metadata : Hash(String, String) | Nil #

def model : String #

def stop_sequences : Array(String) | Nil #

def stream? : Bool | Nil #

def system : String | Nil #

def temperature : Float64 | Nil #

def tools : String | Nil #

def top_k : Int64 | Nil #

def top_p : Float64 | Nil #