EXECUTE_AI_EVALUATION

functionnot supportedAI & ML

docs.snowflake.com ↗

System functions

Start, 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

NameRequiredDescription
evaluation_jobrequiredOne 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_parametersrequiredA SQL OBJECT value that contains the following key: run_name: The name of the run to perform the evaluation_job operation on.
config_file_pathrequiredA 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

Referenced by