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.
The API returns immediately with updated metadata. Monitor the evaluator status to
confirm changes are applied successfully using the GetEvaluator API.
Code samples for Starter Toolkit, 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.
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, choose Evaluation.
-
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.