struct Google::GenerativeAI::GenerateContentRequest(Tools)

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

def self.new(*, contents) #

[View source]
def self.new(*, contents : Array(Google::GenerativeAI::Content) | String, generation_config : Google::GenerativeAI::GenerationConfig | Nil, tools : Tools, system_instruction : Google::GenerativeAI::Content | Nil) #

[View source]

Instance Method Detail

def contents : String | Array(Content) #

def generation_config : GenerationConfig | Nil #

def system_instruction : Content | Nil #

def tools : Tools #