Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorModelParameter
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorModelParameter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Instance Attribute Summary collapse
-
#max_decode_steps ⇒ Fixnum
Corresponds to the JSON property
maxDecodeSteps. -
#temperature ⇒ Float
Corresponds to the JSON property
temperature. -
#top_k ⇒ Fixnum
Corresponds to the JSON property
topK. -
#top_p ⇒ Float
Corresponds to the JSON property
topP.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GeneratorModelParameter
constructor
A new instance of GoogleCloudDialogflowCxV3beta1GeneratorModelParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GeneratorModelParameter
Returns a new instance of GoogleCloudDialogflowCxV3beta1GeneratorModelParameter.
7995 7996 7997 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7995 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_decode_steps ⇒ Fixnum
Corresponds to the JSON property maxDecodeSteps
7978 7979 7980 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7978 def max_decode_steps @max_decode_steps end |
#temperature ⇒ Float
Corresponds to the JSON property temperature
7983 7984 7985 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7983 def temperature @temperature end |
#top_k ⇒ Fixnum
Corresponds to the JSON property topK
7988 7989 7990 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7988 def top_k @top_k end |
#top_p ⇒ Float
Corresponds to the JSON property topP
7993 7994 7995 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7993 def top_p @top_p end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8000 8001 8002 8003 8004 8005 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8000 def update!(**args) @max_decode_steps = args[:max_decode_steps] if args.key?(:max_decode_steps) @temperature = args[:temperature] if args.key?(:temperature) @top_k = args[:top_k] if args.key?(:top_k) @top_p = args[:top_p] if args.key?(:top_p) end |