aws-sdk-bedrockruntime 1.63.0 → 1.67.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +203 -5
- data/lib/aws-sdk-bedrockruntime/client_api.rb +66 -4
- data/lib/aws-sdk-bedrockruntime/types.rb +239 -9
- data/lib/aws-sdk-bedrockruntime.rb +17 -1
- data/sig/client.rbs +139 -7
- data/sig/types.rbs +56 -0
- metadata +3 -3
|
@@ -17,6 +17,7 @@ module Aws::BedrockRuntime
|
|
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
18
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
|
19
19
|
AnyToolChoice = Shapes::StructureShape.new(name: 'AnyToolChoice')
|
|
20
|
+
AppliedGuardrailDetails = Shapes::StructureShape.new(name: 'AppliedGuardrailDetails')
|
|
20
21
|
ApplyGuardrailRequest = Shapes::StructureShape.new(name: 'ApplyGuardrailRequest')
|
|
21
22
|
ApplyGuardrailResponse = Shapes::StructureShape.new(name: 'ApplyGuardrailResponse')
|
|
22
23
|
AsyncInvokeArn = Shapes::StringShape.new(name: 'AsyncInvokeArn')
|
|
@@ -102,6 +103,7 @@ module Aws::BedrockRuntime
|
|
|
102
103
|
GetAsyncInvokeRequest = Shapes::StructureShape.new(name: 'GetAsyncInvokeRequest')
|
|
103
104
|
GetAsyncInvokeResponse = Shapes::StructureShape.new(name: 'GetAsyncInvokeResponse')
|
|
104
105
|
GuardrailAction = Shapes::StringShape.new(name: 'GuardrailAction')
|
|
106
|
+
GuardrailArn = Shapes::StringShape.new(name: 'GuardrailArn')
|
|
105
107
|
GuardrailAssessment = Shapes::StructureShape.new(name: 'GuardrailAssessment')
|
|
106
108
|
GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList')
|
|
107
109
|
GuardrailAssessmentListMap = Shapes::MapShape.new(name: 'GuardrailAssessmentListMap')
|
|
@@ -170,6 +172,7 @@ module Aws::BedrockRuntime
|
|
|
170
172
|
GuardrailCoverage = Shapes::StructureShape.new(name: 'GuardrailCoverage')
|
|
171
173
|
GuardrailCustomWord = Shapes::StructureShape.new(name: 'GuardrailCustomWord')
|
|
172
174
|
GuardrailCustomWordList = Shapes::ListShape.new(name: 'GuardrailCustomWordList')
|
|
175
|
+
GuardrailId = Shapes::StringShape.new(name: 'GuardrailId')
|
|
173
176
|
GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier')
|
|
174
177
|
GuardrailImageBlock = Shapes::StructureShape.new(name: 'GuardrailImageBlock')
|
|
175
178
|
GuardrailImageCoverage = Shapes::StructureShape.new(name: 'GuardrailImageCoverage')
|
|
@@ -180,10 +183,13 @@ module Aws::BedrockRuntime
|
|
|
180
183
|
GuardrailManagedWord = Shapes::StructureShape.new(name: 'GuardrailManagedWord')
|
|
181
184
|
GuardrailManagedWordList = Shapes::ListShape.new(name: 'GuardrailManagedWordList')
|
|
182
185
|
GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType')
|
|
186
|
+
GuardrailOrigin = Shapes::StringShape.new(name: 'GuardrailOrigin')
|
|
187
|
+
GuardrailOriginList = Shapes::ListShape.new(name: 'GuardrailOriginList')
|
|
183
188
|
GuardrailOutputContent = Shapes::StructureShape.new(name: 'GuardrailOutputContent')
|
|
184
189
|
GuardrailOutputContentList = Shapes::ListShape.new(name: 'GuardrailOutputContentList')
|
|
185
190
|
GuardrailOutputScope = Shapes::StringShape.new(name: 'GuardrailOutputScope')
|
|
186
191
|
GuardrailOutputText = Shapes::StringShape.new(name: 'GuardrailOutputText')
|
|
192
|
+
GuardrailOwnership = Shapes::StringShape.new(name: 'GuardrailOwnership')
|
|
187
193
|
GuardrailPiiEntityFilter = Shapes::StructureShape.new(name: 'GuardrailPiiEntityFilter')
|
|
188
194
|
GuardrailPiiEntityFilterList = Shapes::ListShape.new(name: 'GuardrailPiiEntityFilterList')
|
|
189
195
|
GuardrailPiiEntityType = Shapes::StringShape.new(name: 'GuardrailPiiEntityType')
|
|
@@ -273,7 +279,16 @@ module Aws::BedrockRuntime
|
|
|
273
279
|
ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
|
|
274
280
|
S3Location = Shapes::StructureShape.new(name: 'S3Location')
|
|
275
281
|
S3Uri = Shapes::StringShape.new(name: 'S3Uri')
|
|
282
|
+
SearchResultBlock = Shapes::StructureShape.new(name: 'SearchResultBlock')
|
|
283
|
+
SearchResultContentBlock = Shapes::StructureShape.new(name: 'SearchResultContentBlock')
|
|
284
|
+
SearchResultContentBlocks = Shapes::ListShape.new(name: 'SearchResultContentBlocks')
|
|
285
|
+
SearchResultLocation = Shapes::StructureShape.new(name: 'SearchResultLocation')
|
|
286
|
+
SearchResultLocationEndInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationEndInteger')
|
|
287
|
+
SearchResultLocationSearchResultIndexInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationSearchResultIndexInteger')
|
|
288
|
+
SearchResultLocationStartInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationStartInteger')
|
|
276
289
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
290
|
+
ServiceTier = Shapes::StructureShape.new(name: 'ServiceTier')
|
|
291
|
+
ServiceTierType = Shapes::StringShape.new(name: 'ServiceTierType')
|
|
277
292
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
|
278
293
|
SortAsyncInvocationBy = Shapes::StringShape.new(name: 'SortAsyncInvocationBy')
|
|
279
294
|
SortOrder = Shapes::StringShape.new(name: 'SortOrder')
|
|
@@ -332,6 +347,13 @@ module Aws::BedrockRuntime
|
|
|
332
347
|
|
|
333
348
|
AnyToolChoice.struct_class = Types::AnyToolChoice
|
|
334
349
|
|
|
350
|
+
AppliedGuardrailDetails.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, location_name: "guardrailId"))
|
|
351
|
+
AppliedGuardrailDetails.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
352
|
+
AppliedGuardrailDetails.add_member(:guardrail_arn, Shapes::ShapeRef.new(shape: GuardrailArn, location_name: "guardrailArn"))
|
|
353
|
+
AppliedGuardrailDetails.add_member(:guardrail_origin, Shapes::ShapeRef.new(shape: GuardrailOriginList, location_name: "guardrailOrigin"))
|
|
354
|
+
AppliedGuardrailDetails.add_member(:guardrail_ownership, Shapes::ShapeRef.new(shape: GuardrailOwnership, location_name: "guardrailOwnership"))
|
|
355
|
+
AppliedGuardrailDetails.struct_class = Types::AppliedGuardrailDetails
|
|
356
|
+
|
|
335
357
|
ApplyGuardrailRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier"))
|
|
336
358
|
ApplyGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location: "uri", location_name: "guardrailVersion"))
|
|
337
359
|
ApplyGuardrailRequest.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailContentSource, required: true, location_name: "source"))
|
|
@@ -383,6 +405,7 @@ module Aws::BedrockRuntime
|
|
|
383
405
|
CachePointBlock.struct_class = Types::CachePointBlock
|
|
384
406
|
|
|
385
407
|
Citation.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
408
|
+
Citation.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "source"))
|
|
386
409
|
Citation.add_member(:source_content, Shapes::ShapeRef.new(shape: CitationSourceContentList, location_name: "sourceContent"))
|
|
387
410
|
Citation.add_member(:location, Shapes::ShapeRef.new(shape: CitationLocation, location_name: "location"))
|
|
388
411
|
Citation.struct_class = Types::Citation
|
|
@@ -399,11 +422,13 @@ module Aws::BedrockRuntime
|
|
|
399
422
|
CitationLocation.add_member(:document_char, Shapes::ShapeRef.new(shape: DocumentCharLocation, location_name: "documentChar"))
|
|
400
423
|
CitationLocation.add_member(:document_page, Shapes::ShapeRef.new(shape: DocumentPageLocation, location_name: "documentPage"))
|
|
401
424
|
CitationLocation.add_member(:document_chunk, Shapes::ShapeRef.new(shape: DocumentChunkLocation, location_name: "documentChunk"))
|
|
425
|
+
CitationLocation.add_member(:search_result_location, Shapes::ShapeRef.new(shape: SearchResultLocation, location_name: "searchResultLocation"))
|
|
402
426
|
CitationLocation.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
403
427
|
CitationLocation.add_member_subclass(:web, Types::CitationLocation::Web)
|
|
404
428
|
CitationLocation.add_member_subclass(:document_char, Types::CitationLocation::DocumentChar)
|
|
405
429
|
CitationLocation.add_member_subclass(:document_page, Types::CitationLocation::DocumentPage)
|
|
406
430
|
CitationLocation.add_member_subclass(:document_chunk, Types::CitationLocation::DocumentChunk)
|
|
431
|
+
CitationLocation.add_member_subclass(:search_result_location, Types::CitationLocation::SearchResultLocation)
|
|
407
432
|
CitationLocation.add_member_subclass(:unknown, Types::CitationLocation::Unknown)
|
|
408
433
|
CitationLocation.struct_class = Types::CitationLocation
|
|
409
434
|
|
|
@@ -430,6 +455,7 @@ module Aws::BedrockRuntime
|
|
|
430
455
|
CitationsContentBlock.struct_class = Types::CitationsContentBlock
|
|
431
456
|
|
|
432
457
|
CitationsDelta.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
458
|
+
CitationsDelta.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "source"))
|
|
433
459
|
CitationsDelta.add_member(:source_content, Shapes::ShapeRef.new(shape: CitationSourceContentListDelta, location_name: "sourceContent"))
|
|
434
460
|
CitationsDelta.add_member(:location, Shapes::ShapeRef.new(shape: CitationLocation, location_name: "location"))
|
|
435
461
|
CitationsDelta.struct_class = Types::CitationsDelta
|
|
@@ -447,6 +473,7 @@ module Aws::BedrockRuntime
|
|
|
447
473
|
ContentBlock.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
|
|
448
474
|
ContentBlock.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
|
|
449
475
|
ContentBlock.add_member(:citations_content, Shapes::ShapeRef.new(shape: CitationsContentBlock, location_name: "citationsContent"))
|
|
476
|
+
ContentBlock.add_member(:search_result, Shapes::ShapeRef.new(shape: SearchResultBlock, location_name: "searchResult"))
|
|
450
477
|
ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
451
478
|
ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
|
|
452
479
|
ContentBlock.add_member_subclass(:image, Types::ContentBlock::Image)
|
|
@@ -458,6 +485,7 @@ module Aws::BedrockRuntime
|
|
|
458
485
|
ContentBlock.add_member_subclass(:cache_point, Types::ContentBlock::CachePoint)
|
|
459
486
|
ContentBlock.add_member_subclass(:reasoning_content, Types::ContentBlock::ReasoningContent)
|
|
460
487
|
ContentBlock.add_member_subclass(:citations_content, Types::ContentBlock::CitationsContent)
|
|
488
|
+
ContentBlock.add_member_subclass(:search_result, Types::ContentBlock::SearchResult)
|
|
461
489
|
ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown)
|
|
462
490
|
ContentBlock.struct_class = Types::ContentBlock
|
|
463
491
|
|
|
@@ -516,6 +544,7 @@ module Aws::BedrockRuntime
|
|
|
516
544
|
ConverseRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
|
|
517
545
|
ConverseRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
|
|
518
546
|
ConverseRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
|
547
|
+
ConverseRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
|
|
519
548
|
ConverseRequest.struct_class = Types::ConverseRequest
|
|
520
549
|
|
|
521
550
|
ConverseRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsListMemberString)
|
|
@@ -527,12 +556,14 @@ module Aws::BedrockRuntime
|
|
|
527
556
|
ConverseResponse.add_member(:additional_model_response_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelResponseFields"))
|
|
528
557
|
ConverseResponse.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseTrace, location_name: "trace"))
|
|
529
558
|
ConverseResponse.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
|
559
|
+
ConverseResponse.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
|
|
530
560
|
ConverseResponse.struct_class = Types::ConverseResponse
|
|
531
561
|
|
|
532
562
|
ConverseStreamMetadataEvent.add_member(:usage, Shapes::ShapeRef.new(shape: TokenUsage, required: true, location_name: "usage"))
|
|
533
563
|
ConverseStreamMetadataEvent.add_member(:metrics, Shapes::ShapeRef.new(shape: ConverseStreamMetrics, required: true, location_name: "metrics"))
|
|
534
564
|
ConverseStreamMetadataEvent.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseStreamTrace, location_name: "trace"))
|
|
535
565
|
ConverseStreamMetadataEvent.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
|
566
|
+
ConverseStreamMetadataEvent.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
|
|
536
567
|
ConverseStreamMetadataEvent.struct_class = Types::ConverseStreamMetadataEvent
|
|
537
568
|
|
|
538
569
|
ConverseStreamMetrics.add_member(:latency_ms, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "latencyMs"))
|
|
@@ -562,6 +593,7 @@ module Aws::BedrockRuntime
|
|
|
562
593
|
ConverseStreamRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths"))
|
|
563
594
|
ConverseStreamRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadata, location_name: "requestMetadata"))
|
|
564
595
|
ConverseStreamRequest.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
|
596
|
+
ConverseStreamRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTier, location_name: "serviceTier"))
|
|
565
597
|
ConverseStreamRequest.struct_class = Types::ConverseStreamRequest
|
|
566
598
|
|
|
567
599
|
ConverseStreamRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString)
|
|
@@ -577,6 +609,8 @@ module Aws::BedrockRuntime
|
|
|
577
609
|
|
|
578
610
|
ConverseTokensRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
|
|
579
611
|
ConverseTokensRequest.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system"))
|
|
612
|
+
ConverseTokensRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig"))
|
|
613
|
+
ConverseTokensRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
|
|
580
614
|
ConverseTokensRequest.struct_class = Types::ConverseTokensRequest
|
|
581
615
|
|
|
582
616
|
ConverseTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail"))
|
|
@@ -661,6 +695,7 @@ module Aws::BedrockRuntime
|
|
|
661
695
|
GuardrailAssessment.add_member(:contextual_grounding_policy, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAssessment, location_name: "contextualGroundingPolicy"))
|
|
662
696
|
GuardrailAssessment.add_member(:automated_reasoning_policy, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyAssessment, location_name: "automatedReasoningPolicy"))
|
|
663
697
|
GuardrailAssessment.add_member(:invocation_metrics, Shapes::ShapeRef.new(shape: GuardrailInvocationMetrics, location_name: "invocationMetrics"))
|
|
698
|
+
GuardrailAssessment.add_member(:applied_guardrail_details, Shapes::ShapeRef.new(shape: AppliedGuardrailDetails, location_name: "appliedGuardrailDetails"))
|
|
664
699
|
GuardrailAssessment.struct_class = Types::GuardrailAssessment
|
|
665
700
|
|
|
666
701
|
GuardrailAssessmentList.member = Shapes::ShapeRef.new(shape: GuardrailAssessment)
|
|
@@ -765,8 +800,8 @@ module Aws::BedrockRuntime
|
|
|
765
800
|
GuardrailAutomatedReasoningValidFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
|
|
766
801
|
GuardrailAutomatedReasoningValidFinding.struct_class = Types::GuardrailAutomatedReasoningValidFinding
|
|
767
802
|
|
|
768
|
-
GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier,
|
|
769
|
-
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion,
|
|
803
|
+
GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
|
|
804
|
+
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
770
805
|
GuardrailConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
|
|
771
806
|
GuardrailConfiguration.struct_class = Types::GuardrailConfiguration
|
|
772
807
|
|
|
@@ -868,6 +903,8 @@ module Aws::BedrockRuntime
|
|
|
868
903
|
|
|
869
904
|
GuardrailManagedWordList.member = Shapes::ShapeRef.new(shape: GuardrailManagedWord)
|
|
870
905
|
|
|
906
|
+
GuardrailOriginList.member = Shapes::ShapeRef.new(shape: GuardrailOrigin)
|
|
907
|
+
|
|
871
908
|
GuardrailOutputContent.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailOutputText, location_name: "text"))
|
|
872
909
|
GuardrailOutputContent.struct_class = Types::GuardrailOutputContent
|
|
873
910
|
|
|
@@ -894,8 +931,8 @@ module Aws::BedrockRuntime
|
|
|
894
931
|
GuardrailSensitiveInformationPolicyAssessment.add_member(:regexes, Shapes::ShapeRef.new(shape: GuardrailRegexFilterList, required: true, location_name: "regexes"))
|
|
895
932
|
GuardrailSensitiveInformationPolicyAssessment.struct_class = Types::GuardrailSensitiveInformationPolicyAssessment
|
|
896
933
|
|
|
897
|
-
GuardrailStreamConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier,
|
|
898
|
-
GuardrailStreamConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion,
|
|
934
|
+
GuardrailStreamConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
|
|
935
|
+
GuardrailStreamConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
899
936
|
GuardrailStreamConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
|
|
900
937
|
GuardrailStreamConfiguration.add_member(:stream_processing_mode, Shapes::ShapeRef.new(shape: GuardrailStreamProcessingMode, location_name: "streamProcessingMode"))
|
|
901
938
|
GuardrailStreamConfiguration.struct_class = Types::GuardrailStreamConfiguration
|
|
@@ -971,6 +1008,7 @@ module Aws::BedrockRuntime
|
|
|
971
1008
|
InvokeModelRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier"))
|
|
972
1009
|
InvokeModelRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
|
|
973
1010
|
InvokeModelRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
|
|
1011
|
+
InvokeModelRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
|
|
974
1012
|
InvokeModelRequest.struct_class = Types::InvokeModelRequest
|
|
975
1013
|
InvokeModelRequest[:payload] = :body
|
|
976
1014
|
InvokeModelRequest[:payload_member] = InvokeModelRequest.member(:body)
|
|
@@ -978,6 +1016,7 @@ module Aws::BedrockRuntime
|
|
|
978
1016
|
InvokeModelResponse.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body"))
|
|
979
1017
|
InvokeModelResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "Content-Type"))
|
|
980
1018
|
InvokeModelResponse.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
|
|
1019
|
+
InvokeModelResponse.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
|
|
981
1020
|
InvokeModelResponse.struct_class = Types::InvokeModelResponse
|
|
982
1021
|
InvokeModelResponse[:payload] = :body
|
|
983
1022
|
InvokeModelResponse[:payload_member] = InvokeModelResponse.member(:body)
|
|
@@ -1016,6 +1055,7 @@ module Aws::BedrockRuntime
|
|
|
1016
1055
|
InvokeModelWithResponseStreamRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier"))
|
|
1017
1056
|
InvokeModelWithResponseStreamRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
|
|
1018
1057
|
InvokeModelWithResponseStreamRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
|
|
1058
|
+
InvokeModelWithResponseStreamRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
|
|
1019
1059
|
InvokeModelWithResponseStreamRequest.struct_class = Types::InvokeModelWithResponseStreamRequest
|
|
1020
1060
|
InvokeModelWithResponseStreamRequest[:payload] = :body
|
|
1021
1061
|
InvokeModelWithResponseStreamRequest[:payload_member] = InvokeModelWithResponseStreamRequest.member(:body)
|
|
@@ -1023,6 +1063,7 @@ module Aws::BedrockRuntime
|
|
|
1023
1063
|
InvokeModelWithResponseStreamResponse.add_member(:body, Shapes::ShapeRef.new(shape: ResponseStream, required: true, eventstream: true, location_name: "body"))
|
|
1024
1064
|
InvokeModelWithResponseStreamResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "X-Amzn-Bedrock-Content-Type"))
|
|
1025
1065
|
InvokeModelWithResponseStreamResponse.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
|
|
1066
|
+
InvokeModelWithResponseStreamResponse.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
|
|
1026
1067
|
InvokeModelWithResponseStreamResponse.struct_class = Types::InvokeModelWithResponseStreamResponse
|
|
1027
1068
|
InvokeModelWithResponseStreamResponse[:payload] = :body
|
|
1028
1069
|
InvokeModelWithResponseStreamResponse[:payload_member] = InvokeModelWithResponseStreamResponse.member(:body)
|
|
@@ -1130,9 +1171,28 @@ module Aws::BedrockRuntime
|
|
|
1130
1171
|
S3Location.add_member(:bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "bucketOwner"))
|
|
1131
1172
|
S3Location.struct_class = Types::S3Location
|
|
1132
1173
|
|
|
1174
|
+
SearchResultBlock.add_member(:source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "source"))
|
|
1175
|
+
SearchResultBlock.add_member(:title, Shapes::ShapeRef.new(shape: String, required: true, location_name: "title"))
|
|
1176
|
+
SearchResultBlock.add_member(:content, Shapes::ShapeRef.new(shape: SearchResultContentBlocks, required: true, location_name: "content"))
|
|
1177
|
+
SearchResultBlock.add_member(:citations, Shapes::ShapeRef.new(shape: CitationsConfig, location_name: "citations"))
|
|
1178
|
+
SearchResultBlock.struct_class = Types::SearchResultBlock
|
|
1179
|
+
|
|
1180
|
+
SearchResultContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
|
|
1181
|
+
SearchResultContentBlock.struct_class = Types::SearchResultContentBlock
|
|
1182
|
+
|
|
1183
|
+
SearchResultContentBlocks.member = Shapes::ShapeRef.new(shape: SearchResultContentBlock)
|
|
1184
|
+
|
|
1185
|
+
SearchResultLocation.add_member(:search_result_index, Shapes::ShapeRef.new(shape: SearchResultLocationSearchResultIndexInteger, location_name: "searchResultIndex"))
|
|
1186
|
+
SearchResultLocation.add_member(:start, Shapes::ShapeRef.new(shape: SearchResultLocationStartInteger, location_name: "start"))
|
|
1187
|
+
SearchResultLocation.add_member(:end, Shapes::ShapeRef.new(shape: SearchResultLocationEndInteger, location_name: "end"))
|
|
1188
|
+
SearchResultLocation.struct_class = Types::SearchResultLocation
|
|
1189
|
+
|
|
1133
1190
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
1134
1191
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
1135
1192
|
|
|
1193
|
+
ServiceTier.add_member(:type, Shapes::ShapeRef.new(shape: ServiceTierType, required: true, location_name: "type"))
|
|
1194
|
+
ServiceTier.struct_class = Types::ServiceTier
|
|
1195
|
+
|
|
1136
1196
|
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
1137
1197
|
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
|
1138
1198
|
|
|
@@ -1236,12 +1296,14 @@ module Aws::BedrockRuntime
|
|
|
1236
1296
|
ToolResultContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image"))
|
|
1237
1297
|
ToolResultContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document"))
|
|
1238
1298
|
ToolResultContentBlock.add_member(:video, Shapes::ShapeRef.new(shape: VideoBlock, location_name: "video"))
|
|
1299
|
+
ToolResultContentBlock.add_member(:search_result, Shapes::ShapeRef.new(shape: SearchResultBlock, location_name: "searchResult"))
|
|
1239
1300
|
ToolResultContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1240
1301
|
ToolResultContentBlock.add_member_subclass(:json, Types::ToolResultContentBlock::Json)
|
|
1241
1302
|
ToolResultContentBlock.add_member_subclass(:text, Types::ToolResultContentBlock::Text)
|
|
1242
1303
|
ToolResultContentBlock.add_member_subclass(:image, Types::ToolResultContentBlock::Image)
|
|
1243
1304
|
ToolResultContentBlock.add_member_subclass(:document, Types::ToolResultContentBlock::Document)
|
|
1244
1305
|
ToolResultContentBlock.add_member_subclass(:video, Types::ToolResultContentBlock::Video)
|
|
1306
|
+
ToolResultContentBlock.add_member_subclass(:search_result, Types::ToolResultContentBlock::SearchResult)
|
|
1245
1307
|
ToolResultContentBlock.add_member_subclass(:unknown, Types::ToolResultContentBlock::Unknown)
|
|
1246
1308
|
ToolResultContentBlock.struct_class = Types::ToolResultContentBlock
|
|
1247
1309
|
|