Skip to main content

Install

Go 1.22 or later. Every method takes a context.Context first and returns (value, error). Use one client for the life of your program.

Run an evaluation

Before running this example, register billing-agent@1.0.0 and configure its run command. Set CHRONICLE_API_KEY and CHRONICLE_API_URL using Authentication. The script selects the built-in world by its triage-duplicate-invoice task key; it stops if that example is unavailable. The keys demo-1 and demo-run-1 identify this first attempt. Keep them when retrying the same inputs; change them when you want a new world or evaluation. If task setup is not ready, keep the returned world ID and follow task setup recovery.
In the dashboard, evaluations are under Backtests. Inspect the example task and compare it with the trial scores. To see individual scores, add this inside evaluate, before return nil. It reads every page:

Errors and configuration

As an alternative inside evaluate, replace the client initialization with the options below. Add "errors" to the program’s imports for errors.As.
Wait methods respect the context deadline, and the deadline only stops waiting; the run continues on the server. Pages have Items, HasNextPage(), and GetNextPage(ctx). Optional numeric fields (TTLHours, Limit) use zero for “not set”. See Errors and retries.