Self-Improving AI Agent Architecture: The Four Components