# Question

> **Class** in `deepagents_cli`

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

A question to ask the user.

## Signature

```python
Question()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    question: Annotated[str, Field(description='The question text to display.')],
    type: Annotated[Literal['text', 'multiple_choice'], Field(description="Question type. 'text' for free-form input, 'multiple_choice' for predefined options.")],
    choices: NotRequired[Annotated[list[Choice], Field(description="Options for multiple_choice questions. An 'Other' free-form option is always appended automatically.")]],
    required: NotRequired[Annotated[bool, Field(description='Whether the user must answer. Defaults to true if omitted.')]],
)
```

| Name | Type |
|------|------|
| `question` | `Annotated[str, Field(description='The question text to display.')]` |
| `type` | `Annotated[Literal['text', 'multiple_choice'], Field(description="Question type. 'text' for free-form input, 'multiple_choice' for predefined options.")]` |
| `choices` | `NotRequired[Annotated[list[Choice], Field(description="Options for multiple_choice questions. An 'Other' free-form option is always appended automatically.")]]` |
| `required` | `NotRequired[Annotated[bool, Field(description='Whether the user must answer. Defaults to true if omitted.')]]` |


## Properties

- `question`
- `type`
- `choices`
- `required`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a827cddf72d72e4b17921b8eb445a3bfb0511cb4/libs/cli/deepagents_cli/_ask_user_types.py#L22)