Help us shape the future of Go! Take the 2026 Go Developer Survey

eval

command
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command eval shows how to use the statistical evaluation harness. It builds an agent, defines labeled cases and metrics, runs each case several times, and prints a pass-rate report.

The model here is a stub sentiment classifier that is deliberately flaky (it gets one in five calls wrong) so the report shows a rate below 100%, which is the point: the model is stochastic, so eval reports a distribution, not a verdict. To evaluate a real agent, replace the stub with anthropic.New / openai.New / gemini.New and keep everything else the same.

Remember the boundary (see docs/testing/testing.md): eval measures the model statistically; the provable guarantees (governed convergence, cryptographic audit) live in the govern and audit packages. A pass rate is a signal, not a proof.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL