Class: Google::Apis::CesV1::ModelSettings
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::ModelSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
Model settings contains various configurations for the LLM model.
Instance Attribute Summary collapse
-
#model ⇒ String
Optional.
-
#temperature ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModelSettings
constructor
A new instance of ModelSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ModelSettings
Returns a new instance of ModelSettings.
5466 5467 5468 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5466 def initialize(**args) update!(**args) end |
Instance Attribute Details
#model ⇒ String
Optional. The LLM model that the agent should use. If not set, the agent will
inherit the model from its parent agent.
Corresponds to the JSON property model
5456 5457 5458 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5456 def model @model end |
#temperature ⇒ Float
Optional. If set, this temperature will be used for the LLM model. Temperature
controls the randomness of the model's responses. Lower temperatures produce
responses that are more predictable. Higher temperatures produce responses
that are more creative.
Corresponds to the JSON property temperature
5464 5465 5466 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5464 def temperature @temperature end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5471 5472 5473 5474 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5471 def update!(**args) @model = args[:model] if args.key?(:model) @temperature = args[:temperature] if args.key?(:temperature) end |