Google::GenerativeAI::Model::V1Beta(ResponseSchema)
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)
Instance methods
count_tokens(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools = nil)
Sourcegenerate(contents : String | Array, generation_config : GenerationConfig | Nil = self.generation_config, tools : Tools | Nil = nil)
Sourcegeneration_config
Sourceinput_token_limit
name
output_token_limit
response_schema
system_instruction
temperature
temperature=(temperature : Float64 | Nil)
Source