Skip to content

PromptRequestOption

Base classes

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

⋔ Inheritance diagram

graph TD
  2645350710["prompt_requests.PromptRequestOption"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 2645350710
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

An option in a prompt request.

Source code in src/clawd_code_sdk/models/prompt_requests.py
class PromptRequestOption(TypedDict):
    """An option in a prompt request."""

    key: str
    """Unique key for this option, returned in the response."""
    label: str
    """Display text for this option."""
    description: NotRequired[str]
    """Optional description shown below the label."""

description instance-attribute

description: NotRequired[str]

Optional description shown below the label.

key instance-attribute

key: str

Unique key for this option, returned in the response.

label instance-attribute

label: str

Display text for this option.

:fa-brands-github: Show source on GitHub