/Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Agents/MLAdapterAgentElement.h
The controller associated with the owning agent. If owning agent's avatar is a controller then that gets retrieved, if not the function will check if it's a pawn and if so retrieve its controller.
[AController](API\Runtime\Engine\GameFramework\AController) * GetControllerAvatar() const