The
ax tasks commands are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.ax tasks commands let you create and manage evaluation tasks and their runs on the Arize platform. Tasks automatically score spans in a project or evaluate experiment results using your LLM-as-judge evaluators.
ax tasks list
List evaluation tasks, optionally filtered by space, project, dataset, or type.
Examples:
ax tasks create
Create a new task. Dispatches internally based on --task-type.
For evaluation tasks (TEMPLATE_EVALUATION or CODE_EVALUATION), either --project or --dataset must be provided, but not both. Run-experiment tasks (run_experiment) require --dataset and --run-configuration.
Evaluators JSON format:
ax tasks create-evaluation
Create a new evaluation task (TEMPLATE_EVALUATION or CODE_EVALUATION). Requires --name, --task-type, --evaluators, and one of --project / --dataset.
Example:
ax tasks create-run-experiment
Create a new RUN_EXPERIMENT task. Requires --name, --dataset, and --run-configuration.
Example:
ax tasks get
Get a task by name or ID.
Example:
ax tasks update
Update mutable fields on an existing task. The SDK auto-dispatches based on the task’s type; providing a field invalid for the resolved task type raises an error. At least one field must be provided.
Example:
ax tasks delete
Delete a task and its associated configuration. This operation is irreversible.
Example:
ax tasks trigger-run
Trigger an on-demand run for a task. The run starts in PENDING status. The SDK auto-dispatches based on the task’s type; providing a flag invalid for the resolved task type raises an error. Pass --wait to block until the run reaches a terminal state.
Examples:
ax tasks list-runs
List runs for a task, with optional status filtering.
Examples:
ax tasks get-run
Get a task run by its global ID.
Example:
ax tasks cancel-run
Cancel a task run. Only valid when the run is PENDING or RUNNING.
Examples:
ax tasks wait-for-run
Poll a task run until it reaches a terminal state (COMPLETED, FAILED, or CANCELLED). Exits with an error if the run does not complete within the timeout.
Example: