Class: Google::Apis::CesV1::DataStoreToolRewriterConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataStoreToolRewriterConfig

Returns a new instance of DataStoreToolRewriterConfig.



2584
2585
2586
# File 'lib/google/apis/ces_v1/classes.rb', line 2584

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

Instance Attribute Details

#disabledBoolean Also known as: disabled?

Optional. Whether the rewriter is disabled. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


2571
2572
2573
# File 'lib/google/apis/ces_v1/classes.rb', line 2571

def disabled
  @disabled
end

#model_settingsGoogle::Apis::CesV1::ModelSettings

Model settings contains various configurations for the LLM model. Corresponds to the JSON property modelSettings



2577
2578
2579
# File 'lib/google/apis/ces_v1/classes.rb', line 2577

def model_settings
  @model_settings
end

#promptString

Optional. The prompt definition. If not set, default prompt will be used. Corresponds to the JSON property prompt

Returns:

  • (String)


2582
2583
2584
# File 'lib/google/apis/ces_v1/classes.rb', line 2582

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2589
2590
2591
2592
2593
# File 'lib/google/apis/ces_v1/classes.rb', line 2589

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