Building Effective AI Agents: A Practical Implementation Guide