Skip to content

PromptRequest

Base classes

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

⋔ Inheritance diagram

graph TD
  1770162258["prompt_requests.PromptRequest"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1770162258
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Prompt request sent to the SDK consumer.

Source code in src/clawd_code_sdk/models/prompt_requests.py
class PromptRequest(TypedDict):
    """Prompt request sent to the SDK consumer."""

    prompt: str
    """Request ID. Presence of this key marks the line as a prompt request."""
    message: str
    """The prompt message to display to the user."""
    options: list[PromptRequestOption]
    """Available options for the user to choose from."""

message instance-attribute

message: str

The prompt message to display to the user.

options instance-attribute

options: list[PromptRequestOption]

Available options for the user to choose from.

prompt instance-attribute

prompt: str

Request ID. Presence of this key marks the line as a prompt request.

:fa-brands-github: Show source on GitHub