Build effective and cost-efficient AI agents