How to use a behavior tree based AI (or player controlled pawn) to generate a recording for imitation learning

Hah I figured out my own problem, but I’ve leave this up incase others are confused by it in the future.

You need to also include a LearningAgentsController component which you can then setup like this:

The controller is then the object that lets you call EncodeActions

For some reason I had expected that EncodeActions and EncodeObservations would both be on the interactor.

With that addition the AddExperience function no longer gives errors and the recording works as expected: