aws-sdk-bedrockruntime 1.54.0 → 1.56.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +822 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +171 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +551 -1
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +202 -0
- data/sig/types.rbs +158 -0
- metadata +1 -1
@@ -29,6 +29,7 @@ module Aws::BedrockRuntime
|
|
29
29
|
AsyncInvokeSummaries = Shapes::ListShape.new(name: 'AsyncInvokeSummaries')
|
30
30
|
AsyncInvokeSummary = Shapes::StructureShape.new(name: 'AsyncInvokeSummary')
|
31
31
|
AutoToolChoice = Shapes::StructureShape.new(name: 'AutoToolChoice')
|
32
|
+
AutomatedReasoningRuleIdentifier = Shapes::StringShape.new(name: 'AutomatedReasoningRuleIdentifier')
|
32
33
|
BidirectionalInputPayloadPart = Shapes::StructureShape.new(name: 'BidirectionalInputPayloadPart')
|
33
34
|
BidirectionalOutputPayloadPart = Shapes::StructureShape.new(name: 'BidirectionalOutputPayloadPart')
|
34
35
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
@@ -72,7 +73,11 @@ module Aws::BedrockRuntime
|
|
72
73
|
ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString = Shapes::StringShape.new(name: 'ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString')
|
73
74
|
ConverseStreamResponse = Shapes::StructureShape.new(name: 'ConverseStreamResponse')
|
74
75
|
ConverseStreamTrace = Shapes::StructureShape.new(name: 'ConverseStreamTrace')
|
76
|
+
ConverseTokensRequest = Shapes::StructureShape.new(name: 'ConverseTokensRequest')
|
75
77
|
ConverseTrace = Shapes::StructureShape.new(name: 'ConverseTrace')
|
78
|
+
CountTokensInput = Shapes::UnionShape.new(name: 'CountTokensInput')
|
79
|
+
CountTokensRequest = Shapes::StructureShape.new(name: 'CountTokensRequest')
|
80
|
+
CountTokensResponse = Shapes::StructureShape.new(name: 'CountTokensResponse')
|
76
81
|
Document = Shapes::DocumentShape.new(name: 'Document', document: true)
|
77
82
|
DocumentBlock = Shapes::StructureShape.new(name: 'DocumentBlock')
|
78
83
|
DocumentBlockNameString = Shapes::StringShape.new(name: 'DocumentBlockNameString')
|
@@ -93,6 +98,7 @@ module Aws::BedrockRuntime
|
|
93
98
|
DocumentPageLocationStartInteger = Shapes::IntegerShape.new(name: 'DocumentPageLocationStartInteger')
|
94
99
|
DocumentSource = Shapes::UnionShape.new(name: 'DocumentSource')
|
95
100
|
DocumentSourceBytesBlob = Shapes::BlobShape.new(name: 'DocumentSourceBytesBlob')
|
101
|
+
FoundationModelVersionIdentifier = Shapes::StringShape.new(name: 'FoundationModelVersionIdentifier')
|
96
102
|
GetAsyncInvokeRequest = Shapes::StructureShape.new(name: 'GetAsyncInvokeRequest')
|
97
103
|
GetAsyncInvokeResponse = Shapes::StructureShape.new(name: 'GetAsyncInvokeResponse')
|
98
104
|
GuardrailAction = Shapes::StringShape.new(name: 'GuardrailAction')
|
@@ -100,6 +106,36 @@ module Aws::BedrockRuntime
|
|
100
106
|
GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList')
|
101
107
|
GuardrailAssessmentListMap = Shapes::MapShape.new(name: 'GuardrailAssessmentListMap')
|
102
108
|
GuardrailAssessmentMap = Shapes::MapShape.new(name: 'GuardrailAssessmentMap')
|
109
|
+
GuardrailAutomatedReasoningDifferenceScenarioList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningDifferenceScenarioList')
|
110
|
+
GuardrailAutomatedReasoningFinding = Shapes::UnionShape.new(name: 'GuardrailAutomatedReasoningFinding')
|
111
|
+
GuardrailAutomatedReasoningFindingList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningFindingList')
|
112
|
+
GuardrailAutomatedReasoningImpossibleFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningImpossibleFinding')
|
113
|
+
GuardrailAutomatedReasoningInputTextReference = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningInputTextReference')
|
114
|
+
GuardrailAutomatedReasoningInputTextReferenceList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningInputTextReferenceList')
|
115
|
+
GuardrailAutomatedReasoningInvalidFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningInvalidFinding')
|
116
|
+
GuardrailAutomatedReasoningLogicWarning = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningLogicWarning')
|
117
|
+
GuardrailAutomatedReasoningLogicWarningType = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningLogicWarningType')
|
118
|
+
GuardrailAutomatedReasoningNoTranslationsFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningNoTranslationsFinding')
|
119
|
+
GuardrailAutomatedReasoningPoliciesProcessed = Shapes::IntegerShape.new(name: 'GuardrailAutomatedReasoningPoliciesProcessed')
|
120
|
+
GuardrailAutomatedReasoningPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningPolicyAssessment')
|
121
|
+
GuardrailAutomatedReasoningPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailAutomatedReasoningPolicyUnitsProcessed')
|
122
|
+
GuardrailAutomatedReasoningPolicyVersionArn = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningPolicyVersionArn')
|
123
|
+
GuardrailAutomatedReasoningRule = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningRule')
|
124
|
+
GuardrailAutomatedReasoningRuleList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningRuleList')
|
125
|
+
GuardrailAutomatedReasoningSatisfiableFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningSatisfiableFinding')
|
126
|
+
GuardrailAutomatedReasoningScenario = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningScenario')
|
127
|
+
GuardrailAutomatedReasoningStatement = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningStatement')
|
128
|
+
GuardrailAutomatedReasoningStatementList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningStatementList')
|
129
|
+
GuardrailAutomatedReasoningStatementLogicContent = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningStatementLogicContent')
|
130
|
+
GuardrailAutomatedReasoningStatementNaturalLanguageContent = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningStatementNaturalLanguageContent')
|
131
|
+
GuardrailAutomatedReasoningTooComplexFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTooComplexFinding')
|
132
|
+
GuardrailAutomatedReasoningTranslation = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTranslation')
|
133
|
+
GuardrailAutomatedReasoningTranslationAmbiguousFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTranslationAmbiguousFinding')
|
134
|
+
GuardrailAutomatedReasoningTranslationConfidence = Shapes::FloatShape.new(name: 'GuardrailAutomatedReasoningTranslationConfidence')
|
135
|
+
GuardrailAutomatedReasoningTranslationList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningTranslationList')
|
136
|
+
GuardrailAutomatedReasoningTranslationOption = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTranslationOption')
|
137
|
+
GuardrailAutomatedReasoningTranslationOptionList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningTranslationOptionList')
|
138
|
+
GuardrailAutomatedReasoningValidFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningValidFinding')
|
103
139
|
GuardrailConfiguration = Shapes::StructureShape.new(name: 'GuardrailConfiguration')
|
104
140
|
GuardrailContentBlock = Shapes::UnionShape.new(name: 'GuardrailContentBlock')
|
105
141
|
GuardrailContentBlockList = Shapes::ListShape.new(name: 'GuardrailContentBlockList')
|
@@ -186,11 +222,13 @@ module Aws::BedrockRuntime
|
|
186
222
|
InferenceConfigurationStopSequencesList = Shapes::ListShape.new(name: 'InferenceConfigurationStopSequencesList')
|
187
223
|
InferenceConfigurationTemperatureFloat = Shapes::FloatShape.new(name: 'InferenceConfigurationTemperatureFloat')
|
188
224
|
InferenceConfigurationTopPFloat = Shapes::FloatShape.new(name: 'InferenceConfigurationTopPFloat')
|
225
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
189
226
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
190
227
|
InvocationArn = Shapes::StringShape.new(name: 'InvocationArn')
|
191
228
|
InvokeModelIdentifier = Shapes::StringShape.new(name: 'InvokeModelIdentifier')
|
192
229
|
InvokeModelRequest = Shapes::StructureShape.new(name: 'InvokeModelRequest')
|
193
230
|
InvokeModelResponse = Shapes::StructureShape.new(name: 'InvokeModelResponse')
|
231
|
+
InvokeModelTokensRequest = Shapes::StructureShape.new(name: 'InvokeModelTokensRequest')
|
194
232
|
InvokeModelWithBidirectionalStreamInput = Shapes::StructureShape.new(name: 'InvokeModelWithBidirectionalStreamInput')
|
195
233
|
InvokeModelWithBidirectionalStreamOutput = Shapes::StructureShape.new(name: 'InvokeModelWithBidirectionalStreamOutput')
|
196
234
|
InvokeModelWithBidirectionalStreamRequest = Shapes::StructureShape.new(name: 'InvokeModelWithBidirectionalStreamRequest')
|
@@ -525,10 +563,29 @@ module Aws::BedrockRuntime
|
|
525
563
|
ConverseStreamTrace.add_member(:prompt_router, Shapes::ShapeRef.new(shape: PromptRouterTrace, location_name: "promptRouter"))
|
526
564
|
ConverseStreamTrace.struct_class = Types::ConverseStreamTrace
|
527
565
|
|
566
|
+
ConverseTokensRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
|
567
|
+
ConverseTokensRequest.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system"))
|
568
|
+
ConverseTokensRequest.struct_class = Types::ConverseTokensRequest
|
569
|
+
|
528
570
|
ConverseTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail"))
|
529
571
|
ConverseTrace.add_member(:prompt_router, Shapes::ShapeRef.new(shape: PromptRouterTrace, location_name: "promptRouter"))
|
530
572
|
ConverseTrace.struct_class = Types::ConverseTrace
|
531
573
|
|
574
|
+
CountTokensInput.add_member(:invoke_model, Shapes::ShapeRef.new(shape: InvokeModelTokensRequest, location_name: "invokeModel"))
|
575
|
+
CountTokensInput.add_member(:converse, Shapes::ShapeRef.new(shape: ConverseTokensRequest, location_name: "converse"))
|
576
|
+
CountTokensInput.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
577
|
+
CountTokensInput.add_member_subclass(:invoke_model, Types::CountTokensInput::InvokeModel)
|
578
|
+
CountTokensInput.add_member_subclass(:converse, Types::CountTokensInput::Converse)
|
579
|
+
CountTokensInput.add_member_subclass(:unknown, Types::CountTokensInput::Unknown)
|
580
|
+
CountTokensInput.struct_class = Types::CountTokensInput
|
581
|
+
|
582
|
+
CountTokensRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: FoundationModelVersionIdentifier, required: true, location: "uri", location_name: "modelId"))
|
583
|
+
CountTokensRequest.add_member(:input, Shapes::ShapeRef.new(shape: CountTokensInput, required: true, location_name: "input"))
|
584
|
+
CountTokensRequest.struct_class = Types::CountTokensRequest
|
585
|
+
|
586
|
+
CountTokensResponse.add_member(:input_tokens, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "inputTokens"))
|
587
|
+
CountTokensResponse.struct_class = Types::CountTokensResponse
|
588
|
+
|
532
589
|
DocumentBlock.add_member(:format, Shapes::ShapeRef.new(shape: DocumentFormat, location_name: "format"))
|
533
590
|
DocumentBlock.add_member(:name, Shapes::ShapeRef.new(shape: DocumentBlockNameString, required: true, location_name: "name"))
|
534
591
|
DocumentBlock.add_member(:source, Shapes::ShapeRef.new(shape: DocumentSource, required: true, location_name: "source"))
|
@@ -590,6 +647,7 @@ module Aws::BedrockRuntime
|
|
590
647
|
GuardrailAssessment.add_member(:word_policy, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAssessment, location_name: "wordPolicy"))
|
591
648
|
GuardrailAssessment.add_member(:sensitive_information_policy, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAssessment, location_name: "sensitiveInformationPolicy"))
|
592
649
|
GuardrailAssessment.add_member(:contextual_grounding_policy, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAssessment, location_name: "contextualGroundingPolicy"))
|
650
|
+
GuardrailAssessment.add_member(:automated_reasoning_policy, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyAssessment, location_name: "automatedReasoningPolicy"))
|
593
651
|
GuardrailAssessment.add_member(:invocation_metrics, Shapes::ShapeRef.new(shape: GuardrailInvocationMetrics, location_name: "invocationMetrics"))
|
594
652
|
GuardrailAssessment.struct_class = Types::GuardrailAssessment
|
595
653
|
|
@@ -601,6 +659,100 @@ module Aws::BedrockRuntime
|
|
601
659
|
GuardrailAssessmentMap.key = Shapes::ShapeRef.new(shape: String)
|
602
660
|
GuardrailAssessmentMap.value = Shapes::ShapeRef.new(shape: GuardrailAssessment)
|
603
661
|
|
662
|
+
GuardrailAutomatedReasoningDifferenceScenarioList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario)
|
663
|
+
|
664
|
+
GuardrailAutomatedReasoningFinding.add_member(:valid, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningValidFinding, location_name: "valid"))
|
665
|
+
GuardrailAutomatedReasoningFinding.add_member(:invalid, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInvalidFinding, location_name: "invalid"))
|
666
|
+
GuardrailAutomatedReasoningFinding.add_member(:satisfiable, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningSatisfiableFinding, location_name: "satisfiable"))
|
667
|
+
GuardrailAutomatedReasoningFinding.add_member(:impossible, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningImpossibleFinding, location_name: "impossible"))
|
668
|
+
GuardrailAutomatedReasoningFinding.add_member(:translation_ambiguous, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationAmbiguousFinding, location_name: "translationAmbiguous"))
|
669
|
+
GuardrailAutomatedReasoningFinding.add_member(:too_complex, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTooComplexFinding, location_name: "tooComplex"))
|
670
|
+
GuardrailAutomatedReasoningFinding.add_member(:no_translations, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningNoTranslationsFinding, location_name: "noTranslations"))
|
671
|
+
GuardrailAutomatedReasoningFinding.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
672
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:valid, Types::GuardrailAutomatedReasoningFinding::Valid)
|
673
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:invalid, Types::GuardrailAutomatedReasoningFinding::Invalid)
|
674
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:satisfiable, Types::GuardrailAutomatedReasoningFinding::Satisfiable)
|
675
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:impossible, Types::GuardrailAutomatedReasoningFinding::Impossible)
|
676
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:translation_ambiguous, Types::GuardrailAutomatedReasoningFinding::TranslationAmbiguous)
|
677
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:too_complex, Types::GuardrailAutomatedReasoningFinding::TooComplex)
|
678
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:no_translations, Types::GuardrailAutomatedReasoningFinding::NoTranslations)
|
679
|
+
GuardrailAutomatedReasoningFinding.add_member_subclass(:unknown, Types::GuardrailAutomatedReasoningFinding::Unknown)
|
680
|
+
GuardrailAutomatedReasoningFinding.struct_class = Types::GuardrailAutomatedReasoningFinding
|
681
|
+
|
682
|
+
GuardrailAutomatedReasoningFindingList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningFinding)
|
683
|
+
|
684
|
+
GuardrailAutomatedReasoningImpossibleFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
|
685
|
+
GuardrailAutomatedReasoningImpossibleFinding.add_member(:contradicting_rules, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRuleList, location_name: "contradictingRules"))
|
686
|
+
GuardrailAutomatedReasoningImpossibleFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
|
687
|
+
GuardrailAutomatedReasoningImpossibleFinding.struct_class = Types::GuardrailAutomatedReasoningImpossibleFinding
|
688
|
+
|
689
|
+
GuardrailAutomatedReasoningInputTextReference.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementNaturalLanguageContent, location_name: "text"))
|
690
|
+
GuardrailAutomatedReasoningInputTextReference.struct_class = Types::GuardrailAutomatedReasoningInputTextReference
|
691
|
+
|
692
|
+
GuardrailAutomatedReasoningInputTextReferenceList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInputTextReference)
|
693
|
+
|
694
|
+
GuardrailAutomatedReasoningInvalidFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
|
695
|
+
GuardrailAutomatedReasoningInvalidFinding.add_member(:contradicting_rules, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRuleList, location_name: "contradictingRules"))
|
696
|
+
GuardrailAutomatedReasoningInvalidFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
|
697
|
+
GuardrailAutomatedReasoningInvalidFinding.struct_class = Types::GuardrailAutomatedReasoningInvalidFinding
|
698
|
+
|
699
|
+
GuardrailAutomatedReasoningLogicWarning.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarningType, location_name: "type"))
|
700
|
+
GuardrailAutomatedReasoningLogicWarning.add_member(:premises, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "premises"))
|
701
|
+
GuardrailAutomatedReasoningLogicWarning.add_member(:claims, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "claims"))
|
702
|
+
GuardrailAutomatedReasoningLogicWarning.struct_class = Types::GuardrailAutomatedReasoningLogicWarning
|
703
|
+
|
704
|
+
GuardrailAutomatedReasoningNoTranslationsFinding.struct_class = Types::GuardrailAutomatedReasoningNoTranslationsFinding
|
705
|
+
|
706
|
+
GuardrailAutomatedReasoningPolicyAssessment.add_member(:findings, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningFindingList, location_name: "findings"))
|
707
|
+
GuardrailAutomatedReasoningPolicyAssessment.struct_class = Types::GuardrailAutomatedReasoningPolicyAssessment
|
708
|
+
|
709
|
+
GuardrailAutomatedReasoningRule.add_member(:identifier, Shapes::ShapeRef.new(shape: AutomatedReasoningRuleIdentifier, location_name: "identifier"))
|
710
|
+
GuardrailAutomatedReasoningRule.add_member(:policy_version_arn, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyVersionArn, location_name: "policyVersionArn"))
|
711
|
+
GuardrailAutomatedReasoningRule.struct_class = Types::GuardrailAutomatedReasoningRule
|
712
|
+
|
713
|
+
GuardrailAutomatedReasoningRuleList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRule)
|
714
|
+
|
715
|
+
GuardrailAutomatedReasoningSatisfiableFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
|
716
|
+
GuardrailAutomatedReasoningSatisfiableFinding.add_member(:claims_true_scenario, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario, location_name: "claimsTrueScenario"))
|
717
|
+
GuardrailAutomatedReasoningSatisfiableFinding.add_member(:claims_false_scenario, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario, location_name: "claimsFalseScenario"))
|
718
|
+
GuardrailAutomatedReasoningSatisfiableFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
|
719
|
+
GuardrailAutomatedReasoningSatisfiableFinding.struct_class = Types::GuardrailAutomatedReasoningSatisfiableFinding
|
720
|
+
|
721
|
+
GuardrailAutomatedReasoningScenario.add_member(:statements, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "statements"))
|
722
|
+
GuardrailAutomatedReasoningScenario.struct_class = Types::GuardrailAutomatedReasoningScenario
|
723
|
+
|
724
|
+
GuardrailAutomatedReasoningStatement.add_member(:logic, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementLogicContent, location_name: "logic"))
|
725
|
+
GuardrailAutomatedReasoningStatement.add_member(:natural_language, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementNaturalLanguageContent, location_name: "naturalLanguage"))
|
726
|
+
GuardrailAutomatedReasoningStatement.struct_class = Types::GuardrailAutomatedReasoningStatement
|
727
|
+
|
728
|
+
GuardrailAutomatedReasoningStatementList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatement)
|
729
|
+
|
730
|
+
GuardrailAutomatedReasoningTooComplexFinding.struct_class = Types::GuardrailAutomatedReasoningTooComplexFinding
|
731
|
+
|
732
|
+
GuardrailAutomatedReasoningTranslation.add_member(:premises, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "premises"))
|
733
|
+
GuardrailAutomatedReasoningTranslation.add_member(:claims, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "claims"))
|
734
|
+
GuardrailAutomatedReasoningTranslation.add_member(:untranslated_premises, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInputTextReferenceList, location_name: "untranslatedPremises"))
|
735
|
+
GuardrailAutomatedReasoningTranslation.add_member(:untranslated_claims, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInputTextReferenceList, location_name: "untranslatedClaims"))
|
736
|
+
GuardrailAutomatedReasoningTranslation.add_member(:confidence, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationConfidence, location_name: "confidence"))
|
737
|
+
GuardrailAutomatedReasoningTranslation.struct_class = Types::GuardrailAutomatedReasoningTranslation
|
738
|
+
|
739
|
+
GuardrailAutomatedReasoningTranslationAmbiguousFinding.add_member(:options, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationOptionList, location_name: "options"))
|
740
|
+
GuardrailAutomatedReasoningTranslationAmbiguousFinding.add_member(:difference_scenarios, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningDifferenceScenarioList, location_name: "differenceScenarios"))
|
741
|
+
GuardrailAutomatedReasoningTranslationAmbiguousFinding.struct_class = Types::GuardrailAutomatedReasoningTranslationAmbiguousFinding
|
742
|
+
|
743
|
+
GuardrailAutomatedReasoningTranslationList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation)
|
744
|
+
|
745
|
+
GuardrailAutomatedReasoningTranslationOption.add_member(:translations, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationList, location_name: "translations"))
|
746
|
+
GuardrailAutomatedReasoningTranslationOption.struct_class = Types::GuardrailAutomatedReasoningTranslationOption
|
747
|
+
|
748
|
+
GuardrailAutomatedReasoningTranslationOptionList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationOption)
|
749
|
+
|
750
|
+
GuardrailAutomatedReasoningValidFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
|
751
|
+
GuardrailAutomatedReasoningValidFinding.add_member(:claims_true_scenario, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario, location_name: "claimsTrueScenario"))
|
752
|
+
GuardrailAutomatedReasoningValidFinding.add_member(:supporting_rules, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRuleList, location_name: "supportingRules"))
|
753
|
+
GuardrailAutomatedReasoningValidFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
|
754
|
+
GuardrailAutomatedReasoningValidFinding.struct_class = Types::GuardrailAutomatedReasoningValidFinding
|
755
|
+
|
604
756
|
GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location_name: "guardrailIdentifier"))
|
605
757
|
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "guardrailVersion"))
|
606
758
|
GuardrailConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
|
@@ -768,6 +920,8 @@ module Aws::BedrockRuntime
|
|
768
920
|
GuardrailUsage.add_member(:sensitive_information_policy_free_units, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyFreeUnitsProcessed, required: true, location_name: "sensitiveInformationPolicyFreeUnits"))
|
769
921
|
GuardrailUsage.add_member(:contextual_grounding_policy_units, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyUnitsProcessed, required: true, location_name: "contextualGroundingPolicyUnits"))
|
770
922
|
GuardrailUsage.add_member(:content_policy_image_units, Shapes::ShapeRef.new(shape: GuardrailContentPolicyImageUnitsProcessed, location_name: "contentPolicyImageUnits"))
|
923
|
+
GuardrailUsage.add_member(:automated_reasoning_policy_units, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyUnitsProcessed, location_name: "automatedReasoningPolicyUnits"))
|
924
|
+
GuardrailUsage.add_member(:automated_reasoning_policies, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPoliciesProcessed, location_name: "automatedReasoningPolicies"))
|
771
925
|
GuardrailUsage.struct_class = Types::GuardrailUsage
|
772
926
|
|
773
927
|
GuardrailWordPolicyAssessment.add_member(:custom_words, Shapes::ShapeRef.new(shape: GuardrailCustomWordList, required: true, location_name: "customWords"))
|
@@ -816,6 +970,9 @@ module Aws::BedrockRuntime
|
|
816
970
|
InvokeModelResponse[:payload] = :body
|
817
971
|
InvokeModelResponse[:payload_member] = InvokeModelResponse.member(:body)
|
818
972
|
|
973
|
+
InvokeModelTokensRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
|
974
|
+
InvokeModelTokensRequest.struct_class = Types::InvokeModelTokensRequest
|
975
|
+
|
819
976
|
InvokeModelWithBidirectionalStreamInput.add_member(:chunk, Shapes::ShapeRef.new(shape: BidirectionalInputPayloadPart, event: true, location_name: "chunk"))
|
820
977
|
InvokeModelWithBidirectionalStreamInput.struct_class = Types::InvokeModelWithBidirectionalStreamInput
|
821
978
|
|
@@ -1159,6 +1316,20 @@ module Aws::BedrockRuntime
|
|
1159
1316
|
o.errors << Shapes::ShapeRef.new(shape: ModelErrorException)
|
1160
1317
|
end)
|
1161
1318
|
|
1319
|
+
api.add_operation(:count_tokens, Seahorse::Model::Operation.new.tap do |o|
|
1320
|
+
o.name = "CountTokens"
|
1321
|
+
o.http_method = "POST"
|
1322
|
+
o.http_request_uri = "/model/{modelId}/count-tokens"
|
1323
|
+
o.input = Shapes::ShapeRef.new(shape: CountTokensRequest)
|
1324
|
+
o.output = Shapes::ShapeRef.new(shape: CountTokensResponse)
|
1325
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1326
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1327
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1328
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1329
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1330
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1331
|
+
end)
|
1332
|
+
|
1162
1333
|
api.add_operation(:get_async_invoke, Seahorse::Model::Operation.new.tap do |o|
|
1163
1334
|
o.name = "GetAsyncInvoke"
|
1164
1335
|
o.http_method = "GET"
|