struct Google::GenerativeAI::Content::Part

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

[View source]
def self.new(inline_data : InlineData) #

[View source]
def self.new(function_call : FunctionCall) #

[View source]
def self.new(function_response : FunctionResponse) #

[View source]
def self.new(file_data : FileData) #

[View source]
def self.new(executable_code : ExecutableCode) #

[View source]
def self.new(code_execution_result : CodeExecutionResult) #

[View source]

Instance Method Detail

def code_execution_result : CodeExecutionResult | Nil #

def executable_code : ExecutableCode | Nil #

def file_data : FileData | Nil #

def function_call : FunctionCall | Nil #

def function_response : FunctionResponse | Nil #

def inline_data : InlineData | Nil #

def text : String | Nil #

def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]