Skip to content

Deep Agents 流式输出

流式输出不仅是把 token 一个个吐给前端。我会区分消息流、工具流、状态流和子 Agent 流,并记录断线、背压和最终结果收敛方式。

  • stream API 的基本消费模型。
  • 多种 stream mode 的选择。
  • 与 Frontend、事件流和 LangGraph runtime 的配合。