Practical AI Agents: Strategic Foundations and Building Guide