Skip to content

AskUserQuestion

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3722473327["input_types.AskUserQuestion"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3722473327
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

A single question to ask the user.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class AskUserQuestion(TypedDict):
    """A single question to ask the user."""

    question: str
    """The complete question to ask. Should be clear, specific, and end with a question mark."""
    header: str
    """Very short label displayed as a chip/tag (max 12 chars)."""
    options: list[AskUserQuestionOption]
    """The available choices (2-4 options). An "Other" option is automatically provided."""
    multiSelect: bool
    """Set to true to allow multiple selections."""

header instance-attribute

header: str

Very short label displayed as a chip/tag (max 12 chars).

multiSelect instance-attribute

multiSelect: bool

Set to true to allow multiple selections.

options instance-attribute

options: list[AskUserQuestionOption]

The available choices (2-4 options). An "Other" option is automatically provided.

question instance-attribute

question: str

The complete question to ask. Should be clear, specific, and end with a question mark.

:fa-brands-github: Show source on GitHub