阅读约 5 分钟难度 · 入门

目标:看懂最小 agent loop——messages 驱动、tool_use/tool_result 回灌、stop_reason 决定是否继续循环。

加载中…
学习检查点
  • messages 中先出现 tool_use(bash)结构
  • 随后出现 tool_result(输出摘要)回灌到消息流
  • 你能解释 stop_reason 如何决定是否继续循环
进入下一节