/Engine/Plugins/Runtime/MassGameplay/Source/MassActors/Public/MassAgentSubsystem.h
The delegate of when MassAgentComponent is detaching from its mass entity
[UE::MassActor::FMassAgentComponentDelegate](API\Plugins\MassActors\FMassAgentComponentDelegate) & GetOnMassAgentComponentEntityDetaching()