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.
Properties
strNo description available.
boolNo description available.
AnyNo description available.
Optional[str]No description available.
Optional[str]No description available.
Optional[str]No description available.
intNo description available.
floatNo description available.
Internal & Generic Methods
- to_dict: Generic utility method.
Source
View on GitHubpraisonaiagents/hooks/events.py at line 614