Pass GenericAgentConfig to NoteVar/Class plugin calls

(cherry picked from commit 6dbe12ff833e14186ecae6d5c7b1149005d823e2)