Class: Google::Apis::CesV1::DataStoreToolRewriterConfig
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::DataStoreToolRewriterConfig
- 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
Rewriter configuration.
Instance Attribute Summary collapse
-
#disabled ⇒ Boolean
(also: #disabled?)
Optional.
-
#model_settings ⇒ Google::Apis::CesV1::ModelSettings
Model settings contains various configurations for the LLM model.
-
#prompt ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataStoreToolRewriterConfig
constructor
A new instance of DataStoreToolRewriterConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataStoreToolRewriterConfig
Returns a new instance of DataStoreToolRewriterConfig.
2417 2418 2419 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2417 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disabled ⇒ Boolean Also known as: disabled?
Optional. Whether the rewriter is disabled.
Corresponds to the JSON property disabled
2404 2405 2406 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2404 def disabled @disabled end |
#model_settings ⇒ Google::Apis::CesV1::ModelSettings
Model settings contains various configurations for the LLM model.
Corresponds to the JSON property modelSettings
2410 2411 2412 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2410 def model_settings @model_settings end |
#prompt ⇒ String
Optional. The prompt definition. If not set, default prompt will be used.
Corresponds to the JSON property prompt
2415 2416 2417 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2415 def prompt @prompt end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2422 2423 2424 2425 2426 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2422 def update!(**args) @disabled = args[:disabled] if args.key?(:disabled) @model_settings = args[:model_settings] if args.key?(:model_settings) @prompt = args[:prompt] if args.key?(:prompt) end |