Files
hunjing/docs/architecture/event-flow.md
T
2026-09-22 10:58:39 +08:00

373 B

事件流

事件模型

推荐事件:

  • run_start
  • run_status
  • text_delta
  • plan_created
  • plan_updated
  • memory_recall
  • tool_call
  • tool_result
  • reflection
  • error
  • finish

传输

SSE 是默认 Agent 流式通道;WebSocket 用于双向实时场景。

事件必须包含:

  • event_id
  • run_id
  • event_type
  • timestamp
  • payload