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.



2684
2685
2686
# File 'lib/google/apis/ces_v1/classes.rb', line 2684

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

Instance Attribute Details

#grounding_configGoogle::Apis::CesV1::DataStoreToolGroundingConfig

Grounding configuration. Corresponds to the JSON property groundingConfig



2662
2663
2664
# File 'lib/google/apis/ces_v1/classes.rb', line 2662

def grounding_config
  @grounding_config
end

#modality_typeString

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

Returns:

  • (String)


2667
2668
2669
# File 'lib/google/apis/ces_v1/classes.rb', line 2667

def modality_type
  @modality_type
end

#rewriter_configGoogle::Apis::CesV1::DataStoreToolRewriterConfig

Rewriter configuration. Corresponds to the JSON property rewriterConfig



2672
2673
2674
# File 'lib/google/apis/ces_v1/classes.rb', line 2672

def rewriter_config
  @rewriter_config
end

#snippets_configGoogle::Apis::CesV1::DataStoreToolSnippetsConfig

Snippets configuration. Corresponds to the JSON property snippetsConfig



2677
2678
2679
# File 'lib/google/apis/ces_v1/classes.rb', line 2677

def snippets_config
  @snippets_config
end

#summarization_configGoogle::Apis::CesV1::DataStoreToolSummarizationConfig

Summarization configuration. Corresponds to the JSON property summarizationConfig



2682
2683
2684
# File 'lib/google/apis/ces_v1/classes.rb', line 2682

def summarization_config
  @summarization_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2689
2690
2691
2692
2693
2694
2695
# File 'lib/google/apis/ces_v1/classes.rb', line 2689

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)
  @snippets_config = args[:snippets_config] if args.key?(:snippets_config)
  @summarization_config = args[:summarization_config] if args.key?(:summarization_config)
end