Overview
After creating evaluations (viacreate() or run()), they start in PENDING status while the evaluation engine processes them. Use wait_for() to block until all evaluations have completed.
An evaluation is considered complete when its status is anything other than PENDING. This includes:
SUCCESS— evaluation finished successfullyFAILED— evaluation encountered an errorSKIPPED— evaluation was skippedPENDING_HUMAN— evaluation is waiting for human review (no further automated processing)
Returns
Returns a list of Evaluation objects in the same order as the inputevaluation_ids, once all have left PENDING status.
Examples
Basic usage — create and wait:run() and wait_for():
Parameters
A list of evaluation IDs to wait for. All must be valid evaluation IDs.
Maximum number of seconds to wait before raising a
TimeoutError. Defaults to 300 (5 minutes).Number of seconds to sleep between polling cycles. Defaults to 5.
Errors
| Error | Cause |
|---|---|
ValueError | evaluation_ids is empty or contains an invalid ID |
TimeoutError | The timeout was exceeded before all evaluations left PENDING status. The error message includes the IDs that are still pending. |