# Choice

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_ask_user_types/Choice)

A single choice option for a multiple choice or multi-select question.

## Signature

```python
Choice()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    value: Annotated[str, Field(description="The display label for this choice. Also the text returned as the answer when this choice is selected. A 'multi_select' answer is a JSON array, so a value may contain commas, quotes, and newlines; JSON escaping keeps it exact. A 'multiple_choice' value is returned on its own with no escaping, so keep that one to a single line.")],
)
```

| Name | Type |
|------|------|
| `value` | `Annotated[str, Field(description="The display label for this choice. Also the text returned as the answer when this choice is selected. A 'multi_select' answer is a JSON array, so a value may contain commas, quotes, and newlines; JSON escaping keeps it exact. A 'multiple_choice' value is returned on its own with no escaping, so keep that one to a single line.")]` |


## Properties

- `value`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/_ask_user_types.py#L217)