aws-sdk-qconnect 1.57.0 → 1.58.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-qconnect/client.rb +10 -1
- data/lib/aws-sdk-qconnect/client_api.rb +24 -0
- data/lib/aws-sdk-qconnect/types.rb +68 -1
- data/lib/aws-sdk-qconnect.rb +1 -1
- data/sig/types.rbs +17 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c09da3de5b23fbd947ecfe3a326eb9047cb9b903d7fed8228c88304c022c1867
|
|
4
|
+
data.tar.gz: eb6b33cd9fa5af50da5eb7f69b7bf2113598b9eebd818f47e90dd1250ab5b980
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b6ece3c562d507e349ffafa5844bcd8a9f2c4920b1ae48e5a499721531c9acaf8bcdd1515f5cb3baedb13ee9aea4ec4676710eca4618cb16c38cc8ed2dc5f3d
|
|
7
|
+
data.tar.gz: 59638d109f20bf0a86ec88ed07c672ed7a067f977607d9ce6811df894e4ea23616257cfe5c7dda8744f2a0b0d36a48da8c963887cceb1e53c765f6b2d3b4220b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.58.0 (2026-05-22)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Added guardrail assessment results to inference spans in the ListSpans API. You can now see which AI Guardrail policies were evaluated, whether content was blocked or masked, and per-policy details for each Bedrock Converse call
|
|
8
|
+
|
|
4
9
|
1.57.0 (2026-05-21)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.58.0
|
|
@@ -6317,6 +6317,15 @@ module Aws::QConnect
|
|
|
6317
6317
|
# resp.spans[0].attributes.prompt_name #=> String
|
|
6318
6318
|
# resp.spans[0].attributes.prompt_version #=> Integer
|
|
6319
6319
|
# resp.spans[0].attributes.time_to_first_token_ms #=> Integer
|
|
6320
|
+
# resp.spans[0].attributes.guardrail_assessments #=> Array
|
|
6321
|
+
# resp.spans[0].attributes.guardrail_assessments[0].guardrail_id #=> String
|
|
6322
|
+
# resp.spans[0].attributes.guardrail_assessments[0].guardrail_name #=> String
|
|
6323
|
+
# resp.spans[0].attributes.guardrail_assessments[0].source #=> String, one of "INPUT", "OUTPUT"
|
|
6324
|
+
# resp.spans[0].attributes.guardrail_assessments[0].action #=> String, one of "NONE", "BLOCKED", "MASKED"
|
|
6325
|
+
# resp.spans[0].attributes.guardrail_assessments[0].policies #=> Array
|
|
6326
|
+
# resp.spans[0].attributes.guardrail_assessments[0].policies[0].policy_type #=> String, one of "CONTENT_FILTER", "TOPIC", "WORD", "SENSITIVE_INFORMATION_PII", "SENSITIVE_INFORMATION_REGEX", "CONTEXTUAL_GROUNDING"
|
|
6327
|
+
# resp.spans[0].attributes.guardrail_assessments[0].policies[0].action #=> String, one of "NONE", "BLOCKED", "MASKED"
|
|
6328
|
+
# resp.spans[0].attributes.guardrail_assessments[0].policies[0].details #=> String
|
|
6320
6329
|
# resp.next_token #=> String
|
|
6321
6330
|
#
|
|
6322
6331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/ListSpans AWS API Documentation
|
|
@@ -9527,7 +9536,7 @@ module Aws::QConnect
|
|
|
9527
9536
|
tracer: tracer
|
|
9528
9537
|
)
|
|
9529
9538
|
context[:gem_name] = 'aws-sdk-qconnect'
|
|
9530
|
-
context[:gem_version] = '1.
|
|
9539
|
+
context[:gem_version] = '1.58.0'
|
|
9531
9540
|
Seahorse::Client::Request.new(handlers, context)
|
|
9532
9541
|
end
|
|
9533
9542
|
|
|
@@ -265,6 +265,7 @@ module Aws::QConnect
|
|
|
265
265
|
GroupingCriteria = Shapes::StringShape.new(name: 'GroupingCriteria')
|
|
266
266
|
GroupingValue = Shapes::StringShape.new(name: 'GroupingValue')
|
|
267
267
|
GroupingValues = Shapes::ListShape.new(name: 'GroupingValues')
|
|
268
|
+
GuardrailAction = Shapes::StringShape.new(name: 'GuardrailAction')
|
|
268
269
|
GuardrailContentFilterConfig = Shapes::StructureShape.new(name: 'GuardrailContentFilterConfig')
|
|
269
270
|
GuardrailContentFilterType = Shapes::StringShape.new(name: 'GuardrailContentFilterType')
|
|
270
271
|
GuardrailContentFiltersConfig = Shapes::ListShape.new(name: 'GuardrailContentFiltersConfig')
|
|
@@ -279,12 +280,16 @@ module Aws::QConnect
|
|
|
279
280
|
GuardrailPiiEntitiesConfig = Shapes::ListShape.new(name: 'GuardrailPiiEntitiesConfig')
|
|
280
281
|
GuardrailPiiEntityConfig = Shapes::StructureShape.new(name: 'GuardrailPiiEntityConfig')
|
|
281
282
|
GuardrailPiiEntityType = Shapes::StringShape.new(name: 'GuardrailPiiEntityType')
|
|
283
|
+
GuardrailPolicyResult = Shapes::StructureShape.new(name: 'GuardrailPolicyResult')
|
|
284
|
+
GuardrailPolicyResultList = Shapes::ListShape.new(name: 'GuardrailPolicyResultList')
|
|
285
|
+
GuardrailPolicyType = Shapes::StringShape.new(name: 'GuardrailPolicyType')
|
|
282
286
|
GuardrailRegexConfig = Shapes::StructureShape.new(name: 'GuardrailRegexConfig')
|
|
283
287
|
GuardrailRegexDescription = Shapes::StringShape.new(name: 'GuardrailRegexDescription')
|
|
284
288
|
GuardrailRegexName = Shapes::StringShape.new(name: 'GuardrailRegexName')
|
|
285
289
|
GuardrailRegexPattern = Shapes::StringShape.new(name: 'GuardrailRegexPattern')
|
|
286
290
|
GuardrailRegexesConfig = Shapes::ListShape.new(name: 'GuardrailRegexesConfig')
|
|
287
291
|
GuardrailSensitiveInformationAction = Shapes::StringShape.new(name: 'GuardrailSensitiveInformationAction')
|
|
292
|
+
GuardrailSource = Shapes::StringShape.new(name: 'GuardrailSource')
|
|
288
293
|
GuardrailTopicConfig = Shapes::StructureShape.new(name: 'GuardrailTopicConfig')
|
|
289
294
|
GuardrailTopicDefinition = Shapes::StringShape.new(name: 'GuardrailTopicDefinition')
|
|
290
295
|
GuardrailTopicExample = Shapes::StringShape.new(name: 'GuardrailTopicExample')
|
|
@@ -563,6 +568,8 @@ module Aws::QConnect
|
|
|
563
568
|
SpanCitation = Shapes::StructureShape.new(name: 'SpanCitation')
|
|
564
569
|
SpanCitationList = Shapes::ListShape.new(name: 'SpanCitationList')
|
|
565
570
|
SpanFinishReasonList = Shapes::ListShape.new(name: 'SpanFinishReasonList')
|
|
571
|
+
SpanGuardrailAssessment = Shapes::StructureShape.new(name: 'SpanGuardrailAssessment')
|
|
572
|
+
SpanGuardrailAssessmentList = Shapes::ListShape.new(name: 'SpanGuardrailAssessmentList')
|
|
566
573
|
SpanList = Shapes::ListShape.new(name: 'SpanList')
|
|
567
574
|
SpanMessage = Shapes::StructureShape.new(name: 'SpanMessage')
|
|
568
575
|
SpanMessageList = Shapes::ListShape.new(name: 'SpanMessageList')
|
|
@@ -1820,6 +1827,13 @@ module Aws::QConnect
|
|
|
1820
1827
|
GuardrailPiiEntityConfig.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationAction, required: true, location_name: "action"))
|
|
1821
1828
|
GuardrailPiiEntityConfig.struct_class = Types::GuardrailPiiEntityConfig
|
|
1822
1829
|
|
|
1830
|
+
GuardrailPolicyResult.add_member(:policy_type, Shapes::ShapeRef.new(shape: GuardrailPolicyType, required: true, location_name: "policyType"))
|
|
1831
|
+
GuardrailPolicyResult.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailAction, required: true, location_name: "action"))
|
|
1832
|
+
GuardrailPolicyResult.add_member(:details, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "details"))
|
|
1833
|
+
GuardrailPolicyResult.struct_class = Types::GuardrailPolicyResult
|
|
1834
|
+
|
|
1835
|
+
GuardrailPolicyResultList.member = Shapes::ShapeRef.new(shape: GuardrailPolicyResult)
|
|
1836
|
+
|
|
1823
1837
|
GuardrailRegexConfig.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailRegexName, required: true, location_name: "name"))
|
|
1824
1838
|
GuardrailRegexConfig.add_member(:description, Shapes::ShapeRef.new(shape: GuardrailRegexDescription, location_name: "description"))
|
|
1825
1839
|
GuardrailRegexConfig.add_member(:pattern, Shapes::ShapeRef.new(shape: GuardrailRegexPattern, required: true, location_name: "pattern"))
|
|
@@ -2926,6 +2940,7 @@ module Aws::QConnect
|
|
|
2926
2940
|
SpanAttributes.add_member(:prompt_name, Shapes::ShapeRef.new(shape: Name, location_name: "promptName"))
|
|
2927
2941
|
SpanAttributes.add_member(:prompt_version, Shapes::ShapeRef.new(shape: Integer, location_name: "promptVersion"))
|
|
2928
2942
|
SpanAttributes.add_member(:time_to_first_token_ms, Shapes::ShapeRef.new(shape: Integer, location_name: "timeToFirstTokenMs"))
|
|
2943
|
+
SpanAttributes.add_member(:guardrail_assessments, Shapes::ShapeRef.new(shape: SpanGuardrailAssessmentList, location_name: "guardrailAssessments"))
|
|
2929
2944
|
SpanAttributes.struct_class = Types::SpanAttributes
|
|
2930
2945
|
|
|
2931
2946
|
SpanCitation.add_member(:content_id, Shapes::ShapeRef.new(shape: Uuid, location_name: "contentId"))
|
|
@@ -2938,6 +2953,15 @@ module Aws::QConnect
|
|
|
2938
2953
|
|
|
2939
2954
|
SpanFinishReasonList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
|
|
2940
2955
|
|
|
2956
|
+
SpanGuardrailAssessment.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "guardrailId"))
|
|
2957
|
+
SpanGuardrailAssessment.add_member(:guardrail_name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "guardrailName"))
|
|
2958
|
+
SpanGuardrailAssessment.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailSource, required: true, location_name: "source"))
|
|
2959
|
+
SpanGuardrailAssessment.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailAction, required: true, location_name: "action"))
|
|
2960
|
+
SpanGuardrailAssessment.add_member(:policies, Shapes::ShapeRef.new(shape: GuardrailPolicyResultList, location_name: "policies"))
|
|
2961
|
+
SpanGuardrailAssessment.struct_class = Types::SpanGuardrailAssessment
|
|
2962
|
+
|
|
2963
|
+
SpanGuardrailAssessmentList.member = Shapes::ShapeRef.new(shape: SpanGuardrailAssessment)
|
|
2964
|
+
|
|
2941
2965
|
SpanList.member = Shapes::ShapeRef.new(shape: Span)
|
|
2942
2966
|
|
|
2943
2967
|
SpanMessage.add_member(:message_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "messageId"))
|
|
@@ -5744,6 +5744,31 @@ module Aws::QConnect
|
|
|
5744
5744
|
include Aws::Structure
|
|
5745
5745
|
end
|
|
5746
5746
|
|
|
5747
|
+
# Per-policy guardrail assessment result. Captures which policy
|
|
5748
|
+
# triggered, its outcome, and a policy-specific detail string.
|
|
5749
|
+
#
|
|
5750
|
+
# @!attribute [rw] policy_type
|
|
5751
|
+
# The type of guardrail policy that was evaluated.
|
|
5752
|
+
# @return [String]
|
|
5753
|
+
#
|
|
5754
|
+
# @!attribute [rw] action
|
|
5755
|
+
# Outcome of this specific policy.
|
|
5756
|
+
# @return [String]
|
|
5757
|
+
#
|
|
5758
|
+
# @!attribute [rw] details
|
|
5759
|
+
# Policy-specific detail.
|
|
5760
|
+
# @return [String]
|
|
5761
|
+
#
|
|
5762
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/GuardrailPolicyResult AWS API Documentation
|
|
5763
|
+
#
|
|
5764
|
+
class GuardrailPolicyResult < Struct.new(
|
|
5765
|
+
:policy_type,
|
|
5766
|
+
:action,
|
|
5767
|
+
:details)
|
|
5768
|
+
SENSITIVE = []
|
|
5769
|
+
include Aws::Structure
|
|
5770
|
+
end
|
|
5771
|
+
|
|
5747
5772
|
# The regular expression to configure for the AI Guardrail.
|
|
5748
5773
|
#
|
|
5749
5774
|
# @!attribute [rw] name
|
|
@@ -10940,6 +10965,11 @@ module Aws::QConnect
|
|
|
10940
10965
|
# Bedrock was invoked to when the first token was returned
|
|
10941
10966
|
# @return [Integer]
|
|
10942
10967
|
#
|
|
10968
|
+
# @!attribute [rw] guardrail_assessments
|
|
10969
|
+
# Guardrail assessments for the inference span. Absent on other span
|
|
10970
|
+
# types and when no AI Guardrail is attached to the AI Agent.
|
|
10971
|
+
# @return [Array<Types::SpanGuardrailAssessment>]
|
|
10972
|
+
#
|
|
10943
10973
|
# @see http://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/SpanAttributes AWS API Documentation
|
|
10944
10974
|
#
|
|
10945
10975
|
class SpanAttributes < Struct.new(
|
|
@@ -10977,7 +11007,8 @@ module Aws::QConnect
|
|
|
10977
11007
|
:prompt_type,
|
|
10978
11008
|
:prompt_name,
|
|
10979
11009
|
:prompt_version,
|
|
10980
|
-
:time_to_first_token_ms
|
|
11010
|
+
:time_to_first_token_ms,
|
|
11011
|
+
:guardrail_assessments)
|
|
10981
11012
|
SENSITIVE = []
|
|
10982
11013
|
include Aws::Structure
|
|
10983
11014
|
end
|
|
@@ -11012,6 +11043,42 @@ module Aws::QConnect
|
|
|
11012
11043
|
include Aws::Structure
|
|
11013
11044
|
end
|
|
11014
11045
|
|
|
11046
|
+
# Result of a single guardrail assessment, covering either the input
|
|
11047
|
+
# (customer/user message) or the output (LLM response) of a Bedrock
|
|
11048
|
+
# Converse call.
|
|
11049
|
+
#
|
|
11050
|
+
# @!attribute [rw] guardrail_id
|
|
11051
|
+
# Unique AI Guardrail identifier.
|
|
11052
|
+
# @return [String]
|
|
11053
|
+
#
|
|
11054
|
+
# @!attribute [rw] guardrail_name
|
|
11055
|
+
# Customer-defined display name of the AI Guardrail resource.
|
|
11056
|
+
# @return [String]
|
|
11057
|
+
#
|
|
11058
|
+
# @!attribute [rw] source
|
|
11059
|
+
# Content source the guardrail was evaluated against.
|
|
11060
|
+
# @return [String]
|
|
11061
|
+
#
|
|
11062
|
+
# @!attribute [rw] action
|
|
11063
|
+
# Outcome of the guardrail assessment.
|
|
11064
|
+
# @return [String]
|
|
11065
|
+
#
|
|
11066
|
+
# @!attribute [rw] policies
|
|
11067
|
+
# Per-policy assessment results. Absent or empty when action is NONE.
|
|
11068
|
+
# @return [Array<Types::GuardrailPolicyResult>]
|
|
11069
|
+
#
|
|
11070
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/SpanGuardrailAssessment AWS API Documentation
|
|
11071
|
+
#
|
|
11072
|
+
class SpanGuardrailAssessment < Struct.new(
|
|
11073
|
+
:guardrail_id,
|
|
11074
|
+
:guardrail_name,
|
|
11075
|
+
:source,
|
|
11076
|
+
:action,
|
|
11077
|
+
:policies)
|
|
11078
|
+
SENSITIVE = []
|
|
11079
|
+
include Aws::Structure
|
|
11080
|
+
end
|
|
11081
|
+
|
|
11015
11082
|
# A message in the conversation history with participant role and
|
|
11016
11083
|
# content values
|
|
11017
11084
|
#
|
data/lib/aws-sdk-qconnect.rb
CHANGED
data/sig/types.rbs
CHANGED
|
@@ -1484,6 +1484,13 @@ module Aws::QConnect
|
|
|
1484
1484
|
SENSITIVE: [:type, :action]
|
|
1485
1485
|
end
|
|
1486
1486
|
|
|
1487
|
+
class GuardrailPolicyResult
|
|
1488
|
+
attr_accessor policy_type: ("CONTENT_FILTER" | "TOPIC" | "WORD" | "SENSITIVE_INFORMATION_PII" | "SENSITIVE_INFORMATION_REGEX" | "CONTEXTUAL_GROUNDING")
|
|
1489
|
+
attr_accessor action: ("NONE" | "BLOCKED" | "MASKED")
|
|
1490
|
+
attr_accessor details: ::String
|
|
1491
|
+
SENSITIVE: []
|
|
1492
|
+
end
|
|
1493
|
+
|
|
1487
1494
|
class GuardrailRegexConfig
|
|
1488
1495
|
attr_accessor name: ::String
|
|
1489
1496
|
attr_accessor description: ::String
|
|
@@ -2881,6 +2888,7 @@ module Aws::QConnect
|
|
|
2881
2888
|
attr_accessor prompt_name: ::String
|
|
2882
2889
|
attr_accessor prompt_version: ::Integer
|
|
2883
2890
|
attr_accessor time_to_first_token_ms: ::Integer
|
|
2891
|
+
attr_accessor guardrail_assessments: ::Array[Types::SpanGuardrailAssessment]
|
|
2884
2892
|
SENSITIVE: []
|
|
2885
2893
|
end
|
|
2886
2894
|
|
|
@@ -2892,6 +2900,15 @@ module Aws::QConnect
|
|
|
2892
2900
|
SENSITIVE: [:title]
|
|
2893
2901
|
end
|
|
2894
2902
|
|
|
2903
|
+
class SpanGuardrailAssessment
|
|
2904
|
+
attr_accessor guardrail_id: ::String
|
|
2905
|
+
attr_accessor guardrail_name: ::String
|
|
2906
|
+
attr_accessor source: ("INPUT" | "OUTPUT")
|
|
2907
|
+
attr_accessor action: ("NONE" | "BLOCKED" | "MASKED")
|
|
2908
|
+
attr_accessor policies: ::Array[Types::GuardrailPolicyResult]
|
|
2909
|
+
SENSITIVE: []
|
|
2910
|
+
end
|
|
2911
|
+
|
|
2895
2912
|
class SpanMessage
|
|
2896
2913
|
attr_accessor message_id: ::String
|
|
2897
2914
|
attr_accessor participant: ("CUSTOMER" | "AGENT" | "BOT")
|