Skip to main content

Install

Python 3.9 or later. Use with Chronicle() as client: to close connections when a script exits.

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, put this inside the same with Chronicle() block after the run finishes (or open a new client and use the saved run ID):

Async

Every method is available on AsyncChronicle with the same names.

Errors and configuration

Timeouts are in seconds. Pages have items, has_next_page(), get_next_page(), and auto_paging_iter(). Models are in chronicle.types and use snake_case. See Errors and retries.