Class: Google::Apis::CesV1::DataStoreToolModalityConfig

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

If specified, will apply the given configuration for the specified modality.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataStoreToolModalityConfig

Returns a new instance of DataStoreToolModalityConfig.



2551
2552
2553
# File 'lib/google/apis/ces_v1/classes.rb', line 2551

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

Instance Attribute Details

#grounding_configGoogle::Apis::CesV1::DataStoreToolGroundingConfig

Grounding configuration. Corresponds to the JSON property groundingConfig



2534
2535
2536
# File 'lib/google/apis/ces_v1/classes.rb', line 2534

def grounding_config
  @grounding_config
end

#modality_typeString

Required. The modality type. Corresponds to the JSON property modalityType

Returns:

  • (String)


2539
2540
2541
# File 'lib/google/apis/ces_v1/classes.rb', line 2539

def modality_type
  @modality_type
end

#rewriter_configGoogle::Apis::CesV1::DataStoreToolRewriterConfig

Rewriter configuration. Corresponds to the JSON property rewriterConfig



2544
2545
2546
# File 'lib/google/apis/ces_v1/classes.rb', line 2544

def rewriter_config
  @rewriter_config
end

#summarization_configGoogle::Apis::CesV1::DataStoreToolSummarizationConfig

Summarization configuration. Corresponds to the JSON property summarizationConfig



2549
2550
2551
# File 'lib/google/apis/ces_v1/classes.rb', line 2549

def summarization_config
  @summarization_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2556
2557
2558
2559
2560
2561
# File 'lib/google/apis/ces_v1/classes.rb', line 2556

def update!(**args)
  @grounding_config = args[:grounding_config] if args.key?(:grounding_config)
  @modality_type = args[:modality_type] if args.key?(:modality_type)
  @rewriter_config = args[:rewriter_config] if args.key?(:rewriter_config)
  @summarization_config = args[:summarization_config] if args.key?(:summarization_config)
end