Class: Google::Apis::CesV1::DataStoreToolSummarizationConfig

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

Summarization configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataStoreToolSummarizationConfig

Returns a new instance of DataStoreToolSummarizationConfig.



2624
2625
2626
# File 'lib/google/apis/ces_v1/classes.rb', line 2624

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

Instance Attribute Details

#disabledBoolean Also known as: disabled?

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

Returns:

  • (Boolean)


2611
2612
2613
# File 'lib/google/apis/ces_v1/classes.rb', line 2611

def disabled
  @disabled
end

#model_settingsGoogle::Apis::CesV1::ModelSettings

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



2617
2618
2619
# File 'lib/google/apis/ces_v1/classes.rb', line 2617

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)


2622
2623
2624
# File 'lib/google/apis/ces_v1/classes.rb', line 2622

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2629
2630
2631
2632
2633
# File 'lib/google/apis/ces_v1/classes.rb', line 2629

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