Skip to content

SubagentStats

Base classes

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

⋔ Inheritance diagram

graph TD
  1935049491["messages.SubagentStats"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1935049491
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Subagent statistics for the turn (undocumented).

Source code in src/clawd_code_sdk/models/messages.py
class SubagentStats(TypedDict):
    """Subagent statistics for the turn (undocumented)."""

    spawned: int
    requested: SubagentRequestedCounts
    started_in_background: int
    max_depth: int
    spawned_by_subagents: int
    completed: int
    failed: int
    killed: SubagentKilledCounts
    refused: SubagentRefusedCounts
    by_type: dict[str, Any]

:fa-brands-github: Show source on GitHub