Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/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) ⇒ GoogleCloudDialogflowV2InferenceParameter
constructor
A new instance of GoogleCloudDialogflowV2InferenceParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2InferenceParameter
Returns a new instance of GoogleCloudDialogflowV2InferenceParameter.
11579 11580 11581 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11579 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_output_tokens ⇒ Fixnum
Corresponds to the JSON property maxOutputTokens
11562 11563 11564 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11562 def max_output_tokens @max_output_tokens end |
#temperature ⇒ Float
Corresponds to the JSON property temperature
11567 11568 11569 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11567 def temperature @temperature end |
#top_k ⇒ Fixnum
Corresponds to the JSON property topK
11572 11573 11574 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11572 def top_k @top_k end |
#top_p ⇒ Float
Corresponds to the JSON property topP
11577 11578 11579 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11577 def top_p @top_p end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11584 11585 11586 11587 11588 11589 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11584 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 |