Class: Google::Apis::CesV1::DataStoreToolModalityConfig
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::DataStoreToolModalityConfig
- 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
-
#grounding_config ⇒ Google::Apis::CesV1::DataStoreToolGroundingConfig
Grounding configuration.
-
#modality_type ⇒ String
Required.
-
#rewriter_config ⇒ Google::Apis::CesV1::DataStoreToolRewriterConfig
Rewriter configuration.
-
#snippets_config ⇒ Google::Apis::CesV1::DataStoreToolSnippetsConfig
Snippets configuration.
-
#summarization_config ⇒ Google::Apis::CesV1::DataStoreToolSummarizationConfig
Summarization configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataStoreToolModalityConfig
constructor
A new instance of DataStoreToolModalityConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_config ⇒ Google::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_type ⇒ String
Required. The modality type.
Corresponds to the JSON property modalityType
2667 2668 2669 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2667 def modality_type @modality_type end |
#rewriter_config ⇒ Google::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_config ⇒ Google::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_config ⇒ Google::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 |