Crig::Providers::Gemini::GenerationConfig
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(stop_sequences : Array(String) | Nil = nil, temperature : Float64 | Nil = nil, candidate_count : Int32 | Nil = nil, max_output_tokens : Int64 | Nil = nil, top_p : Float64 | Nil = nil, top_k : Int32 | Nil = nil, presence_penalty : Float64 | Nil = nil, frequency_penalty : Float64 | Nil = nil, response_mime_type : String | Nil = nil, response_schema : Schema | Nil = nil, internal_response_json_schema : JSON::Any | Nil = nil, response_json_schema : JSON::Any | Nil = nil, response_logprobs : Bool | Nil = nil, logprobs : Int32 | Nil = nil, thinking_config : ThinkingConfig | Nil = nil, image_config : ImageConfig | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
candidate_count
Sourcefrequency_penalty
Sourceimage_config
Sourceimage_config=(image_config : ImageConfig | Nil)
Sourceinternal_response_json_schema
Sourcelogprobs
Sourcemax_output_tokens
Sourcepresence_penalty
Sourceresponse_json_schema
Sourceresponse_logprobs
Sourceresponse_mime_type
Sourceresponse_schema
Sourceresponse_schema=(response_schema : Schema | Nil)
Sourcestop_sequences
Sourcetemperature
Sourcethinking_config
Sourcethinking_config=(thinking_config : ThinkingConfig | Nil)
Sourcetop_k
Sourcetop_p
Source