Skip to content

AskUserQuestionInput

Base classes

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

⋔ Inheritance diagram

graph TD
  4240077288["input_types.AskUserQuestionInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 4240077288
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the AskUserQuestion tool.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class AskUserQuestionInput(TypedDict):
    """Input for the AskUserQuestion tool."""

    questions: list[AskUserQuestion]
    """Questions to ask the user (1-4 questions)."""
    answers: NotRequired[dict[str, str]]
    """User answers populated by the permission system.

    Maps question text to selected option label(s).
    Multi-select answers are comma-separated.
    """

answers instance-attribute

answers: NotRequired[dict[str, str]]

User answers populated by the permission system.

Maps question text to selected option label(s). Multi-select answers are comma-separated.

questions instance-attribute

questions: list[AskUserQuestion]

Questions to ask the user (1-4 questions).

:fa-brands-github: Show source on GitHub