A Biopsychically Inspired Cognitive System for Intelligent Agents in