Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmModelSettingsParameters
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmModelSettingsParameters
- 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
-
#input_token_limit ⇒ String
The input token limit.
-
#output_token_limit ⇒ String
The output token limit.
-
#temperature ⇒ Float
The temperature used for sampling during response generation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1LlmModelSettingsParameters
constructor
A new instance of GoogleCloudDialogflowCxV3beta1LlmModelSettingsParameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_limit ⇒ String
The input token limit. This setting is currently only supported by playbooks.
Corresponds to the JSON property inputTokenLimit
11020 11021 11022 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11020 def input_token_limit @input_token_limit end |
#output_token_limit ⇒ String
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
11026 11027 11028 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11026 def output_token_limit @output_token_limit end |
#temperature ⇒ Float
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
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 |