Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ModelParameter.
Parameters to be passed to the LLM. If not set, default values will be
used.
Generated from protobuf messagegoogle.cloud.dialogflow.cx.v3.Generator.ModelParameter
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ Generator
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ temperature
float
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.
↳ max_decode_steps
int
The maximum number of tokens to generate.
↳ top_p
float
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.
↳ top_k
int
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.
getTemperature
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.
Returns
Type
Description
float
hasTemperature
clearTemperature
setTemperature
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.
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getMaxDecodeSteps
The maximum number of tokens to generate.
Returns
Type
Description
int
hasMaxDecodeSteps
clearMaxDecodeSteps
setMaxDecodeSteps
The maximum number of tokens to generate.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getTopP
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.
Returns
Type
Description
float
hasTopP
clearTopP
setTopP
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.
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getTopK
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.
Returns
Type
Description
int
hasTopK
clearTopK
setTopK
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.
[[["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."],[],[],null,["# Google Cloud Dialogflow Cx V3 Client - Class ModelParameter (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Generator.ModelParameter)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.Generator.ModelParameter)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.Generator.ModelParameter)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.Generator.ModelParameter)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.Generator.ModelParameter)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.Generator.ModelParameter)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.Generator.ModelParameter)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.Generator.ModelParameter)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.Generator.ModelParameter) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ModelParameter.\n\nParameters to be passed to the LLM. If not set, default values will be\nused.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.Generator.ModelParameter`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3 \\\\ Generator\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTemperature\n\nThe temperature used for sampling. Temperature sampling occurs after both\ntopP and topK have been applied.\n\nValid range: \\[0.0, 1.0\\]\nLow temperature = less random. High temperature = more random.\n\n### hasTemperature\n\n### clearTemperature\n\n### setTemperature\n\nThe temperature used for sampling. Temperature sampling occurs after both\ntopP and topK have been applied.\n\nValid range: \\[0.0, 1.0\\]\nLow temperature = less random. High temperature = more random.\n\n### getMaxDecodeSteps\n\nThe maximum number of tokens to generate.\n\n### hasMaxDecodeSteps\n\n### clearMaxDecodeSteps\n\n### setMaxDecodeSteps\n\nThe maximum number of tokens to generate.\n\n### getTopP\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.\n\nValid range: (0.0, 1.0\\].\nSmall topP = less random. Large topP = more random.\n\n### hasTopP\n\n### clearTopP\n\n### setTopP\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.\n\nValid range: (0.0, 1.0\\].\nSmall topP = less random. Large topP = more random.\n\n### getTopK\n\nIf set, the sampling process in each step is limited to the top_k tokens\nwith highest probabilities.\n\nValid range: \\[1, 40\\] or 1000+.\nSmall topK = less random. Large topK = more random.\n\n### hasTopK\n\n### clearTopK\n\n### setTopK\n\nIf set, the sampling process in each step is limited to the top_k tokens\nwith highest probabilities.\n\nValid range: \\[1, 40\\] or 1000+.\nSmall topK = less random. Large topK = more random."]]