Generation Config
Configures the parameters for content generation, including conditions for stopping generation, creativity controls, output limits, and the format of the generated content.
Constructors
Properties
An integer specifying the maximum number of tokens that can be generated. This serves as a hard limit on the size of the generated content.
An optional string specifying the MIME type of the response. This is particularly relevant for specialized applications like Gemini 1.5 pro, where "application/json" might be required. It is nullable to accommodate different or default response formats.
A list of strings that, when generated, will signal the model to stop generating further content. This can be used to define natural endpoints or boundaries for generated content.
A double value controlling the randomness of the generation. Higher values increase creativity and diversity, while lower values make the output more deterministic.