Gemini::Content
Inherits JSON::Serializable < Struct < Value < Object
The base structured datatype containing multi-part content of a message.
Constructors
new(pull : JSON::PullParser)
SourceCreate using existing parts or new empty array
Create content with a text part already
new(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
after_initialize
Remove empty texts Part from JSON to fix: "Unable to submit request because it has an empty text parameter."
Ordered Parts that constitute a single message. Parts may have different MIME types.