Gemini::GenerativeModel
Inherits JSON::Serializable < Reference < Object
Generates a model response given an input.
Constants
Constructors
Configuration parameters are optional and non-initialized, so they must be defined later
Instance methods
The name of the content cached to use as context to serve the prediction. (Optional)
The content of the current conversation with the model. (Required) For single-turn queries, this is a single instance. For multi-turn queries like chat, this is a repeated field that contains the conversation history and the latest request.
The content of the current conversation with the model. (Required) For single-turn queries, this is a single instance. For multi-turn queries like chat, this is a repeated field that contains the conversation history and the latest request.
The content of the current conversation with the model. (Required) For single-turn queries, this is a single instance. For multi-turn queries like chat, this is a repeated field that contains the conversation history and the latest request.
Configuration options for model generation and outputs. (Optional)
A list of unique SafetySetting instances for blocking unsafe content. (Optional)
A list of unique SafetySetting instances for blocking unsafe content. (Optional)
Developer set system instruction(s). Currently, text only. (Optional)
Tool configuration for any Tool specified in the request. Refer to the Function calling guide for a usage example. (Optional)
Tool configuration for any Tool specified in the request. Refer to the Function calling guide for a usage example. (Optional)