tinyeval library

tinyeval's worker helper: await worker(answer) answers each input from an eval file's worker line with your Dart code.

Functions

worker(FutureOr<String> answer(String input)) → Future<Never>
Calls answer with each input tinyeval sends, one at a time, replies with what it returns, and exits when tinyeval is done.

Exceptions / Errors

CouldntRun
Throw it when the AI call couldn't run, such as without an API key or on a rate limit. tinyeval counts the test case apart from the failures, and still exits 1.