Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GeneratorModelParameter
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GeneratorModelParameter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/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) ⇒ GoogleCloudDialogflowCxV3GeneratorModelParameter
constructor
A new instance of GoogleCloudDialogflowCxV3GeneratorModelParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3GeneratorModelParameter
Returns a new instance of GoogleCloudDialogflowCxV3GeneratorModelParameter.
3780 3781 3782 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3780 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_decode_steps ⇒ Fixnum
Corresponds to the JSON property maxDecodeSteps
3763 3764 3765 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3763 def max_decode_steps @max_decode_steps end |
#temperature ⇒ Float
Corresponds to the JSON property temperature
3768 3769 3770 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3768 def temperature @temperature end |
#top_k ⇒ Fixnum
Corresponds to the JSON property topK
3773 3774 3775 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3773 def top_k @top_k end |
#top_p ⇒ Float
Corresponds to the JSON property topP
3778 3779 3780 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3778 def top_p @top_p end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3785 3786 3787 3788 3789 3790 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3785 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 |