API Reference
evaluate()
The primary method for running evaluations. Accepts a prompt, a model function, optional run count, and one or more assertions. Returns detailed results including UQ analysis when multiple runs are requested.
TypeScript signature
types.ts
Basic usage (single run)
eval.ts
Multi-run evaluation (with UQ)
eval-uq.ts
Evaluating pre-collected outputs
If you've already generated outputs (e.g., from a production system or a batch job), you can pass them directly without running the model again:
eval-outputs.ts
Python
eval.py
Return value
See Results Schema for the full documented response structure.
Error handling
error-handling.ts