struct Google::GenerativeAI::GenerateContentRequest(Tools)
- Google::GenerativeAI::GenerateContentRequest(Tools)
- 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(*, contents)
- .new(*, contents : Array(Google::GenerativeAI::Content) | String, generation_config : Google::GenerativeAI::GenerationConfig | Nil, tools : Tools, system_instruction : Google::GenerativeAI::Content | Nil)
Instance Method Summary
- #contents : String | Array(Content)
- #generation_config : GenerationConfig | Nil
- #system_instruction : Content | Nil
- #tools : Tools
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(*, contents : Array(Google::GenerativeAI::Content) | String, generation_config : Google::GenerativeAI::GenerationConfig | Nil, tools : Tools, system_instruction : Google::GenerativeAI::Content | Nil)
#