Skip to content

BackgroundTask

Base classes

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

⋔ Inheritance diagram

graph TD
  3333382990["system_messages.BackgroundTask"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3333382990
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

A background task in the background_tasks_changed snapshot.

Source code in src/clawd_code_sdk/models/system_messages.py
class BackgroundTask(TypedDict):
    """A background task in the background_tasks_changed snapshot."""

    task_id: str
    run_id: NotRequired[str]
    task_type: str
    subagent_type: NotRequired[str]
    description: str
    parent_task_id: NotRequired[str]
    ambient: NotRequired[bool]

:fa-brands-github: Show source on GitHub