generativeModel
Instantiates a new GenerativeModel given the provided parameters.
Return
The initialized GenerativeModel instance.
Parameters
The name of the model to use. See the documentation for a list of supported models.
The configuration parameters to use for content generation.
The safety bounds the model will abide to during content generation.
A list of Tools the model may use to generate content.
The ToolConfig that defines how the model handles the tools provided.
Content instructions that direct the model to behave a certain way. Currently only text content is supported.
Configuration options for sending requests to the backend.
Instantiates a new GenerativeModel given the provided parameters.
Return
The initialized GenerativeModel instance.
Parameters
The name of the model to use. See the documentation for a list of supported models.
The configuration parameters to use for content generation.
The safety bounds the model will abide to during content generation.
A list of Tools the model may use to generate content.
The ToolConfig that defines how the model handles the tools provided.
Content instructions that direct the model to behave a certain way. Currently only text content is supported.
Configuration options for sending requests to the backend.
Configuration for on-device inference.
Instantiates a new GenerativeModel given the provided parameters.
Return
The initialized GenerativeModel instance.
Parameters
The name of the model to use. See the documentation for a list of supported models.
The configuration parameters to use for content generation.
The safety bounds the model will abide to during content generation.
A list of Tools the model may use to generate content.
The ToolConfig that defines how the model handles the tools provided.
Content instructions that direct the model to behave a certain way. Currently only text content is supported.
Configuration options for sending requests to the backend.
Instantiates a new GenerativeModel given the provided parameters.
Return
The initialized GenerativeModel instance.
Parameters
The name of the model to use. See the documentation for a list of supported models.
The configuration parameters to use for content generation.
The safety bounds the model will abide to during content generation.
A list of Tools the model may use to generate content.
The ToolConfig that defines how the model handles the tools provided.
Content instructions that direct the model to behave a certain way. Currently only text content is supported.
Configuration options for sending requests to the backend.
Configuration for on-device inference.
Instantiates a new GenerativeModel given the provided parameters.
Return
The initialized GenerativeModel instance.
Parameters
The name of the model to use. See the documentation for a list of supported models.
The configuration parameters to use for content generation.
The safety bounds the model will abide to during content generation.
A list of Tools the model may use to generate content.
The ToolConfig that defines how the model handles the tools provided.
Content instructions that direct the model to behave a certain way. Currently only text content is supported.
Configuration options for sending requests to the backend.
Instantiates a new GenerativeModel given the provided parameters.
Return
The initialized GenerativeModel instance.
Parameters
The name of the model to use. See the documentation for a list of supported models.
The configuration parameters to use for content generation.
The safety bounds the model will abide to during content generation.
A list of Tools the model may use to generate content.
The ToolConfig that defines how the model handles the tools provided.
Content instructions that direct the model to behave a certain way. Currently only text content is supported.
Configuration options for sending requests to the backend.
Configuration for on-device inference.