Structure of Problem-Solving Agent