aws-sdk-bedrock 1.74.0 → 1.75.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-bedrock/client.rb +68 -6
- data/lib/aws-sdk-bedrock/client_api.rb +143 -0
- data/lib/aws-sdk-bedrock/types.rb +455 -2
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +14 -3
- data/sig/types.rbs +126 -4
- 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: a990b964002fca95833bbf8b84157617b0cf53238dce17a19a95547f9f87d5e0
|
|
4
|
+
data.tar.gz: 827e59c9cbbc573c08c645598c684cbe67768f8744f65f3353dc99eabc03338d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e6964897b1e8cc1bdaa1a55be1c7253c8d65829939c4eee0ce0c9f85189c44c495884ff8b52617d8568044b63285b219a15535b834472691d28b5f3739cfdf4
|
|
7
|
+
data.tar.gz: 790ae913e3887020e16a37120ff671458c57da75f9b420a2df529b42125fc8d1c4516431b8020c8d47cac5903af5973093ba8926c86c5b3d11ec48c73477f633
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.75.0 (2026-02-23)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Automated Reasoning checks in Amazon Bedrock Guardrails now support fidelity report generation. The new workflow type assesses policy coverage and accuracy against customer documents. The GetAutomatedReasoningPolicyBuildWorkflowResultAssets API adds support for the three new asset types.
|
|
8
|
+
|
|
4
9
|
1.74.0 (2026-01-16)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.75.0
|
|
@@ -3413,7 +3413,7 @@ module Aws::Bedrock
|
|
|
3413
3413
|
# resp.policy_arn #=> String
|
|
3414
3414
|
# resp.build_workflow_id #=> String
|
|
3415
3415
|
# resp.status #=> String, one of "SCHEDULED", "CANCEL_REQUESTED", "PREPROCESSING", "BUILDING", "TESTING", "COMPLETED", "FAILED", "CANCELLED"
|
|
3416
|
-
# resp.build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY"
|
|
3416
|
+
# resp.build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY", "GENERATE_FIDELITY_REPORT"
|
|
3417
3417
|
# resp.document_name #=> String
|
|
3418
3418
|
# resp.document_content_type #=> String, one of "pdf", "txt"
|
|
3419
3419
|
# resp.document_description #=> String
|
|
@@ -3443,7 +3443,15 @@ module Aws::Bedrock
|
|
|
3443
3443
|
#
|
|
3444
3444
|
# @option params [required, String] :asset_type
|
|
3445
3445
|
# The type of asset to retrieve (e.g., BUILD\_LOG, QUALITY\_REPORT,
|
|
3446
|
-
# POLICY\_DEFINITION
|
|
3446
|
+
# POLICY\_DEFINITION, GENERATED\_TEST\_CASES, POLICY\_SCENARIOS,
|
|
3447
|
+
# FIDELITY\_REPORT, ASSET\_MANIFEST, SOURCE\_DOCUMENT).
|
|
3448
|
+
#
|
|
3449
|
+
# @option params [String] :asset_id
|
|
3450
|
+
# The unique identifier of the specific asset to retrieve when multiple
|
|
3451
|
+
# assets of the same type exist. This is required when retrieving
|
|
3452
|
+
# SOURCE\_DOCUMENT assets, as multiple source documents may have been
|
|
3453
|
+
# used in the workflow. The asset ID can be obtained from the asset
|
|
3454
|
+
# manifest.
|
|
3447
3455
|
#
|
|
3448
3456
|
# @return [Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3449
3457
|
#
|
|
@@ -3456,7 +3464,8 @@ module Aws::Bedrock
|
|
|
3456
3464
|
# resp = client.get_automated_reasoning_policy_build_workflow_result_assets({
|
|
3457
3465
|
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
|
3458
3466
|
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
|
3459
|
-
# asset_type: "BUILD_LOG", # required, accepts BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES, POLICY_SCENARIOS
|
|
3467
|
+
# asset_type: "BUILD_LOG", # required, accepts BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES, POLICY_SCENARIOS, FIDELITY_REPORT, ASSET_MANIFEST, SOURCE_DOCUMENT
|
|
3468
|
+
# asset_id: "AutomatedReasoningPolicyBuildResultAssetId",
|
|
3460
3469
|
# })
|
|
3461
3470
|
#
|
|
3462
3471
|
# @example Response structure
|
|
@@ -3583,6 +3592,49 @@ module Aws::Bedrock
|
|
|
3583
3592
|
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].expected_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
|
3584
3593
|
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].rule_ids #=> Array
|
|
3585
3594
|
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].rule_ids[0] #=> String
|
|
3595
|
+
# resp.build_workflow_assets.asset_manifest.entries #=> Array
|
|
3596
|
+
# resp.build_workflow_assets.asset_manifest.entries[0].asset_type #=> String, one of "BUILD_LOG", "QUALITY_REPORT", "POLICY_DEFINITION", "GENERATED_TEST_CASES", "POLICY_SCENARIOS", "FIDELITY_REPORT", "ASSET_MANIFEST", "SOURCE_DOCUMENT"
|
|
3597
|
+
# resp.build_workflow_assets.asset_manifest.entries[0].asset_name #=> String
|
|
3598
|
+
# resp.build_workflow_assets.asset_manifest.entries[0].asset_id #=> String
|
|
3599
|
+
# resp.build_workflow_assets.document.document #=> String
|
|
3600
|
+
# resp.build_workflow_assets.document.document_content_type #=> String, one of "pdf", "txt"
|
|
3601
|
+
# resp.build_workflow_assets.document.document_name #=> String
|
|
3602
|
+
# resp.build_workflow_assets.document.document_description #=> String
|
|
3603
|
+
# resp.build_workflow_assets.document.document_hash #=> String
|
|
3604
|
+
# resp.build_workflow_assets.fidelity_report.coverage_score #=> Float
|
|
3605
|
+
# resp.build_workflow_assets.fidelity_report.accuracy_score #=> Float
|
|
3606
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports #=> Hash
|
|
3607
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].rule #=> String
|
|
3608
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].grounding_statements #=> Array
|
|
3609
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].grounding_statements[0].document_id #=> String
|
|
3610
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].grounding_statements[0].statement_id #=> String
|
|
3611
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].grounding_justifications #=> Array
|
|
3612
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].grounding_justifications[0] #=> String
|
|
3613
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].accuracy_score #=> Float
|
|
3614
|
+
# resp.build_workflow_assets.fidelity_report.rule_reports["AutomatedReasoningPolicyDefinitionRuleId"].accuracy_justification #=> String
|
|
3615
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports #=> Hash
|
|
3616
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].policy_variable #=> String
|
|
3617
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].grounding_statements #=> Array
|
|
3618
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].grounding_statements[0].document_id #=> String
|
|
3619
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].grounding_statements[0].statement_id #=> String
|
|
3620
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].grounding_justifications #=> Array
|
|
3621
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].grounding_justifications[0] #=> String
|
|
3622
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].accuracy_score #=> Float
|
|
3623
|
+
# resp.build_workflow_assets.fidelity_report.variable_reports["AutomatedReasoningPolicyDefinitionVariableName"].accuracy_justification #=> String
|
|
3624
|
+
# resp.build_workflow_assets.fidelity_report.document_sources #=> Array
|
|
3625
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_name #=> String
|
|
3626
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_hash #=> String
|
|
3627
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_id #=> String
|
|
3628
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].atomic_statements #=> Array
|
|
3629
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].atomic_statements[0].id #=> String
|
|
3630
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].atomic_statements[0].text #=> String
|
|
3631
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].atomic_statements[0].location.lines #=> Array
|
|
3632
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].atomic_statements[0].location.lines[0] #=> Integer
|
|
3633
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_content #=> Array
|
|
3634
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_content[0].page_number #=> Integer
|
|
3635
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_content[0].content #=> Array
|
|
3636
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_content[0].content[0].line.line_number #=> Integer
|
|
3637
|
+
# resp.build_workflow_assets.fidelity_report.document_sources[0].document_content[0].content[0].line.line_text #=> String
|
|
3586
3638
|
#
|
|
3587
3639
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResultAssets AWS API Documentation
|
|
3588
3640
|
#
|
|
@@ -5075,7 +5127,7 @@ module Aws::Bedrock
|
|
|
5075
5127
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].policy_arn #=> String
|
|
5076
5128
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_id #=> String
|
|
5077
5129
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].status #=> String, one of "SCHEDULED", "CANCEL_REQUESTED", "PREPROCESSING", "BUILDING", "TESTING", "COMPLETED", "FAILED", "CANCELLED"
|
|
5078
|
-
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY"
|
|
5130
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY", "GENERATE_FIDELITY_REPORT"
|
|
5079
5131
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].created_at #=> Time
|
|
5080
5132
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].updated_at #=> Time
|
|
5081
5133
|
# resp.next_token #=> String
|
|
@@ -6818,7 +6870,7 @@ module Aws::Bedrock
|
|
|
6818
6870
|
#
|
|
6819
6871
|
# resp = client.start_automated_reasoning_policy_build_workflow({
|
|
6820
6872
|
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
|
6821
|
-
# build_workflow_type: "INGEST_CONTENT", # required, accepts INGEST_CONTENT, REFINE_POLICY, IMPORT_POLICY
|
|
6873
|
+
# build_workflow_type: "INGEST_CONTENT", # required, accepts INGEST_CONTENT, REFINE_POLICY, IMPORT_POLICY, GENERATE_FIDELITY_REPORT
|
|
6822
6874
|
# client_request_token: "IdempotencyToken",
|
|
6823
6875
|
# source_content: { # required
|
|
6824
6876
|
# policy_definition: {
|
|
@@ -6937,6 +6989,16 @@ module Aws::Bedrock
|
|
|
6937
6989
|
# },
|
|
6938
6990
|
# ],
|
|
6939
6991
|
# },
|
|
6992
|
+
# generate_fidelity_report_content: {
|
|
6993
|
+
# documents: [
|
|
6994
|
+
# {
|
|
6995
|
+
# document: "data", # required
|
|
6996
|
+
# document_content_type: "pdf", # required, accepts pdf, txt
|
|
6997
|
+
# document_name: "AutomatedReasoningPolicyBuildDocumentName", # required
|
|
6998
|
+
# document_description: "AutomatedReasoningPolicyBuildDocumentDescription",
|
|
6999
|
+
# },
|
|
7000
|
+
# ],
|
|
7001
|
+
# },
|
|
6940
7002
|
# },
|
|
6941
7003
|
# },
|
|
6942
7004
|
# })
|
|
@@ -7818,7 +7880,7 @@ module Aws::Bedrock
|
|
|
7818
7880
|
tracer: tracer
|
|
7819
7881
|
)
|
|
7820
7882
|
context[:gem_name] = 'aws-sdk-bedrock'
|
|
7821
|
-
context[:gem_version] = '1.
|
|
7883
|
+
context[:gem_version] = '1.75.0'
|
|
7822
7884
|
Seahorse::Client::Request.new(handlers, context)
|
|
7823
7885
|
end
|
|
7824
7886
|
|
|
@@ -63,6 +63,7 @@ module Aws::Bedrock
|
|
|
63
63
|
AutomatedReasoningLogicStatementContent = Shapes::StringShape.new(name: 'AutomatedReasoningLogicStatementContent')
|
|
64
64
|
AutomatedReasoningLogicStatementList = Shapes::ListShape.new(name: 'AutomatedReasoningLogicStatementList')
|
|
65
65
|
AutomatedReasoningNaturalLanguageStatementContent = Shapes::StringShape.new(name: 'AutomatedReasoningNaturalLanguageStatementContent')
|
|
66
|
+
AutomatedReasoningPolicyAccuracyScore = Shapes::FloatShape.new(name: 'AutomatedReasoningPolicyAccuracyScore')
|
|
66
67
|
AutomatedReasoningPolicyAddRuleAnnotation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAddRuleAnnotation')
|
|
67
68
|
AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation')
|
|
68
69
|
AutomatedReasoningPolicyAddRuleMutation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAddRuleMutation')
|
|
@@ -71,6 +72,11 @@ module Aws::Bedrock
|
|
|
71
72
|
AutomatedReasoningPolicyAddTypeValue = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAddTypeValue')
|
|
72
73
|
AutomatedReasoningPolicyAddVariableAnnotation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAddVariableAnnotation')
|
|
73
74
|
AutomatedReasoningPolicyAddVariableMutation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAddVariableMutation')
|
|
75
|
+
AutomatedReasoningPolicyAnnotatedChunk = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAnnotatedChunk')
|
|
76
|
+
AutomatedReasoningPolicyAnnotatedChunkList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyAnnotatedChunkList')
|
|
77
|
+
AutomatedReasoningPolicyAnnotatedContent = Shapes::UnionShape.new(name: 'AutomatedReasoningPolicyAnnotatedContent')
|
|
78
|
+
AutomatedReasoningPolicyAnnotatedContentList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyAnnotatedContentList')
|
|
79
|
+
AutomatedReasoningPolicyAnnotatedLine = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAnnotatedLine')
|
|
74
80
|
AutomatedReasoningPolicyAnnotation = Shapes::UnionShape.new(name: 'AutomatedReasoningPolicyAnnotation')
|
|
75
81
|
AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage')
|
|
76
82
|
AutomatedReasoningPolicyAnnotationIngestContent = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyAnnotationIngestContent')
|
|
@@ -78,6 +84,8 @@ module Aws::Bedrock
|
|
|
78
84
|
AutomatedReasoningPolicyAnnotationRuleNaturalLanguage = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyAnnotationRuleNaturalLanguage')
|
|
79
85
|
AutomatedReasoningPolicyAnnotationStatus = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyAnnotationStatus')
|
|
80
86
|
AutomatedReasoningPolicyArn = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyArn')
|
|
87
|
+
AutomatedReasoningPolicyAtomicStatement = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyAtomicStatement')
|
|
88
|
+
AutomatedReasoningPolicyAtomicStatementList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyAtomicStatementList')
|
|
81
89
|
AutomatedReasoningPolicyBuildDocumentBlob = Shapes::BlobShape.new(name: 'AutomatedReasoningPolicyBuildDocumentBlob')
|
|
82
90
|
AutomatedReasoningPolicyBuildDocumentContentType = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildDocumentContentType')
|
|
83
91
|
AutomatedReasoningPolicyBuildDocumentDescription = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildDocumentDescription')
|
|
@@ -86,6 +94,11 @@ module Aws::Bedrock
|
|
|
86
94
|
AutomatedReasoningPolicyBuildLogEntry = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyBuildLogEntry')
|
|
87
95
|
AutomatedReasoningPolicyBuildLogEntryList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyBuildLogEntryList')
|
|
88
96
|
AutomatedReasoningPolicyBuildMessageType = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildMessageType')
|
|
97
|
+
AutomatedReasoningPolicyBuildResultAssetId = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildResultAssetId')
|
|
98
|
+
AutomatedReasoningPolicyBuildResultAssetManifest = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyBuildResultAssetManifest')
|
|
99
|
+
AutomatedReasoningPolicyBuildResultAssetManifestEntry = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyBuildResultAssetManifestEntry')
|
|
100
|
+
AutomatedReasoningPolicyBuildResultAssetManifestList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyBuildResultAssetManifestList')
|
|
101
|
+
AutomatedReasoningPolicyBuildResultAssetName = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildResultAssetName')
|
|
89
102
|
AutomatedReasoningPolicyBuildResultAssetType = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildResultAssetType')
|
|
90
103
|
AutomatedReasoningPolicyBuildResultAssets = Shapes::UnionShape.new(name: 'AutomatedReasoningPolicyBuildResultAssets')
|
|
91
104
|
AutomatedReasoningPolicyBuildStep = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyBuildStep')
|
|
@@ -103,6 +116,7 @@ module Aws::Bedrock
|
|
|
103
116
|
AutomatedReasoningPolicyBuildWorkflowSummary = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyBuildWorkflowSummary')
|
|
104
117
|
AutomatedReasoningPolicyBuildWorkflowType = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildWorkflowType')
|
|
105
118
|
AutomatedReasoningPolicyConflictedRuleIdList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyConflictedRuleIdList')
|
|
119
|
+
AutomatedReasoningPolicyCoverageScore = Shapes::FloatShape.new(name: 'AutomatedReasoningPolicyCoverageScore')
|
|
106
120
|
AutomatedReasoningPolicyDefinition = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyDefinition')
|
|
107
121
|
AutomatedReasoningPolicyDefinitionElement = Shapes::UnionShape.new(name: 'AutomatedReasoningPolicyDefinitionElement')
|
|
108
122
|
AutomatedReasoningPolicyDefinitionQualityReport = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyDefinitionQualityReport')
|
|
@@ -139,21 +153,40 @@ module Aws::Bedrock
|
|
|
139
153
|
AutomatedReasoningPolicyDisjointRuleSet = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyDisjointRuleSet')
|
|
140
154
|
AutomatedReasoningPolicyDisjointRuleSetList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyDisjointRuleSetList')
|
|
141
155
|
AutomatedReasoningPolicyDisjointedRuleIdList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyDisjointedRuleIdList')
|
|
156
|
+
AutomatedReasoningPolicyDocumentId = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyDocumentId')
|
|
157
|
+
AutomatedReasoningPolicyDocumentSha256 = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyDocumentSha256')
|
|
158
|
+
AutomatedReasoningPolicyFidelityReport = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyFidelityReport')
|
|
142
159
|
AutomatedReasoningPolicyFormatVersion = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyFormatVersion')
|
|
160
|
+
AutomatedReasoningPolicyGenerateFidelityReportContent = Shapes::UnionShape.new(name: 'AutomatedReasoningPolicyGenerateFidelityReportContent')
|
|
161
|
+
AutomatedReasoningPolicyGenerateFidelityReportDocumentList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyGenerateFidelityReportDocumentList')
|
|
143
162
|
AutomatedReasoningPolicyGeneratedTestCase = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyGeneratedTestCase')
|
|
144
163
|
AutomatedReasoningPolicyGeneratedTestCaseList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyGeneratedTestCaseList')
|
|
145
164
|
AutomatedReasoningPolicyGeneratedTestCases = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyGeneratedTestCases')
|
|
146
165
|
AutomatedReasoningPolicyHash = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyHash')
|
|
147
166
|
AutomatedReasoningPolicyId = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyId')
|
|
148
167
|
AutomatedReasoningPolicyIngestContentAnnotation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyIngestContentAnnotation')
|
|
168
|
+
AutomatedReasoningPolicyJustificationList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyJustificationList')
|
|
169
|
+
AutomatedReasoningPolicyJustificationText = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyJustificationText')
|
|
170
|
+
AutomatedReasoningPolicyLineNumberList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyLineNumberList')
|
|
171
|
+
AutomatedReasoningPolicyLineText = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyLineText')
|
|
149
172
|
AutomatedReasoningPolicyMutation = Shapes::UnionShape.new(name: 'AutomatedReasoningPolicyMutation')
|
|
150
173
|
AutomatedReasoningPolicyName = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyName')
|
|
151
174
|
AutomatedReasoningPolicyPlanning = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyPlanning')
|
|
175
|
+
AutomatedReasoningPolicyReportSourceDocument = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyReportSourceDocument')
|
|
176
|
+
AutomatedReasoningPolicyReportSourceDocumentList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyReportSourceDocumentList')
|
|
177
|
+
AutomatedReasoningPolicyRuleReport = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyRuleReport')
|
|
178
|
+
AutomatedReasoningPolicyRuleReportMap = Shapes::MapShape.new(name: 'AutomatedReasoningPolicyRuleReportMap')
|
|
152
179
|
AutomatedReasoningPolicyScenario = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyScenario')
|
|
153
180
|
AutomatedReasoningPolicyScenarioAlternateExpression = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyScenarioAlternateExpression')
|
|
154
181
|
AutomatedReasoningPolicyScenarioExpression = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyScenarioExpression')
|
|
155
182
|
AutomatedReasoningPolicyScenarioList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyScenarioList')
|
|
156
183
|
AutomatedReasoningPolicyScenarios = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyScenarios')
|
|
184
|
+
AutomatedReasoningPolicySourceDocument = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicySourceDocument')
|
|
185
|
+
AutomatedReasoningPolicyStatementId = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyStatementId')
|
|
186
|
+
AutomatedReasoningPolicyStatementLocation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyStatementLocation')
|
|
187
|
+
AutomatedReasoningPolicyStatementReference = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyStatementReference')
|
|
188
|
+
AutomatedReasoningPolicyStatementReferenceList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyStatementReferenceList')
|
|
189
|
+
AutomatedReasoningPolicyStatementText = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyStatementText')
|
|
157
190
|
AutomatedReasoningPolicySummaries = Shapes::ListShape.new(name: 'AutomatedReasoningPolicySummaries')
|
|
158
191
|
AutomatedReasoningPolicySummary = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicySummary')
|
|
159
192
|
AutomatedReasoningPolicyTestCase = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyTestCase')
|
|
@@ -177,6 +210,8 @@ module Aws::Bedrock
|
|
|
177
210
|
AutomatedReasoningPolicyUpdateTypeValue = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyUpdateTypeValue')
|
|
178
211
|
AutomatedReasoningPolicyUpdateVariableAnnotation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyUpdateVariableAnnotation')
|
|
179
212
|
AutomatedReasoningPolicyUpdateVariableMutation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyUpdateVariableMutation')
|
|
213
|
+
AutomatedReasoningPolicyVariableReport = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyVariableReport')
|
|
214
|
+
AutomatedReasoningPolicyVariableReportMap = Shapes::MapShape.new(name: 'AutomatedReasoningPolicyVariableReportMap')
|
|
180
215
|
AutomatedReasoningPolicyVersion = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyVersion')
|
|
181
216
|
AutomatedReasoningPolicyWorkflowTypeContent = Shapes::UnionShape.new(name: 'AutomatedReasoningPolicyWorkflowTypeContent')
|
|
182
217
|
BaseModelIdentifier = Shapes::StringShape.new(name: 'BaseModelIdentifier')
|
|
@@ -991,6 +1026,24 @@ module Aws::Bedrock
|
|
|
991
1026
|
AutomatedReasoningPolicyAddVariableMutation.add_member(:variable, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionVariable, required: true, location_name: "variable"))
|
|
992
1027
|
AutomatedReasoningPolicyAddVariableMutation.struct_class = Types::AutomatedReasoningPolicyAddVariableMutation
|
|
993
1028
|
|
|
1029
|
+
AutomatedReasoningPolicyAnnotatedChunk.add_member(:page_number, Shapes::ShapeRef.new(shape: Integer, location_name: "pageNumber"))
|
|
1030
|
+
AutomatedReasoningPolicyAnnotatedChunk.add_member(:content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotatedContentList, required: true, location_name: "content"))
|
|
1031
|
+
AutomatedReasoningPolicyAnnotatedChunk.struct_class = Types::AutomatedReasoningPolicyAnnotatedChunk
|
|
1032
|
+
|
|
1033
|
+
AutomatedReasoningPolicyAnnotatedChunkList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotatedChunk)
|
|
1034
|
+
|
|
1035
|
+
AutomatedReasoningPolicyAnnotatedContent.add_member(:line, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotatedLine, location_name: "line"))
|
|
1036
|
+
AutomatedReasoningPolicyAnnotatedContent.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1037
|
+
AutomatedReasoningPolicyAnnotatedContent.add_member_subclass(:line, Types::AutomatedReasoningPolicyAnnotatedContent::Line)
|
|
1038
|
+
AutomatedReasoningPolicyAnnotatedContent.add_member_subclass(:unknown, Types::AutomatedReasoningPolicyAnnotatedContent::Unknown)
|
|
1039
|
+
AutomatedReasoningPolicyAnnotatedContent.struct_class = Types::AutomatedReasoningPolicyAnnotatedContent
|
|
1040
|
+
|
|
1041
|
+
AutomatedReasoningPolicyAnnotatedContentList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotatedContent)
|
|
1042
|
+
|
|
1043
|
+
AutomatedReasoningPolicyAnnotatedLine.add_member(:line_number, Shapes::ShapeRef.new(shape: Integer, location_name: "lineNumber"))
|
|
1044
|
+
AutomatedReasoningPolicyAnnotatedLine.add_member(:line_text, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyLineText, location_name: "lineText"))
|
|
1045
|
+
AutomatedReasoningPolicyAnnotatedLine.struct_class = Types::AutomatedReasoningPolicyAnnotatedLine
|
|
1046
|
+
|
|
994
1047
|
AutomatedReasoningPolicyAnnotation.add_member(:add_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAddTypeAnnotation, location_name: "addType"))
|
|
995
1048
|
AutomatedReasoningPolicyAnnotation.add_member(:update_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyUpdateTypeAnnotation, location_name: "updateType"))
|
|
996
1049
|
AutomatedReasoningPolicyAnnotation.add_member(:delete_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDeleteTypeAnnotation, location_name: "deleteType"))
|
|
@@ -1023,6 +1076,13 @@ module Aws::Bedrock
|
|
|
1023
1076
|
|
|
1024
1077
|
AutomatedReasoningPolicyAnnotationList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotation)
|
|
1025
1078
|
|
|
1079
|
+
AutomatedReasoningPolicyAtomicStatement.add_member(:id, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyStatementId, required: true, location_name: "id"))
|
|
1080
|
+
AutomatedReasoningPolicyAtomicStatement.add_member(:text, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyStatementText, required: true, location_name: "text"))
|
|
1081
|
+
AutomatedReasoningPolicyAtomicStatement.add_member(:location, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyStatementLocation, required: true, location_name: "location"))
|
|
1082
|
+
AutomatedReasoningPolicyAtomicStatement.struct_class = Types::AutomatedReasoningPolicyAtomicStatement
|
|
1083
|
+
|
|
1084
|
+
AutomatedReasoningPolicyAtomicStatementList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAtomicStatement)
|
|
1085
|
+
|
|
1026
1086
|
AutomatedReasoningPolicyBuildLog.add_member(:entries, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildLogEntryList, required: true, location_name: "entries"))
|
|
1027
1087
|
AutomatedReasoningPolicyBuildLog.struct_class = Types::AutomatedReasoningPolicyBuildLog
|
|
1028
1088
|
|
|
@@ -1033,17 +1093,33 @@ module Aws::Bedrock
|
|
|
1033
1093
|
|
|
1034
1094
|
AutomatedReasoningPolicyBuildLogEntryList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildLogEntry)
|
|
1035
1095
|
|
|
1096
|
+
AutomatedReasoningPolicyBuildResultAssetManifest.add_member(:entries, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetManifestList, required: true, location_name: "entries"))
|
|
1097
|
+
AutomatedReasoningPolicyBuildResultAssetManifest.struct_class = Types::AutomatedReasoningPolicyBuildResultAssetManifest
|
|
1098
|
+
|
|
1099
|
+
AutomatedReasoningPolicyBuildResultAssetManifestEntry.add_member(:asset_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetType, required: true, location_name: "assetType"))
|
|
1100
|
+
AutomatedReasoningPolicyBuildResultAssetManifestEntry.add_member(:asset_name, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetName, location_name: "assetName"))
|
|
1101
|
+
AutomatedReasoningPolicyBuildResultAssetManifestEntry.add_member(:asset_id, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetId, location_name: "assetId"))
|
|
1102
|
+
AutomatedReasoningPolicyBuildResultAssetManifestEntry.struct_class = Types::AutomatedReasoningPolicyBuildResultAssetManifestEntry
|
|
1103
|
+
|
|
1104
|
+
AutomatedReasoningPolicyBuildResultAssetManifestList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetManifestEntry)
|
|
1105
|
+
|
|
1036
1106
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:policy_definition, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinition, location_name: "policyDefinition"))
|
|
1037
1107
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:quality_report, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionQualityReport, location_name: "qualityReport"))
|
|
1038
1108
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:build_log, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildLog, location_name: "buildLog"))
|
|
1039
1109
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:generated_test_cases, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGeneratedTestCases, location_name: "generatedTestCases"))
|
|
1040
1110
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:policy_scenarios, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarios, location_name: "policyScenarios"))
|
|
1111
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member(:asset_manifest, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetManifest, location_name: "assetManifest"))
|
|
1112
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member(:document, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicySourceDocument, location_name: "document"))
|
|
1113
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member(:fidelity_report, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyFidelityReport, location_name: "fidelityReport"))
|
|
1041
1114
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1042
1115
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:policy_definition, Types::AutomatedReasoningPolicyBuildResultAssets::PolicyDefinition)
|
|
1043
1116
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:quality_report, Types::AutomatedReasoningPolicyBuildResultAssets::QualityReport)
|
|
1044
1117
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:build_log, Types::AutomatedReasoningPolicyBuildResultAssets::BuildLog)
|
|
1045
1118
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:generated_test_cases, Types::AutomatedReasoningPolicyBuildResultAssets::GeneratedTestCases)
|
|
1046
1119
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:policy_scenarios, Types::AutomatedReasoningPolicyBuildResultAssets::PolicyScenarios)
|
|
1120
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:asset_manifest, Types::AutomatedReasoningPolicyBuildResultAssets::AssetManifest)
|
|
1121
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:document, Types::AutomatedReasoningPolicyBuildResultAssets::Document)
|
|
1122
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:fidelity_report, Types::AutomatedReasoningPolicyBuildResultAssets::FidelityReport)
|
|
1047
1123
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:unknown, Types::AutomatedReasoningPolicyBuildResultAssets::Unknown)
|
|
1048
1124
|
AutomatedReasoningPolicyBuildResultAssets.struct_class = Types::AutomatedReasoningPolicyBuildResultAssets
|
|
1049
1125
|
|
|
@@ -1189,6 +1265,21 @@ module Aws::Bedrock
|
|
|
1189
1265
|
|
|
1190
1266
|
AutomatedReasoningPolicyDisjointedRuleIdList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionRuleId)
|
|
1191
1267
|
|
|
1268
|
+
AutomatedReasoningPolicyFidelityReport.add_member(:coverage_score, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyCoverageScore, required: true, location_name: "coverageScore"))
|
|
1269
|
+
AutomatedReasoningPolicyFidelityReport.add_member(:accuracy_score, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAccuracyScore, required: true, location_name: "accuracyScore"))
|
|
1270
|
+
AutomatedReasoningPolicyFidelityReport.add_member(:rule_reports, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyRuleReportMap, required: true, location_name: "ruleReports"))
|
|
1271
|
+
AutomatedReasoningPolicyFidelityReport.add_member(:variable_reports, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyVariableReportMap, required: true, location_name: "variableReports"))
|
|
1272
|
+
AutomatedReasoningPolicyFidelityReport.add_member(:document_sources, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyReportSourceDocumentList, required: true, location_name: "documentSources"))
|
|
1273
|
+
AutomatedReasoningPolicyFidelityReport.struct_class = Types::AutomatedReasoningPolicyFidelityReport
|
|
1274
|
+
|
|
1275
|
+
AutomatedReasoningPolicyGenerateFidelityReportContent.add_member(:documents, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGenerateFidelityReportDocumentList, location_name: "documents"))
|
|
1276
|
+
AutomatedReasoningPolicyGenerateFidelityReportContent.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1277
|
+
AutomatedReasoningPolicyGenerateFidelityReportContent.add_member_subclass(:documents, Types::AutomatedReasoningPolicyGenerateFidelityReportContent::Documents)
|
|
1278
|
+
AutomatedReasoningPolicyGenerateFidelityReportContent.add_member_subclass(:unknown, Types::AutomatedReasoningPolicyGenerateFidelityReportContent::Unknown)
|
|
1279
|
+
AutomatedReasoningPolicyGenerateFidelityReportContent.struct_class = Types::AutomatedReasoningPolicyGenerateFidelityReportContent
|
|
1280
|
+
|
|
1281
|
+
AutomatedReasoningPolicyGenerateFidelityReportDocumentList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildWorkflowDocument)
|
|
1282
|
+
|
|
1192
1283
|
AutomatedReasoningPolicyGeneratedTestCase.add_member(:query_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyTestQueryContent, required: true, location_name: "queryContent"))
|
|
1193
1284
|
AutomatedReasoningPolicyGeneratedTestCase.add_member(:guard_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyTestGuardContent, required: true, location_name: "guardContent"))
|
|
1194
1285
|
AutomatedReasoningPolicyGeneratedTestCase.add_member(:expected_aggregated_findings_result, Shapes::ShapeRef.new(shape: AutomatedReasoningCheckResult, required: true, location_name: "expectedAggregatedFindingsResult"))
|
|
@@ -1202,6 +1293,10 @@ module Aws::Bedrock
|
|
|
1202
1293
|
AutomatedReasoningPolicyIngestContentAnnotation.add_member(:content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotationIngestContent, required: true, location_name: "content"))
|
|
1203
1294
|
AutomatedReasoningPolicyIngestContentAnnotation.struct_class = Types::AutomatedReasoningPolicyIngestContentAnnotation
|
|
1204
1295
|
|
|
1296
|
+
AutomatedReasoningPolicyJustificationList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyJustificationText)
|
|
1297
|
+
|
|
1298
|
+
AutomatedReasoningPolicyLineNumberList.member = Shapes::ShapeRef.new(shape: Integer)
|
|
1299
|
+
|
|
1205
1300
|
AutomatedReasoningPolicyMutation.add_member(:add_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAddTypeMutation, location_name: "addType"))
|
|
1206
1301
|
AutomatedReasoningPolicyMutation.add_member(:update_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyUpdateTypeMutation, location_name: "updateType"))
|
|
1207
1302
|
AutomatedReasoningPolicyMutation.add_member(:delete_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDeleteTypeMutation, location_name: "deleteType"))
|
|
@@ -1226,6 +1321,25 @@ module Aws::Bedrock
|
|
|
1226
1321
|
|
|
1227
1322
|
AutomatedReasoningPolicyPlanning.struct_class = Types::AutomatedReasoningPolicyPlanning
|
|
1228
1323
|
|
|
1324
|
+
AutomatedReasoningPolicyReportSourceDocument.add_member(:document_name, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildDocumentName, required: true, location_name: "documentName"))
|
|
1325
|
+
AutomatedReasoningPolicyReportSourceDocument.add_member(:document_hash, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDocumentSha256, required: true, location_name: "documentHash"))
|
|
1326
|
+
AutomatedReasoningPolicyReportSourceDocument.add_member(:document_id, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDocumentId, required: true, location_name: "documentId"))
|
|
1327
|
+
AutomatedReasoningPolicyReportSourceDocument.add_member(:atomic_statements, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAtomicStatementList, required: true, location_name: "atomicStatements"))
|
|
1328
|
+
AutomatedReasoningPolicyReportSourceDocument.add_member(:document_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotatedChunkList, required: true, location_name: "documentContent"))
|
|
1329
|
+
AutomatedReasoningPolicyReportSourceDocument.struct_class = Types::AutomatedReasoningPolicyReportSourceDocument
|
|
1330
|
+
|
|
1331
|
+
AutomatedReasoningPolicyReportSourceDocumentList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyReportSourceDocument)
|
|
1332
|
+
|
|
1333
|
+
AutomatedReasoningPolicyRuleReport.add_member(:rule, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionRuleId, required: true, location_name: "rule"))
|
|
1334
|
+
AutomatedReasoningPolicyRuleReport.add_member(:grounding_statements, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyStatementReferenceList, location_name: "groundingStatements"))
|
|
1335
|
+
AutomatedReasoningPolicyRuleReport.add_member(:grounding_justifications, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyJustificationList, location_name: "groundingJustifications"))
|
|
1336
|
+
AutomatedReasoningPolicyRuleReport.add_member(:accuracy_score, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAccuracyScore, location_name: "accuracyScore"))
|
|
1337
|
+
AutomatedReasoningPolicyRuleReport.add_member(:accuracy_justification, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyJustificationText, location_name: "accuracyJustification"))
|
|
1338
|
+
AutomatedReasoningPolicyRuleReport.struct_class = Types::AutomatedReasoningPolicyRuleReport
|
|
1339
|
+
|
|
1340
|
+
AutomatedReasoningPolicyRuleReportMap.key = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionRuleId)
|
|
1341
|
+
AutomatedReasoningPolicyRuleReportMap.value = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyRuleReport)
|
|
1342
|
+
|
|
1229
1343
|
AutomatedReasoningPolicyScenario.add_member(:expression, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarioExpression, required: true, location_name: "expression"))
|
|
1230
1344
|
AutomatedReasoningPolicyScenario.add_member(:alternate_expression, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarioAlternateExpression, required: true, location_name: "alternateExpression"))
|
|
1231
1345
|
AutomatedReasoningPolicyScenario.add_member(:expected_result, Shapes::ShapeRef.new(shape: AutomatedReasoningCheckResult, required: true, location_name: "expectedResult"))
|
|
@@ -1237,6 +1351,22 @@ module Aws::Bedrock
|
|
|
1237
1351
|
AutomatedReasoningPolicyScenarios.add_member(:policy_scenarios, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarioList, required: true, location_name: "policyScenarios"))
|
|
1238
1352
|
AutomatedReasoningPolicyScenarios.struct_class = Types::AutomatedReasoningPolicyScenarios
|
|
1239
1353
|
|
|
1354
|
+
AutomatedReasoningPolicySourceDocument.add_member(:document, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildDocumentBlob, required: true, location_name: "document"))
|
|
1355
|
+
AutomatedReasoningPolicySourceDocument.add_member(:document_content_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildDocumentContentType, required: true, location_name: "documentContentType"))
|
|
1356
|
+
AutomatedReasoningPolicySourceDocument.add_member(:document_name, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildDocumentName, required: true, location_name: "documentName"))
|
|
1357
|
+
AutomatedReasoningPolicySourceDocument.add_member(:document_description, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildDocumentDescription, location_name: "documentDescription"))
|
|
1358
|
+
AutomatedReasoningPolicySourceDocument.add_member(:document_hash, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDocumentSha256, required: true, location_name: "documentHash"))
|
|
1359
|
+
AutomatedReasoningPolicySourceDocument.struct_class = Types::AutomatedReasoningPolicySourceDocument
|
|
1360
|
+
|
|
1361
|
+
AutomatedReasoningPolicyStatementLocation.add_member(:lines, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyLineNumberList, required: true, location_name: "lines"))
|
|
1362
|
+
AutomatedReasoningPolicyStatementLocation.struct_class = Types::AutomatedReasoningPolicyStatementLocation
|
|
1363
|
+
|
|
1364
|
+
AutomatedReasoningPolicyStatementReference.add_member(:document_id, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDocumentId, required: true, location_name: "documentId"))
|
|
1365
|
+
AutomatedReasoningPolicyStatementReference.add_member(:statement_id, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyStatementId, required: true, location_name: "statementId"))
|
|
1366
|
+
AutomatedReasoningPolicyStatementReference.struct_class = Types::AutomatedReasoningPolicyStatementReference
|
|
1367
|
+
|
|
1368
|
+
AutomatedReasoningPolicyStatementReferenceList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyStatementReference)
|
|
1369
|
+
|
|
1240
1370
|
AutomatedReasoningPolicySummaries.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicySummary)
|
|
1241
1371
|
|
|
1242
1372
|
AutomatedReasoningPolicySummary.add_member(:policy_arn, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyArn, required: true, location_name: "policyArn"))
|
|
@@ -1322,11 +1452,23 @@ module Aws::Bedrock
|
|
|
1322
1452
|
AutomatedReasoningPolicyUpdateVariableMutation.add_member(:variable, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionVariable, required: true, location_name: "variable"))
|
|
1323
1453
|
AutomatedReasoningPolicyUpdateVariableMutation.struct_class = Types::AutomatedReasoningPolicyUpdateVariableMutation
|
|
1324
1454
|
|
|
1455
|
+
AutomatedReasoningPolicyVariableReport.add_member(:policy_variable, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionVariableName, required: true, location_name: "policyVariable"))
|
|
1456
|
+
AutomatedReasoningPolicyVariableReport.add_member(:grounding_statements, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyStatementReferenceList, location_name: "groundingStatements"))
|
|
1457
|
+
AutomatedReasoningPolicyVariableReport.add_member(:grounding_justifications, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyJustificationList, location_name: "groundingJustifications"))
|
|
1458
|
+
AutomatedReasoningPolicyVariableReport.add_member(:accuracy_score, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAccuracyScore, location_name: "accuracyScore"))
|
|
1459
|
+
AutomatedReasoningPolicyVariableReport.add_member(:accuracy_justification, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyJustificationText, location_name: "accuracyJustification"))
|
|
1460
|
+
AutomatedReasoningPolicyVariableReport.struct_class = Types::AutomatedReasoningPolicyVariableReport
|
|
1461
|
+
|
|
1462
|
+
AutomatedReasoningPolicyVariableReportMap.key = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionVariableName)
|
|
1463
|
+
AutomatedReasoningPolicyVariableReportMap.value = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyVariableReport)
|
|
1464
|
+
|
|
1325
1465
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:documents, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildWorkflowDocumentList, location_name: "documents"))
|
|
1326
1466
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:policy_repair_assets, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildWorkflowRepairContent, location_name: "policyRepairAssets"))
|
|
1467
|
+
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:generate_fidelity_report_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGenerateFidelityReportContent, location_name: "generateFidelityReportContent"))
|
|
1327
1468
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1328
1469
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:documents, Types::AutomatedReasoningPolicyWorkflowTypeContent::Documents)
|
|
1329
1470
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:policy_repair_assets, Types::AutomatedReasoningPolicyWorkflowTypeContent::PolicyRepairAssets)
|
|
1471
|
+
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:generate_fidelity_report_content, Types::AutomatedReasoningPolicyWorkflowTypeContent::GenerateFidelityReportContent)
|
|
1330
1472
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:unknown, Types::AutomatedReasoningPolicyWorkflowTypeContent::Unknown)
|
|
1331
1473
|
AutomatedReasoningPolicyWorkflowTypeContent.struct_class = Types::AutomatedReasoningPolicyWorkflowTypeContent
|
|
1332
1474
|
|
|
@@ -1966,6 +2108,7 @@ module Aws::Bedrock
|
|
|
1966
2108
|
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.add_member(:policy_arn, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyArn, required: true, location: "uri", location_name: "policyArn"))
|
|
1967
2109
|
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.add_member(:build_workflow_id, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildWorkflowId, required: true, location: "uri", location_name: "buildWorkflowId"))
|
|
1968
2110
|
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.add_member(:asset_type, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetType, required: true, location: "querystring", location_name: "assetType"))
|
|
2111
|
+
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.add_member(:asset_id, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildResultAssetId, location: "querystring", location_name: "assetId"))
|
|
1969
2112
|
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.struct_class = Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
|
|
1970
2113
|
|
|
1971
2114
|
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse.add_member(:policy_arn, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyArn, required: true, location_name: "policyArn"))
|
|
@@ -760,6 +760,74 @@ module Aws::Bedrock
|
|
|
760
760
|
include Aws::Structure
|
|
761
761
|
end
|
|
762
762
|
|
|
763
|
+
# Represents a portion of a source document with line number
|
|
764
|
+
# annotations. Chunks help organize document content for easier
|
|
765
|
+
# navigation and reference.
|
|
766
|
+
#
|
|
767
|
+
# @!attribute [rw] page_number
|
|
768
|
+
# The page number where this chunk begins, if the document is divided
|
|
769
|
+
# into pages.
|
|
770
|
+
# @return [Integer]
|
|
771
|
+
#
|
|
772
|
+
# @!attribute [rw] content
|
|
773
|
+
# The lines of text contained within this chunk, each annotated with
|
|
774
|
+
# its line number.
|
|
775
|
+
# @return [Array<Types::AutomatedReasoningPolicyAnnotatedContent>]
|
|
776
|
+
#
|
|
777
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAnnotatedChunk AWS API Documentation
|
|
778
|
+
#
|
|
779
|
+
class AutomatedReasoningPolicyAnnotatedChunk < Struct.new(
|
|
780
|
+
:page_number,
|
|
781
|
+
:content)
|
|
782
|
+
SENSITIVE = []
|
|
783
|
+
include Aws::Structure
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
# Represents a content element within an annotated chunk. This union
|
|
787
|
+
# type allows for different types of content elements to be included in
|
|
788
|
+
# document chunks, such as individual lines of text with their line
|
|
789
|
+
# numbers.
|
|
790
|
+
#
|
|
791
|
+
# @note AutomatedReasoningPolicyAnnotatedContent is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningPolicyAnnotatedContent corresponding to the set member.
|
|
792
|
+
#
|
|
793
|
+
# @!attribute [rw] line
|
|
794
|
+
# An annotated line of text from the source document, including both
|
|
795
|
+
# the line number and the text content.
|
|
796
|
+
# @return [Types::AutomatedReasoningPolicyAnnotatedLine]
|
|
797
|
+
#
|
|
798
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAnnotatedContent AWS API Documentation
|
|
799
|
+
#
|
|
800
|
+
class AutomatedReasoningPolicyAnnotatedContent < Struct.new(
|
|
801
|
+
:line,
|
|
802
|
+
:unknown)
|
|
803
|
+
SENSITIVE = []
|
|
804
|
+
include Aws::Structure
|
|
805
|
+
include Aws::Structure::Union
|
|
806
|
+
|
|
807
|
+
class Line < AutomatedReasoningPolicyAnnotatedContent; end
|
|
808
|
+
class Unknown < AutomatedReasoningPolicyAnnotatedContent; end
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# Represents a single line of text from a source document, annotated
|
|
812
|
+
# with its line number for precise referencing.
|
|
813
|
+
#
|
|
814
|
+
# @!attribute [rw] line_number
|
|
815
|
+
# The line number of this text within the source document.
|
|
816
|
+
# @return [Integer]
|
|
817
|
+
#
|
|
818
|
+
# @!attribute [rw] line_text
|
|
819
|
+
# The actual text content of this line from the source document.
|
|
820
|
+
# @return [String]
|
|
821
|
+
#
|
|
822
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAnnotatedLine AWS API Documentation
|
|
823
|
+
#
|
|
824
|
+
class AutomatedReasoningPolicyAnnotatedLine < Struct.new(
|
|
825
|
+
:line_number,
|
|
826
|
+
:line_text)
|
|
827
|
+
SENSITIVE = [:line_text]
|
|
828
|
+
include Aws::Structure
|
|
829
|
+
end
|
|
830
|
+
|
|
763
831
|
# Contains the various operations that can be performed on an Automated
|
|
764
832
|
# Reasoning policy, including adding, updating, and deleting rules,
|
|
765
833
|
# variables, and types.
|
|
@@ -869,6 +937,35 @@ module Aws::Bedrock
|
|
|
869
937
|
class Unknown < AutomatedReasoningPolicyAnnotation; end
|
|
870
938
|
end
|
|
871
939
|
|
|
940
|
+
# Represents a single, indivisible statement extracted from a source
|
|
941
|
+
# document. Atomic statements are the fundamental units used to ground
|
|
942
|
+
# policy rules and variables to their source material.
|
|
943
|
+
#
|
|
944
|
+
# @!attribute [rw] id
|
|
945
|
+
# A unique identifier for this atomic statement within the fidelity
|
|
946
|
+
# report.
|
|
947
|
+
# @return [String]
|
|
948
|
+
#
|
|
949
|
+
# @!attribute [rw] text
|
|
950
|
+
# The actual text content of the atomic statement as extracted from
|
|
951
|
+
# the source document.
|
|
952
|
+
# @return [String]
|
|
953
|
+
#
|
|
954
|
+
# @!attribute [rw] location
|
|
955
|
+
# Information about where this statement appears in the source
|
|
956
|
+
# document, including line numbers.
|
|
957
|
+
# @return [Types::AutomatedReasoningPolicyStatementLocation]
|
|
958
|
+
#
|
|
959
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAtomicStatement AWS API Documentation
|
|
960
|
+
#
|
|
961
|
+
class AutomatedReasoningPolicyAtomicStatement < Struct.new(
|
|
962
|
+
:id,
|
|
963
|
+
:text,
|
|
964
|
+
:location)
|
|
965
|
+
SENSITIVE = [:text]
|
|
966
|
+
include Aws::Structure
|
|
967
|
+
end
|
|
968
|
+
|
|
872
969
|
# Contains detailed logging information about the policy build process,
|
|
873
970
|
# including steps taken, decisions made, and any issues encountered.
|
|
874
971
|
#
|
|
@@ -912,6 +1009,52 @@ module Aws::Bedrock
|
|
|
912
1009
|
include Aws::Structure
|
|
913
1010
|
end
|
|
914
1011
|
|
|
1012
|
+
# A catalog of all artifacts produced by a build workflow, providing a
|
|
1013
|
+
# comprehensive list of available assets including their types and
|
|
1014
|
+
# identifiers.
|
|
1015
|
+
#
|
|
1016
|
+
# @!attribute [rw] entries
|
|
1017
|
+
# The list of asset entries in the manifest, each describing an
|
|
1018
|
+
# available artifact that can be retrieved.
|
|
1019
|
+
# @return [Array<Types::AutomatedReasoningPolicyBuildResultAssetManifestEntry>]
|
|
1020
|
+
#
|
|
1021
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildResultAssetManifest AWS API Documentation
|
|
1022
|
+
#
|
|
1023
|
+
class AutomatedReasoningPolicyBuildResultAssetManifest < Struct.new(
|
|
1024
|
+
:entries)
|
|
1025
|
+
SENSITIVE = []
|
|
1026
|
+
include Aws::Structure
|
|
1027
|
+
end
|
|
1028
|
+
|
|
1029
|
+
# Represents a single entry in the asset manifest, describing one
|
|
1030
|
+
# artifact produced by the build workflow.
|
|
1031
|
+
#
|
|
1032
|
+
# @!attribute [rw] asset_type
|
|
1033
|
+
# The type of asset (e.g., BUILD\_LOG, QUALITY\_REPORT,
|
|
1034
|
+
# POLICY\_DEFINITION, GENERATED\_TEST\_CASES, POLICY\_SCENARIOS,
|
|
1035
|
+
# FIDELITY\_REPORT, ASSET\_MANIFEST, SOURCE\_DOCUMENT).
|
|
1036
|
+
# @return [String]
|
|
1037
|
+
#
|
|
1038
|
+
# @!attribute [rw] asset_name
|
|
1039
|
+
# A human-readable name for the asset, if applicable. This helps
|
|
1040
|
+
# identify specific documents or reports within the workflow results.
|
|
1041
|
+
# @return [String]
|
|
1042
|
+
#
|
|
1043
|
+
# @!attribute [rw] asset_id
|
|
1044
|
+
# A unique identifier for the asset, if applicable. Use this ID when
|
|
1045
|
+
# requesting specific assets through the API.
|
|
1046
|
+
# @return [String]
|
|
1047
|
+
#
|
|
1048
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildResultAssetManifestEntry AWS API Documentation
|
|
1049
|
+
#
|
|
1050
|
+
class AutomatedReasoningPolicyBuildResultAssetManifestEntry < Struct.new(
|
|
1051
|
+
:asset_type,
|
|
1052
|
+
:asset_name,
|
|
1053
|
+
:asset_id)
|
|
1054
|
+
SENSITIVE = [:asset_name]
|
|
1055
|
+
include Aws::Structure
|
|
1056
|
+
end
|
|
1057
|
+
|
|
915
1058
|
# Contains the various assets generated during a policy build workflow,
|
|
916
1059
|
# including logs, quality reports, test cases, and the final policy
|
|
917
1060
|
# definition.
|
|
@@ -946,6 +1089,25 @@ module Aws::Bedrock
|
|
|
946
1089
|
# policy.
|
|
947
1090
|
# @return [Types::AutomatedReasoningPolicyScenarios]
|
|
948
1091
|
#
|
|
1092
|
+
# @!attribute [rw] asset_manifest
|
|
1093
|
+
# A manifest listing all available artifacts produced by the build
|
|
1094
|
+
# workflow. This provides a catalog of all assets that can be
|
|
1095
|
+
# retrieved, including their types, names, and identifiers.
|
|
1096
|
+
# @return [Types::AutomatedReasoningPolicyBuildResultAssetManifest]
|
|
1097
|
+
#
|
|
1098
|
+
# @!attribute [rw] document
|
|
1099
|
+
# A source document that was used as input during the build workflow.
|
|
1100
|
+
# This allows you to retrieve the original documents that were
|
|
1101
|
+
# processed to generate the policy.
|
|
1102
|
+
# @return [Types::AutomatedReasoningPolicySourceDocument]
|
|
1103
|
+
#
|
|
1104
|
+
# @!attribute [rw] fidelity_report
|
|
1105
|
+
# A comprehensive fidelity report that measures how accurately the
|
|
1106
|
+
# generated policy represents the source documents. The report
|
|
1107
|
+
# includes coverage and accuracy scores, along with detailed grounding
|
|
1108
|
+
# information for rules and variables.
|
|
1109
|
+
# @return [Types::AutomatedReasoningPolicyFidelityReport]
|
|
1110
|
+
#
|
|
949
1111
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildResultAssets AWS API Documentation
|
|
950
1112
|
#
|
|
951
1113
|
class AutomatedReasoningPolicyBuildResultAssets < Struct.new(
|
|
@@ -954,6 +1116,9 @@ module Aws::Bedrock
|
|
|
954
1116
|
:build_log,
|
|
955
1117
|
:generated_test_cases,
|
|
956
1118
|
:policy_scenarios,
|
|
1119
|
+
:asset_manifest,
|
|
1120
|
+
:document,
|
|
1121
|
+
:fidelity_report,
|
|
957
1122
|
:unknown)
|
|
958
1123
|
SENSITIVE = []
|
|
959
1124
|
include Aws::Structure
|
|
@@ -964,6 +1129,9 @@ module Aws::Bedrock
|
|
|
964
1129
|
class BuildLog < AutomatedReasoningPolicyBuildResultAssets; end
|
|
965
1130
|
class GeneratedTestCases < AutomatedReasoningPolicyBuildResultAssets; end
|
|
966
1131
|
class PolicyScenarios < AutomatedReasoningPolicyBuildResultAssets; end
|
|
1132
|
+
class AssetManifest < AutomatedReasoningPolicyBuildResultAssets; end
|
|
1133
|
+
class Document < AutomatedReasoningPolicyBuildResultAssets; end
|
|
1134
|
+
class FidelityReport < AutomatedReasoningPolicyBuildResultAssets; end
|
|
967
1135
|
class Unknown < AutomatedReasoningPolicyBuildResultAssets; end
|
|
968
1136
|
end
|
|
969
1137
|
|
|
@@ -1550,6 +1718,78 @@ module Aws::Bedrock
|
|
|
1550
1718
|
include Aws::Structure
|
|
1551
1719
|
end
|
|
1552
1720
|
|
|
1721
|
+
# A comprehensive analysis report that measures how accurately a
|
|
1722
|
+
# generated policy represents the source documents. The report includes
|
|
1723
|
+
# coverage and accuracy scores, detailed grounding information linking
|
|
1724
|
+
# policy elements to source statements, and annotated document content.
|
|
1725
|
+
#
|
|
1726
|
+
# @!attribute [rw] coverage_score
|
|
1727
|
+
# A score from 0.0 to 1.0 indicating how well the policy covers the
|
|
1728
|
+
# statements in the source documents. A higher score means more of the
|
|
1729
|
+
# source content is represented in the policy.
|
|
1730
|
+
# @return [Float]
|
|
1731
|
+
#
|
|
1732
|
+
# @!attribute [rw] accuracy_score
|
|
1733
|
+
# A score from 0.0 to 1.0 indicating how accurate the policy rules are
|
|
1734
|
+
# relative to the source documents. A higher score means the policy
|
|
1735
|
+
# rules more faithfully represent the source material.
|
|
1736
|
+
# @return [Float]
|
|
1737
|
+
#
|
|
1738
|
+
# @!attribute [rw] rule_reports
|
|
1739
|
+
# A mapping from rule identifiers to detailed fidelity reports for
|
|
1740
|
+
# each rule, showing which source statements ground each rule and how
|
|
1741
|
+
# accurate it is.
|
|
1742
|
+
# @return [Hash<String,Types::AutomatedReasoningPolicyRuleReport>]
|
|
1743
|
+
#
|
|
1744
|
+
# @!attribute [rw] variable_reports
|
|
1745
|
+
# A mapping from variable names to detailed fidelity reports for each
|
|
1746
|
+
# variable, showing which source statements ground each variable and
|
|
1747
|
+
# how accurate it is.
|
|
1748
|
+
# @return [Hash<String,Types::AutomatedReasoningPolicyVariableReport>]
|
|
1749
|
+
#
|
|
1750
|
+
# @!attribute [rw] document_sources
|
|
1751
|
+
# A list of source documents with their content broken down into
|
|
1752
|
+
# atomic statements and annotated with line numbers for precise
|
|
1753
|
+
# referencing.
|
|
1754
|
+
# @return [Array<Types::AutomatedReasoningPolicyReportSourceDocument>]
|
|
1755
|
+
#
|
|
1756
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyFidelityReport AWS API Documentation
|
|
1757
|
+
#
|
|
1758
|
+
class AutomatedReasoningPolicyFidelityReport < Struct.new(
|
|
1759
|
+
:coverage_score,
|
|
1760
|
+
:accuracy_score,
|
|
1761
|
+
:rule_reports,
|
|
1762
|
+
:variable_reports,
|
|
1763
|
+
:document_sources)
|
|
1764
|
+
SENSITIVE = [:variable_reports]
|
|
1765
|
+
include Aws::Structure
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1768
|
+
# Configuration for generating a fidelity report, which can either
|
|
1769
|
+
# analyze new documents or update an existing fidelity report with a new
|
|
1770
|
+
# policy definition.
|
|
1771
|
+
#
|
|
1772
|
+
# @note AutomatedReasoningPolicyGenerateFidelityReportContent is a union - when making an API calls you must set exactly one of the members.
|
|
1773
|
+
#
|
|
1774
|
+
# @!attribute [rw] documents
|
|
1775
|
+
# Source documents to analyze for generating a new fidelity report.
|
|
1776
|
+
# The documents will be processed to create atomic statements and
|
|
1777
|
+
# grounding information.
|
|
1778
|
+
# @return [Array<Types::AutomatedReasoningPolicyBuildWorkflowDocument>]
|
|
1779
|
+
#
|
|
1780
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyGenerateFidelityReportContent AWS API Documentation
|
|
1781
|
+
#
|
|
1782
|
+
class AutomatedReasoningPolicyGenerateFidelityReportContent < Struct.new(
|
|
1783
|
+
:documents,
|
|
1784
|
+
:unknown)
|
|
1785
|
+
SENSITIVE = []
|
|
1786
|
+
include Aws::Structure
|
|
1787
|
+
include Aws::Structure::Union
|
|
1788
|
+
|
|
1789
|
+
class Documents < AutomatedReasoningPolicyGenerateFidelityReportContent; end
|
|
1790
|
+
class Unknown < AutomatedReasoningPolicyGenerateFidelityReportContent; end
|
|
1791
|
+
end
|
|
1792
|
+
|
|
1553
1793
|
# Represents a generated test case, consisting of query content, guard
|
|
1554
1794
|
# content, and expected results.
|
|
1555
1795
|
#
|
|
@@ -1711,6 +1951,85 @@ module Aws::Bedrock
|
|
|
1711
1951
|
#
|
|
1712
1952
|
class AutomatedReasoningPolicyPlanning < Aws::EmptyStructure; end
|
|
1713
1953
|
|
|
1954
|
+
# Represents a source document that was analyzed during fidelity report
|
|
1955
|
+
# generation, including the document's metadata and its content broken
|
|
1956
|
+
# down into atomic statements.
|
|
1957
|
+
#
|
|
1958
|
+
# @!attribute [rw] document_name
|
|
1959
|
+
# The name of the source document that was analyzed.
|
|
1960
|
+
# @return [String]
|
|
1961
|
+
#
|
|
1962
|
+
# @!attribute [rw] document_hash
|
|
1963
|
+
# A SHA-256 hash of the document content, used for verification and
|
|
1964
|
+
# ensuring the document hasn't changed since analysis.
|
|
1965
|
+
# @return [String]
|
|
1966
|
+
#
|
|
1967
|
+
# @!attribute [rw] document_id
|
|
1968
|
+
# A unique identifier for this document within the fidelity report.
|
|
1969
|
+
# @return [String]
|
|
1970
|
+
#
|
|
1971
|
+
# @!attribute [rw] atomic_statements
|
|
1972
|
+
# The list of atomic statements extracted from this document,
|
|
1973
|
+
# representing the fundamental units of meaning used for grounding.
|
|
1974
|
+
# @return [Array<Types::AutomatedReasoningPolicyAtomicStatement>]
|
|
1975
|
+
#
|
|
1976
|
+
# @!attribute [rw] document_content
|
|
1977
|
+
# The document's content organized into annotated chunks with line
|
|
1978
|
+
# number information for precise referencing.
|
|
1979
|
+
# @return [Array<Types::AutomatedReasoningPolicyAnnotatedChunk>]
|
|
1980
|
+
#
|
|
1981
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyReportSourceDocument AWS API Documentation
|
|
1982
|
+
#
|
|
1983
|
+
class AutomatedReasoningPolicyReportSourceDocument < Struct.new(
|
|
1984
|
+
:document_name,
|
|
1985
|
+
:document_hash,
|
|
1986
|
+
:document_id,
|
|
1987
|
+
:atomic_statements,
|
|
1988
|
+
:document_content)
|
|
1989
|
+
SENSITIVE = [:document_name]
|
|
1990
|
+
include Aws::Structure
|
|
1991
|
+
end
|
|
1992
|
+
|
|
1993
|
+
# Provides detailed fidelity analysis for a specific policy rule,
|
|
1994
|
+
# including which source document statements support it and how accurate
|
|
1995
|
+
# the rule is.
|
|
1996
|
+
#
|
|
1997
|
+
# @!attribute [rw] rule
|
|
1998
|
+
# The identifier of the policy rule being analyzed in this report.
|
|
1999
|
+
# @return [String]
|
|
2000
|
+
#
|
|
2001
|
+
# @!attribute [rw] grounding_statements
|
|
2002
|
+
# References to statements from the source documents that provide the
|
|
2003
|
+
# basis or justification for this rule.
|
|
2004
|
+
# @return [Array<Types::AutomatedReasoningPolicyStatementReference>]
|
|
2005
|
+
#
|
|
2006
|
+
# @!attribute [rw] grounding_justifications
|
|
2007
|
+
# Explanations describing how the source statements support and
|
|
2008
|
+
# justify this specific rule.
|
|
2009
|
+
# @return [Array<String>]
|
|
2010
|
+
#
|
|
2011
|
+
# @!attribute [rw] accuracy_score
|
|
2012
|
+
# A score from 0.0 to 1.0 indicating how accurately this rule
|
|
2013
|
+
# represents the source material.
|
|
2014
|
+
# @return [Float]
|
|
2015
|
+
#
|
|
2016
|
+
# @!attribute [rw] accuracy_justification
|
|
2017
|
+
# A textual explanation of the accuracy score, describing why the rule
|
|
2018
|
+
# received this particular accuracy rating.
|
|
2019
|
+
# @return [String]
|
|
2020
|
+
#
|
|
2021
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyRuleReport AWS API Documentation
|
|
2022
|
+
#
|
|
2023
|
+
class AutomatedReasoningPolicyRuleReport < Struct.new(
|
|
2024
|
+
:rule,
|
|
2025
|
+
:grounding_statements,
|
|
2026
|
+
:grounding_justifications,
|
|
2027
|
+
:accuracy_score,
|
|
2028
|
+
:accuracy_justification)
|
|
2029
|
+
SENSITIVE = [:grounding_justifications, :accuracy_justification]
|
|
2030
|
+
include Aws::Structure
|
|
2031
|
+
end
|
|
2032
|
+
|
|
1714
2033
|
# Represents a test scenario used to validate an Automated Reasoning
|
|
1715
2034
|
# policy, including the test conditions and expected outcomes.
|
|
1716
2035
|
#
|
|
@@ -1760,6 +2079,82 @@ module Aws::Bedrock
|
|
|
1760
2079
|
include Aws::Structure
|
|
1761
2080
|
end
|
|
1762
2081
|
|
|
2082
|
+
# Represents a source document that was processed during a build
|
|
2083
|
+
# workflow. Contains the document content, metadata, and a hash for
|
|
2084
|
+
# verification.
|
|
2085
|
+
#
|
|
2086
|
+
# @!attribute [rw] document
|
|
2087
|
+
# The raw content of the source document as a binary blob.
|
|
2088
|
+
# @return [String]
|
|
2089
|
+
#
|
|
2090
|
+
# @!attribute [rw] document_content_type
|
|
2091
|
+
# The MIME type of the document (e.g., application/pdf, text/plain).
|
|
2092
|
+
# @return [String]
|
|
2093
|
+
#
|
|
2094
|
+
# @!attribute [rw] document_name
|
|
2095
|
+
# The name of the source document for identification purposes.
|
|
2096
|
+
# @return [String]
|
|
2097
|
+
#
|
|
2098
|
+
# @!attribute [rw] document_description
|
|
2099
|
+
# An optional description providing context about the document's
|
|
2100
|
+
# content and purpose.
|
|
2101
|
+
# @return [String]
|
|
2102
|
+
#
|
|
2103
|
+
# @!attribute [rw] document_hash
|
|
2104
|
+
# A SHA-256 hash of the document content, used for verification and
|
|
2105
|
+
# integrity checking.
|
|
2106
|
+
# @return [String]
|
|
2107
|
+
#
|
|
2108
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicySourceDocument AWS API Documentation
|
|
2109
|
+
#
|
|
2110
|
+
class AutomatedReasoningPolicySourceDocument < Struct.new(
|
|
2111
|
+
:document,
|
|
2112
|
+
:document_content_type,
|
|
2113
|
+
:document_name,
|
|
2114
|
+
:document_description,
|
|
2115
|
+
:document_hash)
|
|
2116
|
+
SENSITIVE = [:document, :document_name, :document_description]
|
|
2117
|
+
include Aws::Structure
|
|
2118
|
+
end
|
|
2119
|
+
|
|
2120
|
+
# Describes the location of a statement within a source document using
|
|
2121
|
+
# line numbers.
|
|
2122
|
+
#
|
|
2123
|
+
# @!attribute [rw] lines
|
|
2124
|
+
# The line numbers in the source document where this statement
|
|
2125
|
+
# appears.
|
|
2126
|
+
# @return [Array<Integer>]
|
|
2127
|
+
#
|
|
2128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyStatementLocation AWS API Documentation
|
|
2129
|
+
#
|
|
2130
|
+
class AutomatedReasoningPolicyStatementLocation < Struct.new(
|
|
2131
|
+
:lines)
|
|
2132
|
+
SENSITIVE = []
|
|
2133
|
+
include Aws::Structure
|
|
2134
|
+
end
|
|
2135
|
+
|
|
2136
|
+
# References a specific atomic statement within a source document, used
|
|
2137
|
+
# to link policy elements back to their source material.
|
|
2138
|
+
#
|
|
2139
|
+
# @!attribute [rw] document_id
|
|
2140
|
+
# The unique identifier of the document containing the referenced
|
|
2141
|
+
# statement.
|
|
2142
|
+
# @return [String]
|
|
2143
|
+
#
|
|
2144
|
+
# @!attribute [rw] statement_id
|
|
2145
|
+
# The unique identifier of the specific atomic statement being
|
|
2146
|
+
# referenced.
|
|
2147
|
+
# @return [String]
|
|
2148
|
+
#
|
|
2149
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyStatementReference AWS API Documentation
|
|
2150
|
+
#
|
|
2151
|
+
class AutomatedReasoningPolicyStatementReference < Struct.new(
|
|
2152
|
+
:document_id,
|
|
2153
|
+
:statement_id)
|
|
2154
|
+
SENSITIVE = []
|
|
2155
|
+
include Aws::Structure
|
|
2156
|
+
end
|
|
2157
|
+
|
|
1763
2158
|
# Contains summary information about an Automated Reasoning policy,
|
|
1764
2159
|
# including metadata and timestamps.
|
|
1765
2160
|
#
|
|
@@ -2145,6 +2540,46 @@ module Aws::Bedrock
|
|
|
2145
2540
|
include Aws::Structure
|
|
2146
2541
|
end
|
|
2147
2542
|
|
|
2543
|
+
# Provides detailed fidelity analysis for a specific policy variable,
|
|
2544
|
+
# including which source document statements support it and how accurate
|
|
2545
|
+
# the variable definition is.
|
|
2546
|
+
#
|
|
2547
|
+
# @!attribute [rw] policy_variable
|
|
2548
|
+
# The name of the policy variable being analyzed in this report.
|
|
2549
|
+
# @return [String]
|
|
2550
|
+
#
|
|
2551
|
+
# @!attribute [rw] grounding_statements
|
|
2552
|
+
# References to statements from the source documents that provide the
|
|
2553
|
+
# basis or justification for this variable.
|
|
2554
|
+
# @return [Array<Types::AutomatedReasoningPolicyStatementReference>]
|
|
2555
|
+
#
|
|
2556
|
+
# @!attribute [rw] grounding_justifications
|
|
2557
|
+
# Explanations describing how the source statements support and
|
|
2558
|
+
# justify this specific variable definition.
|
|
2559
|
+
# @return [Array<String>]
|
|
2560
|
+
#
|
|
2561
|
+
# @!attribute [rw] accuracy_score
|
|
2562
|
+
# A score from 0.0 to 1.0 indicating how accurately this variable
|
|
2563
|
+
# represents concepts from the source material.
|
|
2564
|
+
# @return [Float]
|
|
2565
|
+
#
|
|
2566
|
+
# @!attribute [rw] accuracy_justification
|
|
2567
|
+
# A textual explanation of the accuracy score, describing why the
|
|
2568
|
+
# variable received this particular accuracy rating.
|
|
2569
|
+
# @return [String]
|
|
2570
|
+
#
|
|
2571
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyVariableReport AWS API Documentation
|
|
2572
|
+
#
|
|
2573
|
+
class AutomatedReasoningPolicyVariableReport < Struct.new(
|
|
2574
|
+
:policy_variable,
|
|
2575
|
+
:grounding_statements,
|
|
2576
|
+
:grounding_justifications,
|
|
2577
|
+
:accuracy_score,
|
|
2578
|
+
:accuracy_justification)
|
|
2579
|
+
SENSITIVE = [:policy_variable, :grounding_justifications, :accuracy_justification]
|
|
2580
|
+
include Aws::Structure
|
|
2581
|
+
end
|
|
2582
|
+
|
|
2148
2583
|
# Defines the content and configuration for different types of policy
|
|
2149
2584
|
# build workflows.
|
|
2150
2585
|
#
|
|
@@ -2160,11 +2595,18 @@ module Aws::Bedrock
|
|
|
2160
2595
|
# including repair annotations and guidance.
|
|
2161
2596
|
# @return [Types::AutomatedReasoningPolicyBuildWorkflowRepairContent]
|
|
2162
2597
|
#
|
|
2598
|
+
# @!attribute [rw] generate_fidelity_report_content
|
|
2599
|
+
# The content configuration for generating a fidelity report workflow.
|
|
2600
|
+
# This can include source documents to analyze or an existing fidelity
|
|
2601
|
+
# report to update with a new policy definition.
|
|
2602
|
+
# @return [Types::AutomatedReasoningPolicyGenerateFidelityReportContent]
|
|
2603
|
+
#
|
|
2163
2604
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyWorkflowTypeContent AWS API Documentation
|
|
2164
2605
|
#
|
|
2165
2606
|
class AutomatedReasoningPolicyWorkflowTypeContent < Struct.new(
|
|
2166
2607
|
:documents,
|
|
2167
2608
|
:policy_repair_assets,
|
|
2609
|
+
:generate_fidelity_report_content,
|
|
2168
2610
|
:unknown)
|
|
2169
2611
|
SENSITIVE = []
|
|
2170
2612
|
include Aws::Structure
|
|
@@ -2172,6 +2614,7 @@ module Aws::Bedrock
|
|
|
2172
2614
|
|
|
2173
2615
|
class Documents < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2174
2616
|
class PolicyRepairAssets < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2617
|
+
class GenerateFidelityReportContent < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2175
2618
|
class Unknown < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2176
2619
|
end
|
|
2177
2620
|
|
|
@@ -5381,7 +5824,16 @@ module Aws::Bedrock
|
|
|
5381
5824
|
#
|
|
5382
5825
|
# @!attribute [rw] asset_type
|
|
5383
5826
|
# The type of asset to retrieve (e.g., BUILD\_LOG, QUALITY\_REPORT,
|
|
5384
|
-
# POLICY\_DEFINITION
|
|
5827
|
+
# POLICY\_DEFINITION, GENERATED\_TEST\_CASES, POLICY\_SCENARIOS,
|
|
5828
|
+
# FIDELITY\_REPORT, ASSET\_MANIFEST, SOURCE\_DOCUMENT).
|
|
5829
|
+
# @return [String]
|
|
5830
|
+
#
|
|
5831
|
+
# @!attribute [rw] asset_id
|
|
5832
|
+
# The unique identifier of the specific asset to retrieve when
|
|
5833
|
+
# multiple assets of the same type exist. This is required when
|
|
5834
|
+
# retrieving SOURCE\_DOCUMENT assets, as multiple source documents may
|
|
5835
|
+
# have been used in the workflow. The asset ID can be obtained from
|
|
5836
|
+
# the asset manifest.
|
|
5385
5837
|
# @return [String]
|
|
5386
5838
|
#
|
|
5387
5839
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest AWS API Documentation
|
|
@@ -5389,7 +5841,8 @@ module Aws::Bedrock
|
|
|
5389
5841
|
class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest < Struct.new(
|
|
5390
5842
|
:policy_arn,
|
|
5391
5843
|
:build_workflow_id,
|
|
5392
|
-
:asset_type
|
|
5844
|
+
:asset_type,
|
|
5845
|
+
:asset_id)
|
|
5393
5846
|
SENSITIVE = []
|
|
5394
5847
|
include Aws::Structure
|
|
5395
5848
|
end
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -1262,7 +1262,7 @@ module Aws
|
|
|
1262
1262
|
def policy_arn: () -> ::String
|
|
1263
1263
|
def build_workflow_id: () -> ::String
|
|
1264
1264
|
def status: () -> ("SCHEDULED" | "CANCEL_REQUESTED" | "PREPROCESSING" | "BUILDING" | "TESTING" | "COMPLETED" | "FAILED" | "CANCELLED")
|
|
1265
|
-
def build_workflow_type: () -> ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY")
|
|
1265
|
+
def build_workflow_type: () -> ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT")
|
|
1266
1266
|
def document_name: () -> ::String
|
|
1267
1267
|
def document_content_type: () -> ("pdf" | "txt")
|
|
1268
1268
|
def document_description: () -> ::String
|
|
@@ -1286,7 +1286,8 @@ module Aws
|
|
|
1286
1286
|
def get_automated_reasoning_policy_build_workflow_result_assets: (
|
|
1287
1287
|
policy_arn: ::String,
|
|
1288
1288
|
build_workflow_id: ::String,
|
|
1289
|
-
asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES" | "POLICY_SCENARIOS")
|
|
1289
|
+
asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES" | "POLICY_SCENARIOS" | "FIDELITY_REPORT" | "ASSET_MANIFEST" | "SOURCE_DOCUMENT"),
|
|
1290
|
+
?asset_id: ::String
|
|
1290
1291
|
) -> _GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponseSuccess
|
|
1291
1292
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponseSuccess
|
|
1292
1293
|
|
|
@@ -2043,7 +2044,7 @@ module Aws
|
|
|
2043
2044
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#start_automated_reasoning_policy_build_workflow-instance_method
|
|
2044
2045
|
def start_automated_reasoning_policy_build_workflow: (
|
|
2045
2046
|
policy_arn: ::String,
|
|
2046
|
-
build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY"),
|
|
2047
|
+
build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT"),
|
|
2047
2048
|
?client_request_token: ::String,
|
|
2048
2049
|
source_content: {
|
|
2049
2050
|
policy_definition: {
|
|
@@ -2161,6 +2162,16 @@ module Aws
|
|
|
2161
2162
|
}?
|
|
2162
2163
|
},
|
|
2163
2164
|
]
|
|
2165
|
+
}?,
|
|
2166
|
+
generate_fidelity_report_content: {
|
|
2167
|
+
documents: Array[
|
|
2168
|
+
{
|
|
2169
|
+
document: ::String,
|
|
2170
|
+
document_content_type: ("pdf" | "txt"),
|
|
2171
|
+
document_name: ::String,
|
|
2172
|
+
document_description: ::String?
|
|
2173
|
+
},
|
|
2174
|
+
]?
|
|
2164
2175
|
}?
|
|
2165
2176
|
}?
|
|
2166
2177
|
}
|
data/sig/types.rbs
CHANGED
|
@@ -223,6 +223,29 @@ module Aws::Bedrock
|
|
|
223
223
|
SENSITIVE: []
|
|
224
224
|
end
|
|
225
225
|
|
|
226
|
+
class AutomatedReasoningPolicyAnnotatedChunk
|
|
227
|
+
attr_accessor page_number: ::Integer
|
|
228
|
+
attr_accessor content: ::Array[Types::AutomatedReasoningPolicyAnnotatedContent]
|
|
229
|
+
SENSITIVE: []
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
class AutomatedReasoningPolicyAnnotatedContent
|
|
233
|
+
attr_accessor line: Types::AutomatedReasoningPolicyAnnotatedLine
|
|
234
|
+
attr_accessor unknown: untyped
|
|
235
|
+
SENSITIVE: []
|
|
236
|
+
|
|
237
|
+
class Line < AutomatedReasoningPolicyAnnotatedContent
|
|
238
|
+
end
|
|
239
|
+
class Unknown < AutomatedReasoningPolicyAnnotatedContent
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
class AutomatedReasoningPolicyAnnotatedLine
|
|
244
|
+
attr_accessor line_number: ::Integer
|
|
245
|
+
attr_accessor line_text: ::String
|
|
246
|
+
SENSITIVE: [:line_text]
|
|
247
|
+
end
|
|
248
|
+
|
|
226
249
|
class AutomatedReasoningPolicyAnnotation
|
|
227
250
|
attr_accessor add_type: Types::AutomatedReasoningPolicyAddTypeAnnotation
|
|
228
251
|
attr_accessor update_type: Types::AutomatedReasoningPolicyUpdateTypeAnnotation
|
|
@@ -270,6 +293,13 @@ module Aws::Bedrock
|
|
|
270
293
|
end
|
|
271
294
|
end
|
|
272
295
|
|
|
296
|
+
class AutomatedReasoningPolicyAtomicStatement
|
|
297
|
+
attr_accessor id: ::String
|
|
298
|
+
attr_accessor text: ::String
|
|
299
|
+
attr_accessor location: Types::AutomatedReasoningPolicyStatementLocation
|
|
300
|
+
SENSITIVE: [:text]
|
|
301
|
+
end
|
|
302
|
+
|
|
273
303
|
class AutomatedReasoningPolicyBuildLog
|
|
274
304
|
attr_accessor entries: ::Array[Types::AutomatedReasoningPolicyBuildLogEntry]
|
|
275
305
|
SENSITIVE: []
|
|
@@ -282,12 +312,27 @@ module Aws::Bedrock
|
|
|
282
312
|
SENSITIVE: []
|
|
283
313
|
end
|
|
284
314
|
|
|
315
|
+
class AutomatedReasoningPolicyBuildResultAssetManifest
|
|
316
|
+
attr_accessor entries: ::Array[Types::AutomatedReasoningPolicyBuildResultAssetManifestEntry]
|
|
317
|
+
SENSITIVE: []
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
class AutomatedReasoningPolicyBuildResultAssetManifestEntry
|
|
321
|
+
attr_accessor asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES" | "POLICY_SCENARIOS" | "FIDELITY_REPORT" | "ASSET_MANIFEST" | "SOURCE_DOCUMENT")
|
|
322
|
+
attr_accessor asset_name: ::String
|
|
323
|
+
attr_accessor asset_id: ::String
|
|
324
|
+
SENSITIVE: [:asset_name]
|
|
325
|
+
end
|
|
326
|
+
|
|
285
327
|
class AutomatedReasoningPolicyBuildResultAssets
|
|
286
328
|
attr_accessor policy_definition: Types::AutomatedReasoningPolicyDefinition
|
|
287
329
|
attr_accessor quality_report: Types::AutomatedReasoningPolicyDefinitionQualityReport
|
|
288
330
|
attr_accessor build_log: Types::AutomatedReasoningPolicyBuildLog
|
|
289
331
|
attr_accessor generated_test_cases: Types::AutomatedReasoningPolicyGeneratedTestCases
|
|
290
332
|
attr_accessor policy_scenarios: Types::AutomatedReasoningPolicyScenarios
|
|
333
|
+
attr_accessor asset_manifest: Types::AutomatedReasoningPolicyBuildResultAssetManifest
|
|
334
|
+
attr_accessor document: Types::AutomatedReasoningPolicySourceDocument
|
|
335
|
+
attr_accessor fidelity_report: Types::AutomatedReasoningPolicyFidelityReport
|
|
291
336
|
attr_accessor unknown: untyped
|
|
292
337
|
SENSITIVE: []
|
|
293
338
|
|
|
@@ -301,6 +346,12 @@ module Aws::Bedrock
|
|
|
301
346
|
end
|
|
302
347
|
class PolicyScenarios < AutomatedReasoningPolicyBuildResultAssets
|
|
303
348
|
end
|
|
349
|
+
class AssetManifest < AutomatedReasoningPolicyBuildResultAssets
|
|
350
|
+
end
|
|
351
|
+
class Document < AutomatedReasoningPolicyBuildResultAssets
|
|
352
|
+
end
|
|
353
|
+
class FidelityReport < AutomatedReasoningPolicyBuildResultAssets
|
|
354
|
+
end
|
|
304
355
|
class Unknown < AutomatedReasoningPolicyBuildResultAssets
|
|
305
356
|
end
|
|
306
357
|
end
|
|
@@ -355,7 +406,7 @@ module Aws::Bedrock
|
|
|
355
406
|
attr_accessor policy_arn: ::String
|
|
356
407
|
attr_accessor build_workflow_id: ::String
|
|
357
408
|
attr_accessor status: ("SCHEDULED" | "CANCEL_REQUESTED" | "PREPROCESSING" | "BUILDING" | "TESTING" | "COMPLETED" | "FAILED" | "CANCELLED")
|
|
358
|
-
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY")
|
|
409
|
+
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT")
|
|
359
410
|
attr_accessor created_at: ::Time
|
|
360
411
|
attr_accessor updated_at: ::Time
|
|
361
412
|
SENSITIVE: []
|
|
@@ -472,6 +523,26 @@ module Aws::Bedrock
|
|
|
472
523
|
SENSITIVE: []
|
|
473
524
|
end
|
|
474
525
|
|
|
526
|
+
class AutomatedReasoningPolicyFidelityReport
|
|
527
|
+
attr_accessor coverage_score: ::Float
|
|
528
|
+
attr_accessor accuracy_score: ::Float
|
|
529
|
+
attr_accessor rule_reports: ::Hash[::String, Types::AutomatedReasoningPolicyRuleReport]
|
|
530
|
+
attr_accessor variable_reports: ::Hash[::String, Types::AutomatedReasoningPolicyVariableReport]
|
|
531
|
+
attr_accessor document_sources: ::Array[Types::AutomatedReasoningPolicyReportSourceDocument]
|
|
532
|
+
SENSITIVE: []
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
class AutomatedReasoningPolicyGenerateFidelityReportContent
|
|
536
|
+
attr_accessor documents: ::Array[Types::AutomatedReasoningPolicyBuildWorkflowDocument]
|
|
537
|
+
attr_accessor unknown: untyped
|
|
538
|
+
SENSITIVE: []
|
|
539
|
+
|
|
540
|
+
class Documents < AutomatedReasoningPolicyGenerateFidelityReportContent
|
|
541
|
+
end
|
|
542
|
+
class Unknown < AutomatedReasoningPolicyGenerateFidelityReportContent
|
|
543
|
+
end
|
|
544
|
+
end
|
|
545
|
+
|
|
475
546
|
class AutomatedReasoningPolicyGeneratedTestCase
|
|
476
547
|
attr_accessor query_content: ::String
|
|
477
548
|
attr_accessor guard_content: ::String
|
|
@@ -527,6 +598,24 @@ module Aws::Bedrock
|
|
|
527
598
|
class AutomatedReasoningPolicyPlanning < Aws::EmptyStructure
|
|
528
599
|
end
|
|
529
600
|
|
|
601
|
+
class AutomatedReasoningPolicyReportSourceDocument
|
|
602
|
+
attr_accessor document_name: ::String
|
|
603
|
+
attr_accessor document_hash: ::String
|
|
604
|
+
attr_accessor document_id: ::String
|
|
605
|
+
attr_accessor atomic_statements: ::Array[Types::AutomatedReasoningPolicyAtomicStatement]
|
|
606
|
+
attr_accessor document_content: ::Array[Types::AutomatedReasoningPolicyAnnotatedChunk]
|
|
607
|
+
SENSITIVE: [:document_name]
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
class AutomatedReasoningPolicyRuleReport
|
|
611
|
+
attr_accessor rule: ::String
|
|
612
|
+
attr_accessor grounding_statements: ::Array[Types::AutomatedReasoningPolicyStatementReference]
|
|
613
|
+
attr_accessor grounding_justifications: ::Array[::String]
|
|
614
|
+
attr_accessor accuracy_score: ::Float
|
|
615
|
+
attr_accessor accuracy_justification: ::String
|
|
616
|
+
SENSITIVE: [:accuracy_justification]
|
|
617
|
+
end
|
|
618
|
+
|
|
530
619
|
class AutomatedReasoningPolicyScenario
|
|
531
620
|
attr_accessor expression: ::String
|
|
532
621
|
attr_accessor alternate_expression: ::String
|
|
@@ -540,6 +629,26 @@ module Aws::Bedrock
|
|
|
540
629
|
SENSITIVE: []
|
|
541
630
|
end
|
|
542
631
|
|
|
632
|
+
class AutomatedReasoningPolicySourceDocument
|
|
633
|
+
attr_accessor document: ::String
|
|
634
|
+
attr_accessor document_content_type: ("pdf" | "txt")
|
|
635
|
+
attr_accessor document_name: ::String
|
|
636
|
+
attr_accessor document_description: ::String
|
|
637
|
+
attr_accessor document_hash: ::String
|
|
638
|
+
SENSITIVE: [:document, :document_name, :document_description]
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
class AutomatedReasoningPolicyStatementLocation
|
|
642
|
+
attr_accessor lines: ::Array[::Integer]
|
|
643
|
+
SENSITIVE: []
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
class AutomatedReasoningPolicyStatementReference
|
|
647
|
+
attr_accessor document_id: ::String
|
|
648
|
+
attr_accessor statement_id: ::String
|
|
649
|
+
SENSITIVE: []
|
|
650
|
+
end
|
|
651
|
+
|
|
543
652
|
class AutomatedReasoningPolicySummary
|
|
544
653
|
attr_accessor policy_arn: ::String
|
|
545
654
|
attr_accessor name: ::String
|
|
@@ -646,9 +755,19 @@ module Aws::Bedrock
|
|
|
646
755
|
SENSITIVE: []
|
|
647
756
|
end
|
|
648
757
|
|
|
758
|
+
class AutomatedReasoningPolicyVariableReport
|
|
759
|
+
attr_accessor policy_variable: ::String
|
|
760
|
+
attr_accessor grounding_statements: ::Array[Types::AutomatedReasoningPolicyStatementReference]
|
|
761
|
+
attr_accessor grounding_justifications: ::Array[::String]
|
|
762
|
+
attr_accessor accuracy_score: ::Float
|
|
763
|
+
attr_accessor accuracy_justification: ::String
|
|
764
|
+
SENSITIVE: [:policy_variable, :accuracy_justification]
|
|
765
|
+
end
|
|
766
|
+
|
|
649
767
|
class AutomatedReasoningPolicyWorkflowTypeContent
|
|
650
768
|
attr_accessor documents: ::Array[Types::AutomatedReasoningPolicyBuildWorkflowDocument]
|
|
651
769
|
attr_accessor policy_repair_assets: Types::AutomatedReasoningPolicyBuildWorkflowRepairContent
|
|
770
|
+
attr_accessor generate_fidelity_report_content: Types::AutomatedReasoningPolicyGenerateFidelityReportContent
|
|
652
771
|
attr_accessor unknown: untyped
|
|
653
772
|
SENSITIVE: []
|
|
654
773
|
|
|
@@ -656,6 +775,8 @@ module Aws::Bedrock
|
|
|
656
775
|
end
|
|
657
776
|
class PolicyRepairAssets < AutomatedReasoningPolicyWorkflowTypeContent
|
|
658
777
|
end
|
|
778
|
+
class GenerateFidelityReportContent < AutomatedReasoningPolicyWorkflowTypeContent
|
|
779
|
+
end
|
|
659
780
|
class Unknown < AutomatedReasoningPolicyWorkflowTypeContent
|
|
660
781
|
end
|
|
661
782
|
end
|
|
@@ -1488,7 +1609,7 @@ module Aws::Bedrock
|
|
|
1488
1609
|
attr_accessor policy_arn: ::String
|
|
1489
1610
|
attr_accessor build_workflow_id: ::String
|
|
1490
1611
|
attr_accessor status: ("SCHEDULED" | "CANCEL_REQUESTED" | "PREPROCESSING" | "BUILDING" | "TESTING" | "COMPLETED" | "FAILED" | "CANCELLED")
|
|
1491
|
-
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY")
|
|
1612
|
+
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT")
|
|
1492
1613
|
attr_accessor document_name: ::String
|
|
1493
1614
|
attr_accessor document_content_type: ("pdf" | "txt")
|
|
1494
1615
|
attr_accessor document_description: ::String
|
|
@@ -1500,7 +1621,8 @@ module Aws::Bedrock
|
|
|
1500
1621
|
class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
|
|
1501
1622
|
attr_accessor policy_arn: ::String
|
|
1502
1623
|
attr_accessor build_workflow_id: ::String
|
|
1503
|
-
attr_accessor asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES" | "POLICY_SCENARIOS")
|
|
1624
|
+
attr_accessor asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES" | "POLICY_SCENARIOS" | "FIDELITY_REPORT" | "ASSET_MANIFEST" | "SOURCE_DOCUMENT")
|
|
1625
|
+
attr_accessor asset_id: ::String
|
|
1504
1626
|
SENSITIVE: []
|
|
1505
1627
|
end
|
|
1506
1628
|
|
|
@@ -3095,7 +3217,7 @@ module Aws::Bedrock
|
|
|
3095
3217
|
|
|
3096
3218
|
class StartAutomatedReasoningPolicyBuildWorkflowRequest
|
|
3097
3219
|
attr_accessor policy_arn: ::String
|
|
3098
|
-
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY")
|
|
3220
|
+
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT")
|
|
3099
3221
|
attr_accessor client_request_token: ::String
|
|
3100
3222
|
attr_accessor source_content: Types::AutomatedReasoningPolicyBuildWorkflowSource
|
|
3101
3223
|
SENSITIVE: []
|