activeSubagentId function

String? activeSubagentId()

The id of the subagent whose run encloses the caller, or null when the caller is not inside a child run (the main agent, host code).

Implementation

String? activeSubagentId() => Zone.current[subagentIdZoneKey] as String?;