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

Included Modules

Extended Modules

Defined in:

gemini.cr

Constructors

Instance Method Summary

Macros inherited from module Google::Resource

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

Instance Method Detail

def count_tokens(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools = nil) #

[View source]
def generate(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools : Tools | Nil = nil) #

[View source]
def generation_config #

[View source]
def input_token_limit : Int64 #

def name : String #

def output_token_limit : Int64 #

def response_schema : String | Nil #

def system_instruction : Content | Nil #

def system_instruction=(system_instruction : Google::GenerativeAI::Content | Nil) #

[View source]
def temperature : Float64 #

def temperature=(temperature : Float64) #

[View source]