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.



2384
2385
2386
# File 'lib/google/apis/ces_v1/classes.rb', line 2384

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

Instance Attribute Details

#grounding_configGoogle::Apis::CesV1::DataStoreToolGroundingConfig

Grounding configuration. Corresponds to the JSON property groundingConfig



2367
2368
2369
# File 'lib/google/apis/ces_v1/classes.rb', line 2367

def grounding_config
  @grounding_config
end

#modality_typeString

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

Returns:

  • (String)


2372
2373
2374
# File 'lib/google/apis/ces_v1/classes.rb', line 2372

def modality_type
  @modality_type
end

#rewriter_configGoogle::Apis::CesV1::DataStoreToolRewriterConfig

Rewriter configuration. Corresponds to the JSON property rewriterConfig



2377
2378
2379
# File 'lib/google/apis/ces_v1/classes.rb', line 2377

def rewriter_config
  @rewriter_config
end

#summarization_configGoogle::Apis::CesV1::DataStoreToolSummarizationConfig

Summarization configuration. Corresponds to the JSON property summarizationConfig



2382
2383
2384
# File 'lib/google/apis/ces_v1/classes.rb', line 2382

def summarization_config
  @summarization_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2389
2390
2391
2392
2393
2394
# File 'lib/google/apis/ces_v1/classes.rb', line 2389

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