aws-sdk-qbusiness 1.33.0 → 1.34.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: 93ae7d80eba4ed6a2b03375085d99b36bc33d3a9241b4f9a4d956a24f3e74172
4
- data.tar.gz: f4833d6145b79f18471a5744a4c450f6cb23e5b19876af5aae975cbff9766326
3
+ metadata.gz: 4614a1bcb8aa0f7d7f629afdce8a88a26a477af72140f7d6c407131a9054ea00
4
+ data.tar.gz: '097f9ebfc553e50fe7b339172274c82309b6a1e46b1e81ec7f7fa86473892162'
5
5
  SHA512:
6
- metadata.gz: c0db3421ce52878018d81d179af76e91baeb2ac93e216e8be23303286c6ce1436735733dbbb276a669eb5b159e7e18cdc68073919faf3a1a8a271a7ac2515793
7
- data.tar.gz: 2aa064684236e3101a736552137e7511c69fb6256df9d3edc32185a606c55323e3984a12f2635311ede4afff7edee8959332476aa1e786b37e64cfee9cbad8af
6
+ metadata.gz: f431d09304fdf124af8e7ad89eef477337a49150817b37372d6ad864cef507fc30e86485845e159b387e57a459a852de9e8d293a0064b361cef8d84e6589607e
7
+ data.tar.gz: ce28b90dab2432fef0a76e3b1453c05055e1d21947b6c16968c5c125db5e94ae4dc044d9a00cad482b7512f249275ecb05de3d7d73bca6abf173022fbb019499
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.34.0 (2025-04-10)
5
+ ------------------
6
+
7
+ * Feature - Adds functionality to enable/disable a new Q Business Hallucination Reduction feature. If enabled, Q Business will detect and attempt to remove Hallucinations from certain Chat requests.
8
+
4
9
  1.33.0 (2025-03-21)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.33.0
1
+ 1.34.0
@@ -529,6 +529,7 @@ module Aws::QBusiness
529
529
  # resp.output_stream.event_types #=> [:text_event, :metadata_event, :action_review_event, :failed_attachment_event, :auth_challenge_request_event]
530
530
  #
531
531
  # For :text_event event available at #on_text_event_event callback and response eventstream enumerator:
532
+ # event.system_message_type #=> String, one of "RESPONSE", "GROUNDED_RESPONSE"
532
533
  # event.conversation_id #=> String
533
534
  # event.user_message_id #=> String
534
535
  # event.system_message_id #=> String
@@ -642,7 +643,7 @@ module Aws::QBusiness
642
643
  tracer: tracer
643
644
  )
644
645
  context[:gem_name] = 'aws-sdk-qbusiness'
645
- context[:gem_version] = '1.33.0'
646
+ context[:gem_version] = '1.34.0'
646
647
  Seahorse::Client::Request.new(handlers, context)
647
648
  end
648
649
 
@@ -2614,6 +2614,7 @@ module Aws::QBusiness
2614
2614
  # * {Types::GetChatControlsConfigurationResponse#topic_configurations #topic_configurations} => Array<Types::TopicConfiguration>
2615
2615
  # * {Types::GetChatControlsConfigurationResponse#creator_mode_configuration #creator_mode_configuration} => Types::AppliedCreatorModeConfiguration
2616
2616
  # * {Types::GetChatControlsConfigurationResponse#next_token #next_token} => String
2617
+ # * {Types::GetChatControlsConfigurationResponse#hallucination_reduction_configuration #hallucination_reduction_configuration} => Types::HallucinationReductionConfiguration
2617
2618
  #
2618
2619
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2619
2620
  #
@@ -2653,6 +2654,7 @@ module Aws::QBusiness
2653
2654
  # resp.topic_configurations[0].rules[0].rule_configuration.content_retrieval_rule.eligible_data_sources[0].data_source_id #=> String
2654
2655
  # resp.creator_mode_configuration.creator_mode_control #=> String, one of "ENABLED", "DISABLED"
2655
2656
  # resp.next_token #=> String
2657
+ # resp.hallucination_reduction_configuration.hallucination_reduction_control #=> String, one of "ENABLED", "DISABLED"
2656
2658
  #
2657
2659
  # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/GetChatControlsConfiguration AWS API Documentation
2658
2660
  #
@@ -4873,6 +4875,9 @@ module Aws::QBusiness
4873
4875
  # @option params [Types::CreatorModeConfiguration] :creator_mode_configuration
4874
4876
  # The configuration details for `CREATOR_MODE`.
4875
4877
  #
4878
+ # @option params [Types::HallucinationReductionConfiguration] :hallucination_reduction_configuration
4879
+ # The hallucination reduction settings for your application.
4880
+ #
4876
4881
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4877
4882
  #
4878
4883
  # @example Request syntax with placeholder values
@@ -4958,6 +4963,9 @@ module Aws::QBusiness
4958
4963
  # creator_mode_configuration: {
4959
4964
  # creator_mode_control: "ENABLED", # required, accepts ENABLED, DISABLED
4960
4965
  # },
4966
+ # hallucination_reduction_configuration: {
4967
+ # hallucination_reduction_control: "ENABLED", # accepts ENABLED, DISABLED
4968
+ # },
4961
4969
  # })
4962
4970
  #
4963
4971
  # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/UpdateChatControlsConfiguration AWS API Documentation
@@ -5690,7 +5698,7 @@ module Aws::QBusiness
5690
5698
  tracer: tracer
5691
5699
  )
5692
5700
  context[:gem_name] = 'aws-sdk-qbusiness'
5693
- context[:gem_version] = '1.33.0'
5701
+ context[:gem_version] = '1.34.0'
5694
5702
  Seahorse::Client::Request.new(handlers, context)
5695
5703
  end
5696
5704
 
@@ -267,6 +267,8 @@ module Aws::QBusiness
267
267
  GroupStatusDetails = Shapes::ListShape.new(name: 'GroupStatusDetails')
268
268
  GroupSummary = Shapes::StructureShape.new(name: 'GroupSummary')
269
269
  GroupSummaryList = Shapes::ListShape.new(name: 'GroupSummaryList')
270
+ HallucinationReductionConfiguration = Shapes::StructureShape.new(name: 'HallucinationReductionConfiguration')
271
+ HallucinationReductionControl = Shapes::StringShape.new(name: 'HallucinationReductionControl')
270
272
  HookConfiguration = Shapes::StructureShape.new(name: 'HookConfiguration')
271
273
  IAMIdentityProviderArn = Shapes::StringShape.new(name: 'IAMIdentityProviderArn')
272
274
  IdcApplicationArn = Shapes::StringShape.new(name: 'IdcApplicationArn')
@@ -481,6 +483,7 @@ module Aws::QBusiness
481
483
  SyncSchedule = Shapes::StringShape.new(name: 'SyncSchedule')
482
484
  SystemMessageId = Shapes::StringShape.new(name: 'SystemMessageId')
483
485
  SystemMessageOverride = Shapes::StringShape.new(name: 'SystemMessageOverride')
486
+ SystemMessageType = Shapes::StringShape.new(name: 'SystemMessageType')
484
487
  Tag = Shapes::StructureShape.new(name: 'Tag')
485
488
  TagKey = Shapes::StringShape.new(name: 'TagKey')
486
489
  TagKeys = Shapes::ListShape.new(name: 'TagKeys')
@@ -1335,6 +1338,7 @@ module Aws::QBusiness
1335
1338
  GetChatControlsConfigurationResponse.add_member(:topic_configurations, Shapes::ShapeRef.new(shape: TopicConfigurations, location_name: "topicConfigurations"))
1336
1339
  GetChatControlsConfigurationResponse.add_member(:creator_mode_configuration, Shapes::ShapeRef.new(shape: AppliedCreatorModeConfiguration, location_name: "creatorModeConfiguration"))
1337
1340
  GetChatControlsConfigurationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1341
+ GetChatControlsConfigurationResponse.add_member(:hallucination_reduction_configuration, Shapes::ShapeRef.new(shape: HallucinationReductionConfiguration, location_name: "hallucinationReductionConfiguration"))
1338
1342
  GetChatControlsConfigurationResponse.struct_class = Types::GetChatControlsConfigurationResponse
1339
1343
 
1340
1344
  GetDataAccessorRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
@@ -1503,6 +1507,9 @@ module Aws::QBusiness
1503
1507
 
1504
1508
  GroupSummaryList.member = Shapes::ShapeRef.new(shape: GroupSummary)
1505
1509
 
1510
+ HallucinationReductionConfiguration.add_member(:hallucination_reduction_control, Shapes::ShapeRef.new(shape: HallucinationReductionControl, location_name: "hallucinationReductionControl"))
1511
+ HallucinationReductionConfiguration.struct_class = Types::HallucinationReductionConfiguration
1512
+
1506
1513
  HookConfiguration.add_member(:invocation_condition, Shapes::ShapeRef.new(shape: DocumentAttributeCondition, location_name: "invocationCondition"))
1507
1514
  HookConfiguration.add_member(:lambda_arn, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "lambdaArn"))
1508
1515
  HookConfiguration.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: S3BucketName, location_name: "s3BucketName"))
@@ -2062,6 +2069,7 @@ module Aws::QBusiness
2062
2069
  TextInputEvent.add_member(:user_message, Shapes::ShapeRef.new(shape: UserMessage, required: true, location_name: "userMessage"))
2063
2070
  TextInputEvent.struct_class = Types::TextInputEvent
2064
2071
 
2072
+ TextOutputEvent.add_member(:system_message_type, Shapes::ShapeRef.new(shape: SystemMessageType, location_name: "systemMessageType"))
2065
2073
  TextOutputEvent.add_member(:conversation_id, Shapes::ShapeRef.new(shape: ConversationId, location_name: "conversationId"))
2066
2074
  TextOutputEvent.add_member(:user_message_id, Shapes::ShapeRef.new(shape: MessageId, location_name: "userMessageId"))
2067
2075
  TextOutputEvent.add_member(:system_message_id, Shapes::ShapeRef.new(shape: MessageId, location_name: "systemMessageId"))
@@ -2116,6 +2124,7 @@ module Aws::QBusiness
2116
2124
  UpdateChatControlsConfigurationRequest.add_member(:topic_configurations_to_create_or_update, Shapes::ShapeRef.new(shape: TopicConfigurations, location_name: "topicConfigurationsToCreateOrUpdate"))
2117
2125
  UpdateChatControlsConfigurationRequest.add_member(:topic_configurations_to_delete, Shapes::ShapeRef.new(shape: TopicConfigurations, location_name: "topicConfigurationsToDelete"))
2118
2126
  UpdateChatControlsConfigurationRequest.add_member(:creator_mode_configuration, Shapes::ShapeRef.new(shape: CreatorModeConfiguration, location_name: "creatorModeConfiguration"))
2127
+ UpdateChatControlsConfigurationRequest.add_member(:hallucination_reduction_configuration, Shapes::ShapeRef.new(shape: HallucinationReductionConfiguration, location_name: "hallucinationReductionConfiguration"))
2119
2128
  UpdateChatControlsConfigurationRequest.struct_class = Types::UpdateChatControlsConfigurationRequest
2120
2129
 
2121
2130
  UpdateChatControlsConfigurationResponse.struct_class = Types::UpdateChatControlsConfigurationResponse
@@ -3421,6 +3430,7 @@ module Aws::QBusiness
3421
3430
  o.output = Shapes::ShapeRef.new(shape: UpdateUserResponse)
3422
3431
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3423
3432
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3433
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
3424
3434
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3425
3435
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3426
3436
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
@@ -3905,6 +3905,10 @@ module Aws::QBusiness
3905
3905
  # set of Amazon Q Business chat controls configured.
3906
3906
  # @return [String]
3907
3907
  #
3908
+ # @!attribute [rw] hallucination_reduction_configuration
3909
+ # The hallucination reduction settings for your application.
3910
+ # @return [Types::HallucinationReductionConfiguration]
3911
+ #
3908
3912
  # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/GetChatControlsConfigurationResponse AWS API Documentation
3909
3913
  #
3910
3914
  class GetChatControlsConfigurationResponse < Struct.new(
@@ -3913,7 +3917,8 @@ module Aws::QBusiness
3913
3917
  :blocked_phrases,
3914
3918
  :topic_configurations,
3915
3919
  :creator_mode_configuration,
3916
- :next_token)
3920
+ :next_token,
3921
+ :hallucination_reduction_configuration)
3917
3922
  SENSITIVE = []
3918
3923
  include Aws::Structure
3919
3924
  end
@@ -4736,6 +4741,28 @@ module Aws::QBusiness
4736
4741
  include Aws::Structure
4737
4742
  end
4738
4743
 
4744
+ # Configuration information required to setup hallucination reduction.
4745
+ # For more information, see [hallucination
4746
+ # reduction](amazonq/latest/qbusiness-ug/hallucination-reduction.html).
4747
+ #
4748
+ # <note markdown="1"> The hallucination reduction feature won't work if chat orchestration
4749
+ # controls are enabled for your application.
4750
+ #
4751
+ # </note>
4752
+ #
4753
+ # @!attribute [rw] hallucination_reduction_control
4754
+ # Controls whether hallucination reduction has been enabled or
4755
+ # disabled for your application. The default status is `DISABLED`.
4756
+ # @return [String]
4757
+ #
4758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/HallucinationReductionConfiguration AWS API Documentation
4759
+ #
4760
+ class HallucinationReductionConfiguration < Struct.new(
4761
+ :hallucination_reduction_control)
4762
+ SENSITIVE = []
4763
+ include Aws::Structure
4764
+ end
4765
+
4739
4766
  # Provides the configuration information for invoking a Lambda function
4740
4767
  # in Lambda to alter document metadata and content when ingesting
4741
4768
  # documents into Amazon Q Business.
@@ -7470,6 +7497,19 @@ module Aws::QBusiness
7470
7497
  # An output event for an AI-generated response in an Amazon Q Business
7471
7498
  # web experience.
7472
7499
  #
7500
+ # @!attribute [rw] system_message_type
7501
+ # The type of AI-generated message in a `TextOutputEvent`. Amazon Q
7502
+ # Business currently supports two types of messages:
7503
+ #
7504
+ # * `RESPONSE` - The Amazon Q Business system response.
7505
+ #
7506
+ # * `GROUNDED_RESPONSE` - The corrected, hallucination-reduced,
7507
+ # response returned by Amazon Q Business. Available only if
7508
+ # hallucination reduction is supported and configured for the
7509
+ # application and detected in the end user chat query by Amazon Q
7510
+ # Business.
7511
+ # @return [String]
7512
+ #
7473
7513
  # @!attribute [rw] conversation_id
7474
7514
  # The identifier of the conversation with which the text output event
7475
7515
  # is associated.
@@ -7490,6 +7530,7 @@ module Aws::QBusiness
7490
7530
  # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/TextOutputEvent AWS API Documentation
7491
7531
  #
7492
7532
  class TextOutputEvent < Struct.new(
7533
+ :system_message_type,
7493
7534
  :conversation_id,
7494
7535
  :user_message_id,
7495
7536
  :system_message_id,
@@ -7725,6 +7766,10 @@ module Aws::QBusiness
7725
7766
  # The configuration details for `CREATOR_MODE`.
7726
7767
  # @return [Types::CreatorModeConfiguration]
7727
7768
  #
7769
+ # @!attribute [rw] hallucination_reduction_configuration
7770
+ # The hallucination reduction settings for your application.
7771
+ # @return [Types::HallucinationReductionConfiguration]
7772
+ #
7728
7773
  # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/UpdateChatControlsConfigurationRequest AWS API Documentation
7729
7774
  #
7730
7775
  class UpdateChatControlsConfigurationRequest < Struct.new(
@@ -7735,7 +7780,8 @@ module Aws::QBusiness
7735
7780
  :blocked_phrases_configuration_update,
7736
7781
  :topic_configurations_to_create_or_update,
7737
7782
  :topic_configurations_to_delete,
7738
- :creator_mode_configuration)
7783
+ :creator_mode_configuration,
7784
+ :hallucination_reduction_configuration)
7739
7785
  SENSITIVE = []
7740
7786
  include Aws::Structure
7741
7787
  end
@@ -57,7 +57,7 @@ module Aws::QBusiness
57
57
  autoload :AsyncClient, 'aws-sdk-qbusiness/async_client'
58
58
  autoload :EventStreams, 'aws-sdk-qbusiness/event_streams'
59
59
 
60
- GEM_VERSION = '1.33.0'
60
+ GEM_VERSION = '1.34.0'
61
61
 
62
62
  end
63
63
 
data/sig/client.rbs CHANGED
@@ -996,6 +996,7 @@ module Aws
996
996
  def topic_configurations: () -> ::Array[Types::TopicConfiguration]
997
997
  def creator_mode_configuration: () -> Types::AppliedCreatorModeConfiguration
998
998
  def next_token: () -> ::String
999
+ def hallucination_reduction_configuration: () -> Types::HallucinationReductionConfiguration
999
1000
  end
1000
1001
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QBusiness/Client.html#get_chat_controls_configuration-instance_method
1001
1002
  def get_chat_controls_configuration: (
@@ -1734,6 +1735,9 @@ module Aws
1734
1735
  ],
1735
1736
  ?creator_mode_configuration: {
1736
1737
  creator_mode_control: ("ENABLED" | "DISABLED")
1738
+ },
1739
+ ?hallucination_reduction_configuration: {
1740
+ hallucination_reduction_control: ("ENABLED" | "DISABLED")?
1737
1741
  }
1738
1742
  ) -> _UpdateChatControlsConfigurationResponseSuccess
1739
1743
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateChatControlsConfigurationResponseSuccess
data/sig/types.rbs CHANGED
@@ -991,6 +991,7 @@ module Aws::QBusiness
991
991
  attr_accessor topic_configurations: ::Array[Types::TopicConfiguration]
992
992
  attr_accessor creator_mode_configuration: Types::AppliedCreatorModeConfiguration
993
993
  attr_accessor next_token: ::String
994
+ attr_accessor hallucination_reduction_configuration: Types::HallucinationReductionConfiguration
994
995
  SENSITIVE: []
995
996
  end
996
997
 
@@ -1202,6 +1203,11 @@ module Aws::QBusiness
1202
1203
  SENSITIVE: []
1203
1204
  end
1204
1205
 
1206
+ class HallucinationReductionConfiguration
1207
+ attr_accessor hallucination_reduction_control: ("ENABLED" | "DISABLED")
1208
+ SENSITIVE: []
1209
+ end
1210
+
1205
1211
  class HookConfiguration
1206
1212
  attr_accessor invocation_condition: Types::DocumentAttributeCondition
1207
1213
  attr_accessor lambda_arn: ::String
@@ -1962,6 +1968,7 @@ module Aws::QBusiness
1962
1968
  end
1963
1969
 
1964
1970
  class TextOutputEvent
1971
+ attr_accessor system_message_type: ("RESPONSE" | "GROUNDED_RESPONSE")
1965
1972
  attr_accessor conversation_id: ::String
1966
1973
  attr_accessor user_message_id: ::String
1967
1974
  attr_accessor system_message_id: ::String
@@ -2027,6 +2034,7 @@ module Aws::QBusiness
2027
2034
  attr_accessor topic_configurations_to_create_or_update: ::Array[Types::TopicConfiguration]
2028
2035
  attr_accessor topic_configurations_to_delete: ::Array[Types::TopicConfiguration]
2029
2036
  attr_accessor creator_mode_configuration: Types::CreatorModeConfiguration
2037
+ attr_accessor hallucination_reduction_configuration: Types::HallucinationReductionConfiguration
2030
2038
  SENSITIVE: []
2031
2039
  end
2032
2040
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-qbusiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.33.0
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-21 00:00:00.000000000 Z
11
+ date: 2025-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core