Skip to main content
Rewardkit ships with built-in criteria for common rubrics. Use them from any Python file in your tests directory:
All criteria accept optional weight (default 1.0) and isolated (default false) parameters in addition to the ones listed below.

File criteria

Command criteria

The default timeout is 30 seconds. The cwd parameter is relative to the workspace.

Data format criteria

xlsx_cell_equals requires the documents extra: uv tool install harbor-rewardkit[documents]
For csv_cell_equals, row numbering depends on the column type. When col is an integer, a raw CSV reader is used and row 0 is the header row. When col is a string (column name), row 0 is the first data row after the header.

HTTP criteria

The default timeout is 10 seconds.

Image criteria

Image criteria require the image extra: uv tool install harbor-rewardkit[image]

Trajectory criteria

These criteria inspect the agent’s ATIF trajectory file (default path: /logs/agent/trajectory.json).

Optional extras