activeSubagentId function
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?;
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).
String? activeSubagentId() => Zone.current[subagentIdZoneKey] as String?;