Skip to main content

Install

Node.js 22 or later. Save examples as .mjs or set "type": "module" in package.json for ES modules and top-level await. The package ships its own types, so editors autocomplete without a TypeScript setup.

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, iterate the trials:

Errors and configuration

Timeouts are in milliseconds. Pages are async iterables and also have items, hasNextPage(), and getNextPage(). Params and fields are camelCase. See Errors and retries.