/Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectRuntime.h
The definition fragment is always created and assigned when creating an entity associated to a slot so a valid SlotView is guaranteed to be able to provide it.
const [USmartObjectDefinition](API\Plugins\SmartObjectsModule\USmartObjectDefinition) & GetSmartObjectDefinition() const