Skip to main content

evaluators

Creates, updates, deletes, gets or lists an evaluators resource.

Overview

Nameevaluators
TypeResource
Idaws.bedrock_agentcore_control.evaluators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp when the evaluator was created.
descriptionstringThe description of the evaluator.
evaluator_arnstringThe Amazon Resource Name (ARN) of the evaluator. (pattern: <code>arn:aws[a-zA-Z-]:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:evaluator/[a-zA-Z][a-zA-Z0-9-_]{0,99}-[a-zA-Z0-9]{10}$|^arn:aws[a-zA-Z-]:bedrock-agentcore:::evaluator/(Builtin|ThirdParty).[a-zA-Z0-9._-]+</code>)
evaluator_configobjectThe configuration that defines how an evaluator assesses agent performance, including the evaluation method and parameters.
evaluator_idstringThe unique identifier of the evaluator. (pattern: <code>(Builtin.[a-zA-Z0-9.-]+|ThirdParty.[a-zA-Z0-9-]+.[a-zA-Z0-9_-]+|[a-zA-Z][a-zA-Z0-9-_]{0,99}-[a-zA-Z0-9]{10})</code>)
evaluator_namestringThe name of the evaluator. (pattern: <code>(Builtin.[a-zA-Z0-9.-]+|ThirdParty.[a-zA-Z0-9-]+.[a-zA-Z0-9_-]+|[a-zA-Z][a-zA-Z0-9_]{0,47})</code>)
evaluator_typestringThe kind of evaluator resource. Valid values: Builtin – An Amazon Web Services-managed global evaluator. ThirdParty – An Amazon Web Services-managed global evaluator from a third-party provider. Custom – A customer-created evaluator. CustomCode – A customer-created code-based evaluator. CustomDerived – A customer-created evaluator derived from an existing base evaluator. (Builtin, ThirdParty, Custom, CustomCode, CustomDerived)
kms_key_arnstringThe Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the evaluator's sensitive data. This field is only present for evaluators encrypted with a customer managed key. (pattern: <code>arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}</code>)
levelstringThe evaluation level (TOOL_CALL, TRACE, or SESSION) that determines the scope of evaluation. (TOOL_CALL, TRACE, SESSION)
locked_for_modificationbooleanWhether the evaluator is locked for modification due to being referenced by active online evaluation configurations.
providerstringThe source of the evaluator's logic: Amazon Web Services, a third-party library, or you. (AWS, DeepEval, AutoEval, Custom)
statusstringThe current status of the evaluator. (ACTIVE, CREATING, CREATE_FAILED, UPDATING, UPDATE_FAILED, DELETING)
updated_atstring (date-time)The timestamp when the evaluator was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_evaluatorselectevaluator_id, regionincludedDataRetrieves detailed information about an evaluator, including its configuration, status, and metadata. Works with both built-in and custom evaluators.
list_evaluatorsselectregionnextToken, maxResultsLists all available evaluators, including both builtin evaluators provided by the service and custom evaluators created by the user.
create_evaluatorinsertregion, evaluatorName, evaluatorConfig, levelCreates a custom evaluator for agent quality assessment. Custom evaluators can use either LLM-as-a-Judge configurations with user-defined prompts, rating scales, and model settings, or code-based configurations with customer-managed Lambda functions to evaluate agent performance at tool call, trace, or session levels.
update_evaluatorupdateevaluator_id, regionUpdates a custom evaluator's configuration, description, or evaluation level. Built-in evaluators cannot be updated. The evaluator must not be locked for modification.
delete_evaluatordeleteevaluator_id, regionDeletes a custom evaluator. Builtin evaluators cannot be deleted. The evaluator must not be referenced by any active online evaluation configurations.

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
evaluator_idstringThe unique identifier of the evaluator to delete.
regionstringAWS region (default: us-east-1)
includedDatastringControls which data is returned in the response. ALL_DATA (default) returns the full evaluator including decrypted instructions and rating scale. For evaluators encrypted with a customer managed KMS key, this requires kms:Decrypt permission on the key. METADATA_ONLY returns evaluator metadata and model configuration without instructions or rating scale, and does not require any KMS permissions.
maxResultsintegerThe maximum number of evaluators to return in a single response.
nextTokenstringThe pagination token from a previous request to retrieve the next page of results.

SELECT examples

Retrieves detailed information about an evaluator, including its configuration, status, and metadata. Works with both built-in and custom evaluators.

SELECT
created_at,
description,
evaluator_arn,
evaluator_config,
evaluator_id,
evaluator_name,
evaluator_type,
kms_key_arn,
level,
locked_for_modification,
provider,
status,
updated_at
FROM aws.bedrock_agentcore_control.evaluators
WHERE evaluator_id = '{{ evaluator_id }}' -- required
AND region = '{{ region }}' -- required
AND includedData = '{{ includedData }}'
;

INSERT examples

Creates a custom evaluator for agent quality assessment. Custom evaluators can use either LLM-as-a-Judge configurations with user-defined prompts, rating scales, and model settings, or code-based configurations with customer-managed Lambda functions to evaluate agent performance at tool call, trace, or session levels.

INSERT INTO aws.bedrock_agentcore_control.evaluators (
clientToken,
evaluatorName,
description,
evaluatorConfig,
level,
kmsKeyArn,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ evaluatorName }}' /* required */,
'{{ description }}',
'{{ evaluatorConfig }}' /* required */,
'{{ level }}' /* required */,
'{{ kmsKeyArn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
created_at,
evaluator_arn,
evaluator_id,
status
;

UPDATE examples

Updates a custom evaluator's configuration, description, or evaluation level. Built-in evaluators cannot be updated. The evaluator must not be locked for modification.

UPDATE aws.bedrock_agentcore_control.evaluators
SET
clientToken = '{{ clientToken }}',
description = '{{ description }}',
evaluatorConfig = '{{ evaluatorConfig }}',
level = '{{ level }}',
kmsKeyArn = '{{ kmsKeyArn }}'
WHERE
evaluator_id = '{{ evaluator_id }}' --required
AND region = '{{ region }}' --required
RETURNING
evaluator_arn,
evaluator_id,
status,
updated_at;

DELETE examples

Deletes a custom evaluator. Builtin evaluators cannot be deleted. The evaluator must not be referenced by any active online evaluation configurations.

DELETE FROM aws.bedrock_agentcore_control.evaluators
WHERE evaluator_id = '{{ evaluator_id }}' --required
AND region = '{{ region }}' --required
;