The implementation in FeatureBase.cpp is minimal and, for convenience, it was moved to the header file.
Reasoning: it might happen that developers of another Gem would like to implement a cpp feature and inherit the base class. Currently, it is a bit of a struggle with cmake and linking (FeatureBase.cpp was listed as a private file of a GenAIFramework Gem).
The implementation in
FeatureBase.cpp
is minimal and, for convenience, it was moved to the header file. Reasoning: it might happen that developers of another Gem would like to implement a cpp feature and inherit the base class. Currently, it is a bit of a struggle with cmake and linking (FeatureBase.cpp
was listed as a private file of aGenAIFramework
Gem).