Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1InferenceParameter

Returns a new instance of GoogleCloudDialogflowV2beta1InferenceParameter.



15263
15264
15265
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15263

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_output_tokensFixnum

Corresponds to the JSON property maxOutputTokens

Returns:

  • (Fixnum)


15246
15247
15248
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15246

def max_output_tokens
  @max_output_tokens
end

#temperatureFloat

Corresponds to the JSON property temperature

Returns:

  • (Float)


15251
15252
15253
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15251

def temperature
  @temperature
end

#top_kFixnum

Corresponds to the JSON property topK

Returns:

  • (Fixnum)


15256
15257
15258
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15256

def top_k
  @top_k
end

#top_pFloat

Corresponds to the JSON property topP

Returns:

  • (Float)


15261
15262
15263
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15261

def top_p
  @top_p
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15268
15269
15270
15271
15272
15273
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15268

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