struct

Google::GenerativeAI::Model::V1Beta(ResponseSchema)

Inherits MessagePack::Serializable < JSON::Serializable < Google::Resource < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Instance methods

count_tokens(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools = nil)
Source
generate(contents : String | Array, generation_config : GenerationConfig | Nil = self.generation_config, tools : Tools | Nil = nil)
Source
generation_config
Source
input_token_limit
name
output_token_limit
response_schema
system_instruction
system_instruction=(system_instruction : Google::GenerativeAI::Content | Nil)
Source
temperature
temperature=(temperature : Float64 | Nil)
Source