Skip to main content

batch_evaluations

Creates, updates, deletes, gets or lists a batch_evaluations resource.

Overview

Namebatch_evaluations
TypeResource
Idaws.bedrock_agentcore.batch_evaluations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
batch_evaluation_arnstringThe Amazon Resource Name (ARN) of the batch evaluation.
batch_evaluation_idstringThe unique identifier for a batch evaluation. (pattern: <code>[a-zA-Z][a-zA-Z0-9-_]{0,99}-[a-zA-Z0-9]{10}</code>)
batch_evaluation_namestringThe name of the batch evaluation. (pattern: <code>[a-zA-Z][a-zA-Z0-9_]{0,47}</code>)
created_atstring (date-time)The timestamp when the batch evaluation was created.
data_source_configobjectThe data source configuration specifying where agent traces are pulled from.
descriptionstringThe description of the batch evaluation.
error_detailsarrayThe error details if the batch evaluation encountered failures.
evaluation_resultsobjectThe aggregated evaluation results, including session completion counts and evaluator score summaries.
evaluatorsarrayThe list of evaluators applied during the batch evaluation.
execution_summary_resultobjectThe execution summary clustering results from insights, containing grouped execution patterns across evaluated sessions.
failure_analysis_resultobjectThe failure analysis results from insights, containing categorized failure clusters with root causes and recommendations.
insightsarrayThe list of insight analyses applied during the batch evaluation.
kms_key_arnstringThe ARN of the KMS key used to encrypt evaluation data. (pattern: <code>arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}</code>)
output_configobjectThe output configuration specifying where evaluation results are written.
statusstringThe current status of the batch evaluation. (PENDING, IN_PROGRESS, COMPLETED, COMPLETED_WITH_ERRORS, FAILED, STOPPING, STOPPED, DELETING)
updated_atstring (date-time)The timestamp when the batch evaluation was last updated.
user_intent_resultobjectThe user intent clustering results from insights, containing grouped user intents across evaluated sessions.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_batch_evaluationselectbatch_evaluation_id, regionRetrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.
list_batch_evaluationsselectregionmaxResults, nextTokenLists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.
delete_batch_evaluationdeletebatch_evaluation_id, regionDeletes a batch evaluation and its associated results.
start_batch_evaluationexecregion, batchEvaluationName, dataSourceConfigStarts a batch evaluation job that evaluates agent performance across multiple sessions. Batch evaluations pull agent traces from CloudWatch Logs or an existing online evaluation configuration and run specified evaluators and insights against them.
stop_batch_evaluationexecbatch_evaluation_id, regionStops a running batch evaluation. Sessions that have already been evaluated retain their results.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
batch_evaluation_idstringThe unique identifier of the batch evaluation to stop.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.
nextTokenstringIf the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

SELECT examples

Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.

SELECT
batch_evaluation_arn,
batch_evaluation_id,
batch_evaluation_name,
created_at,
data_source_config,
description,
error_details,
evaluation_results,
evaluators,
execution_summary_result,
failure_analysis_result,
insights,
kms_key_arn,
output_config,
status,
updated_at,
user_intent_result
FROM aws.bedrock_agentcore.batch_evaluations
WHERE batch_evaluation_id = '{{ batch_evaluation_id }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes a batch evaluation and its associated results.

DELETE FROM aws.bedrock_agentcore.batch_evaluations
WHERE batch_evaluation_id = '{{ batch_evaluation_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Starts a batch evaluation job that evaluates agent performance across multiple sessions. Batch evaluations pull agent traces from CloudWatch Logs or an existing online evaluation configuration and run specified evaluators and insights against them.

EXEC aws.bedrock_agentcore.batch_evaluations.start_batch_evaluation
@region='{{ region }}' --required
@@json=
'{
"batchEvaluationName": "{{ batchEvaluationName }}",
"evaluators": "{{ evaluators }}",
"insights": "{{ insights }}",
"dataSourceConfig": "{{ dataSourceConfig }}",
"clientToken": "{{ clientToken }}",
"evaluationMetadata": "{{ evaluationMetadata }}",
"tags": "{{ tags }}",
"kmsKeyArn": "{{ kmsKeyArn }}",
"description": "{{ description }}"
}'
;