moved initialization of KnowledgeAgent to post-construct method