> ## Documentation Index
> Fetch the complete documentation index at: https://docs.withwhile.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference

> Every public name in whileai and whileai.simulations, with its signature and docstring, generated from the package.

These pages are generated from the installed package on every change, so a
signature here is the signature the interpreter sees. When to use which
call, in the order a run happens, is on [the five calls](/reference/five-calls);
every knob with its default is on [parameters](/reference/parameters).

| Page                            | Names | What it holds                                                           |
| ------------------------------- | ----- | ----------------------------------------------------------------------- |
| [whileai](/api/whileai)         | 12    | The platform client: sign in, push traces, read the account.            |
| [data](/api/data)               | 6     | SimulationData: the object simulate() returns, and what it can do next. |
| [score](/api/score)             | 99    | Grading, judge checks, pass\@k, selection for SFT and RL, hack scans.   |
| [generate](/api/generate)       | 18    | Situation writers, coverage axes, agent adapters, model backends.       |
| [world](/api/world)             | 2     | The mock world that answers tool calls and fails on schedule.           |
| [verify](/api/verify)           | 3     | Verifiable rewards: programmatic checks a judge cannot game.            |
| [constants](/api/constants)     | 7     | Module-level constants and their defaults.                              |
| [environment](/api/environment) | 3     | A verifiers environment for on-policy trainers.                         |
| [export](/api/export)           | 7     | JSONL, preference pairs, and RL environments out of graded rows.        |
| [ingest](/api/ingest)           | 39    | Platform calls: datasets, traces, cuts, training runs, hosted models.   |
| [monitor](/api/monitor)         | 2     | Watch a live training run for reward hacking.                           |
| [run](/api/run)                 | 1     | The search loop that spends the budget.                                 |
| [schema](/api/schema)           | 10    | The typed row schema and its conversions.                               |
| [simulation](/api/simulation)   | 1     |                                                                         |
| [training](/api/training)       | 14    | Training runs, trainer callbacks, TRL export.                           |
