Skip to content

BedrockAgentCoreControlClient.create_online_evaluation_config

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

Model summary (excerpt): Creates an online evaluation configuration for continuous monitoring of agent performance. Online evaluation automatically samples live traffic from CloudWatch logs at specified rates and applies evaluators to assess agent quality in production.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
    ClusteringConfig,
    CreateOnlineEvaluationConfigOutput,
    DataSourceConfig,
    EvaluatorReference,
    Insight,
    OutputConfig,
    Rule,
)

Signature

async def create_online_evaluation_config(
    *,
    online_evaluation_config_name: str,
    rule: Rule,
    data_source_config: DataSourceConfig,
    evaluation_execution_role_arn: str,
    enable_on_create: bool,
    client_token: str | None = None,
    description: str | None = None,
    evaluators: Sequence[EvaluatorReference] | None = None,
    insights: Sequence[Insight] | None = None,
    clustering_config: ClusteringConfig | None = None,
    output_config: OutputConfig | None = None,
    tags: dict[str, str] | None = None,
) -> CreateOnlineEvaluationConfigOutput: ...

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)
online_evaluation_config_name Yes The name of the online evaluation configuration. Must be unique within your account.
rule Yes The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.
data_source_config Yes The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.
evaluation_execution_role_arn Yes The Amazon Resource Name (ARN) of the IAM role that grants permissions to read from CloudWatch logs, write evaluation results, and invoke Amazon Bedrock models for evaluation. If the configuration references evaluators encrypted with a customer managed KMS key, this role must also have kms:Decrypt permission on the KMS key. The service validates this permission at configuration creation time....
enable_on_create Yes Whether to enable the online evaluation configuration immediately upon creation. If true, evaluation begins automatically.
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 online evaluation configuration that explains its monitoring purpose and scope.
evaluators No The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with CreateEvaluator .
insights No The list of insight types to run against agent sessions.
clustering_config No Configuration for periodic batch evaluation clustering of insight results.
output_config No
tags No A map of tag keys and values to assign to an AgentCore Online Evaluation Config. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.

Output

CreateOnlineEvaluationConfigOutput.

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
online_evaluation_config_arn str Always present —
online_evaluation_config_id str Always present —
created_at str Always present —
output_config OutputConfigOutput | None Always present OutputConfigOutput
status OnlineEvaluationConfigStatusOutput Always present OnlineEvaluationConfigStatusOutput
execution_status OnlineEvaluationExecutionStatusOutput Always present OnlineEvaluationExecutionStatusOutput
failure_reason 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.

ClusteringConfig, CreateOnlineEvaluationConfigOutput, DataSourceConfig, EvaluatorReference, Insight, OutputConfig, Rule

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