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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eGenerator.Types.ModelParameter\u003c/code\u003e class within the Google Cloud Dialogflow CX v3 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eGenerator.Types.ModelParameter\u003c/code\u003e allows setting parameters for Large Language Models (LLMs), and default values will be used if no parameters are specified.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a list of available versions for this class ranging from version 1.0.0 up to the latest version, 2.23.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eModelParameter\u003c/code\u003e include \u003ccode\u003eMaxDecodeSteps\u003c/code\u003e, \u003ccode\u003eTemperature\u003c/code\u003e, \u003ccode\u003eTopK\u003c/code\u003e, and \u003ccode\u003eTopP\u003c/code\u003e, which control token generation and sampling randomness.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the base object class, and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"]]],[],null,["# Dialogflow v3 API - Class Generator.Types.ModelParameter (2.24.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.24.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.23.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.23.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.22.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.22.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.21.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.21.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.20.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.20.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.19.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.19.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.18.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.17.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.16.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.15.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.14.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.13.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.12.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.11.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.10.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.9.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.8.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.7.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.6.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.5.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.4.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.3.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.2.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.1.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.0.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.13.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.12.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.11.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.10.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.9.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.8.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.7.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.6.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.5.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.4.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.3.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.2.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.1.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.0.0/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter) \n\n public sealed class Generator.Types.ModelParameter : IMessage\u003cGenerator.Types.ModelParameter\u003e, IEquatable\u003cGenerator.Types.ModelParameter\u003e, IDeepCloneable\u003cGenerator.Types.ModelParameter\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Dialogflow v3 API class Generator.Types.ModelParameter.\n\nParameters to be passed to the LLM. If not set, default values will be\nused. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Generator.Types.ModelParameter \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Generator](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator)[Types](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types)[ModelParameter](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Generator](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator)[Types](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types)[ModelParameter](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Generator](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator)[Types](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types)[ModelParameter](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Generator.Types.ModelParameter), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.Cx.V3](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.Cx.V3.dll\n\nConstructors\n------------\n\n### ModelParameter()\n\n public ModelParameter()\n\n### ModelParameter(ModelParameter)\n\n public ModelParameter(Generator.Types.ModelParameter other)\n\nProperties\n----------\n\n### HasMaxDecodeSteps\n\n public bool HasMaxDecodeSteps { get; }\n\nGets whether the \"max_decode_steps\" field is set\n\n### HasTemperature\n\n public bool HasTemperature { get; }\n\nGets whether the \"temperature\" field is set\n\n### HasTopK\n\n public bool HasTopK { get; }\n\nGets whether the \"top_k\" field is set\n\n### HasTopP\n\n public bool HasTopP { get; }\n\nGets whether the \"top_p\" field is set\n\n### MaxDecodeSteps\n\n public int MaxDecodeSteps { get; set; }\n\nThe maximum number of tokens to generate.\n\n### Temperature\n\n public float Temperature { get; set; }\n\nThe temperature used for sampling. Temperature sampling occurs after both\ntopP and topK have been applied.\nValid range: \\[0.0, 1.0\\]\nLow temperature = less random. High temperature = more random.\n\n### TopK\n\n public int TopK { get; set; }\n\nIf set, the sampling process in each step is limited to the top_k tokens\nwith highest probabilities.\nValid range: \\[1, 40\\] or 1000+.\nSmall topK = less random. Large topK = more random.\n\n### TopP\n\n public float TopP { get; set; }\n\nIf set, only the tokens comprising the top top_p probability mass are\nconsidered. If both top_p and top_k are\nset, top_p will be used for further refining candidates selected with\ntop_k.\nValid range: (0.0, 1.0\\].\nSmall topP = less random. Large topP = more random."]]