struct Google::GenerativeAI::Content
- Google::GenerativeAI::Content
- Struct
- Value
- Object
Included Modules
- Google::Resource
- JSON::Serializable
- MessagePack::Serializable
Extended Modules
- JSON::Schema
Defined in:
gemini.crConstructors
- .new(pull : JSON::PullParser)
- .new(pull : MessagePack::Unpacker)
- .new(text : String)
- .new(parts : Array(Google::GenerativeAI::Content::Part), role : Google::GenerativeAI::Content::Role | Nil = :user)
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(parts : Array(Google::GenerativeAI::Content::Part), role : Google::GenerativeAI::Content::Role | Nil = :user)
#