google-apis-discoveryengine_v1 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 076ee6df140b5bbf50a4d194abeafa0b25b2a2958a5655d2a72f0a7380b16818
4
- data.tar.gz: 0f53cb78e0fc1ed54cfac7fa8b116c999c8d94fdd44c306b0d8eee13382b9cc3
3
+ metadata.gz: 7a1984fea79b1204ca0f384c027daaad249fbfd9bfa8be77f3f2b7a991347c71
4
+ data.tar.gz: 3b421b320cf898d3ac6fca0213256732706b3c9fd421474fd03a9f222bac0431
5
5
  SHA512:
6
- metadata.gz: 7f42aa32e9f072556520106a0ac8a1a73fe62deadca7bdadbfc5c5af3f1ecaf695e1426bf9c1f71da4a56539f0d1f4f5d67bdbaa580bd76689c24937ba68b6cf
7
- data.tar.gz: 653b7dfd1b8e11a5d9eb5e7d8b526daccb4d77358457b0042cb93a014ca9577f34d794dfe1e7a008db7f61e44714dbeb2b6b88e9b3033aa2ffed6bc1fcd3ebdf
6
+ metadata.gz: 13b88840f4250c827cca3e1db80c189f2c6fc2bfb0da2dfffe9b363a6c50754cec1841a783973eba767ba465ca469597eabf55c3bf2a1453b33222b8f9d40f55
7
+ data.tar.gz: b302f2e2db31a52bc09d98cfda5774576777d5e233909d7a661af5943ebd7c4e34db4edb4ad78fc12b4b3d3d47965e2c6b47b43a7c3f9aaa2525d4348f632d7e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1
2
2
 
3
+ ### v0.47.0 (2025-08-10)
4
+
5
+ * Regenerated from discovery document revision 20250803
6
+
3
7
  ### v0.46.0 (2025-08-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20250728
@@ -3676,6 +3676,28 @@ module Google
3676
3676
  class GoogleCloudDiscoveryengineV1Assistant
3677
3677
  include Google::Apis::Core::Hashable
3678
3678
 
3679
+ # Customer-defined policy for the assistant.
3680
+ # Corresponds to the JSON property `customerPolicy`
3681
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantCustomerPolicy]
3682
+ attr_accessor :customer_policy
3683
+
3684
+ # Optional. Note: not implemented yet. Use enabled_actions instead. The enabled
3685
+ # tools on this assistant. The keys are connector name, for example "projects/`
3686
+ # projectId`/locations/`locationId`/collections/`collectionId`/dataconnector The
3687
+ # values consist of admin enabled tools towards the connector instance. Admin
3688
+ # can selectively enable multiple tools on any of the connector instances that
3689
+ # they created in the project. For example `"jira1ConnectorName": [(toolId1, "
3690
+ # createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3,
3691
+ # "sendEmail"),..] `
3692
+ # Corresponds to the JSON property `enabledTools`
3693
+ # @return [Hash<String,Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantToolList>]
3694
+ attr_accessor :enabled_tools
3695
+
3696
+ # Configuration for the generation of the assistant response.
3697
+ # Corresponds to the JSON property `generationConfig`
3698
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantGenerationConfig]
3699
+ attr_accessor :generation_config
3700
+
3679
3701
  # Immutable. Resource name of the assistant. Format: `projects/`project`/
3680
3702
  # locations/`location`/collections/`collection`/engines/`engine`/assistants/`
3681
3703
  # assistant`` It must be a UTF-8 encoded string with a length limit of 1024
@@ -3684,13 +3706,22 @@ module Google
3684
3706
  # @return [String]
3685
3707
  attr_accessor :name
3686
3708
 
3709
+ # Optional. The type of web grounding to use.
3710
+ # Corresponds to the JSON property `webGroundingType`
3711
+ # @return [String]
3712
+ attr_accessor :web_grounding_type
3713
+
3687
3714
  def initialize(**args)
3688
3715
  update!(**args)
3689
3716
  end
3690
3717
 
3691
3718
  # Update properties of this object
3692
3719
  def update!(**args)
3720
+ @customer_policy = args[:customer_policy] if args.key?(:customer_policy)
3721
+ @enabled_tools = args[:enabled_tools] if args.key?(:enabled_tools)
3722
+ @generation_config = args[:generation_config] if args.key?(:generation_config)
3693
3723
  @name = args[:name] if args.key?(:name)
3724
+ @web_grounding_type = args[:web_grounding_type] if args.key?(:web_grounding_type)
3694
3725
  end
3695
3726
  end
3696
3727
 
@@ -3846,6 +3877,107 @@ module Google
3846
3877
  end
3847
3878
  end
3848
3879
 
3880
+ # Customer-defined policy for the assistant.
3881
+ class GoogleCloudDiscoveryengineV1AssistantCustomerPolicy
3882
+ include Google::Apis::Core::Hashable
3883
+
3884
+ # Optional. List of banned phrases.
3885
+ # Corresponds to the JSON property `bannedPhrases`
3886
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase>]
3887
+ attr_accessor :banned_phrases
3888
+
3889
+ def initialize(**args)
3890
+ update!(**args)
3891
+ end
3892
+
3893
+ # Update properties of this object
3894
+ def update!(**args)
3895
+ @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases)
3896
+ end
3897
+ end
3898
+
3899
+ # Definition of a customer-defined banned phrase. A banned phrase is not allowed
3900
+ # to appear in the user query or the LLM response, or else the answer will be
3901
+ # refused.
3902
+ class GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase
3903
+ include Google::Apis::Core::Hashable
3904
+
3905
+ # Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when
3906
+ # matching banned phrases. For example, "cafe" would match "café".
3907
+ # Corresponds to the JSON property `ignoreDiacritics`
3908
+ # @return [Boolean]
3909
+ attr_accessor :ignore_diacritics
3910
+ alias_method :ignore_diacritics?, :ignore_diacritics
3911
+
3912
+ # Optional. Match type for the banned phrase.
3913
+ # Corresponds to the JSON property `matchType`
3914
+ # @return [String]
3915
+ attr_accessor :match_type
3916
+
3917
+ # Required. The raw string content to be banned.
3918
+ # Corresponds to the JSON property `phrase`
3919
+ # @return [String]
3920
+ attr_accessor :phrase
3921
+
3922
+ def initialize(**args)
3923
+ update!(**args)
3924
+ end
3925
+
3926
+ # Update properties of this object
3927
+ def update!(**args)
3928
+ @ignore_diacritics = args[:ignore_diacritics] if args.key?(:ignore_diacritics)
3929
+ @match_type = args[:match_type] if args.key?(:match_type)
3930
+ @phrase = args[:phrase] if args.key?(:phrase)
3931
+ end
3932
+ end
3933
+
3934
+ # Configuration for the generation of the assistant response.
3935
+ class GoogleCloudDiscoveryengineV1AssistantGenerationConfig
3936
+ include Google::Apis::Core::Hashable
3937
+
3938
+ # The default language to use for the generation of the assistant response. Use
3939
+ # an ISO 639-1 language code such as `en`. If not specified, the language will
3940
+ # be automatically detected.
3941
+ # Corresponds to the JSON property `defaultLanguage`
3942
+ # @return [String]
3943
+ attr_accessor :default_language
3944
+
3945
+ # System instruction, also known as the prompt preamble for LLM calls.
3946
+ # Corresponds to the JSON property `systemInstruction`
3947
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction]
3948
+ attr_accessor :system_instruction
3949
+
3950
+ def initialize(**args)
3951
+ update!(**args)
3952
+ end
3953
+
3954
+ # Update properties of this object
3955
+ def update!(**args)
3956
+ @default_language = args[:default_language] if args.key?(:default_language)
3957
+ @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
3958
+ end
3959
+ end
3960
+
3961
+ # System instruction, also known as the prompt preamble for LLM calls.
3962
+ class GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction
3963
+ include Google::Apis::Core::Hashable
3964
+
3965
+ # Optional. Additional system instruction that will be added to the default
3966
+ # system instruction.
3967
+ # Corresponds to the JSON property `additionalSystemInstruction`
3968
+ # @return [String]
3969
+ attr_accessor :additional_system_instruction
3970
+
3971
+ def initialize(**args)
3972
+ update!(**args)
3973
+ end
3974
+
3975
+ # Update properties of this object
3976
+ def update!(**args)
3977
+ @additional_system_instruction = args[:additional_system_instruction] if args.key?(:additional_system_instruction)
3978
+ end
3979
+ end
3980
+
3849
3981
  # A piece of content and possibly its grounding information. Not all content
3850
3982
  # needs grounding. Phrases like "Of course, I will gladly search it for you." do
3851
3983
  # not need grounding.
@@ -4014,6 +4146,52 @@ module Google
4014
4146
  end
4015
4147
  end
4016
4148
 
4149
+ # Information to identify a tool.
4150
+ class GoogleCloudDiscoveryengineV1AssistantToolInfo
4151
+ include Google::Apis::Core::Hashable
4152
+
4153
+ # The display name of the tool.
4154
+ # Corresponds to the JSON property `toolDisplayName`
4155
+ # @return [String]
4156
+ attr_accessor :tool_display_name
4157
+
4158
+ # The name of the tool as defined by DataConnectorService.QueryAvailableActions.
4159
+ # Note: it's using `action` in the DataConnectorService apis, but they are the
4160
+ # same as the `tool` here.
4161
+ # Corresponds to the JSON property `toolName`
4162
+ # @return [String]
4163
+ attr_accessor :tool_name
4164
+
4165
+ def initialize(**args)
4166
+ update!(**args)
4167
+ end
4168
+
4169
+ # Update properties of this object
4170
+ def update!(**args)
4171
+ @tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
4172
+ @tool_name = args[:tool_name] if args.key?(:tool_name)
4173
+ end
4174
+ end
4175
+
4176
+ # The enabled tools on a connector
4177
+ class GoogleCloudDiscoveryengineV1AssistantToolList
4178
+ include Google::Apis::Core::Hashable
4179
+
4180
+ # The list of tools with corresponding tool information.
4181
+ # Corresponds to the JSON property `toolInfo`
4182
+ # @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantToolInfo>]
4183
+ attr_accessor :tool_info
4184
+
4185
+ def initialize(**args)
4186
+ update!(**args)
4187
+ end
4188
+
4189
+ # Update properties of this object
4190
+ def update!(**args)
4191
+ @tool_info = args[:tool_info] if args.key?(:tool_info)
4192
+ end
4193
+ end
4194
+
4017
4195
  # Metadata related to the progress of the SiteSearchEngineService.
4018
4196
  # BatchCreateTargetSites operation. This will be returned by the google.
4019
4197
  # longrunning.Operation.metadata field.
@@ -4885,6 +5063,12 @@ module Google
4885
5063
  class GoogleCloudDiscoveryengineV1ChunkDocumentMetadata
4886
5064
  include Google::Apis::Core::Hashable
4887
5065
 
5066
+ # The mime type of the document. https://www.iana.org/assignments/media-types/
5067
+ # media-types.xhtml.
5068
+ # Corresponds to the JSON property `mimeType`
5069
+ # @return [String]
5070
+ attr_accessor :mime_type
5071
+
4888
5072
  # Data representation. The structured JSON data for the document. It should
4889
5073
  # conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
4890
5074
  # Corresponds to the JSON property `structData`
@@ -4907,6 +5091,7 @@ module Google
4907
5091
 
4908
5092
  # Update properties of this object
4909
5093
  def update!(**args)
5094
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
4910
5095
  @struct_data = args[:struct_data] if args.key?(:struct_data)
4911
5096
  @title = args[:title] if args.key?(:title)
4912
5097
  @uri = args[:uri] if args.key?(:uri)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1
18
18
  # Version of the google-apis-discoveryengine_v1 gem
19
- GEM_VERSION = "0.46.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250728"
25
+ REVISION = "20250803"
26
26
  end
27
27
  end
28
28
  end
@@ -604,6 +604,30 @@ module Google
604
604
  include Google::Apis::Core::JsonObjectSupport
605
605
  end
606
606
 
607
+ class GoogleCloudDiscoveryengineV1AssistantCustomerPolicy
608
+ class Representation < Google::Apis::Core::JsonRepresentation; end
609
+
610
+ include Google::Apis::Core::JsonObjectSupport
611
+ end
612
+
613
+ class GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
619
+ class GoogleCloudDiscoveryengineV1AssistantGenerationConfig
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
625
+ class GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
607
631
  class GoogleCloudDiscoveryengineV1AssistantGroundedContent
608
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
609
633
 
@@ -634,6 +658,18 @@ module Google
634
658
  include Google::Apis::Core::JsonObjectSupport
635
659
  end
636
660
 
661
+ class GoogleCloudDiscoveryengineV1AssistantToolInfo
662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
663
+
664
+ include Google::Apis::Core::JsonObjectSupport
665
+ end
666
+
667
+ class GoogleCloudDiscoveryengineV1AssistantToolList
668
+ class Representation < Google::Apis::Core::JsonRepresentation; end
669
+
670
+ include Google::Apis::Core::JsonObjectSupport
671
+ end
672
+
637
673
  class GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
638
674
  class Representation < Google::Apis::Core::JsonRepresentation; end
639
675
 
@@ -5256,7 +5292,14 @@ module Google
5256
5292
  class GoogleCloudDiscoveryengineV1Assistant
5257
5293
  # @private
5258
5294
  class Representation < Google::Apis::Core::JsonRepresentation
5295
+ property :customer_policy, as: 'customerPolicy', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantCustomerPolicy, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantCustomerPolicy::Representation
5296
+
5297
+ hash :enabled_tools, as: 'enabledTools', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantToolList, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantToolList::Representation
5298
+
5299
+ property :generation_config, as: 'generationConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantGenerationConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantGenerationConfig::Representation
5300
+
5259
5301
  property :name, as: 'name'
5302
+ property :web_grounding_type, as: 'webGroundingType'
5260
5303
  end
5261
5304
  end
5262
5305
 
@@ -5308,6 +5351,39 @@ module Google
5308
5351
  end
5309
5352
  end
5310
5353
 
5354
+ class GoogleCloudDiscoveryengineV1AssistantCustomerPolicy
5355
+ # @private
5356
+ class Representation < Google::Apis::Core::JsonRepresentation
5357
+ collection :banned_phrases, as: 'bannedPhrases', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase::Representation
5358
+
5359
+ end
5360
+ end
5361
+
5362
+ class GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase
5363
+ # @private
5364
+ class Representation < Google::Apis::Core::JsonRepresentation
5365
+ property :ignore_diacritics, as: 'ignoreDiacritics'
5366
+ property :match_type, as: 'matchType'
5367
+ property :phrase, as: 'phrase'
5368
+ end
5369
+ end
5370
+
5371
+ class GoogleCloudDiscoveryengineV1AssistantGenerationConfig
5372
+ # @private
5373
+ class Representation < Google::Apis::Core::JsonRepresentation
5374
+ property :default_language, as: 'defaultLanguage'
5375
+ property :system_instruction, as: 'systemInstruction', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction::Representation
5376
+
5377
+ end
5378
+ end
5379
+
5380
+ class GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction
5381
+ # @private
5382
+ class Representation < Google::Apis::Core::JsonRepresentation
5383
+ property :additional_system_instruction, as: 'additionalSystemInstruction'
5384
+ end
5385
+ end
5386
+
5311
5387
  class GoogleCloudDiscoveryengineV1AssistantGroundedContent
5312
5388
  # @private
5313
5389
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5359,6 +5435,22 @@ module Google
5359
5435
  end
5360
5436
  end
5361
5437
 
5438
+ class GoogleCloudDiscoveryengineV1AssistantToolInfo
5439
+ # @private
5440
+ class Representation < Google::Apis::Core::JsonRepresentation
5441
+ property :tool_display_name, as: 'toolDisplayName'
5442
+ property :tool_name, as: 'toolName'
5443
+ end
5444
+ end
5445
+
5446
+ class GoogleCloudDiscoveryengineV1AssistantToolList
5447
+ # @private
5448
+ class Representation < Google::Apis::Core::JsonRepresentation
5449
+ collection :tool_info, as: 'toolInfo', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantToolInfo, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AssistantToolInfo::Representation
5450
+
5451
+ end
5452
+ end
5453
+
5362
5454
  class GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
5363
5455
  # @private
5364
5456
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5603,6 +5695,7 @@ module Google
5603
5695
  class GoogleCloudDiscoveryengineV1ChunkDocumentMetadata
5604
5696
  # @private
5605
5697
  class Representation < Google::Apis::Core::JsonRepresentation
5698
+ property :mime_type, as: 'mimeType'
5606
5699
  hash :struct_data, as: 'structData'
5607
5700
  property :title, as: 'title'
5608
5701
  property :uri, as: 'uri'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.46.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.47.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1
62
62
  rdoc_options: []
63
63
  require_paths: