Integration testing for flow 检查 AI agent 从首个 user input 到最终 action 是否良好运行,涵盖中间每一步。它连接系统所有部分——natural-language understanding、planning、memory、tool 与 output——在真实场景中一起运行。test case 跟随用户可能走的常见与 edge path。目标是捕获仅当部分交互时才出现的错误,如 module 间错误传数据或 timing issue。良好实践包括构建 automated test suite、使用真实或 mock service,并记录每步以便 debug。integration test 通过时,你对整个 flow 对用户 smooth 可靠更有信心。