Skip to content

BedrockAgentCoreControlClient.create_evaluator

rboto-bedrock-agentcore-control==0.4.0 · Service index · Types

Model summary (excerpt): 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.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
    CreateEvaluatorOutput,
    EvaluatorConfig,
    EvaluatorLevel,
)

Signature

async def create_evaluator(
    *,
    evaluator_name: str,
    evaluator_config: EvaluatorConfig,
    level: EvaluatorLevel,
    client_token: str | None = None,
    description: str | None = None,
    kms_key_arn: str | None = None,
    tags: dict[str, str] | None = None,
) -> CreateEvaluatorOutput: ...

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_name Yes The name of the evaluator. Must be unique within your account.
evaluator_config Yes The 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 Yes The evaluation level that determines the scope of evaluation. Valid values are TOOL_CALL for individual tool invocations, TRACE for single request-response interactions, or SESSION for entire conversation sessions.
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 description of the evaluator that explains its purpose and evaluation criteria.
kms_key_arn No The Amazon Resource Name (ARN) of a customer managed KMS key to use for encrypting sensitive evaluator data, including instructions and rating scale. If you don't specify a KMS key, the evaluator data is encrypted with an Amazon Web Services owned key. Only symmetric encryption KMS keys are supported. For more information, see Encryption at rest for AgentCore Evaluations .
tags No A map of tag keys and values to assign to an AgentCore Evaluator. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.

Output

CreateEvaluatorOutput.

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 —
created_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.

CreateEvaluatorOutput, EvaluatorConfig, EvaluatorLevel

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, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model