start_batch_evaluation
async
¶
start_batch_evaluation(
batch_evaluation_name: BatchEvaluationName,
data_source_config: DataSourceConfig,
*,
config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = None,
evaluators: Optional[EvaluatorList] = None,
insights: Optional[InsightList] = None,
client_token: Optional[ClientToken] = None,
evaluation_metadata: Optional[EvaluationMetadata] = None,
tags: Optional[TagsMap] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
description: Optional[BatchEvaluationDescription] = None,
output_config: Optional[OutputConfig] = None,
) -> StartBatchEvaluationResponse
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.
Parameters:
-
batch_evaluation_name(BatchEvaluationName) –The name of the batch evaluation. Must be unique within your account.
-
evaluators(Optional[EvaluatorList], default:None) –The list of evaluators to apply during the batch evaluation. Can include both built-in evaluators and custom evaluators. Maximum of 10 evaluators.
-
insights(Optional[InsightList], default:None) –The list of insight analyses to run against sessions during the batch evaluation. Maximum of 10 insights.
-
data_source_config(DataSourceConfig) –The data source configuration that specifies where to pull agent session traces from for evaluation.
-
client_token(Optional[ClientToken], default:None) –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(Optional[EvaluationMetadata], default:None) –Optional metadata for the evaluation, including session-specific ground truth data and test scenario identifiers.
-
tags(Optional[TagsMap], default:None) –A map of tag keys and values to associate with the batch evaluation.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The ARN of the KMS key used to encrypt evaluation data. If provided, customer data is encrypted at rest with the specified key.
-
description(Optional[BatchEvaluationDescription], default:None) –The description of the batch evaluation.
Raises:
-
AccessDeniedException–The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
-
ConflictException–The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
-
InternalServerException–The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
-
ServiceQuotaExceededException–The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
-
ThrottlingException–The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
-
UnauthorizedException–This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
-
ValidationException–The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore/_services/async_bedrock_agent_core.py
3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 | |