Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorModelParameter

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GeneratorModelParameter

Returns a new instance of GoogleCloudDialogflowCxV3beta1GeneratorModelParameter.



7983
7984
7985
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7983

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

Instance Attribute Details

#max_decode_stepsFixnum

Corresponds to the JSON property maxDecodeSteps

Returns:

  • (Fixnum)


7966
7967
7968
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7966

def max_decode_steps
  @max_decode_steps
end

#temperatureFloat

Corresponds to the JSON property temperature

Returns:

  • (Float)


7971
7972
7973
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7971

def temperature
  @temperature
end

#top_kFixnum

Corresponds to the JSON property topK

Returns:

  • (Fixnum)


7976
7977
7978
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7976

def top_k
  @top_k
end

#top_pFloat

Corresponds to the JSON property topP

Returns:

  • (Float)


7981
7982
7983
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7981

def top_p
  @top_p
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7988
7989
7990
7991
7992
7993
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7988

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