create_online_evaluation_config
¶
create_online_evaluation_config(
online_evaluation_config_name: EvaluationConfigName,
rule: Rule,
data_source_config: DataSourceConfig,
evaluation_execution_role_arn: RoleArn,
enable_on_create: bool,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[EvaluationConfigDescription] = None,
evaluators: Optional[EvaluatorList] = None,
insights: Optional[InsightList] = None,
clustering_config: Optional[ClusteringConfig] = None,
output_config: Optional[OutputConfig] = None,
tags: Optional[TagsMap] = None,
) -> CreateOnlineEvaluationConfigResponse
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.
Parameters:
-
client_token(Optional[ClientToken], default:None) –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.
-
online_evaluation_config_name(EvaluationConfigName) –The name of the online evaluation configuration. Must be unique within your account.
-
description(Optional[EvaluationConfigDescription], default:None) –The description of the online evaluation configuration that explains its monitoring purpose and scope.
-
rule(Rule) –The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.
-
data_source_config(DataSourceConfig) –The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.
-
evaluators(Optional[EvaluatorList], default:None) –The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with
CreateEvaluator. -
insights(Optional[InsightList], default:None) –The list of insight types to run against agent sessions.
-
clustering_config(Optional[ClusteringConfig], default:None) –Configuration for periodic batch evaluation clustering of insight results.
-
evaluation_execution_role_arn(RoleArn) –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:Decryptpermission on the KMS key. The service validates this permission at configuration creation time. For more information, see Encryption at rest for AgentCore Evaluations. -
enable_on_create(bool) –Whether to enable the online evaluation configuration immediately upon creation. If true, evaluation begins automatically.
-
tags(Optional[TagsMap], default:None) –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.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 | |