feat: add agent node stream output

This commit is contained in:
Novice Lee 2025-01-22 09:59:40 +08:00
parent 5063f27916
commit 4765728cef

View File

@ -64,7 +64,7 @@ class EndStreamGeneratorRouter:
node_type = node.get("data", {}).get("type")
if (
variable_selector.value_selector not in value_selectors
and node_type == NodeType.LLM.value
and (node_type in (NodeType.LLM.value, NodeType.AGENT.value))
and variable_selector.value_selector[1] == "text"
):
value_selectors.append(list(variable_selector.value_selector))