create_online_evaluation_config
async
¶
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[AsyncBedrockAgentCoreControlClientConfig] = 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/async_bedrock_agent_core_control.py
9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 | |