Skip to content

CommandLifecycleMessage

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: BaseMessage

Progress of a user message that was sent with a uuid (capability msg_lifecycle_v1).

queued: waiting behind the running work. started: taken in (the cycle it starts, or the running cycle it was folded into). completed: its work ended (after the result for a message that started a cycle, before it for one folded into a cycle). cancelled: an interrupt stopped it. discarded / refused: dropped before it ran.

Source code in src/clawd_code_sdk/models/messages.py
class CommandLifecycleMessage(BaseMessage):
    """Progress of a user message that was sent with a ``uuid`` (capability ``msg_lifecycle_v1``).

    ``queued``: waiting behind the running work. ``started``: taken in (the cycle it starts,
    or the running cycle it was folded into). ``completed``: its work ended (after the
    result for a message that started a cycle, before it for one folded into a cycle).
    ``cancelled``: an interrupt stopped it. ``discarded`` / ``refused``: dropped before it ran.
    """

    type: Literal["command_lifecycle"] = "command_lifecycle"
    command_uuid: str
    """The ``uuid`` the message was sent with."""
    state: CommandLifecycleState
    session_id: str

command_uuid instance-attribute

command_uuid: str

The uuid the message was sent with.

:fa-brands-github: Show source on GitHub