A question to ask the user.
Question()| 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.')]] |