Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2InferenceParameter

Returns a new instance of GoogleCloudDialogflowV2InferenceParameter.



11624
11625
11626
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11624

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

Instance Attribute Details

#max_output_tokensFixnum

Corresponds to the JSON property maxOutputTokens

Returns:

  • (Fixnum)


11607
11608
11609
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11607

def max_output_tokens
  @max_output_tokens
end

#temperatureFloat

Corresponds to the JSON property temperature

Returns:

  • (Float)


11612
11613
11614
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11612

def temperature
  @temperature
end

#top_kFixnum

Corresponds to the JSON property topK

Returns:

  • (Fixnum)


11617
11618
11619
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11617

def top_k
  @top_k
end

#top_pFloat

Corresponds to the JSON property topP

Returns:

  • (Float)


11622
11623
11624
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11622

def top_p
  @top_p
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11629
11630
11631
11632
11633
11634
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11629

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