Google::GenerativeAI::GenerationConfig
Inherits MessagePack::Serializable < JSON::Serializable < Google::Resource < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
new(pull : MessagePack::Unpacker)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, temperature : Float64 | Nil = nil, top_p : Float64 | Nil = nil, top_k : Float64 | Nil = nil, max_output_tokens : Int32 | Nil = nil, stop_sequences : Nil | Array(String) = nil, response_mime_type : Nil | String = nil, response_schema : Nil | String = nil, candidate_count : Int32 | Nil = nil, presence_penalty : Float64 | Nil = nil, frequency_penalty : Float64 | Nil = nil, response_logprobs : Bool | Nil = nil, logprobs : Int32 | Nil = nil)
SourceInstance methods
candidate_count
frequency_penalty
logprobs
max_output_tokens
presence_penalty
response_logprobs
response_mime_type
response_schema
stop_sequences
temperature
top_k
top_p