struct

Google::GenerativeAI::Content::Part

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

Constructors

new(pull : JSON::PullParser)
new(text : String)
Source
new(inline_data : InlineData)
Source
new(function_call : FunctionCall)
Source
new(function_response : FunctionResponse)
Source
new(file_data : FileData)
Source
new(executable_code : ExecutableCode)
Source
new(code_execution_result : CodeExecutionResult)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Instance methods

code_execution_result
executable_code
file_data
function_call
function_response
inline_data
text
to_s(io : IO) : Nil

Same as #inspect(io).

Source