瀏覽代碼

chore(graph_engine): Add a TODO commment in `_update_response_outputs` in event_handlers

Signed-off-by: -LAN- <laipz8200@outlook.com>
tags/2.0.0-beta.1
-LAN- 2 月之前
父節點
當前提交
1770b93e5b
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      api/core/workflow/graph_engine/event_management/event_handlers.py

+ 2
- 0
api/core/workflow/graph_engine/event_management/event_handlers.py 查看文件

@@ -263,6 +263,8 @@ class EventHandler:

def _update_response_outputs(self, event: NodeRunSucceededEvent) -> None:
"""Update response outputs for response nodes."""
# TODO: Design a mechanism for nodes to notify the engine about how to update outputs
# in runtime state, rather than allowing nodes to directly access runtime state.
for key, value in event.node_run_result.outputs.items():
if key == "answer":
existing = self._graph_runtime_state.outputs.get("answer", "")

Loading…
取消
儲存