struct Google::GenerativeAI::Model::V1Beta(ResponseSchema)
- Google::GenerativeAI::Model::V1Beta(ResponseSchema)
- Struct
- Value
- Object
Included Modules
- Google::Resource
- JSON::Serializable
- MessagePack::Serializable
Extended Modules
- JSON::Schema
Defined in:
gemini.crConstructors
Instance Method Summary
- #count_tokens(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools = nil)
- #generate(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools : Tools | Nil = nil)
- #generation_config
- #input_token_limit : Int64
- #name : String
- #output_token_limit : Int64
- #response_schema : String | Nil
- #system_instruction : Content | Nil
- #system_instruction=(system_instruction : Google::GenerativeAI::Content | Nil)
- #temperature : Float64
- #temperature=(temperature : Float64)
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
Instance Method Detail
def count_tokens(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools = nil)
#
def generate(contents : String | Array, generation_config : GenerationConfig | Nil = nil, tools : Tools | Nil = nil)
#