Skip to content

ProposeGoalInput

Base classes

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

⋔ Inheritance diagram

graph TD
  3667138668["input_types.ProposeGoalInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3667138668
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the ProposeGoal tool.

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

    condition: str
    """The completion condition to propose, written so a separate evaluator can verify it from the
    conversation (e.g.

    "all tests in test/auth pass (bun test exits 0)"). At most 500 characters — the user must be
    able to read the whole condition in the approval dialog.
    """
    ask_user: NotRequired[bool]
    """Whether to ask the user for approval before the goal is set.

    Defaults to true — an approval dialog is shown. Set false ONLY when the user's own words in this
    conversation stated this outcome as what they want; the goal is then set directly, with a
    visible notice in the transcript, and the user can clear it with /goal clear.
    """

ask_user instance-attribute

ask_user: NotRequired[bool]

Whether to ask the user for approval before the goal is set.

Defaults to true — an approval dialog is shown. Set false ONLY when the user's own words in this conversation stated this outcome as what they want; the goal is then set directly, with a visible notice in the transcript, and the user can clear it with /goal clear.

condition instance-attribute

condition: str

The completion condition to propose, written so a separate evaluator can verify it from the conversation (e.g.

"all tests in test/auth pass (bun test exits 0)"). At most 500 characters — the user must be able to read the whole condition in the approval dialog.

:fa-brands-github: Show source on GitHub