struct Anthropic::Messages::Request
- Anthropic::Messages::Request
- Struct
- Value
- Object
Included Modules
- Anthropic::Resource
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
messages.crConstructors
- .new(pull : JSON::PullParser)
- .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 Summary
- #extra_body : Body | Nil
- #extra_headers : HTTP::Headers | Nil
- #extra_query : Query | Nil
- #max_tokens : Int32
- #messages : Array(Message)
- #metadata : Hash(String, String) | Nil
- #model : String
- #stop_sequences : Array(String) | Nil
- #stream? : Bool | Nil
- #system : String | Nil
- #temperature : Float64 | Nil
- #tools : String | Nil
- #top_k : Int64 | Nil
- #top_p : Float64 | Nil
Constructor Detail
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)
#