Update evaluator
The UpdateEvaluator API modifies an existing custom evaluator’s configuration, description, or evaluation level. This asynchronous operation is only allowed on unlocked evaluators.
Modification lock protection: Updates are not allowed if the evaluator has been used by any enabled evaluation configuration.
Rating scale changes: You can change ratingScale between numerical, categorical, and multiDimensional, and add, remove, or edit dimensions of a multi-dimension evaluator. A new multi-dimension scale is validated the same way as on create. If you change the evaluation level without resending ratingScale, the stored dimension instructions are checked against the new level’s placeholders.
The API returns immediately with updated metadata. Monitor the evaluator status to confirm changes are applied successfully using the GetEvaluator API.
Code samples for AgentCore CLI, AgentCore SDK, and AWS SDK
The following code samples demonstrate how to update evaluators using different development approaches. Choose the method that best fits your development environment and preferences.
Example
Console
Modify your custom evaluator settings using the console’s editing interface, which provides form validation and guided configuration options.
To update a custom evaluator
-
Open the Amazon Bedrock AgentCore console.
-
In the navigation pane, under Resources, choose Evaluations.
-
Choose Custom evaluators next to Evaluation configurations.
-
In the Custom evaluators card, view the table that lists the custom evaluators you have created.
-
Choose one of the following methods to update the custom evaluator:
-
Choose the custom evaluator name to view its details, then choose Edit in the upper right of the details page.
-
Select the custom evaluator so that it is highlighted, then choose Edit at the top of the Custom evaluators card.
Note
If the evaluator is in use in any online evaluation, it cannot be updated. Instead, you can duplicate the evaluator and update the cloned version.
-
-
Update the fields as needed.
-
Choose Update evaluator to save the changes.