結果 : explain the architecture and working of a knowledge based agent with a neat diagram