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

# choice

```typescript
choice(instructions: string, options: Record<string, null | string>): ChoiceQuestion
```

A Choice with a runtime option set: key = what the model returns
(e.g. an element ref like `"42"`), value = the description it reads.
`null` and `""` both mean no description.

## Parameters

<ResponseField name={"instructions"} type={"string"} required />

<ResponseField name={"options"} type={"Record<string, null | string>"} required />

## Returns

<code>[ChoiceQuestion](/simulang-js/api/v14.0.0/interfaces/ChoiceQuestion)</code>
