Skip to content

BedrockAgentCoreClient.start_batch_evaluation

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

Model summary (excerpt): Starts a batch evaluation job that evaluates agent performance across multiple sessions. Batch evaluations pull agent traces from CloudWatch Logs or an existing online evaluation configuration and run specified evaluators and insights against them.

Install and imports

python -m pip install "rboto[bedrock-agentcore]==0.4.0"
from rboto import BedrockAgentCoreClient
from collections.abc import Sequence
from rboto_bedrock_agentcore.types import (
    DataSourceConfig,
    DatasetExecutionConfig,
    EvaluationMetadata,
    Evaluator,
    Insight,
    OutputConfig,
    StartBatchEvaluationOutput,
)

Signature

async def start_batch_evaluation(
    *,
    batch_evaluation_name: str,
    data_source_config: DataSourceConfig,
    evaluators: Sequence[Evaluator] | None = None,
    insights: Sequence[Insight] | None = None,
    client_token: str | None = None,
    evaluation_metadata: EvaluationMetadata | None = None,
    tags: dict[str, str] | None = None,
    kms_key_arn: str | None = None,
    description: str | None = None,
    output_config: OutputConfig | None = None,
    dataset_execution_config: DatasetExecutionConfig | None = None,
) -> StartBatchEvaluationOutput: ...

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)
batch_evaluation_name Yes The name of the batch evaluation. Must be unique within your account.
data_source_config Yes The data source configuration that specifies where to pull agent session traces from for evaluation.
evaluators No The list of evaluators to apply during the batch evaluation. Can include both built-in evaluators and custom evaluators. Maximum of 10 evaluators.
insights No The list of insight analyses to run against sessions during the batch evaluation. Maximum of 10 insights.
client_token No A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
evaluation_metadata No Optional metadata for the evaluation, including session-specific ground truth data and test scenario identifiers.
tags No A map of tag keys and values to associate with the batch evaluation.
kms_key_arn No The ARN of the KMS key used to encrypt evaluation data. If provided, customer data is encrypted at rest with the specified key.
description No The description of the batch evaluation.
output_config No
dataset_execution_config No The configuration for running the scenarios in a dataset against an agent before evaluating the resulting sessions. When you specify this field, the batch evaluation runs each scenario in the dataset against the agent. It then evaluates the sessions that the agent produces. You must also specify evaluators and a dataSourceConfig that uses cloudWatchLogs . Configure cloudWatchLogs with the...

Output

StartBatchEvaluationOutput.

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
batch_evaluation_id str Always present —
batch_evaluation_arn str Always present —
batch_evaluation_name str Always present —
evaluators list[EvaluatorOutput] | None Always present EvaluatorOutput
insights list[InsightOutput] | None Always present InsightOutput
status BatchEvaluationStatusOutput Always present BatchEvaluationStatusOutput
created_at str Always present —
output_config OutputConfigOutput | None Always present OutputConfigOutput
tags dict[str, str] | None Always present —
kms_key_arn str | None Always present —
description str | None Always present —

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

DataSourceConfig, DatasetExecutionConfig, EvaluationMetadata, Evaluator, Insight, OutputConfig, StartBatchEvaluationOutput

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.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ServiceQuotaExceededError, ThrottlingError, UnauthorizedError, ValidationError.

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

Service guide · Pinned model