struct Google::GenerativeAI::GenerationConfig
- Google::GenerativeAI::GenerationConfig
- Struct
- Value
- Object
Included Modules
- Google::Resource
- JSON::Serializable
- MessagePack::Serializable
Extended Modules
- JSON::Schema
Defined in:
gemini.crConstructors
- .new(pull : JSON::PullParser)
- .new(pull : MessagePack::Unpacker)
- .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)
Instance Method Summary
- #candidate_count : Int32 | Nil
- #frequency_penalty : Float64 | Nil
- #logprobs : Int32 | Nil
- #max_output_tokens : Int32 | Nil
- #presence_penalty : Float64 | Nil
- #response_logprobs : Bool | Nil
- #response_mime_type : String | Nil
- #response_schema : String | Nil
- #stop_sequences : Array(String) | Nil
- #temperature : Float64 | Nil
- #top_k : Float64 | Nil
- #top_p : Float64 | Nil
Macros inherited from module Google::Resource
define(name, *fields)
define,
field(var, key = nil, **options, &block)
field,
field!(var, key = nil, **options, &block)
field!,
field?(var, key = nil, **options, &block)
field?
Constructor Detail
def self.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)
#