struct

Crig::Providers::Gemini::PartKind

Inherits Struct < Value < Object

Constructors

code_execution_result(code_execution_result : CodeExecutionResult) : self
Source
executable_code(executable_code : ExecutableCode) : self
Source
file_data(file_data : FileData) : self
Source
function_call(function_call : FunctionCall) : self
Source
function_response(function_response : FunctionResponse) : self
Source
inline_data(blob : Blob) : self
Source
new(kind : Kind, text : String | Nil = nil, inline_data : Blob | Nil = nil, function_call : FunctionCall | Nil = nil, function_response : FunctionResponse | Nil = nil, file_data : FileData | Nil = nil, executable_code : ExecutableCode | Nil = nil, code_execution_result : CodeExecutionResult | Nil = nil)
Source
new(pull : JSON::PullParser)

ameba:disable Metrics/CyclomaticComplexity

Source
text(text : String) : self
Source

Instance methods

code_execution_result
Source
executable_code
Source
file_data
Source
function_call
Source
function_response
Source
inline_data
Source
kind
Source
text
Source
to_json(json : JSON::Builder) : Nil
Source

Nested types