Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmModelSettingsParameters

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

Overview

Generative model parameters to control the model behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1LlmModelSettingsParameters

Returns a new instance of GoogleCloudDialogflowCxV3beta1LlmModelSettingsParameters.



11036
11037
11038
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11036

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

Instance Attribute Details

#input_token_limitString

The input token limit. This setting is currently only supported by playbooks. Corresponds to the JSON property inputTokenLimit

Returns:

  • (String)


11020
11021
11022
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11020

def input_token_limit
  @input_token_limit
end

#output_token_limitString

The output token limit. This setting is currently only supported by playbooks. Only one of output_token_limit and max_output_tokens is allowed to be set. Corresponds to the JSON property outputTokenLimit

Returns:

  • (String)


11026
11027
11028
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11026

def output_token_limit
  @output_token_limit
end

#temperatureFloat

The temperature used for sampling during response generation. Value ranges from 0 to 1. Temperature controls the degree of randomness in token selection. Lower temperature means less randomness, while higher temperature means more randomness. Valid range: [0.0, 1.0] Corresponds to the JSON property temperature

Returns:

  • (Float)


11034
11035
11036
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11034

def temperature
  @temperature
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11041
11042
11043
11044
11045
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11041

def update!(**args)
  @input_token_limit = args[:input_token_limit] if args.key?(:input_token_limit)
  @output_token_limit = args[:output_token_limit] if args.key?(:output_token_limit)
  @temperature = args[:temperature] if args.key?(:temperature)
end