0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

    GenerationSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Content generation specification.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `model_id` | `str` Specifies which Vertex model id to use for generation. |
| `language_code` | `str` Language code for content. Use language tags defined by `BCP47 `__. |
| `temperature` | `float` If specified, custom value for the temperature will be used. This field is a member of `oneof`_ `_temperature`. |
| `top_p` | `float` If specified, custom value for nucleus sampling will be used. This field is a member of `oneof`_ `_top_p`. |
| `top_k` | `int` If specified, custom value for top-k sampling will be used. This field is a member of `oneof`_ `_top_k`. |
| `frequency_penalty` | `float` If specified, custom value for frequency penalty will be used. This field is a member of `oneof`_ `_frequency_penalty`. |
| `seed` | `int` If specified, custom value for the seed will be used. This field is a member of `oneof`_ `_seed`. |
| `presence_penalty` | `float` If specified, custom value for presence penalty will be used. This field is a member of `oneof`_ `_presence_penalty`. |
| `max_output_tokens` | `int` If specified, custom value for max output tokens will be used. This field is a member of `oneof`_ `_max_output_tokens`. |