Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Instance Attribute Summary collapse
-
#max_output_tokens ⇒ Fixnum
Corresponds to the JSON property
maxOutputTokens. -
#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) ⇒ GoogleCloudDialogflowV2beta1InferenceParameter
constructor
A new instance of GoogleCloudDialogflowV2beta1InferenceParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1InferenceParameter
Returns a new instance of GoogleCloudDialogflowV2beta1InferenceParameter.
15338 15339 15340 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15338 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_output_tokens ⇒ Fixnum
Corresponds to the JSON property maxOutputTokens
15321 15322 15323 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15321 def max_output_tokens @max_output_tokens end |
#temperature ⇒ Float
Corresponds to the JSON property temperature
15326 15327 15328 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15326 def temperature @temperature end |
#top_k ⇒ Fixnum
Corresponds to the JSON property topK
15331 15332 15333 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15331 def top_k @top_k end |
#top_p ⇒ Float
Corresponds to the JSON property topP
15336 15337 15338 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15336 def top_p @top_p end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15343 15344 15345 15346 15347 15348 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15343 def update!(**args) @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens) @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 |