# Work

Which of the four jobs this is, and what it needs. `kind` says which.

## Variants

### `route_review`

Chemists review a route to a target and say what they would change. It hands back their review and no rewards.

- `kind` ("route_review", required)
- `route` (array of [Reaction](/docs/types/reaction.md), at least 1, required): The route's reactions, in order.
  - `id` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): The customer's own name for the reaction, unique within the job. Its rewards carry it.
  - `materials` (array of [PlannedMaterial](/docs/types/planned-material.md), at least 1, required)
  - `product_smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.
  - `procedure` ([Text](/docs/types/text.md) (string, pattern) or null): Text that says something, such as a procedure: not empty, not all spaces, and with no NUL character. It may hold line breaks.
  - `scale_mmol` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): The amount of the limiting reactant. The lab chooses it when absent.
  - `temperature_c` ([Celsius](/docs/types/celsius.md) (number, -273.15 to 5000) or null): A temperature in degrees Celsius, from absolute zero to 5000.
  - `time_h` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): An amount greater than zero, up to 10¹².
- `target_smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.

### `reaction_batch`

The lab runs each reaction. Each hands back its yield.

- `kind` ("reaction_batch", required)
- `reactions` (array of [Reaction](/docs/types/reaction.md), at least 1, required): At least one reaction, with unique IDs, so that a reward can name one.
  - `id` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): The customer's own name for the reaction, unique within the job. Its rewards carry it.
  - `materials` (array of [PlannedMaterial](/docs/types/planned-material.md), at least 1, required)
  - `product_smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.
  - `procedure` ([Text](/docs/types/text.md) (string, pattern) or null): Text that says something, such as a procedure: not empty, not all spaces, and with no NUL character. It may hold line breaks.
  - `scale_mmol` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): The amount of the limiting reactant. The lab chooses it when absent.
  - `temperature_c` ([Celsius](/docs/types/celsius.md) (number, -273.15 to 5000) or null): A temperature in degrees Celsius, from absolute zero to 5000.
  - `time_h` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): An amount greater than zero, up to 10¹².

### `reaction_screen`

The lab runs each reaction as one well of a plate. Each hands back its conversion or yield.

- `kind` ("reaction_screen", required)
- `reactions` (array of [Reaction](/docs/types/reaction.md), at least 1, required): At least one reaction, with unique IDs, so that a reward can name one.
  - `id` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): The customer's own name for the reaction, unique within the job. Its rewards carry it.
  - `materials` (array of [PlannedMaterial](/docs/types/planned-material.md), at least 1, required)
  - `product_smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.
  - `procedure` ([Text](/docs/types/text.md) (string, pattern) or null): Text that says something, such as a procedure: not empty, not all spaces, and with no NUL character. It may hold line breaks.
  - `scale_mmol` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): The amount of the limiting reactant. The lab chooses it when absent.
  - `temperature_c` ([Celsius](/docs/types/celsius.md) (number, -273.15 to 5000) or null): A temperature in degrees Celsius, from absolute zero to 5000.
  - `time_h` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): An amount greater than zero, up to 10¹².

### `synthesis`

The lab makes an amount of a target at a purity. It hands back the final yield and purity.

- `kind` ("synthesis", required)
- `amount_mg` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²), required): An amount greater than zero, up to 10¹².
- `max_credits` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²), required): The most credits the job may cost. The job holds them until it completes.
- `purity_pct` ([Percent](/docs/types/percent.md) (number, 0 to 100), required): A percentage, from 0 to 100.
- `target_smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.
- `route` (array of [Reaction](/docs/types/reaction.md), at least 1 or null): The route to follow, in order. Leave it out for the lab to choose one.
  - `id` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): The customer's own name for the reaction, unique within the job. Its rewards carry it.
  - `materials` (array of [PlannedMaterial](/docs/types/planned-material.md), at least 1, required)
  - `product_smiles` ([Smiles](/docs/types/smiles.md) (string, pattern `^[!-~]+$`), required): A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.
  - `procedure` ([Text](/docs/types/text.md) (string, pattern) or null): Text that says something, such as a procedure: not empty, not all spaces, and with no NUL character. It may hold line breaks.
  - `scale_mmol` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): The amount of the limiting reactant. The lab chooses it when absent.
  - `temperature_c` ([Celsius](/docs/types/celsius.md) (number, -273.15 to 5000) or null): A temperature in degrees Celsius, from absolute zero to 5000.
  - `time_h` ([Positive](/docs/types/positive.md) (number, above 0, at most 10¹²) or null): An amount greater than zero, up to 10¹².

## Used by

- [JobRequest](/docs/types/job-request.md)
