Skip to main content

Install

Every method is async and returns Result<T, chronicle_sdk::Error>. Request and response types live in chronicle_sdk::types; optional fields are Option<T>, and params structs implement Default.

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 main, before Ok(()). It reads every page:

Errors and configuration

As an alternative inside main, replace the client initialization with this builder. The Duration import is in the complete program above.
wait helpers take a Duration; reaching it returns a timeout error without cancelling the run. Pages have items, has_next_page(), and get_next_page().await?. See Errors and retries.