Skip to content

AskUserQuestionOutput

Base classes

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

⋔ Inheritance diagram

graph TD
  412152344["output_types.AskUserQuestionOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 412152344
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the AskUserQuestion tool.

Source code in src/clawd_code_sdk/models/output_types.py
class AskUserQuestionOutput(TypedDict):
    """``tool_use_result`` for the AskUserQuestion tool."""

    questions: list[AskUserQuestionItem]
    """The questions that were asked."""

    answers: dict[str, str]
    """Maps question text to answer string. Multi-select answers are comma-separated."""
    response: NotRequired[str]
    """Free-text response from the user."""
    annotations: NotRequired[dict[str, AskUserQuestionAnnotation]]
    """Per-question annotations from the user, keyed by question text."""
    afkTimeoutMs: NotRequired[float]
    """Set when the question timed out because the user was away (ms)."""

afkTimeoutMs instance-attribute

afkTimeoutMs: NotRequired[float]

Set when the question timed out because the user was away (ms).

annotations instance-attribute

annotations: NotRequired[dict[str, AskUserQuestionAnnotation]]

Per-question annotations from the user, keyed by question text.

answers instance-attribute

answers: dict[str, str]

Maps question text to answer string. Multi-select answers are comma-separated.

questions instance-attribute

questions: list[AskUserQuestionItem]

The questions that were asked.

response instance-attribute

response: NotRequired[str]

Free-text response from the user.

:fa-brands-github: Show source on GitHub