BedrockAgentCoreControlClient.update_evaluator
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Updates a custom evaluator's configuration, description, or evaluation level. Built-in evaluators cannot be updated. The evaluator must not be locked for modification.
Install and imports
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
EvaluatorConfig,
EvaluatorLevel,
UpdateEvaluatorOutput,
)
Signature
async def update_evaluator(
*,
evaluator_id: str,
client_token: str | None = None,
description: str | None = None,
evaluator_config: EvaluatorConfig | None = None,
level: EvaluatorLevel | None = None,
kms_key_arn: str | None = None,
) -> UpdateEvaluatorOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
evaluator_id |
Yes | The unique identifier of the evaluator to update. |
client_token |
No | A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency . |
description |
No | The updated description of the evaluator. |
evaluator_config |
No | The updated configuration for the evaluator. Specify either LLM-as-a-Judge settings with instructions, rating scale, and model configuration, or code-based settings with a customer-managed Lambda function. |
level |
No | The updated evaluation level ( TOOL_CALL , TRACE , or SESSION ) that determines the scope of evaluation. |
kms_key_arn |
No | The Amazon Resource Name (ARN) of a customer managed KMS key to use for encrypting sensitive evaluator data. Specify a new key ARN to rotate the encryption key, or specify a key ARN to add encryption to an evaluator that was previously created without one. When you rotate to a new key, the service decrypts the existing data with the old key and re-encrypts it with the new key. Only symmetric... |
Output
UpdateEvaluatorOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
evaluator_arn |
str |
Always present | — |
evaluator_id |
str |
Always present | — |
updated_at |
str |
Always present | — |
status |
EvaluatorStatusOutput |
Always present | EvaluatorStatusOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
EvaluatorConfig, EvaluatorLevel, UpdateEvaluatorOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore_control.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.