struct Google::GenerativeAI::GenerationConfig

Included Modules

Extended Modules

Defined in:

gemini.cr

Constructors

Instance Method Summary

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(pull : JSON::PullParser) #

def self.new(pull : MessagePack::Unpacker) #

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) #

[View source]

Instance Method Detail

def candidate_count : Int32 | Nil #

def frequency_penalty : Float64 | Nil #

def logprobs : Int32 | Nil #

def max_output_tokens : Int32 | Nil #

def presence_penalty : Float64 | Nil #

def response_logprobs : Bool | Nil #

def response_mime_type : String | Nil #

def response_schema : String | Nil #

def stop_sequences : Array(String) | Nil #

def temperature : Float64 | Nil #

def top_k : Float64 | Nil #

def top_p : Float64 | Nil #