EXECUTE_AI_EVALUATION
functionnot supportedAI & MLStart, retrieve the status of, cancel, or delete a Cortex Agent evaluation run. For more information on Cortex Agent evaluations, see Cortex Agent evaluations.
Syntax
EXECUTE_AI_EVALUATION( <evaluation_job> , <run_parameters> , <config_file_path> )
Parameters
| Name | Required | Description |
|---|---|---|
evaluation_job | required | One of the following values: ‘START’: Starts an evaluation ‘STATUS’: Retrieves the status of an evaluation ‘CANCEL’: Cancels an in-progress evaluation run ‘DELETE’: Deletes an evaluation run |
run_parameters | required | A SQL OBJECT value that contains the following key: run_name: The name of the run to perform the evaluation_job operation on. |
config_file_path | required | A stage file path pointing to an agent evaluation configuration. This path can’t be a signed URL. For the full configuration YAML specification, see Agent Evaluation YAML specification. |
Returns
The return value of this function depends on the evaluation_job: - ‘START’ returns a single string message, indicating whether the SQL execution succeeded or failed. - ‘STATUS’ returns a table containing information on the current state of the evaluation run. - ‘CANCEL’ returns a single string message, indicating whether the SQL execution succeeded or failed. - ‘DELETE’ returns a single string message, indicating whether the SQL execution succeeded or failed. The table returned by the ‘STATUS’ evaluation job has the following columns: Values in the STATUS column are one of: Run status
Access control requirements
For the full access control requirements to conduct a Cortex Agent evaluation, see Cortex Agent evaluations – Access control requirements.
See also
- SYSTEM$CREATE_EVALUATION_DATASET
- GET_AI_RECORD_TRACE (SNOWFLAKE.LOCAL)
- GET_AI_EVALUATION_DATA (SNOWFLAKE.LOCAL)
- GET_AI_OBSERVABILITY_LOGS (SNOWFLAKE.LOCAL)