Mastering Few-Shot Examples in AI Agents