aws-sdk-bedrockagentcore 1.69.0 → 1.71.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.
@@ -1312,6 +1312,43 @@ module Aws::BedrockAgentCore
1312
1312
  req.send_request(options)
1313
1313
  end
1314
1314
 
1315
+ # Deletes the record of a dataset generation. The examples the
1316
+ # generation added stay in the dataset's draft. To remove them, find
1317
+ # them with the `generationIds` filter of `ListDatasetExamples`, then
1318
+ # call `DeleteDatasetExamples`.
1319
+ #
1320
+ # @option params [required, String] :dataset_id
1321
+ # The unique identifier of the dataset.
1322
+ #
1323
+ # @option params [required, String] :generation_id
1324
+ # The unique identifier of the dataset generation.
1325
+ #
1326
+ # @return [Types::DeleteDatasetGenerationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1327
+ #
1328
+ # * {Types::DeleteDatasetGenerationResponse#generation_id #generation_id} => String
1329
+ # * {Types::DeleteDatasetGenerationResponse#status #status} => String
1330
+ #
1331
+ # @example Request syntax with placeholder values
1332
+ #
1333
+ # resp = client.delete_dataset_generation({
1334
+ # dataset_id: "DatasetId", # required
1335
+ # generation_id: "DatasetGenerationId", # required
1336
+ # })
1337
+ #
1338
+ # @example Response structure
1339
+ #
1340
+ # resp.generation_id #=> String
1341
+ # resp.status #=> String, one of "IN_PROGRESS", "COMPLETED", "COMPLETED_WITH_ERRORS", "FAILED", "DELETING"
1342
+ #
1343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DeleteDatasetGeneration AWS API Documentation
1344
+ #
1345
+ # @overload delete_dataset_generation(params = {})
1346
+ # @param [Hash] params ({})
1347
+ def delete_dataset_generation(params = {}, options = {})
1348
+ req = build_request(:delete_dataset_generation, params)
1349
+ req.send_request(options)
1350
+ end
1351
+
1315
1352
  # Deletes an event from an AgentCore Memory resource. When you delete an
1316
1353
  # event, it is permanently removed.
1317
1354
  #
@@ -1748,6 +1785,91 @@ module Aws::BedrockAgentCore
1748
1785
  req.send_request(options)
1749
1786
  end
1750
1787
 
1788
+ # Amazon Bedrock AgentCore Agent Insights identifies patterns detected
1789
+ # across your agent sessions. Use Agent Insights to identify recurring
1790
+ # issues and prioritize fixes.
1791
+ #
1792
+ # Retrieves detailed information about an Amazon Bedrock AgentCore Agent
1793
+ # Insight, including its archive status, affected sessions, and, when
1794
+ # applicable, the batch evaluation that produced it.
1795
+ #
1796
+ # @option params [required, String] :application_name
1797
+ # The application that the Agent Insight belongs to.
1798
+ #
1799
+ # @option params [required, String] :agent_insight_id
1800
+ # The unique identifier of the Agent Insight to retrieve.
1801
+ #
1802
+ # @return [Types::GetAgentInsightResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1803
+ #
1804
+ # * {Types::GetAgentInsightResponse#type #type} => String
1805
+ # * {Types::GetAgentInsightResponse#name #name} => String
1806
+ # * {Types::GetAgentInsightResponse#description #description} => String
1807
+ # * {Types::GetAgentInsightResponse#created_at #created_at} => Time
1808
+ # * {Types::GetAgentInsightResponse#affected_session_count #affected_session_count} => Integer
1809
+ # * {Types::GetAgentInsightResponse#sample_sessions #sample_sessions} => Array<Types::SampleSession>
1810
+ # * {Types::GetAgentInsightResponse#root_causes #root_causes} => Array<Types::InsightRootCause>
1811
+ # * {Types::GetAgentInsightResponse#agent_insight_id #agent_insight_id} => String
1812
+ # * {Types::GetAgentInsightResponse#application_name #application_name} => String
1813
+ # * {Types::GetAgentInsightResponse#batch_evaluation_id #batch_evaluation_id} => String
1814
+ # * {Types::GetAgentInsightResponse#customer_metadata_status #customer_metadata_status} => String
1815
+ # * {Types::GetAgentInsightResponse#updated_at #updated_at} => Time
1816
+ # * {Types::GetAgentInsightResponse#archive_status #archive_status} => String
1817
+ # * {Types::GetAgentInsightResponse#last_seen_at #last_seen_at} => Time
1818
+ #
1819
+ # @example Request syntax with placeholder values
1820
+ #
1821
+ # resp = client.get_agent_insight({
1822
+ # application_name: "AgentApplicationName", # required
1823
+ # agent_insight_id: "AgentInsightId", # required
1824
+ # })
1825
+ #
1826
+ # @example Response structure
1827
+ #
1828
+ # resp.type #=> String, one of "FAILURE"
1829
+ # resp.name #=> String
1830
+ # resp.description #=> String
1831
+ # resp.created_at #=> Time
1832
+ # resp.affected_session_count #=> Integer
1833
+ # resp.sample_sessions #=> Array
1834
+ # resp.sample_sessions[0].session_id #=> String
1835
+ # resp.sample_sessions[0].last_seen_at #=> Time
1836
+ # resp.sample_sessions[0].findings #=> Array
1837
+ # resp.sample_sessions[0].findings[0].target_id #=> String
1838
+ # resp.sample_sessions[0].findings[0].target_type #=> String, one of "SPAN_ID", "TRACE_ID", "SPAN_NAME"
1839
+ # resp.sample_sessions[0].findings[0].description #=> String
1840
+ # resp.sample_sessions[0].findings[0].category #=> String
1841
+ # resp.sample_sessions[0].findings[0].confidence #=> Float
1842
+ # resp.root_causes #=> Array
1843
+ # resp.root_causes[0].name #=> String
1844
+ # resp.root_causes[0].explanation #=> String
1845
+ # resp.root_causes[0].affected_session_count #=> Integer
1846
+ # resp.root_causes[0].suggested_fix #=> String
1847
+ # resp.root_causes[0].sample_sessions #=> Array
1848
+ # resp.root_causes[0].sample_sessions[0].session_id #=> String
1849
+ # resp.root_causes[0].sample_sessions[0].last_seen_at #=> Time
1850
+ # resp.root_causes[0].sample_sessions[0].findings #=> Array
1851
+ # resp.root_causes[0].sample_sessions[0].findings[0].target_id #=> String
1852
+ # resp.root_causes[0].sample_sessions[0].findings[0].target_type #=> String, one of "SPAN_ID", "TRACE_ID", "SPAN_NAME"
1853
+ # resp.root_causes[0].sample_sessions[0].findings[0].description #=> String
1854
+ # resp.root_causes[0].sample_sessions[0].findings[0].category #=> String
1855
+ # resp.root_causes[0].sample_sessions[0].findings[0].confidence #=> Float
1856
+ # resp.agent_insight_id #=> String
1857
+ # resp.application_name #=> String
1858
+ # resp.batch_evaluation_id #=> String
1859
+ # resp.customer_metadata_status #=> String, one of "AVAILABLE", "CUSTOMER_KEY_UNAVAILABLE", "UNAVAILABLE"
1860
+ # resp.updated_at #=> Time
1861
+ # resp.archive_status #=> String, one of "ACTIVE", "ARCHIVED"
1862
+ # resp.last_seen_at #=> Time
1863
+ #
1864
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetAgentInsight AWS API Documentation
1865
+ #
1866
+ # @overload get_agent_insight(params = {})
1867
+ # @param [Hash] params ({})
1868
+ def get_agent_insight(params = {}, options = {})
1869
+ req = build_request(:get_agent_insight, params)
1870
+ req.send_request(options)
1871
+ end
1872
+
1751
1873
  # Retrieves detailed information about a batch evaluation, including its
1752
1874
  # status, configuration, results, and any error details.
1753
1875
  #
@@ -1774,6 +1896,7 @@ module Aws::BedrockAgentCore
1774
1896
  # * {Types::GetBatchEvaluationResponse#description #description} => String
1775
1897
  # * {Types::GetBatchEvaluationResponse#updated_at #updated_at} => Time
1776
1898
  # * {Types::GetBatchEvaluationResponse#kms_key_arn #kms_key_arn} => String
1899
+ # * {Types::GetBatchEvaluationResponse#dataset_execution_details #dataset_execution_details} => Types::DatasetExecutionDetails
1777
1900
  #
1778
1901
  # @example Request syntax with placeholder values
1779
1902
  #
@@ -1904,6 +2027,11 @@ module Aws::BedrockAgentCore
1904
2027
  # resp.description #=> String
1905
2028
  # resp.updated_at #=> Time
1906
2029
  # resp.kms_key_arn #=> String
2030
+ # resp.dataset_execution_details.dataset.dataset_id #=> String
2031
+ # resp.dataset_execution_details.dataset.dataset_version #=> String
2032
+ # resp.dataset_execution_details.agent_invocation.agent_core_runtime.agent_runtime_endpoint_arn #=> String
2033
+ # resp.dataset_execution_details.agent_invocation.agent_core_runtime.agent_runtime_version #=> String
2034
+ # resp.dataset_execution_details.agent_invocation.agent_core_runtime.request_template #=> String
1907
2035
  #
1908
2036
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetBatchEvaluation AWS API Documentation
1909
2037
  #
@@ -2095,6 +2223,126 @@ module Aws::BedrockAgentCore
2095
2223
  req.send_request(options)
2096
2224
  end
2097
2225
 
2226
+ # Gets a dataset generation, including its status, the request it was
2227
+ # started with, its progress counts, its redaction summary and its
2228
+ # errors. Call this operation to track a generation that you started
2229
+ # with `StartDatasetGeneration`.
2230
+ #
2231
+ # @option params [required, String] :dataset_id
2232
+ # The unique identifier of the dataset.
2233
+ #
2234
+ # @option params [required, String] :generation_id
2235
+ # The unique identifier of the dataset generation.
2236
+ #
2237
+ # @return [Types::GetDatasetGenerationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2238
+ #
2239
+ # * {Types::GetDatasetGenerationResponse#generation_id #generation_id} => String
2240
+ # * {Types::GetDatasetGenerationResponse#name #name} => String
2241
+ # * {Types::GetDatasetGenerationResponse#description #description} => String
2242
+ # * {Types::GetDatasetGenerationResponse#dataset_id #dataset_id} => String
2243
+ # * {Types::GetDatasetGenerationResponse#scenario_type #scenario_type} => String
2244
+ # * {Types::GetDatasetGenerationResponse#status #status} => String
2245
+ # * {Types::GetDatasetGenerationResponse#failure_reason #failure_reason} => String
2246
+ # * {Types::GetDatasetGenerationResponse#created_at #created_at} => Time
2247
+ # * {Types::GetDatasetGenerationResponse#updated_at #updated_at} => Time
2248
+ # * {Types::GetDatasetGenerationResponse#completed_at #completed_at} => Time
2249
+ # * {Types::GetDatasetGenerationResponse#source #source} => Types::GenerationSourceRecord
2250
+ # * {Types::GetDatasetGenerationResponse#generation_results #generation_results} => Types::GenerationResults
2251
+ # * {Types::GetDatasetGenerationResponse#redaction_summary #redaction_summary} => Types::RedactionSummary
2252
+ # * {Types::GetDatasetGenerationResponse#error_details #error_details} => Array<Types::GenerationErrorDetail>
2253
+ #
2254
+ # @example Request syntax with placeholder values
2255
+ #
2256
+ # resp = client.get_dataset_generation({
2257
+ # dataset_id: "DatasetId", # required
2258
+ # generation_id: "DatasetGenerationId", # required
2259
+ # })
2260
+ #
2261
+ # @example Response structure
2262
+ #
2263
+ # resp.generation_id #=> String
2264
+ # resp.name #=> String
2265
+ # resp.description #=> String
2266
+ # resp.dataset_id #=> String
2267
+ # resp.scenario_type #=> String, one of "FIXED", "DYNAMIC"
2268
+ # resp.status #=> String, one of "IN_PROGRESS", "COMPLETED", "COMPLETED_WITH_ERRORS", "FAILED", "DELETING"
2269
+ # resp.failure_reason #=> String
2270
+ # resp.created_at #=> Time
2271
+ # resp.updated_at #=> Time
2272
+ # resp.completed_at #=> Time
2273
+ # resp.source.trace_generation.source_config.cloud_watch_logs.log_group_names #=> Array
2274
+ # resp.source.trace_generation.source_config.cloud_watch_logs.log_group_names[0] #=> String
2275
+ # resp.source.trace_generation.source_config.cloud_watch_logs.log_group_name_prefixes #=> Array
2276
+ # resp.source.trace_generation.source_config.cloud_watch_logs.log_group_name_prefixes[0] #=> String
2277
+ # resp.source.trace_generation.source_config.cloud_watch_logs.service_names #=> Array
2278
+ # resp.source.trace_generation.source_config.cloud_watch_logs.service_names[0] #=> String
2279
+ # resp.source.trace_generation.source_config.cloud_watch_logs.start_time #=> Time
2280
+ # resp.source.trace_generation.source_config.cloud_watch_logs.end_time #=> Time
2281
+ # resp.source.trace_generation.source_config.online_evaluation.online_evaluation_config_arn #=> String
2282
+ # resp.source.trace_generation.source_config.online_evaluation.start_time #=> Time
2283
+ # resp.source.trace_generation.source_config.online_evaluation.end_time #=> Time
2284
+ # resp.source.trace_generation.source_config.batch_evaluation.batch_evaluation_arn #=> String
2285
+ # resp.source.trace_generation.selection.filters.attribute_filters #=> Array
2286
+ # resp.source.trace_generation.selection.filters.attribute_filters[0].key #=> String
2287
+ # resp.source.trace_generation.selection.filters.attribute_filters[0].operator #=> String, one of "Equals", "NotEquals", "GreaterThan", "LessThan", "GreaterThanOrEqual", "LessThanOrEqual", "Contains", "NotContains"
2288
+ # resp.source.trace_generation.selection.filters.attribute_filters[0].value.string_value #=> String
2289
+ # resp.source.trace_generation.selection.filters.attribute_filters[0].value.double_value #=> Float
2290
+ # resp.source.trace_generation.selection.filters.attribute_filters[0].value.boolean_value #=> Boolean
2291
+ # resp.source.trace_generation.selection.filters.turn_count.min #=> Integer
2292
+ # resp.source.trace_generation.selection.filters.turn_count.max #=> Integer
2293
+ # resp.source.trace_generation.selection.filters.evaluator_filters #=> Array
2294
+ # resp.source.trace_generation.selection.filters.evaluator_filters[0].evaluator_id #=> String
2295
+ # resp.source.trace_generation.selection.filters.evaluator_filters[0].evaluation_dimension_name #=> String
2296
+ # resp.source.trace_generation.selection.filters.evaluator_filters[0].operator #=> String, one of "Equals", "NotEquals", "GreaterThan", "LessThan", "GreaterThanOrEqual", "LessThanOrEqual", "Contains", "NotContains"
2297
+ # resp.source.trace_generation.selection.filters.evaluator_filters[0].value.string_value #=> String
2298
+ # resp.source.trace_generation.selection.filters.evaluator_filters[0].value.double_value #=> Float
2299
+ # resp.source.trace_generation.selection.filters.evaluator_filters[0].value.boolean_value #=> Boolean
2300
+ # resp.source.trace_generation.selection.filters.evaluator_filters[0].aggregation #=> String, one of "Min", "Max", "Mean", "AllMatch", "AnyMatch"
2301
+ # resp.source.trace_generation.selection.identifiers.session_id_count #=> Integer
2302
+ # resp.source.trace_generation.selection.identifiers.trace_id_count #=> Integer
2303
+ # resp.source.trace_generation.sampling.max_scenarios #=> Integer
2304
+ # resp.source.trace_generation.ground_truth.fields #=> Array
2305
+ # resp.source.trace_generation.ground_truth.fields[0] #=> String, one of "expected_response", "expected_trajectory"
2306
+ # resp.source.trace_generation.ground_truth.quality_filters #=> Array
2307
+ # resp.source.trace_generation.ground_truth.quality_filters[0].evaluator_id #=> String
2308
+ # resp.source.trace_generation.ground_truth.quality_filters[0].evaluation_dimension_name #=> String
2309
+ # resp.source.trace_generation.ground_truth.quality_filters[0].operator #=> String, one of "Equals", "NotEquals", "GreaterThan", "LessThan", "GreaterThanOrEqual", "LessThanOrEqual", "Contains", "NotContains"
2310
+ # resp.source.trace_generation.ground_truth.quality_filters[0].value.string_value #=> String
2311
+ # resp.source.trace_generation.ground_truth.quality_filters[0].value.double_value #=> Float
2312
+ # resp.source.trace_generation.ground_truth.quality_filters[0].value.boolean_value #=> Boolean
2313
+ # resp.source.trace_generation.ground_truth.quality_filters[0].aggregation #=> String, one of "Min", "Max", "Mean", "AllMatch", "AnyMatch"
2314
+ # resp.source.trace_generation.redaction_configuration.identifiers #=> Array
2315
+ # resp.source.trace_generation.redaction_configuration.identifiers[0] #=> String, one of "ADDRESS", "AWS_SECRET_KEY", "BANK_ACCOUNT_NUMBER_DE", "BANK_ACCOUNT_NUMBER_ES", "BANK_ACCOUNT_NUMBER_FR", "BANK_ACCOUNT_NUMBER_GB", "BANK_ACCOUNT_NUMBER_IT", "BANK_ACCOUNT_NUMBER_US", "CEP_CODE_BR", "CNPJ_BR", "CPF_CODE_BR", "CREDIT_CARD_EXPIRATION", "CREDIT_CARD_MAGNETIC_STRIPE", "CREDIT_CARD_NUMBER", "CREDIT_CARD_SECURITY_CODE", "DATE_OF_BIRTH", "DRIVERS_LICENSE_AT", "DRIVERS_LICENSE_AU", "DRIVERS_LICENSE_BE", "DRIVERS_LICENSE_BG", "DRIVERS_LICENSE_CA", "DRIVERS_LICENSE_CY", "DRIVERS_LICENSE_CZ", "DRIVERS_LICENSE_DE", "DRIVERS_LICENSE_DK", "DRIVERS_LICENSE_EE", "DRIVERS_LICENSE_ES", "DRIVERS_LICENSE_FI", "DRIVERS_LICENSE_FR", "DRIVERS_LICENSE_GB", "DRIVERS_LICENSE_GR", "DRIVERS_LICENSE_HR", "DRIVERS_LICENSE_HU", "DRIVERS_LICENSE_IE", "DRIVERS_LICENSE_IT", "DRIVERS_LICENSE_LT", "DRIVERS_LICENSE_LU", "DRIVERS_LICENSE_LV", "DRIVERS_LICENSE_MT", "DRIVERS_LICENSE_NL", "DRIVERS_LICENSE_PL", "DRIVERS_LICENSE_PT", "DRIVERS_LICENSE_RO", "DRIVERS_LICENSE_SE", "DRIVERS_LICENSE_SI", "DRIVERS_LICENSE_SK", "DRIVERS_LICENSE_US", "DRUG_ENFORCEMENT_AGENCY_NUMBER_US", "ELECTORAL_ROLL_NUMBER_GB", "EMAIL_ADDRESS", "HEALTH_INSURANCE_CARD_NUMBER_EU", "HEALTH_INSURANCE_CLAIM_NUMBER_US", "HEALTH_INSURANCE_NUMBER_FR", "HEALTHCARE_PROCEDURE_CODE_US", "INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_US", "INSEE_CODE_FR", "IP_ADDRESS", "LAT_LONG", "MEDICARE_BENEFICIARY_NUMBER_US", "NAME", "NATIONAL_DRUG_CODE_US", "NATIONAL_IDENTIFICATION_NUMBER_DE", "NATIONAL_IDENTIFICATION_NUMBER_ES", "NATIONAL_IDENTIFICATION_NUMBER_IT", "NATIONAL_INSURANCE_NUMBER_GB", "NATIONAL_PROVIDER_ID_US", "NHS_NUMBER_GB", "NIE_NUMBER_ES", "NIF_NUMBER_ES", "OPEN_SSH_PRIVATE_KEY", "PASSPORT_NUMBER_CA", "PASSPORT_NUMBER_DE", "PASSPORT_NUMBER_ES", "PASSPORT_NUMBER_FR", "PASSPORT_NUMBER_GB", "PASSPORT_NUMBER_IT", "PASSPORT_NUMBER_US", "PERMANENT_RESIDENCE_NUMBER_CA", "PERSONAL_HEALTH_NUMBER_CA", "PGP_PRIVATE_KEY", "PHONE_NUMBER_BR", "PHONE_NUMBER_DE", "PHONE_NUMBER_ES", "PHONE_NUMBER_FR", "PHONE_NUMBER_GB", "PHONE_NUMBER_IT", "PHONE_NUMBER_US", "PKCS_PRIVATE_KEY", "POSTAL_CODE_CA", "PUTTY_PRIVATE_KEY", "RG_NUMBER_BR", "SOCIAL_INSURANCE_NUMBER_CA", "SSN_ES", "SSN_US", "TAX_ID_DE", "TAX_ID_ES", "TAX_ID_FR", "TAX_ID_GB", "VEHICLE_IDENTIFICATION_NUMBER", "ZIP_CODE_US"
2316
+ # resp.source.trace_generation.redaction_configuration.custom_data_identifiers #=> Array
2317
+ # resp.source.trace_generation.redaction_configuration.custom_data_identifiers[0].name #=> String
2318
+ # resp.source.trace_generation.redaction_configuration.custom_data_identifiers[0].regex #=> String
2319
+ # resp.generation_results.sessions_matched #=> Integer
2320
+ # resp.generation_results.sessions_selected #=> Integer
2321
+ # resp.generation_results.sessions_unscored #=> Integer
2322
+ # resp.generation_results.sessions_failed #=> Integer
2323
+ # resp.generation_results.scenarios_generated #=> Integer
2324
+ # resp.generation_results.scenarios_deduplicated #=> Integer
2325
+ # resp.generation_results.examples_written #=> Integer
2326
+ # resp.generation_results.examples_with_ground_truth #=> Integer
2327
+ # resp.redaction_summary.scenarios_scanned #=> Integer
2328
+ # resp.redaction_summary.finding_counts #=> Hash
2329
+ # resp.redaction_summary.finding_counts["FindingIdentifierKey"] #=> Integer
2330
+ # resp.error_details #=> Array
2331
+ # resp.error_details[0].error_code #=> String
2332
+ # resp.error_details[0].error_message #=> String
2333
+ # resp.error_details[0].count #=> Integer
2334
+ # resp.error_details[0].session_ids #=> Array
2335
+ # resp.error_details[0].session_ids[0] #=> String
2336
+ #
2337
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetDatasetGeneration AWS API Documentation
2338
+ #
2339
+ # @overload get_dataset_generation(params = {})
2340
+ # @param [Hash] params ({})
2341
+ def get_dataset_generation(params = {}, options = {})
2342
+ req = build_request(:get_dataset_generation, params)
2343
+ req.send_request(options)
2344
+ end
2345
+
2098
2346
  # Retrieves information about a specific event in an AgentCore Memory
2099
2347
  # resource.
2100
2348
  #
@@ -4490,6 +4738,73 @@ module Aws::BedrockAgentCore
4490
4738
  req.send_request(options)
4491
4739
  end
4492
4740
 
4741
+ # Lists Amazon Bedrock AgentCore Agent Insight summaries in your account
4742
+ # and Region. Use this operation to review patterns across sessions
4743
+ # before you investigate or archive an insight. The response paginates
4744
+ # the results. Use the `nextToken` parameter to retrieve additional
4745
+ # results.
4746
+ #
4747
+ # @option params [String] :application_name
4748
+ # Filters the results to Agent Insights for an application.
4749
+ #
4750
+ # @option params [String] :batch_evaluation_id
4751
+ # Filters the results to Agent Insights produced by a batch evaluation.
4752
+ #
4753
+ # @option params [String] :archive_status
4754
+ # Filters the results by archive status.
4755
+ #
4756
+ # @option params [Integer] :max_results
4757
+ # The maximum number of Agent Insight summaries to return in one
4758
+ # response. If you don't specify a value, the operation returns up to
4759
+ # 50 summaries.
4760
+ #
4761
+ # @option params [String] :next_token
4762
+ # A token to specify where to start paginating the results. This token
4763
+ # is returned in a previous response.
4764
+ #
4765
+ # @return [Types::ListAgentInsightsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4766
+ #
4767
+ # * {Types::ListAgentInsightsResponse#agent_insights #agent_insights} => Array<Types::AgentInsightSummary>
4768
+ # * {Types::ListAgentInsightsResponse#next_token #next_token} => String
4769
+ #
4770
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4771
+ #
4772
+ # @example Request syntax with placeholder values
4773
+ #
4774
+ # resp = client.list_agent_insights({
4775
+ # application_name: "AgentApplicationName",
4776
+ # batch_evaluation_id: "BatchEvaluationId",
4777
+ # archive_status: "ACTIVE", # accepts ACTIVE, ARCHIVED
4778
+ # max_results: 1,
4779
+ # next_token: "NextToken",
4780
+ # })
4781
+ #
4782
+ # @example Response structure
4783
+ #
4784
+ # resp.agent_insights #=> Array
4785
+ # resp.agent_insights[0].type #=> String, one of "FAILURE"
4786
+ # resp.agent_insights[0].name #=> String
4787
+ # resp.agent_insights[0].description #=> String
4788
+ # resp.agent_insights[0].created_at #=> Time
4789
+ # resp.agent_insights[0].affected_session_count #=> Integer
4790
+ # resp.agent_insights[0].agent_insight_id #=> String
4791
+ # resp.agent_insights[0].application_name #=> String
4792
+ # resp.agent_insights[0].batch_evaluation_id #=> String
4793
+ # resp.agent_insights[0].customer_metadata_status #=> String, one of "AVAILABLE", "CUSTOMER_KEY_UNAVAILABLE", "UNAVAILABLE"
4794
+ # resp.agent_insights[0].updated_at #=> Time
4795
+ # resp.agent_insights[0].archive_status #=> String, one of "ACTIVE", "ARCHIVED"
4796
+ # resp.agent_insights[0].last_seen_at #=> Time
4797
+ # resp.next_token #=> String
4798
+ #
4799
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ListAgentInsights AWS API Documentation
4800
+ #
4801
+ # @overload list_agent_insights(params = {})
4802
+ # @param [Hash] params ({})
4803
+ def list_agent_insights(params = {}, options = {})
4804
+ req = build_request(:list_agent_insights, params)
4805
+ req.send_request(options)
4806
+ end
4807
+
4493
4808
  # Lists all batch evaluations in the account, providing summary
4494
4809
  # information about each evaluation's status and configuration.
4495
4810
  #
@@ -4716,6 +5031,63 @@ module Aws::BedrockAgentCore
4716
5031
  req.send_request(options)
4717
5032
  end
4718
5033
 
5034
+ # Lists the generations for a dataset. AgentCore keeps a generation
5035
+ # until you delete it with `DeleteDatasetGeneration` or delete the
5036
+ # dataset. To get a generation's counts and the request it was started
5037
+ # with, call `GetDatasetGeneration`.
5038
+ #
5039
+ # @option params [required, String] :dataset_id
5040
+ # The unique identifier of the dataset.
5041
+ #
5042
+ # @option params [Integer] :max_results
5043
+ # The maximum number of results to return in the response. The default
5044
+ # is 20. If the total number of results is greater than this value, use
5045
+ # the token returned in the response in the `nextToken` field when
5046
+ # making another request to return the next batch of results.
5047
+ #
5048
+ # @option params [String] :next_token
5049
+ # If the total number of results is greater than the `maxResults` value
5050
+ # provided in the request, enter the token returned in the `nextToken`
5051
+ # field in the response in this field to return the next batch of
5052
+ # results.
5053
+ #
5054
+ # @return [Types::ListDatasetGenerationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5055
+ #
5056
+ # * {Types::ListDatasetGenerationsResponse#dataset_generations #dataset_generations} => Array<Types::DatasetGenerationSummary>
5057
+ # * {Types::ListDatasetGenerationsResponse#next_token #next_token} => String
5058
+ #
5059
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5060
+ #
5061
+ # @example Request syntax with placeholder values
5062
+ #
5063
+ # resp = client.list_dataset_generations({
5064
+ # dataset_id: "DatasetId", # required
5065
+ # max_results: 1,
5066
+ # next_token: "String",
5067
+ # })
5068
+ #
5069
+ # @example Response structure
5070
+ #
5071
+ # resp.dataset_generations #=> Array
5072
+ # resp.dataset_generations[0].generation_id #=> String
5073
+ # resp.dataset_generations[0].dataset_id #=> String
5074
+ # resp.dataset_generations[0].name #=> String
5075
+ # resp.dataset_generations[0].description #=> String
5076
+ # resp.dataset_generations[0].scenario_type #=> String, one of "FIXED", "DYNAMIC"
5077
+ # resp.dataset_generations[0].status #=> String, one of "IN_PROGRESS", "COMPLETED", "COMPLETED_WITH_ERRORS", "FAILED", "DELETING"
5078
+ # resp.dataset_generations[0].created_at #=> Time
5079
+ # resp.dataset_generations[0].completed_at #=> Time
5080
+ # resp.next_token #=> String
5081
+ #
5082
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ListDatasetGenerations AWS API Documentation
5083
+ #
5084
+ # @overload list_dataset_generations(params = {})
5085
+ # @param [Hash] params ({})
5086
+ def list_dataset_generations(params = {}, options = {})
5087
+ req = build_request(:list_dataset_generations, params)
5088
+ req.send_request(options)
5089
+ end
5090
+
4719
5091
  # Lists events in an AgentCore Memory resource based on specified
4720
5092
  # criteria. We recommend using pagination to ensure that the operation
4721
5093
  # returns quickly and successfully.
@@ -5620,6 +5992,17 @@ module Aws::BedrockAgentCore
5620
5992
  # @option params [Types::OutputConfig] :output_config
5621
5993
  # Output destination configuration.
5622
5994
  #
5995
+ # @option params [Types::DatasetExecutionConfig] :dataset_execution_config
5996
+ # The configuration for running the scenarios in a dataset against an
5997
+ # agent before evaluating the resulting sessions. When you specify this
5998
+ # field, the batch evaluation runs each scenario in the dataset against
5999
+ # the agent. It then evaluates the sessions that the agent produces. You
6000
+ # must also specify `evaluators` and a `dataSourceConfig` that uses
6001
+ # `cloudWatchLogs`. Configure `cloudWatchLogs` with the service name and
6002
+ # log groups that the agent uses for its traces. You can't specify
6003
+ # `insights` or an `onlineEvaluationConfigSource` data source with this
6004
+ # field.
6005
+ #
5623
6006
  # @return [Types::StartBatchEvaluationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5624
6007
  #
5625
6008
  # * {Types::StartBatchEvaluationResponse#batch_evaluation_id #batch_evaluation_id} => String
@@ -5722,6 +6105,18 @@ module Aws::BedrockAgentCore
5722
6105
  # result_destination: "DEDICATED_LOG_GROUP", # accepts DEDICATED_LOG_GROUP, SOURCE_LOG_GROUP
5723
6106
  # },
5724
6107
  # },
6108
+ # dataset_execution_config: {
6109
+ # dataset: { # required
6110
+ # dataset_id: "DatasetId", # required
6111
+ # dataset_version: "DatasetVersion",
6112
+ # },
6113
+ # agent_invocation: { # required
6114
+ # agent_core_runtime: {
6115
+ # agent_runtime_endpoint_arn: "AgentRuntimeEndpointArn", # required
6116
+ # request_template: "RequestTemplate",
6117
+ # },
6118
+ # },
6119
+ # },
5725
6120
  # })
5726
6121
  #
5727
6122
  # @example Response structure
@@ -6079,6 +6474,174 @@ module Aws::BedrockAgentCore
6079
6474
  req.send_request(options)
6080
6475
  end
6081
6476
 
6477
+ # Starts a dataset generation, which creates examples for an existing
6478
+ # dataset from your agent's traces. The dataset must be `ACTIVE`. Each
6479
+ # generation produces one scenario type, set by `scenarioType`. When the
6480
+ # generation finishes, AgentCore adds the examples to the dataset's
6481
+ # draft. Examples that duplicate each other, or that duplicate examples
6482
+ # already in the draft, are left out.
6483
+ #
6484
+ # A dataset can have only one generation in progress at a time. While it
6485
+ # runs, requests that change the dataset's draft or publish a version
6486
+ # are rejected with a `ConflictException`.
6487
+ #
6488
+ # AgentCore reads the traces with your credentials, so you need read
6489
+ # access to the trace log groups, and to the dataset's KMS key if the
6490
+ # dataset uses a customer managed key. The draft can hold at most 1,000
6491
+ # examples, including the examples this generation can add
6492
+ # (`maxScenarios`).
6493
+ #
6494
+ # The operation returns immediately. To track progress, call
6495
+ # `GetDatasetGeneration`.
6496
+ #
6497
+ # @option params [required, String] :dataset_id
6498
+ # The unique identifier of the dataset to add the generated examples to.
6499
+ # The dataset must be `ACTIVE`.
6500
+ #
6501
+ # @option params [required, String] :name
6502
+ # The name of the dataset generation. The generation ID starts with this
6503
+ # name.
6504
+ #
6505
+ # @option params [String] :description
6506
+ # A description of the dataset generation.
6507
+ #
6508
+ # @option params [String] :scenario_type
6509
+ # The type of scenario to generate. If you don't specify a value, the
6510
+ # generation produces `DYNAMIC` scenarios.
6511
+ #
6512
+ # @option params [required, Types::GenerationSource] :source
6513
+ # Where the generation reads sessions from, and how it selects, samples,
6514
+ # labels and redacts them.
6515
+ #
6516
+ # @option params [String] :client_token
6517
+ # A unique, case-sensitive identifier to ensure that the API request
6518
+ # completes no more than one time. If this token matches a previous
6519
+ # request, the service ignores the request, but does not return an
6520
+ # error.
6521
+ #
6522
+ # **A suitable default value is auto-generated.** You should normally
6523
+ # not need to pass this option.**
6524
+ #
6525
+ # @return [Types::StartDatasetGenerationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6526
+ #
6527
+ # * {Types::StartDatasetGenerationResponse#generation_id #generation_id} => String
6528
+ # * {Types::StartDatasetGenerationResponse#name #name} => String
6529
+ # * {Types::StartDatasetGenerationResponse#dataset_id #dataset_id} => String
6530
+ # * {Types::StartDatasetGenerationResponse#status #status} => String
6531
+ # * {Types::StartDatasetGenerationResponse#created_at #created_at} => Time
6532
+ #
6533
+ # @example Request syntax with placeholder values
6534
+ #
6535
+ # resp = client.start_dataset_generation({
6536
+ # dataset_id: "DatasetId", # required
6537
+ # name: "DatasetGenerationName", # required
6538
+ # description: "DatasetGenerationDescription",
6539
+ # scenario_type: "FIXED", # accepts FIXED, DYNAMIC
6540
+ # source: { # required
6541
+ # trace_generation: {
6542
+ # source_config: { # required
6543
+ # cloud_watch_logs: {
6544
+ # log_group_names: ["LogGroupName"],
6545
+ # log_group_name_prefixes: ["LogGroupNamePrefix"],
6546
+ # service_names: ["ServiceName"], # required
6547
+ # start_time: Time.now,
6548
+ # end_time: Time.now,
6549
+ # },
6550
+ # online_evaluation: {
6551
+ # online_evaluation_config_arn: "OnlineEvaluationConfigArn", # required
6552
+ # start_time: Time.now,
6553
+ # end_time: Time.now,
6554
+ # },
6555
+ # batch_evaluation: {
6556
+ # batch_evaluation_arn: "BatchEvaluationArn", # required
6557
+ # },
6558
+ # },
6559
+ # selection: {
6560
+ # filters: {
6561
+ # attribute_filters: [
6562
+ # {
6563
+ # key: "GenerationAttributeFilterKeyString", # required
6564
+ # operator: "Equals", # required, accepts Equals, NotEquals, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, Contains, NotContains
6565
+ # value: { # required
6566
+ # string_value: "GenerationFilterStringValue",
6567
+ # double_value: 1.0,
6568
+ # boolean_value: false,
6569
+ # },
6570
+ # },
6571
+ # ],
6572
+ # turn_count: {
6573
+ # min: 1,
6574
+ # max: 1,
6575
+ # },
6576
+ # evaluator_filters: [
6577
+ # {
6578
+ # evaluator_id: "EvaluatorId", # required
6579
+ # evaluation_dimension_name: "EvaluationDimensionName",
6580
+ # operator: "Equals", # required, accepts Equals, NotEquals, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, Contains, NotContains
6581
+ # value: { # required
6582
+ # string_value: "GenerationFilterStringValue",
6583
+ # double_value: 1.0,
6584
+ # boolean_value: false,
6585
+ # },
6586
+ # aggregation: "Min", # accepts Min, Max, Mean, AllMatch, AnyMatch
6587
+ # },
6588
+ # ],
6589
+ # },
6590
+ # identifiers: {
6591
+ # session_ids: ["SessionId"],
6592
+ # trace_ids: ["TraceId"],
6593
+ # },
6594
+ # },
6595
+ # sampling: {
6596
+ # max_scenarios: 1,
6597
+ # },
6598
+ # ground_truth: {
6599
+ # fields: ["expected_response"], # required, accepts expected_response, expected_trajectory
6600
+ # quality_filters: [
6601
+ # {
6602
+ # evaluator_id: "EvaluatorId", # required
6603
+ # evaluation_dimension_name: "EvaluationDimensionName",
6604
+ # operator: "Equals", # required, accepts Equals, NotEquals, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, Contains, NotContains
6605
+ # value: { # required
6606
+ # string_value: "GenerationFilterStringValue",
6607
+ # double_value: 1.0,
6608
+ # boolean_value: false,
6609
+ # },
6610
+ # aggregation: "Min", # accepts Min, Max, Mean, AllMatch, AnyMatch
6611
+ # },
6612
+ # ],
6613
+ # },
6614
+ # redaction_configuration: {
6615
+ # identifiers: ["ADDRESS"], # accepts ADDRESS, AWS_SECRET_KEY, BANK_ACCOUNT_NUMBER_DE, BANK_ACCOUNT_NUMBER_ES, BANK_ACCOUNT_NUMBER_FR, BANK_ACCOUNT_NUMBER_GB, BANK_ACCOUNT_NUMBER_IT, BANK_ACCOUNT_NUMBER_US, CEP_CODE_BR, CNPJ_BR, CPF_CODE_BR, CREDIT_CARD_EXPIRATION, CREDIT_CARD_MAGNETIC_STRIPE, CREDIT_CARD_NUMBER, CREDIT_CARD_SECURITY_CODE, DATE_OF_BIRTH, DRIVERS_LICENSE_AT, DRIVERS_LICENSE_AU, DRIVERS_LICENSE_BE, DRIVERS_LICENSE_BG, DRIVERS_LICENSE_CA, DRIVERS_LICENSE_CY, DRIVERS_LICENSE_CZ, DRIVERS_LICENSE_DE, DRIVERS_LICENSE_DK, DRIVERS_LICENSE_EE, DRIVERS_LICENSE_ES, DRIVERS_LICENSE_FI, DRIVERS_LICENSE_FR, DRIVERS_LICENSE_GB, DRIVERS_LICENSE_GR, DRIVERS_LICENSE_HR, DRIVERS_LICENSE_HU, DRIVERS_LICENSE_IE, DRIVERS_LICENSE_IT, DRIVERS_LICENSE_LT, DRIVERS_LICENSE_LU, DRIVERS_LICENSE_LV, DRIVERS_LICENSE_MT, DRIVERS_LICENSE_NL, DRIVERS_LICENSE_PL, DRIVERS_LICENSE_PT, DRIVERS_LICENSE_RO, DRIVERS_LICENSE_SE, DRIVERS_LICENSE_SI, DRIVERS_LICENSE_SK, DRIVERS_LICENSE_US, DRUG_ENFORCEMENT_AGENCY_NUMBER_US, ELECTORAL_ROLL_NUMBER_GB, EMAIL_ADDRESS, HEALTH_INSURANCE_CARD_NUMBER_EU, HEALTH_INSURANCE_CLAIM_NUMBER_US, HEALTH_INSURANCE_NUMBER_FR, HEALTHCARE_PROCEDURE_CODE_US, INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_US, INSEE_CODE_FR, IP_ADDRESS, LAT_LONG, MEDICARE_BENEFICIARY_NUMBER_US, NAME, NATIONAL_DRUG_CODE_US, NATIONAL_IDENTIFICATION_NUMBER_DE, NATIONAL_IDENTIFICATION_NUMBER_ES, NATIONAL_IDENTIFICATION_NUMBER_IT, NATIONAL_INSURANCE_NUMBER_GB, NATIONAL_PROVIDER_ID_US, NHS_NUMBER_GB, NIE_NUMBER_ES, NIF_NUMBER_ES, OPEN_SSH_PRIVATE_KEY, PASSPORT_NUMBER_CA, PASSPORT_NUMBER_DE, PASSPORT_NUMBER_ES, PASSPORT_NUMBER_FR, PASSPORT_NUMBER_GB, PASSPORT_NUMBER_IT, PASSPORT_NUMBER_US, PERMANENT_RESIDENCE_NUMBER_CA, PERSONAL_HEALTH_NUMBER_CA, PGP_PRIVATE_KEY, PHONE_NUMBER_BR, PHONE_NUMBER_DE, PHONE_NUMBER_ES, PHONE_NUMBER_FR, PHONE_NUMBER_GB, PHONE_NUMBER_IT, PHONE_NUMBER_US, PKCS_PRIVATE_KEY, POSTAL_CODE_CA, PUTTY_PRIVATE_KEY, RG_NUMBER_BR, SOCIAL_INSURANCE_NUMBER_CA, SSN_ES, SSN_US, TAX_ID_DE, TAX_ID_ES, TAX_ID_FR, TAX_ID_GB, VEHICLE_IDENTIFICATION_NUMBER, ZIP_CODE_US
6616
+ # custom_data_identifiers: [
6617
+ # {
6618
+ # name: "CustomDataIdentifierNameString", # required
6619
+ # regex: "CustomDataIdentifierRegexString", # required
6620
+ # },
6621
+ # ],
6622
+ # },
6623
+ # },
6624
+ # },
6625
+ # client_token: "ClientToken",
6626
+ # })
6627
+ #
6628
+ # @example Response structure
6629
+ #
6630
+ # resp.generation_id #=> String
6631
+ # resp.name #=> String
6632
+ # resp.dataset_id #=> String
6633
+ # resp.status #=> String, one of "IN_PROGRESS", "COMPLETED", "COMPLETED_WITH_ERRORS", "FAILED", "DELETING"
6634
+ # resp.created_at #=> Time
6635
+ #
6636
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/StartDatasetGeneration AWS API Documentation
6637
+ #
6638
+ # @overload start_dataset_generation(params = {})
6639
+ # @param [Hash] params ({})
6640
+ def start_dataset_generation(params = {}, options = {})
6641
+ req = build_request(:start_dataset_generation, params)
6642
+ req.send_request(options)
6643
+ end
6644
+
6082
6645
  # Starts a memory extraction job that processes events that failed
6083
6646
  # extraction previously in an AgentCore Memory resource and produces
6084
6647
  # structured memory records. When earlier extraction attempts have left
@@ -6692,6 +7255,51 @@ module Aws::BedrockAgentCore
6692
7255
  req.send_request(options)
6693
7256
  end
6694
7257
 
7258
+ # Updates the archive status of an Amazon Bedrock AgentCore Agent
7259
+ # Insight.
7260
+ #
7261
+ # @option params [required, String] :application_name
7262
+ # The application that the Agent Insight belongs to.
7263
+ #
7264
+ # @option params [required, String] :agent_insight_id
7265
+ # The unique identifier of the Agent Insight to update.
7266
+ #
7267
+ # @option params [required, String] :archive_status
7268
+ # The archive status to apply to the Agent Insight. Valid values:
7269
+ #
7270
+ # * `ACTIVE` - Marks the insight as active.
7271
+ #
7272
+ # * `ARCHIVED` - Marks the insight as archived.
7273
+ #
7274
+ # @return [Types::UpdateAgentInsightResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7275
+ #
7276
+ # * {Types::UpdateAgentInsightResponse#agent_insight_id #agent_insight_id} => String
7277
+ # * {Types::UpdateAgentInsightResponse#archive_status #archive_status} => String
7278
+ # * {Types::UpdateAgentInsightResponse#updated_at #updated_at} => Time
7279
+ #
7280
+ # @example Request syntax with placeholder values
7281
+ #
7282
+ # resp = client.update_agent_insight({
7283
+ # application_name: "AgentApplicationName", # required
7284
+ # agent_insight_id: "AgentInsightId", # required
7285
+ # archive_status: "ACTIVE", # required, accepts ACTIVE, ARCHIVED
7286
+ # })
7287
+ #
7288
+ # @example Response structure
7289
+ #
7290
+ # resp.agent_insight_id #=> String
7291
+ # resp.archive_status #=> String, one of "ACTIVE", "ARCHIVED"
7292
+ # resp.updated_at #=> Time
7293
+ #
7294
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/UpdateAgentInsight AWS API Documentation
7295
+ #
7296
+ # @overload update_agent_insight(params = {})
7297
+ # @param [Hash] params ({})
7298
+ def update_agent_insight(params = {}, options = {})
7299
+ req = build_request(:update_agent_insight, params)
7300
+ req.send_request(options)
7301
+ end
7302
+
6695
7303
  # Updates a browser stream. To use this operation, you must have
6696
7304
  # permissions to perform the bedrock:UpdateBrowserStream action.
6697
7305
  #
@@ -6769,7 +7377,7 @@ module Aws::BedrockAgentCore
6769
7377
  tracer: tracer
6770
7378
  )
6771
7379
  context[:gem_name] = 'aws-sdk-bedrockagentcore'
6772
- context[:gem_version] = '1.69.0'
7380
+ context[:gem_version] = '1.71.0'
6773
7381
  Seahorse::Client::Request.new(handlers, context)
6774
7382
  end
6775
7383