struct Google::GenerativeAI::Content

Included Modules

Extended Modules

Defined in:

gemini.cr

Constructors

Macro Summary

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(text : String) #

[View source]
def self.new(parts : Array(Google::GenerativeAI::Content::Part), role : Google::GenerativeAI::Content::Role | Nil = :user) #

[View source]

Macro Detail

macro define(type, *vars) #

[View source]

Instance Method Detail

def parts : Array(Part) #

def role : Role | Nil #

def to_s(io) : Nil #

[View source]