CurrentSubagentIdProvider typedef

CurrentSubagentIdProvider = String? Function()

Callback resolving the CURRENT subagent id, or null outside a child run. The executor sets this per-spawn so the child-only reply/agent_message tools know whose handle to use.

Implementation

typedef CurrentSubagentIdProvider = String? Function();