Promise-Based Agents: Mastering AI Reliability and Automation