3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Generator.Types.ModelParameter : IMessage<Generator.Types.ModelParameter>, IEquatable<Generator.Types.ModelParameter>, IDeepCloneable<Generator.Types.ModelParameter>, IBufferMessage, IMessage

Reference documentation and code samples for the Dialogflow v3 API class Generator.Types.ModelParameter.

Parameters to be passed to the LLM. If not set, default values will be
used.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Generator.Types.ModelParameter

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Generator](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.md.txt)[ModelParameter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Generator](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.md.txt)[ModelParameter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Generator](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.md.txt)[ModelParameter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### ModelParameter()

    public ModelParameter()

### ModelParameter(ModelParameter)

    public ModelParameter(Generator.Types.ModelParameter other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GeneratorTypesModelParameter` |

## Properties

### HasMaxDecodeSteps

    public bool HasMaxDecodeSteps { get; }

Gets whether the "max_decode_steps" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasTemperature

    public bool HasTemperature { get; }

Gets whether the "temperature" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasTopK

    public bool HasTopK { get; }

Gets whether the "top_k" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasTopP

    public bool HasTopP { get; }

Gets whether the "top_p" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### MaxDecodeSteps

    public int MaxDecodeSteps { get; set; }

The maximum number of tokens to generate.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### Temperature

    public float Temperature { get; set; }

The temperature used for sampling. Temperature sampling occurs after both
topP and topK have been applied.
Valid range: \[0.0, 1.0\]
Low temperature = less random. High temperature = more random.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### TopK

    public int TopK { get; set; }

If set, the sampling process in each step is limited to the top_k tokens
with highest probabilities.
Valid range: \[1, 40\] or 1000+.
Small topK = less random. Large topK = more random.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### TopP

    public float TopP { get; set; }

If set, only the tokens comprising the top top_p probability mass are
considered. If both top_p and top_k are
set, top_p will be used for further refining candidates selected with
top_k.
Valid range: (0.0, 1.0\].
Small topP = less random. Large topP = more random.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `float` |   |