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.
2668 2669 2670 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2668 def initialize(**args) update!(**args) end |
Instance Attribute Details
#grounding_config ⇒ Google::Apis::CesV1::DataStoreToolGroundingConfig
Grounding configuration.
Corresponds to the JSON property groundingConfig
2646 2647 2648 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2646 def grounding_config @grounding_config end |
#modality_type ⇒ String
Required. The modality type.
Corresponds to the JSON property modalityType
2651 2652 2653 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2651 def modality_type @modality_type end |
#rewriter_config ⇒ Google::Apis::CesV1::DataStoreToolRewriterConfig
Rewriter configuration.
Corresponds to the JSON property rewriterConfig
2656 2657 2658 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2656 def rewriter_config @rewriter_config end |
#snippets_config ⇒ Google::Apis::CesV1::DataStoreToolSnippetsConfig
Snippets configuration.
Corresponds to the JSON property snippetsConfig
2661 2662 2663 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2661 def snippets_config @snippets_config end |
#summarization_config ⇒ Google::Apis::CesV1::DataStoreToolSummarizationConfig
Summarization configuration.
Corresponds to the JSON property summarizationConfig
2666 2667 2668 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2666 def summarization_config @summarization_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2673 2674 2675 2676 2677 2678 2679 |
# File 'lib/google/apis/ces_v1/classes.rb', line 2673 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 |