Skip to content

ConversationResetMessage

Base classes

Name Children Inherits
BaseMessage
clawd_code_sdk.models.messages
Base class for messages.

⋔ Inheritance diagram

graph TD
  4180050483["messages.ConversationResetMessage"]
  3295781244["messages.BaseMessage"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3295781244 --> 4180050483
  3879467795 --> 3295781244
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseMessage

Emitted when the CLI starts a new conversation within the same session.

E.g. after /clear, exiting plan mode into a fresh context, or onboarding.

Source code in src/clawd_code_sdk/models/messages.py
class ConversationResetMessage(BaseMessage):
    """Emitted when the CLI starts a new conversation within the same session.

    E.g. after /clear, exiting plan mode into a fresh context, or onboarding.
    """

    type: Literal["conversation_reset"] = "conversation_reset"
    session_id: str
    new_conversation_id: str
    trigger: Literal["clear", "plan_mode_exit", "fresh_session", "onboarding"] | None = None
    user_message_uuid: str | None = None
    timestamp: str | None = None

:fa-brands-github: Show source on GitHub