Skip to main content
The CI/CD evaluation feature lets you run your agent against a test dataset in your CI pipeline and receive a binary PASS / FAIL gate result. If the gate fails, the pipeline exits with a non-zero code and blocks the merge or deploy.
Set AGENTX_EVAL_QUIET=1 in CI to silence the interactive progress UI (spinners, per-case lines) - gate verdicts, results, and errors still print, keeping a gated run’s log to a few lines.

Prerequisites

  1. Create an evaluation dataset in AgentX with at least one question.
  2. Enable CI/CD in the dataset settings and set a pass rate threshold.
  3. Export AGENTX_API_KEY in your environment.

High-level: run_eval()

The easiest path: one call handles the entire lifecycle:

Parameters

Return: CIRunResult

Low-level: step-by-step

For custom orchestration: parallel execution, streaming, or external agents:

Exception handling

Parallel question execution

Run multiple questions concurrently to speed up large datasets:

Inspecting scores

Polling a run

If you submit results asynchronously, poll until finalized:

GitHub Actions

See the GitHub Actions integration guide for a complete workflow template.