Skip to content

TaskStartedSystemMessage

Base classes

Name Children Inherits
BaseSystemMessage
clawd_code_sdk.models.system_messages
Base class for all system messages.

⋔ Inheritance diagram

graph TD
  1944626052["system_messages.TaskStartedSystemMessage"]
  3228074852["system_messages.BaseSystemMessage"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3228074852 --> 1944626052
  3879467795 --> 3228074852
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseSystemMessage

System message emitted when a subagent task starts.

Source code in src/clawd_code_sdk/models/system_messages.py
class TaskStartedSystemMessage(BaseSystemMessage):
    """System message emitted when a subagent task starts."""

    subtype: Literal["task_started"] = "task_started"
    task_id: str
    run_id: str | None = None
    tool_use_id: str | None = None
    description: str
    subagent_type: str | None = None
    is_backgrounded: bool | None = None
    spawn_depth: int | None = None
    parent_task_id: str | None = None
    task_type: str | None = None
    workflow_name: str | None = None
    """meta.name from the workflow script (e.g. 'spec').

    Only set when task_type is 'local_workflow'."""
    prompt: str | None = None
    skip_transcript: bool | None = None
    """Whether to skip this message in the transcript."""
    ambient: bool | None = None

skip_transcript class-attribute instance-attribute

skip_transcript: bool | None = None

Whether to skip this message in the transcript.

workflow_name class-attribute instance-attribute

workflow_name: str | None = None

meta.name from the workflow script (e.g. 'spec').

Only set when task_type is 'local_workflow'.

:fa-brands-github: Show source on GitHub