aws-sdk-bedrockagentcore 1.57.0 → 1.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80eb8990a20e048a41ab853f5401b2b5f32d60f73c14c83676cdb308b21ca3f6
4
- data.tar.gz: 36ff647c6656782b24e3f1f311d1b6a486e3e121debb20b384f418c08b5a390d
3
+ metadata.gz: c770c1a6757e9de951038ce670bd7ca7f86cf2c9cb16a2ed34b91710bd054282
4
+ data.tar.gz: b9ec2993bef4577870376c5b65d1a41ac250751e6e5cd2d3c1eb1a5253d02f50
5
5
  SHA512:
6
- metadata.gz: 71bc461035b22c6181e84c8c721a7727f7c04aeec8c260ed445aeb93572a51cc0e60ae08ca3e0aa0f89cb901df3500f5934b5cf7a372fcfb798598a31fb6d1a5
7
- data.tar.gz: 6c307e07d2804570e8ed7c969466d2572d8d51b388d1c3b8272c6d9f73c9dfbaca408a2bf68c9fdbfe6d21fb306b48f16ec65cb91d5883a4da1532d7cef17ed8
6
+ metadata.gz: b0482fa77479a67a0dd0d6deed2849d9859b0219484e444e6e7d4c70398280dab9f5571aacdaeb88db800e8345b132ca62225537f1f80394a18e033755e33736
7
+ data.tar.gz: 58f7771653d421b99d9eac53ce08417ef19d052b14fcb2dc3511b845d80e7bc8ea05bcb0c146641abe2a0e78f21fa3d8051d1f89231122ea819aaac42d3cc8d7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.59.0 (2026-10-19)
5
+ ------------------
6
+
7
+ * Feature - Adds the Builtin.FailureAnalysis evaluator for batch evaluations. GetBatchEvaluation now returns insightResults that group session failures into insights with root causes and suggested fixes.
8
+
9
+ 1.58.0 (2026-10-12)
10
+ ------------------
11
+
12
+ * Feature - AgentCore Memory now supports Long-Term Memory Time-to-Live on Batch APIs.
13
+
4
14
  1.57.0 (2026-09-21)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.57.0
1
+ 1.59.0
@@ -502,6 +502,15 @@ module Aws::BedrockAgentCore
502
502
  # **A suitable default value is auto-generated.** You should normally
503
503
  # not need to pass this option.**
504
504
  #
505
+ # @option params [Types::RecordExpirySpecification] :record_expiry_specification
506
+ # The record expiry (long-term memory time-to-live) applied to every
507
+ # record created by this request. Set `recordExpiryDurationDays` to the
508
+ # number of days after which the records expire. Only the expiry
509
+ # provided here is applied; the records' strategy association has no
510
+ # effect on their expiry. If you do not provide this value, the records
511
+ # do not expire. The `REMOVE` action does not apply when creating
512
+ # records.
513
+ #
505
514
  # @return [Types::BatchCreateMemoryRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
506
515
  #
507
516
  # * {Types::BatchCreateMemoryRecordsOutput#successful_records #successful_records} => Array<Types::MemoryRecordOutput>
@@ -531,6 +540,10 @@ module Aws::BedrockAgentCore
531
540
  # },
532
541
  # ],
533
542
  # client_token: "String",
543
+ # record_expiry_specification: {
544
+ # record_expiry_duration_days: 1,
545
+ # action: "REMOVE", # accepts REMOVE
546
+ # },
534
547
  # })
535
548
  #
536
549
  # @example Response structure
@@ -618,6 +631,28 @@ module Aws::BedrockAgentCore
618
631
  # A list of memory record update inputs to be processed in the batch
619
632
  # operation.
620
633
  #
634
+ # @option params [Types::RecordExpirySpecification] :record_expiry_specification
635
+ # The record expiry (long-term memory time-to-live) applied to every
636
+ # record updated by this request. Set `recordExpiryDurationDays` to
637
+ # configure or overwrite the number of days after which the records
638
+ # expire, or set `action` to `REMOVE` to clear a previously configured
639
+ # expiry so that the records no longer expire.
640
+ #
641
+ # When you do not provide this value, the service determines each
642
+ # record's expiry from its current state:
643
+ #
644
+ # * If the record already has an expiry configured, the service resets
645
+ # and reapplies the expiry based on the last applied
646
+ # `recordExpiryDurationDays`.
647
+ #
648
+ # * If the record does not have an expiry configured, no expiry is
649
+ # applied and the record remains non-expiring. This is the outcome
650
+ # regardless of whether the record's strategy configures an expiry.
651
+ #
652
+ # Providing an explicit `recordExpiryDurationDays` always takes
653
+ # precedence: it overwrites an existing expiry, or sets one on a record
654
+ # that previously had none.
655
+ #
621
656
  # @return [Types::BatchUpdateMemoryRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
622
657
  #
623
658
  # * {Types::BatchUpdateMemoryRecordsOutput#successful_records #successful_records} => Array<Types::MemoryRecordOutput>
@@ -647,6 +682,10 @@ module Aws::BedrockAgentCore
647
682
  # },
648
683
  # },
649
684
  # ],
685
+ # record_expiry_specification: {
686
+ # record_expiry_duration_days: 1,
687
+ # action: "REMOVE", # accepts REMOVE
688
+ # },
650
689
  # })
651
690
  #
652
691
  # @example Response structure
@@ -1718,6 +1757,7 @@ module Aws::BedrockAgentCore
1718
1757
  # * {Types::GetBatchEvaluationResponse#data_source_config #data_source_config} => Types::DataSourceConfig
1719
1758
  # * {Types::GetBatchEvaluationResponse#output_config #output_config} => Types::OutputConfig
1720
1759
  # * {Types::GetBatchEvaluationResponse#evaluation_results #evaluation_results} => Types::EvaluationJobResults
1760
+ # * {Types::GetBatchEvaluationResponse#insight_results #insight_results} => Array<Types::InsightResult>
1721
1761
  # * {Types::GetBatchEvaluationResponse#failure_analysis_result #failure_analysis_result} => Types::FailureAnalysisResultContent
1722
1762
  # * {Types::GetBatchEvaluationResponse#user_intent_result #user_intent_result} => Types::UserIntentClusteringResultContent
1723
1763
  # * {Types::GetBatchEvaluationResponse#execution_summary_result #execution_summary_result} => Types::ExecutionSummaryClusteringResultContent
@@ -1774,6 +1814,35 @@ module Aws::BedrockAgentCore
1774
1814
  # resp.evaluation_results.evaluator_summaries[0].statistics.average_score #=> Float
1775
1815
  # resp.evaluation_results.evaluator_summaries[0].total_evaluated #=> Integer
1776
1816
  # resp.evaluation_results.evaluator_summaries[0].total_failed #=> Integer
1817
+ # resp.insight_results #=> Array
1818
+ # resp.insight_results[0].type #=> String, one of "FAILURE"
1819
+ # resp.insight_results[0].name #=> String
1820
+ # resp.insight_results[0].description #=> String
1821
+ # resp.insight_results[0].created_at #=> Time
1822
+ # resp.insight_results[0].affected_session_count #=> Integer
1823
+ # resp.insight_results[0].sample_sessions #=> Array
1824
+ # resp.insight_results[0].sample_sessions[0].session_id #=> String
1825
+ # resp.insight_results[0].sample_sessions[0].last_seen_at #=> Time
1826
+ # resp.insight_results[0].sample_sessions[0].findings #=> Array
1827
+ # resp.insight_results[0].sample_sessions[0].findings[0].target_id #=> String
1828
+ # resp.insight_results[0].sample_sessions[0].findings[0].target_type #=> String, one of "SPAN_ID", "TRACE_ID", "SPAN_NAME"
1829
+ # resp.insight_results[0].sample_sessions[0].findings[0].description #=> String
1830
+ # resp.insight_results[0].sample_sessions[0].findings[0].category #=> String
1831
+ # resp.insight_results[0].sample_sessions[0].findings[0].confidence #=> Float
1832
+ # resp.insight_results[0].root_causes #=> Array
1833
+ # resp.insight_results[0].root_causes[0].name #=> String
1834
+ # resp.insight_results[0].root_causes[0].explanation #=> String
1835
+ # resp.insight_results[0].root_causes[0].affected_session_count #=> Integer
1836
+ # resp.insight_results[0].root_causes[0].suggested_fix #=> String
1837
+ # resp.insight_results[0].root_causes[0].sample_sessions #=> Array
1838
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].session_id #=> String
1839
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].last_seen_at #=> Time
1840
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].findings #=> Array
1841
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].findings[0].target_id #=> String
1842
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].findings[0].target_type #=> String, one of "SPAN_ID", "TRACE_ID", "SPAN_NAME"
1843
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].findings[0].description #=> String
1844
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].findings[0].category #=> String
1845
+ # resp.insight_results[0].root_causes[0].sample_sessions[0].findings[0].confidence #=> Float
1777
1846
  # resp.failure_analysis_result.failures #=> Array
1778
1847
  # resp.failure_analysis_result.failures[0].cluster_id #=> Integer
1779
1848
  # resp.failure_analysis_result.failures[0].name #=> String
@@ -2107,12 +2176,14 @@ module Aws::BedrockAgentCore
2107
2176
  # resp.memory_record.namespaces #=> Array
2108
2177
  # resp.memory_record.namespaces[0] #=> String
2109
2178
  # resp.memory_record.created_at #=> Time
2179
+ # resp.memory_record.timestamp #=> Time
2110
2180
  # resp.memory_record.metadata #=> Hash
2111
2181
  # resp.memory_record.metadata["MetadataKey"].string_value #=> String
2112
2182
  # resp.memory_record.metadata["MetadataKey"].string_list_value #=> Array
2113
2183
  # resp.memory_record.metadata["MetadataKey"].string_list_value[0] #=> String
2114
2184
  # resp.memory_record.metadata["MetadataKey"].number_value #=> Float
2115
2185
  # resp.memory_record.metadata["MetadataKey"].date_time_value #=> Time
2186
+ # resp.memory_record.expires_at #=> Time
2116
2187
  #
2117
2188
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetMemoryRecord AWS API Documentation
2118
2189
  #
@@ -4705,9 +4776,9 @@ module Aws::BedrockAgentCore
4705
4776
  # memory records.
4706
4777
  #
4707
4778
  # @option params [String] :namespace
4708
- # The namespace prefix to filter memory records by. Returns all memory
4709
- # records in namespaces that start with the provided prefix. Either
4710
- # `namespace` or `namespacePath` is required.
4779
+ # The exact namespace to filter memory records by. Returns all memory
4780
+ # records that matches the provided namespace. Either `namespace` or
4781
+ # `namespacePath` is required.
4711
4782
  #
4712
4783
  # @option params [String] :namespace_path
4713
4784
  # Use namespacePath for hierarchical retrievals. Return all memory
@@ -4775,6 +4846,7 @@ module Aws::BedrockAgentCore
4775
4846
  # resp.memory_record_summaries[0].namespaces[0] #=> String
4776
4847
  # resp.memory_record_summaries[0].created_at #=> Time
4777
4848
  # resp.memory_record_summaries[0].score #=> Float
4849
+ # resp.memory_record_summaries[0].timestamp #=> Time
4778
4850
  # resp.memory_record_summaries[0].metadata #=> Hash
4779
4851
  # resp.memory_record_summaries[0].metadata["MetadataKey"].string_value #=> String
4780
4852
  # resp.memory_record_summaries[0].metadata["MetadataKey"].string_list_value #=> Array
@@ -5131,9 +5203,9 @@ module Aws::BedrockAgentCore
5131
5203
  # memory records.
5132
5204
  #
5133
5205
  # @option params [String] :namespace
5134
- # The namespace prefix to filter memory records by. Searches for memory
5135
- # records in namespaces that start with the provided prefix. Either
5136
- # `namespace` or `namespacePath` is required.
5206
+ # The exact namespace to filter memory records by. Searches for memory
5207
+ # records that matches the provided namespace value. Either `namespace`
5208
+ # or `namespacePath` is required.
5137
5209
  #
5138
5210
  # @option params [String] :namespace_path
5139
5211
  # Use namespacePath for hierarchical retrievals. Return all memory
@@ -5202,6 +5274,7 @@ module Aws::BedrockAgentCore
5202
5274
  # resp.memory_record_summaries[0].namespaces[0] #=> String
5203
5275
  # resp.memory_record_summaries[0].created_at #=> Time
5204
5276
  # resp.memory_record_summaries[0].score #=> Float
5277
+ # resp.memory_record_summaries[0].timestamp #=> Time
5205
5278
  # resp.memory_record_summaries[0].metadata #=> Hash
5206
5279
  # resp.memory_record_summaries[0].metadata["MetadataKey"].string_value #=> String
5207
5280
  # resp.memory_record_summaries[0].metadata["MetadataKey"].string_list_value #=> Array
@@ -6583,7 +6656,7 @@ module Aws::BedrockAgentCore
6583
6656
  tracer: tracer
6584
6657
  )
6585
6658
  context[:gem_name] = 'aws-sdk-bedrockagentcore'
6586
- context[:gem_version] = '1.57.0'
6659
+ context[:gem_version] = '1.59.0'
6587
6660
  Seahorse::Client::Request.new(handlers, context)
6588
6661
  end
6589
6662
 
@@ -252,6 +252,9 @@ module Aws::BedrockAgentCore
252
252
  FilterInput = Shapes::StructureShape.new(name: 'FilterInput')
253
253
  FilterStringValue = Shapes::StringShape.new(name: 'FilterStringValue')
254
254
  FilterValue = Shapes::UnionShape.new(name: 'FilterValue')
255
+ FindingDescription = Shapes::StringShape.new(name: 'FindingDescription')
256
+ FindingTargetId = Shapes::StringShape.new(name: 'FindingTargetId')
257
+ FindingTargetType = Shapes::StringShape.new(name: 'FindingTargetType')
255
258
  GatewayArn = Shapes::StringShape.new(name: 'GatewayArn')
256
259
  GatewayFilter = Shapes::StructureShape.new(name: 'GatewayFilter')
257
260
  GetABTestRequest = Shapes::StructureShape.new(name: 'GetABTestRequest')
@@ -394,8 +397,16 @@ module Aws::BedrockAgentCore
394
397
  InputContentBlock = Shapes::StructureShape.new(name: 'InputContentBlock')
395
398
  InputContentBlockList = Shapes::ListShape.new(name: 'InputContentBlockList')
396
399
  Insight = Shapes::StructureShape.new(name: 'Insight')
400
+ InsightDescription = Shapes::StringShape.new(name: 'InsightDescription')
397
401
  InsightId = Shapes::StringShape.new(name: 'InsightId')
398
402
  InsightList = Shapes::ListShape.new(name: 'InsightList')
403
+ InsightName = Shapes::StringShape.new(name: 'InsightName')
404
+ InsightResult = Shapes::StructureShape.new(name: 'InsightResult')
405
+ InsightResultList = Shapes::ListShape.new(name: 'InsightResultList')
406
+ InsightRootCause = Shapes::StructureShape.new(name: 'InsightRootCause')
407
+ InsightRootCauseList = Shapes::ListShape.new(name: 'InsightRootCauseList')
408
+ InsightSampleSessionList = Shapes::ListShape.new(name: 'InsightSampleSessionList')
409
+ InsightType = Shapes::StringShape.new(name: 'InsightType')
399
410
  InsightsFailureCategory = Shapes::StringShape.new(name: 'InsightsFailureCategory')
400
411
  InsightsFailureSignal = Shapes::StructureShape.new(name: 'InsightsFailureSignal')
401
412
  InsightsFailureSignalList = Shapes::ListShape.new(name: 'InsightsFailureSignalList')
@@ -633,6 +644,9 @@ module Aws::BedrockAgentCore
633
644
  RecommendationSummaryList = Shapes::ListShape.new(name: 'RecommendationSummaryList')
634
645
  RecommendationToolName = Shapes::StringShape.new(name: 'RecommendationToolName')
635
646
  RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
647
+ RecordExpiryAction = Shapes::StringShape.new(name: 'RecordExpiryAction')
648
+ RecordExpiryDurationDays = Shapes::IntegerShape.new(name: 'RecordExpiryDurationDays')
649
+ RecordExpirySpecification = Shapes::UnionShape.new(name: 'RecordExpirySpecification')
636
650
  RegistryArn = Shapes::StringShape.new(name: 'RegistryArn')
637
651
  RegistryIdentifier = Shapes::StringShape.new(name: 'RegistryIdentifier')
638
652
  RegistryRecordArn = Shapes::StringShape.new(name: 'RegistryRecordArn')
@@ -662,6 +676,8 @@ module Aws::BedrockAgentCore
662
676
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
663
677
  RootCauseCluster = Shapes::StructureShape.new(name: 'RootCauseCluster')
664
678
  RootCauseClusterList = Shapes::ListShape.new(name: 'RootCauseClusterList')
679
+ RootCauseExplanation = Shapes::StringShape.new(name: 'RootCauseExplanation')
680
+ RootCauseName = Shapes::StringShape.new(name: 'RootCauseName')
665
681
  RuntimeClientError = Shapes::StructureShape.new(name: 'RuntimeClientError')
666
682
  S3FilesAccessPointArn = Shapes::StringShape.new(name: 'S3FilesAccessPointArn')
667
683
  S3FilesConfiguration = Shapes::StructureShape.new(name: 'S3FilesConfiguration')
@@ -670,6 +686,7 @@ module Aws::BedrockAgentCore
670
686
  S3LocationBucketString = Shapes::StringShape.new(name: 'S3LocationBucketString')
671
687
  S3LocationPrefixString = Shapes::StringShape.new(name: 'S3LocationPrefixString')
672
688
  S3LocationVersionIdString = Shapes::StringShape.new(name: 'S3LocationVersionIdString')
689
+ SampleSession = Shapes::StructureShape.new(name: 'SampleSession')
673
690
  SaveBrowserSessionProfileRequest = Shapes::StructureShape.new(name: 'SaveBrowserSessionProfileRequest')
674
691
  SaveBrowserSessionProfileRequestTraceIdString = Shapes::StringShape.new(name: 'SaveBrowserSessionProfileRequestTraceIdString')
675
692
  SaveBrowserSessionProfileRequestTraceParentString = Shapes::StringShape.new(name: 'SaveBrowserSessionProfileRequestTraceParentString')
@@ -699,6 +716,10 @@ module Aws::BedrockAgentCore
699
716
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
700
717
  SessionFilter = Shapes::StructureShape.new(name: 'SessionFilter')
701
718
  SessionFilterConfig = Shapes::StructureShape.new(name: 'SessionFilterConfig')
719
+ SessionFinding = Shapes::StructureShape.new(name: 'SessionFinding')
720
+ SessionFindingCategoryString = Shapes::StringShape.new(name: 'SessionFindingCategoryString')
721
+ SessionFindingConfidenceDouble = Shapes::FloatShape.new(name: 'SessionFindingConfidenceDouble')
722
+ SessionFindingList = Shapes::ListShape.new(name: 'SessionFindingList')
702
723
  SessionId = Shapes::StringShape.new(name: 'SessionId')
703
724
  SessionLimits = Shapes::StructureShape.new(name: 'SessionLimits')
704
725
  SessionMetadataList = Shapes::ListShape.new(name: 'SessionMetadataList')
@@ -764,6 +785,7 @@ module Aws::BedrockAgentCore
764
785
  SubscriptionRequiredException = Shapes::StructureShape.new(name: 'SubscriptionRequiredException')
765
786
  SubscriptionRequiredExceptionProductNameString = Shapes::StringShape.new(name: 'SubscriptionRequiredExceptionProductNameString')
766
787
  SubscriptionRequiredExceptionSubscriptionUrlString = Shapes::StringShape.new(name: 'SubscriptionRequiredExceptionSubscriptionUrlString')
788
+ SuggestedFix = Shapes::StringShape.new(name: 'SuggestedFix')
767
789
  SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
768
790
  SystemPromptConfig = Shapes::UnionShape.new(name: 'SystemPromptConfig')
769
791
  SystemPromptConfigurationBundle = Shapes::StructureShape.new(name: 'SystemPromptConfigurationBundle')
@@ -929,6 +951,7 @@ module Aws::BedrockAgentCore
929
951
  BatchCreateMemoryRecordsInput.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, required: true, location: "uri", location_name: "memoryId"))
930
952
  BatchCreateMemoryRecordsInput.add_member(:records, Shapes::ShapeRef.new(shape: MemoryRecordsCreateInputList, required: true, location_name: "records"))
931
953
  BatchCreateMemoryRecordsInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
954
+ BatchCreateMemoryRecordsInput.add_member(:record_expiry_specification, Shapes::ShapeRef.new(shape: RecordExpirySpecification, location_name: "recordExpirySpecification"))
932
955
  BatchCreateMemoryRecordsInput.struct_class = Types::BatchCreateMemoryRecordsInput
933
956
 
934
957
  BatchCreateMemoryRecordsOutput.add_member(:successful_records, Shapes::ShapeRef.new(shape: MemoryRecordsOutputList, required: true, location_name: "successfulRecords"))
@@ -964,6 +987,7 @@ module Aws::BedrockAgentCore
964
987
 
965
988
  BatchUpdateMemoryRecordsInput.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, required: true, location: "uri", location_name: "memoryId"))
966
989
  BatchUpdateMemoryRecordsInput.add_member(:records, Shapes::ShapeRef.new(shape: MemoryRecordsUpdateInputList, required: true, location_name: "records"))
990
+ BatchUpdateMemoryRecordsInput.add_member(:record_expiry_specification, Shapes::ShapeRef.new(shape: RecordExpirySpecification, location_name: "recordExpirySpecification"))
967
991
  BatchUpdateMemoryRecordsInput.struct_class = Types::BatchUpdateMemoryRecordsInput
968
992
 
969
993
  BatchUpdateMemoryRecordsOutput.add_member(:successful_records, Shapes::ShapeRef.new(shape: MemoryRecordsOutputList, required: true, location_name: "successfulRecords"))
@@ -1644,6 +1668,7 @@ module Aws::BedrockAgentCore
1644
1668
  GetBatchEvaluationResponse.add_member(:data_source_config, Shapes::ShapeRef.new(shape: DataSourceConfig, location_name: "dataSourceConfig"))
1645
1669
  GetBatchEvaluationResponse.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "outputConfig"))
1646
1670
  GetBatchEvaluationResponse.add_member(:evaluation_results, Shapes::ShapeRef.new(shape: EvaluationJobResults, location_name: "evaluationResults"))
1671
+ GetBatchEvaluationResponse.add_member(:insight_results, Shapes::ShapeRef.new(shape: InsightResultList, location_name: "insightResults"))
1647
1672
  GetBatchEvaluationResponse.add_member(:failure_analysis_result, Shapes::ShapeRef.new(shape: FailureAnalysisResultContent, location_name: "failureAnalysisResult"))
1648
1673
  GetBatchEvaluationResponse.add_member(:user_intent_result, Shapes::ShapeRef.new(shape: UserIntentClusteringResultContent, location_name: "userIntentResult"))
1649
1674
  GetBatchEvaluationResponse.add_member(:execution_summary_result, Shapes::ShapeRef.new(shape: ExecutionSummaryClusteringResultContent, location_name: "executionSummaryResult"))
@@ -2163,6 +2188,28 @@ module Aws::BedrockAgentCore
2163
2188
 
2164
2189
  InsightList.member = Shapes::ShapeRef.new(shape: Insight)
2165
2190
 
2191
+ InsightResult.add_member(:type, Shapes::ShapeRef.new(shape: InsightType, required: true, location_name: "type"))
2192
+ InsightResult.add_member(:name, Shapes::ShapeRef.new(shape: InsightName, required: true, location_name: "name"))
2193
+ InsightResult.add_member(:description, Shapes::ShapeRef.new(shape: InsightDescription, required: true, location_name: "description"))
2194
+ InsightResult.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createdAt"))
2195
+ InsightResult.add_member(:affected_session_count, Shapes::ShapeRef.new(shape: Integer, location_name: "affectedSessionCount"))
2196
+ InsightResult.add_member(:sample_sessions, Shapes::ShapeRef.new(shape: InsightSampleSessionList, location_name: "sampleSessions"))
2197
+ InsightResult.add_member(:root_causes, Shapes::ShapeRef.new(shape: InsightRootCauseList, location_name: "rootCauses"))
2198
+ InsightResult.struct_class = Types::InsightResult
2199
+
2200
+ InsightResultList.member = Shapes::ShapeRef.new(shape: InsightResult)
2201
+
2202
+ InsightRootCause.add_member(:name, Shapes::ShapeRef.new(shape: RootCauseName, required: true, location_name: "name"))
2203
+ InsightRootCause.add_member(:explanation, Shapes::ShapeRef.new(shape: RootCauseExplanation, required: true, location_name: "explanation"))
2204
+ InsightRootCause.add_member(:affected_session_count, Shapes::ShapeRef.new(shape: Integer, location_name: "affectedSessionCount"))
2205
+ InsightRootCause.add_member(:suggested_fix, Shapes::ShapeRef.new(shape: SuggestedFix, location_name: "suggestedFix"))
2206
+ InsightRootCause.add_member(:sample_sessions, Shapes::ShapeRef.new(shape: InsightSampleSessionList, location_name: "sampleSessions"))
2207
+ InsightRootCause.struct_class = Types::InsightRootCause
2208
+
2209
+ InsightRootCauseList.member = Shapes::ShapeRef.new(shape: InsightRootCause)
2210
+
2211
+ InsightSampleSessionList.member = Shapes::ShapeRef.new(shape: SampleSession)
2212
+
2166
2213
  InsightsFailureSignal.add_member(:category, Shapes::ShapeRef.new(shape: InsightsFailureCategory, required: true, location_name: "category"))
2167
2214
  InsightsFailureSignal.add_member(:evidence, Shapes::ShapeRef.new(shape: String, required: true, location_name: "evidence"))
2168
2215
  InsightsFailureSignal.add_member(:confidence, Shapes::ShapeRef.new(shape: Double, required: true, location_name: "confidence"))
@@ -2531,7 +2578,9 @@ module Aws::BedrockAgentCore
2531
2578
  MemoryRecord.add_member(:memory_strategy_id, Shapes::ShapeRef.new(shape: MemoryStrategyId, required: true, location_name: "memoryStrategyId"))
2532
2579
  MemoryRecord.add_member(:namespaces, Shapes::ShapeRef.new(shape: NamespacesList, required: true, location_name: "namespaces"))
2533
2580
  MemoryRecord.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
2581
+ MemoryRecord.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
2534
2582
  MemoryRecord.add_member(:metadata, Shapes::ShapeRef.new(shape: MemoryRecordMetadataMap, location_name: "metadata"))
2583
+ MemoryRecord.add_member(:expires_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "expiresAt"))
2535
2584
  MemoryRecord.struct_class = Types::MemoryRecord
2536
2585
 
2537
2586
  MemoryRecordCreateInput.add_member(:request_identifier, Shapes::ShapeRef.new(shape: RequestIdentifier, required: true, location_name: "requestIdentifier"))
@@ -2586,6 +2635,7 @@ module Aws::BedrockAgentCore
2586
2635
  MemoryRecordSummary.add_member(:namespaces, Shapes::ShapeRef.new(shape: NamespacesList, required: true, location_name: "namespaces"))
2587
2636
  MemoryRecordSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
2588
2637
  MemoryRecordSummary.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
2638
+ MemoryRecordSummary.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
2589
2639
  MemoryRecordSummary.add_member(:metadata, Shapes::ShapeRef.new(shape: MemoryRecordMetadataMap, location_name: "metadata"))
2590
2640
  MemoryRecordSummary.struct_class = Types::MemoryRecordSummary
2591
2641
 
@@ -2891,6 +2941,14 @@ module Aws::BedrockAgentCore
2891
2941
 
2892
2942
  RecommendationSummaryList.member = Shapes::ShapeRef.new(shape: RecommendationSummary)
2893
2943
 
2944
+ RecordExpirySpecification.add_member(:record_expiry_duration_days, Shapes::ShapeRef.new(shape: RecordExpiryDurationDays, location_name: "recordExpiryDurationDays"))
2945
+ RecordExpirySpecification.add_member(:action, Shapes::ShapeRef.new(shape: RecordExpiryAction, location_name: "action"))
2946
+ RecordExpirySpecification.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
2947
+ RecordExpirySpecification.add_member_subclass(:record_expiry_duration_days, Types::RecordExpirySpecification::RecordExpiryDurationDays)
2948
+ RecordExpirySpecification.add_member_subclass(:action, Types::RecordExpirySpecification::Action)
2949
+ RecordExpirySpecification.add_member_subclass(:unknown, Types::RecordExpirySpecification::Unknown)
2950
+ RecordExpirySpecification.struct_class = Types::RecordExpirySpecification
2951
+
2894
2952
  RegistryRecordSummary.add_member(:registry_arn, Shapes::ShapeRef.new(shape: RegistryArn, required: true, location_name: "registryArn"))
2895
2953
  RegistryRecordSummary.add_member(:record_arn, Shapes::ShapeRef.new(shape: RegistryRecordArn, required: true, location_name: "recordArn"))
2896
2954
  RegistryRecordSummary.add_member(:record_id, Shapes::ShapeRef.new(shape: RegistryRecordId, required: true, location_name: "recordId"))
@@ -2973,6 +3031,11 @@ module Aws::BedrockAgentCore
2973
3031
  S3Location.add_member(:version_id, Shapes::ShapeRef.new(shape: S3LocationVersionIdString, location_name: "versionId"))
2974
3032
  S3Location.struct_class = Types::S3Location
2975
3033
 
3034
+ SampleSession.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location_name: "sessionId"))
3035
+ SampleSession.add_member(:last_seen_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "lastSeenAt"))
3036
+ SampleSession.add_member(:findings, Shapes::ShapeRef.new(shape: SessionFindingList, location_name: "findings"))
3037
+ SampleSession.struct_class = Types::SampleSession
3038
+
2976
3039
  SaveBrowserSessionProfileRequest.add_member(:trace_id, Shapes::ShapeRef.new(shape: SaveBrowserSessionProfileRequestTraceIdString, location: "header", location_name: "X-Amzn-Trace-Id"))
2977
3040
  SaveBrowserSessionProfileRequest.add_member(:trace_parent, Shapes::ShapeRef.new(shape: SaveBrowserSessionProfileRequestTraceParentString, location: "header", location_name: "traceparent"))
2978
3041
  SaveBrowserSessionProfileRequest.add_member(:profile_identifier, Shapes::ShapeRef.new(shape: BrowserProfileId, required: true, location: "uri", location_name: "profileIdentifier"))
@@ -3036,6 +3099,15 @@ module Aws::BedrockAgentCore
3036
3099
  SessionFilterConfig.add_member(:end_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "endTime"))
3037
3100
  SessionFilterConfig.struct_class = Types::SessionFilterConfig
3038
3101
 
3102
+ SessionFinding.add_member(:target_id, Shapes::ShapeRef.new(shape: FindingTargetId, location_name: "targetId"))
3103
+ SessionFinding.add_member(:target_type, Shapes::ShapeRef.new(shape: FindingTargetType, location_name: "targetType"))
3104
+ SessionFinding.add_member(:description, Shapes::ShapeRef.new(shape: FindingDescription, required: true, location_name: "description"))
3105
+ SessionFinding.add_member(:category, Shapes::ShapeRef.new(shape: SessionFindingCategoryString, location_name: "category"))
3106
+ SessionFinding.add_member(:confidence, Shapes::ShapeRef.new(shape: SessionFindingConfidenceDouble, location_name: "confidence"))
3107
+ SessionFinding.struct_class = Types::SessionFinding
3108
+
3109
+ SessionFindingList.member = Shapes::ShapeRef.new(shape: SessionFinding)
3110
+
3039
3111
  SessionLimits.add_member(:max_spend_amount, Shapes::ShapeRef.new(shape: Amount, required: true, location_name: "maxSpendAmount"))
3040
3112
  SessionLimits.struct_class = Types::SessionLimits
3041
3113
 
@@ -403,12 +403,23 @@ module Aws::BedrockAgentCore
403
403
  # not need to pass this option.
404
404
  # @return [String]
405
405
  #
406
+ # @!attribute [rw] record_expiry_specification
407
+ # The record expiry (long-term memory time-to-live) applied to every
408
+ # record created by this request. Set `recordExpiryDurationDays` to
409
+ # the number of days after which the records expire. Only the expiry
410
+ # provided here is applied; the records' strategy association has no
411
+ # effect on their expiry. If you do not provide this value, the
412
+ # records do not expire. The `REMOVE` action does not apply when
413
+ # creating records.
414
+ # @return [Types::RecordExpirySpecification]
415
+ #
406
416
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchCreateMemoryRecordsInput AWS API Documentation
407
417
  #
408
418
  class BatchCreateMemoryRecordsInput < Struct.new(
409
419
  :memory_id,
410
420
  :records,
411
- :client_token)
421
+ :client_token,
422
+ :record_expiry_specification)
412
423
  SENSITIVE = []
413
424
  include Aws::Structure
414
425
  end
@@ -563,11 +574,35 @@ module Aws::BedrockAgentCore
563
574
  # operation.
564
575
  # @return [Array<Types::MemoryRecordUpdateInput>]
565
576
  #
577
+ # @!attribute [rw] record_expiry_specification
578
+ # The record expiry (long-term memory time-to-live) applied to every
579
+ # record updated by this request. Set `recordExpiryDurationDays` to
580
+ # configure or overwrite the number of days after which the records
581
+ # expire, or set `action` to `REMOVE` to clear a previously configured
582
+ # expiry so that the records no longer expire.
583
+ #
584
+ # When you do not provide this value, the service determines each
585
+ # record's expiry from its current state:
586
+ #
587
+ # * If the record already has an expiry configured, the service resets
588
+ # and reapplies the expiry based on the last applied
589
+ # `recordExpiryDurationDays`.
590
+ #
591
+ # * If the record does not have an expiry configured, no expiry is
592
+ # applied and the record remains non-expiring. This is the outcome
593
+ # regardless of whether the record's strategy configures an expiry.
594
+ #
595
+ # Providing an explicit `recordExpiryDurationDays` always takes
596
+ # precedence: it overwrites an existing expiry, or sets one on a
597
+ # record that previously had none.
598
+ # @return [Types::RecordExpirySpecification]
599
+ #
566
600
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchUpdateMemoryRecordsInput AWS API Documentation
567
601
  #
568
602
  class BatchUpdateMemoryRecordsInput < Struct.new(
569
603
  :memory_id,
570
- :records)
604
+ :records,
605
+ :record_expiry_specification)
571
606
  SENSITIVE = []
572
607
  include Aws::Structure
573
608
  end
@@ -3561,6 +3596,14 @@ module Aws::BedrockAgentCore
3561
3596
  # counts and evaluator score summaries.
3562
3597
  # @return [Types::EvaluationJobResults]
3563
3598
  #
3599
+ # @!attribute [rw] insight_results
3600
+ # The insights generated when the batch evaluation includes the
3601
+ # `Builtin.FailureAnalysis` evaluator. Each insight groups related
3602
+ # failures found across the evaluated sessions. An empty list means
3603
+ # that no failures were found. If the analysis fails, this field is
3604
+ # omitted and `errorDetails` describes the error.
3605
+ # @return [Array<Types::InsightResult>]
3606
+ #
3564
3607
  # @!attribute [rw] failure_analysis_result
3565
3608
  # The failure analysis results from insights, containing categorized
3566
3609
  # failure clusters with root causes and recommendations.
@@ -3605,6 +3648,7 @@ module Aws::BedrockAgentCore
3605
3648
  :data_source_config,
3606
3649
  :output_config,
3607
3650
  :evaluation_results,
3651
+ :insight_results,
3608
3652
  :failure_analysis_result,
3609
3653
  :user_intent_result,
3610
3654
  :execution_summary_result,
@@ -4702,6 +4746,10 @@ module Aws::BedrockAgentCore
4702
4746
  #
4703
4747
  # @!attribute [rw] oauth
4704
4748
  # OAuth 2.0 authentication via AgentCore Identity.
4749
+ #
4750
+ # The `AUTHORIZATION_CODE` grant type is not supported for outbound
4751
+ # authentication from a harness to an AgentCore Gateway, even when
4752
+ # `defaultReturnUrl` is specified.
4705
4753
  # @return [Types::OAuthCredentialProvider]
4706
4754
  #
4707
4755
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/HarnessGatewayOutboundAuth AWS API Documentation
@@ -5149,7 +5197,8 @@ module Aws::BedrockAgentCore
5149
5197
  # @return [Types::HarnessSkillGitSource]
5150
5198
  #
5151
5199
  # @!attribute [rw] aws_skills
5152
- # AWS Skills baked into the Harness's underlying Runtime.
5200
+ # Amazon Web Services Skills baked into the Harness's underlying
5201
+ # Runtime.
5153
5202
  # @return [Types::HarnessSkillAwsSkillsSource]
5154
5203
  #
5155
5204
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/HarnessSkill AWS API Documentation
@@ -5171,7 +5220,7 @@ module Aws::BedrockAgentCore
5171
5220
  class Unknown < HarnessSkill; end
5172
5221
  end
5173
5222
 
5174
- # Passed to show that AWS Skills should be included.
5223
+ # Passed to show that Amazon Web Services Skills should be included.
5175
5224
  #
5176
5225
  # @!attribute [rw] paths
5177
5226
  # Optionally filter allowed skills with glob syntax, e.g.,
@@ -5764,6 +5813,92 @@ module Aws::BedrockAgentCore
5764
5813
  include Aws::Structure
5765
5814
  end
5766
5815
 
5816
+ # An insight that groups related failures found across the sessions in a
5817
+ # batch evaluation.
5818
+ #
5819
+ # @!attribute [rw] type
5820
+ # The type of insight. `FAILURE` indicates a group of related
5821
+ # failures.
5822
+ # @return [String]
5823
+ #
5824
+ # @!attribute [rw] name
5825
+ # A generated label for the insight. The name is not an identifier and
5826
+ # can differ between batch evaluations.
5827
+ # @return [String]
5828
+ #
5829
+ # @!attribute [rw] description
5830
+ # A description of the failure pattern that the insight represents.
5831
+ # @return [String]
5832
+ #
5833
+ # @!attribute [rw] created_at
5834
+ # The timestamp when the insight was generated.
5835
+ # @return [Time]
5836
+ #
5837
+ # @!attribute [rw] affected_session_count
5838
+ # The number of distinct sessions affected by the insight.
5839
+ # @return [Integer]
5840
+ #
5841
+ # @!attribute [rw] sample_sessions
5842
+ # A sample of up to 10 sessions affected by the insight. Returned only
5843
+ # when the insight has no root causes. Otherwise, sample sessions are
5844
+ # returned for each root cause.
5845
+ # @return [Array<Types::SampleSession>]
5846
+ #
5847
+ # @!attribute [rw] root_causes
5848
+ # The root causes identified for the insight.
5849
+ # @return [Array<Types::InsightRootCause>]
5850
+ #
5851
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InsightResult AWS API Documentation
5852
+ #
5853
+ class InsightResult < Struct.new(
5854
+ :type,
5855
+ :name,
5856
+ :description,
5857
+ :created_at,
5858
+ :affected_session_count,
5859
+ :sample_sessions,
5860
+ :root_causes)
5861
+ SENSITIVE = [:name, :description]
5862
+ include Aws::Structure
5863
+ end
5864
+
5865
+ # A root cause that contributes to an insight.
5866
+ #
5867
+ # @!attribute [rw] name
5868
+ # A generated label for the root cause.
5869
+ # @return [String]
5870
+ #
5871
+ # @!attribute [rw] explanation
5872
+ # An explanation of how the root cause leads to the failures in the
5873
+ # insight.
5874
+ # @return [String]
5875
+ #
5876
+ # @!attribute [rw] affected_session_count
5877
+ # The number of distinct sessions affected by the root cause. A
5878
+ # session can be affected by more than one root cause of the same
5879
+ # insight.
5880
+ # @return [Integer]
5881
+ #
5882
+ # @!attribute [rw] suggested_fix
5883
+ # A suggested change to the agent that addresses the root cause.
5884
+ # @return [String]
5885
+ #
5886
+ # @!attribute [rw] sample_sessions
5887
+ # A sample of up to 10 sessions affected by the root cause.
5888
+ # @return [Array<Types::SampleSession>]
5889
+ #
5890
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InsightRootCause AWS API Documentation
5891
+ #
5892
+ class InsightRootCause < Struct.new(
5893
+ :name,
5894
+ :explanation,
5895
+ :affected_session_count,
5896
+ :suggested_fix,
5897
+ :sample_sessions)
5898
+ SENSITIVE = [:name, :explanation, :suggested_fix]
5899
+ include Aws::Structure
5900
+ end
5901
+
5767
5902
  # A signal indicating a detected failure within a span.
5768
5903
  #
5769
5904
  # @!attribute [rw] category
@@ -7023,9 +7158,9 @@ module Aws::BedrockAgentCore
7023
7158
  # @return [String]
7024
7159
  #
7025
7160
  # @!attribute [rw] namespace
7026
- # The namespace prefix to filter memory records by. Returns all memory
7027
- # records in namespaces that start with the provided prefix. Either
7028
- # `namespace` or `namespacePath` is required.
7161
+ # The exact namespace to filter memory records by. Returns all memory
7162
+ # records that matches the provided namespace. Either `namespace` or
7163
+ # `namespacePath` is required.
7029
7164
  # @return [String]
7030
7165
  #
7031
7166
  # @!attribute [rw] namespace_path
@@ -7435,10 +7570,27 @@ module Aws::BedrockAgentCore
7435
7570
  # The timestamp when the memory record was created.
7436
7571
  # @return [Time]
7437
7572
  #
7573
+ # @!attribute [rw] timestamp
7574
+ # The timestamp based on which the memory record was ingested. This
7575
+ # reflects the time of the source content that the record was derived
7576
+ # from, which can differ from `createdAt`, the time the record itself
7577
+ # was written.
7578
+ # @return [Time]
7579
+ #
7438
7580
  # @!attribute [rw] metadata
7439
7581
  # A map of metadata key-value pairs associated with a memory record.
7440
7582
  # @return [Hash<String,Types::MemoryRecordMetadataValue>]
7441
7583
  #
7584
+ # @!attribute [rw] expires_at
7585
+ # The timestamp at which the memory record expires and becomes
7586
+ # eligible for deletion. This value is set when a record expiry
7587
+ # (long-term memory time-to-live) applies to the record, either from
7588
+ # the strategy the record belongs to or from a record expiry provided
7589
+ # on the batch request that created or updated it. If the record has
7590
+ # no expiry configured, this value is not present and the record does
7591
+ # not expire.
7592
+ # @return [Time]
7593
+ #
7442
7594
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MemoryRecord AWS API Documentation
7443
7595
  #
7444
7596
  class MemoryRecord < Struct.new(
@@ -7447,7 +7599,9 @@ module Aws::BedrockAgentCore
7447
7599
  :memory_strategy_id,
7448
7600
  :namespaces,
7449
7601
  :created_at,
7450
- :metadata)
7602
+ :timestamp,
7603
+ :metadata,
7604
+ :expires_at)
7451
7605
  SENSITIVE = []
7452
7606
  include Aws::Structure
7453
7607
  end
@@ -7662,6 +7816,13 @@ module Aws::BedrockAgentCore
7662
7816
  # search query.
7663
7817
  # @return [Float]
7664
7818
  #
7819
+ # @!attribute [rw] timestamp
7820
+ # The timestamp based on which the memory record was ingested. This
7821
+ # reflects the time of the source content that the record was derived
7822
+ # from, which can differ from `createdAt`, the time the record itself
7823
+ # was written.
7824
+ # @return [Time]
7825
+ #
7665
7826
  # @!attribute [rw] metadata
7666
7827
  # A map of metadata key-value pairs associated with a memory record.
7667
7828
  # @return [Hash<String,Types::MemoryRecordMetadataValue>]
@@ -7675,6 +7836,7 @@ module Aws::BedrockAgentCore
7675
7836
  :namespaces,
7676
7837
  :created_at,
7677
7838
  :score,
7839
+ :timestamp,
7678
7840
  :metadata)
7679
7841
  SENSITIVE = []
7680
7842
  include Aws::Structure
@@ -8906,6 +9068,41 @@ module Aws::BedrockAgentCore
8906
9068
  include Aws::Structure
8907
9069
  end
8908
9070
 
9071
+ # Specifies the record expiry (long-term memory time-to-live) applied to
9072
+ # the records in a batch request. Provide exactly one of
9073
+ # `recordExpiryDurationDays` or `action`. Set `recordExpiryDurationDays`
9074
+ # to configure or update the expiry, or set `action` to `REMOVE` to
9075
+ # remove a previously configured expiry.
9076
+ #
9077
+ # @note RecordExpirySpecification is a union - when making an API calls you must set exactly one of the members.
9078
+ #
9079
+ # @!attribute [rw] record_expiry_duration_days
9080
+ # The duration, in days, after which the records in this request
9081
+ # expire. The minimum is 31 days.
9082
+ # @return [Integer]
9083
+ #
9084
+ # @!attribute [rw] action
9085
+ # The action to apply to the existing record expiry configuration. Set
9086
+ # to `REMOVE` to remove a previously configured expiry so that the
9087
+ # records no longer expire. This value does not apply when creating
9088
+ # records.
9089
+ # @return [String]
9090
+ #
9091
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/RecordExpirySpecification AWS API Documentation
9092
+ #
9093
+ class RecordExpirySpecification < Struct.new(
9094
+ :record_expiry_duration_days,
9095
+ :action,
9096
+ :unknown)
9097
+ SENSITIVE = []
9098
+ include Aws::Structure
9099
+ include Aws::Structure::Union
9100
+
9101
+ class RecordExpiryDurationDays < RecordExpirySpecification; end
9102
+ class Action < RecordExpirySpecification; end
9103
+ class Unknown < RecordExpirySpecification; end
9104
+ end
9105
+
8909
9106
  # Summary information about a registry record.
8910
9107
  #
8911
9108
  # @!attribute [rw] registry_arn
@@ -9082,9 +9279,9 @@ module Aws::BedrockAgentCore
9082
9279
  # @return [String]
9083
9280
  #
9084
9281
  # @!attribute [rw] namespace
9085
- # The namespace prefix to filter memory records by. Searches for
9086
- # memory records in namespaces that start with the provided prefix.
9087
- # Either `namespace` or `namespacePath` is required.
9282
+ # The exact namespace to filter memory records by. Searches for memory
9283
+ # records that matches the provided namespace value. Either
9284
+ # `namespace` or `namespacePath` is required.
9088
9285
  # @return [String]
9089
9286
  #
9090
9287
  # @!attribute [rw] namespace_path
@@ -9291,6 +9488,33 @@ module Aws::BedrockAgentCore
9291
9488
  include Aws::Structure
9292
9489
  end
9293
9490
 
9491
+ # A session affected by an insight or root cause. Use the session ID to
9492
+ # find the per-session evaluation results in CloudWatch Logs.
9493
+ #
9494
+ # @!attribute [rw] session_id
9495
+ # The unique identifier of the session.
9496
+ # @return [String]
9497
+ #
9498
+ # @!attribute [rw] last_seen_at
9499
+ # The latest timestamp observed for the session in the batch
9500
+ # evaluation input.
9501
+ # @return [Time]
9502
+ #
9503
+ # @!attribute [rw] findings
9504
+ # The failures found in the session that belong to the insight or root
9505
+ # cause, up to 10.
9506
+ # @return [Array<Types::SessionFinding>]
9507
+ #
9508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/SampleSession AWS API Documentation
9509
+ #
9510
+ class SampleSession < Struct.new(
9511
+ :session_id,
9512
+ :last_seen_at,
9513
+ :findings)
9514
+ SENSITIVE = []
9515
+ include Aws::Structure
9516
+ end
9517
+
9294
9518
  # @!attribute [rw] trace_id
9295
9519
  # The trace identifier for request tracking.
9296
9520
  # @return [String]
@@ -9593,6 +9817,41 @@ module Aws::BedrockAgentCore
9593
9817
  include Aws::Structure
9594
9818
  end
9595
9819
 
9820
+ # A failure found in a session.
9821
+ #
9822
+ # @!attribute [rw] target_id
9823
+ # The identifier or name of the location in the session where the
9824
+ # failure was found, interpreted according to `targetType`.
9825
+ # @return [String]
9826
+ #
9827
+ # @!attribute [rw] target_type
9828
+ # The type of location that `targetId` refers to.
9829
+ # @return [String]
9830
+ #
9831
+ # @!attribute [rw] description
9832
+ # A description of the failure.
9833
+ # @return [String]
9834
+ #
9835
+ # @!attribute [rw] category
9836
+ # The category of the failure.
9837
+ # @return [String]
9838
+ #
9839
+ # @!attribute [rw] confidence
9840
+ # The confidence that the finding is a failure, from 0 to 1.
9841
+ # @return [Float]
9842
+ #
9843
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/SessionFinding AWS API Documentation
9844
+ #
9845
+ class SessionFinding < Struct.new(
9846
+ :target_id,
9847
+ :target_type,
9848
+ :description,
9849
+ :category,
9850
+ :confidence)
9851
+ SENSITIVE = [:description]
9852
+ include Aws::Structure
9853
+ end
9854
+
9596
9855
  # The spending limits configuration for a payment session.
9597
9856
  #
9598
9857
  # @!attribute [rw] max_spend_amount
@@ -56,7 +56,7 @@ module Aws::BedrockAgentCore
56
56
  autoload :Endpoints, 'aws-sdk-bedrockagentcore/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-bedrockagentcore/event_streams'
58
58
 
59
- GEM_VERSION = '1.57.0'
59
+ GEM_VERSION = '1.59.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -106,7 +106,11 @@ module Aws
106
106
  }]?
107
107
  }
108
108
  ],
109
- ?client_token: ::String
109
+ ?client_token: ::String,
110
+ ?record_expiry_specification: {
111
+ record_expiry_duration_days: ::Integer?,
112
+ action: ("REMOVE")?
113
+ }
110
114
  ) -> _BatchCreateMemoryRecordsResponseSuccess
111
115
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchCreateMemoryRecordsResponseSuccess
112
116
 
@@ -152,7 +156,11 @@ module Aws
152
156
  date_time_value: ::Time?
153
157
  }]?
154
158
  }
155
- ]
159
+ ],
160
+ ?record_expiry_specification: {
161
+ record_expiry_duration_days: ::Integer?,
162
+ action: ("REMOVE")?
163
+ }
156
164
  ) -> _BatchUpdateMemoryRecordsResponseSuccess
157
165
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchUpdateMemoryRecordsResponseSuccess
158
166
 
@@ -528,6 +536,7 @@ module Aws
528
536
  def data_source_config: () -> Types::DataSourceConfig
529
537
  def output_config: () -> Types::OutputConfig
530
538
  def evaluation_results: () -> Types::EvaluationJobResults
539
+ def insight_results: () -> ::Array[Types::InsightResult]
531
540
  def failure_analysis_result: () -> Types::FailureAnalysisResultContent
532
541
  def user_intent_result: () -> Types::UserIntentClusteringResultContent
533
542
  def execution_summary_result: () -> Types::ExecutionSummaryClusteringResultContent
data/sig/errors.rbs CHANGED
@@ -11,51 +11,51 @@ module Aws
11
11
  class ServiceError < ::Aws::Errors::ServiceError
12
12
  end
13
13
 
14
- class AccessDeniedException < ::Aws::Errors::ServiceError
14
+ class AccessDeniedException < ServiceError
15
15
  def message: () -> ::String
16
16
  end
17
- class ConflictException < ::Aws::Errors::ServiceError
17
+ class ConflictException < ServiceError
18
18
  def message: () -> ::String
19
19
  end
20
- class DuplicateIdException < ::Aws::Errors::ServiceError
20
+ class DuplicateIdException < ServiceError
21
21
  def message: () -> ::String
22
22
  end
23
- class InternalServerException < ::Aws::Errors::ServiceError
23
+ class InternalServerException < ServiceError
24
24
  def message: () -> ::String
25
25
  end
26
- class InvalidInputException < ::Aws::Errors::ServiceError
26
+ class InvalidInputException < ServiceError
27
27
  def message: () -> ::String
28
28
  end
29
- class ResourceNotFoundException < ::Aws::Errors::ServiceError
29
+ class ResourceNotFoundException < ServiceError
30
30
  def message: () -> ::String
31
31
  end
32
- class RetryableConflictException < ::Aws::Errors::ServiceError
32
+ class RetryableConflictException < ServiceError
33
33
  def message: () -> ::String
34
34
  end
35
- class RuntimeClientError < ::Aws::Errors::ServiceError
35
+ class RuntimeClientError < ServiceError
36
36
  def message: () -> ::String
37
37
  end
38
- class ServiceException < ::Aws::Errors::ServiceError
38
+ class ServiceException < ServiceError
39
39
  def message: () -> ::String
40
40
  end
41
- class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
41
+ class ServiceQuotaExceededException < ServiceError
42
42
  def message: () -> ::String
43
43
  end
44
- class SubscriptionRequiredException < ::Aws::Errors::ServiceError
44
+ class SubscriptionRequiredException < ServiceError
45
45
  def message: () -> ::String
46
46
  def subscription_url: () -> ::String
47
47
  def product_name: () -> ::String
48
48
  end
49
- class ThrottledException < ::Aws::Errors::ServiceError
49
+ class ThrottledException < ServiceError
50
50
  def message: () -> ::String
51
51
  end
52
- class ThrottlingException < ::Aws::Errors::ServiceError
52
+ class ThrottlingException < ServiceError
53
53
  def message: () -> ::String
54
54
  end
55
- class UnauthorizedException < ::Aws::Errors::ServiceError
55
+ class UnauthorizedException < ServiceError
56
56
  def message: () -> ::String
57
57
  end
58
- class ValidationException < ::Aws::Errors::ServiceError
58
+ class ValidationException < ServiceError
59
59
  def message: () -> ::String
60
60
  def reason: () -> ::String
61
61
  def field_list: () -> ::String
data/sig/types.rbs CHANGED
@@ -130,6 +130,7 @@ module Aws::BedrockAgentCore
130
130
  attr_accessor memory_id: ::String
131
131
  attr_accessor records: ::Array[Types::MemoryRecordCreateInput]
132
132
  attr_accessor client_token: ::String
133
+ attr_accessor record_expiry_specification: Types::RecordExpirySpecification
133
134
  SENSITIVE: []
134
135
  end
135
136
 
@@ -175,6 +176,7 @@ module Aws::BedrockAgentCore
175
176
  class BatchUpdateMemoryRecordsInput
176
177
  attr_accessor memory_id: ::String
177
178
  attr_accessor records: ::Array[Types::MemoryRecordUpdateInput]
179
+ attr_accessor record_expiry_specification: Types::RecordExpirySpecification
178
180
  SENSITIVE: []
179
181
  end
180
182
 
@@ -1051,6 +1053,7 @@ module Aws::BedrockAgentCore
1051
1053
  attr_accessor data_source_config: Types::DataSourceConfig
1052
1054
  attr_accessor output_config: Types::OutputConfig
1053
1055
  attr_accessor evaluation_results: Types::EvaluationJobResults
1056
+ attr_accessor insight_results: ::Array[Types::InsightResult]
1054
1057
  attr_accessor failure_analysis_result: Types::FailureAnalysisResultContent
1055
1058
  attr_accessor user_intent_result: Types::UserIntentClusteringResultContent
1056
1059
  attr_accessor execution_summary_result: Types::ExecutionSummaryClusteringResultContent
@@ -1780,6 +1783,26 @@ module Aws::BedrockAgentCore
1780
1783
  SENSITIVE: []
1781
1784
  end
1782
1785
 
1786
+ class InsightResult
1787
+ attr_accessor type: ("FAILURE")
1788
+ attr_accessor name: ::String
1789
+ attr_accessor description: ::String
1790
+ attr_accessor created_at: ::Time
1791
+ attr_accessor affected_session_count: ::Integer
1792
+ attr_accessor sample_sessions: ::Array[Types::SampleSession]
1793
+ attr_accessor root_causes: ::Array[Types::InsightRootCause]
1794
+ SENSITIVE: [:name, :description]
1795
+ end
1796
+
1797
+ class InsightRootCause
1798
+ attr_accessor name: ::String
1799
+ attr_accessor explanation: ::String
1800
+ attr_accessor affected_session_count: ::Integer
1801
+ attr_accessor suggested_fix: ::String
1802
+ attr_accessor sample_sessions: ::Array[Types::SampleSession]
1803
+ SENSITIVE: [:name, :explanation, :suggested_fix]
1804
+ end
1805
+
1783
1806
  class InsightsFailureSignal
1784
1807
  attr_accessor category: ("execution-error-category-authentication" | "execution-error-category-resource-not-found" | "execution-error-category-service-errors" | "execution-error-category-rate-limiting" | "execution-error-category-formatting" | "execution-error-category-timeout" | "execution-error-category-resource-exhaustion" | "execution-error-category-environment" | "execution-error-category-tool-schema" | "task-instruction-category-non-compliance" | "task-instruction-category-problem-id" | "incorrect-actions-category-tool-selection" | "incorrect-actions-category-poor-information-retrieval" | "incorrect-actions-category-clarification" | "incorrect-actions-category-inappropriate-info-request" | "context-handling-error-category-context-handling-failures" | "hallucination-category-hall-capabilities" | "hallucination-category-hall-misunderstand" | "hallucination-category-hall-usage" | "hallucination-category-hall-history" | "hallucination-category-hall-params" | "hallucination-category-fabricate-tool-outputs" | "repetitive-behavior-category-repetition-tool" | "repetitive-behavior-category-repetition-info" | "repetitive-behavior-category-step-repetition" | "orchestration-related-errors-category-reasoning-mismatch" | "orchestration-related-errors-category-goal-deviation" | "orchestration-related-errors-category-premature-termination" | "orchestration-related-errors-category-unaware-termination" | "llm-output-category-nonsensical" | "configuration-mismatch-category-tool-definition" | "coding-use-case-specific-failure-types-category-edge-case-oversights" | "coding-use-case-specific-failure-types-category-dependency-issues" | "other")
1785
1808
  attr_accessor evidence: ::String
@@ -2237,7 +2260,9 @@ module Aws::BedrockAgentCore
2237
2260
  attr_accessor memory_strategy_id: ::String
2238
2261
  attr_accessor namespaces: ::Array[::String]
2239
2262
  attr_accessor created_at: ::Time
2263
+ attr_accessor timestamp: ::Time
2240
2264
  attr_accessor metadata: ::Hash[::String, Types::MemoryRecordMetadataValue]
2265
+ attr_accessor expires_at: ::Time
2241
2266
  SENSITIVE: []
2242
2267
  end
2243
2268
 
@@ -2315,6 +2340,7 @@ module Aws::BedrockAgentCore
2315
2340
  attr_accessor namespaces: ::Array[::String]
2316
2341
  attr_accessor created_at: ::Time
2317
2342
  attr_accessor score: ::Float
2343
+ attr_accessor timestamp: ::Time
2318
2344
  attr_accessor metadata: ::Hash[::String, Types::MemoryRecordMetadataValue]
2319
2345
  SENSITIVE: []
2320
2346
  end
@@ -2708,6 +2734,20 @@ module Aws::BedrockAgentCore
2708
2734
  SENSITIVE: []
2709
2735
  end
2710
2736
 
2737
+ class RecordExpirySpecification
2738
+ attr_accessor record_expiry_duration_days: ::Integer
2739
+ attr_accessor action: ("REMOVE")
2740
+ attr_accessor unknown: untyped
2741
+ SENSITIVE: []
2742
+
2743
+ class RecordExpiryDurationDays < RecordExpirySpecification
2744
+ end
2745
+ class Action < RecordExpirySpecification
2746
+ end
2747
+ class Unknown < RecordExpirySpecification
2748
+ end
2749
+ end
2750
+
2711
2751
  class RegistryRecordSummary
2712
2752
  attr_accessor registry_arn: ::String
2713
2753
  attr_accessor record_arn: ::String
@@ -2819,6 +2859,13 @@ module Aws::BedrockAgentCore
2819
2859
  SENSITIVE: []
2820
2860
  end
2821
2861
 
2862
+ class SampleSession
2863
+ attr_accessor session_id: ::String
2864
+ attr_accessor last_seen_at: ::Time
2865
+ attr_accessor findings: ::Array[Types::SessionFinding]
2866
+ SENSITIVE: []
2867
+ end
2868
+
2822
2869
  class SaveBrowserSessionProfileRequest
2823
2870
  attr_accessor trace_id: ::String
2824
2871
  attr_accessor trace_parent: ::String
@@ -2903,6 +2950,15 @@ module Aws::BedrockAgentCore
2903
2950
  SENSITIVE: []
2904
2951
  end
2905
2952
 
2953
+ class SessionFinding
2954
+ attr_accessor target_id: ::String
2955
+ attr_accessor target_type: ("SPAN_ID" | "TRACE_ID" | "SPAN_NAME")
2956
+ attr_accessor description: ::String
2957
+ attr_accessor category: ::String
2958
+ attr_accessor confidence: ::Float
2959
+ SENSITIVE: [:description]
2960
+ end
2961
+
2906
2962
  class SessionLimits
2907
2963
  attr_accessor max_spend_amount: Types::Amount
2908
2964
  SENSITIVE: []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.57.0
4
+ version: 1.59.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.256.0
21
+ version: 3.258.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.256.0
31
+ version: 3.258.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement