How is evaluating an AI agent different from writing unit tests?
A unit test asserts one exact result. An AI agent can word the same correct answer many ways, and varies between runs. Asserting on an exact string either fails constantly or tests nothing. Evaluation judges outputs against written criteria across many cases. Fig AI Systems keeps unit tests for the deterministic parts: parsing, routing, tool calls, data contracts. Graded evaluation covers what a model decides.