Subagent Stop Input • AI Agent SDK

SubagentStopInput: Input for SUBAGENT_STOP hooks (a spawned subagent reached a terminal state).

SubagentStopInput

Defined in the events module.

AI Agent

Input for SUBAGENT_STOP hooks (a spawned subagent reached a terminal state).

Emitted from the single completion chokepoint in `tools/subagent_tool.py, so it covers every path: synchronous spawns, background=True jobs, resolver-routed named agents, generic factory spawns, and failures. success is False (with error` populated) when the subagent raised.

`agent_name on the base :class:HookInput` carries the subagent name.

Diagram

Input Data

Agent: SubagentStopInput

Output Result

Properties

ResponseField str

No description available.

ResponseField bool

No description available.

ResponseField Any

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[str]

No description available.

ResponseField int

No description available.

ResponseField float

No description available.

Internal & Generic Methods
  • to_dict: Generic utility method.

Source

View on GitHub

praisonaiagents/hooks/events.py at line 614


Related Documentation