Skip to main content

Eval Framework

The @agentium/eval package provides automated quality testing for agents. Define test cases, run them against your agent, and score the outputs using built-in or custom scorers.

Quick Start

Built-in Scorers

LLM-as-Judge

Use another model to evaluate the output:
Each criterion is scored 0-1. The overall score is the average. Customize the judge prompt for domain-specific evaluation:

Reporters

JSON Reporter Output

Custom Scorer


Full Eval Suite Example

A comprehensive eval setup testing a support agent across multiple dimensions:

Running Evals in CI

Add eval runs to your CI pipeline: