mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
add extra info for workflow stream output
This commit is contained in:
@ -202,6 +202,7 @@ class WorkflowFinishStreamResponse(StreamResponse):
|
||||
elapsed_time: float
|
||||
total_tokens: int
|
||||
total_steps: int
|
||||
created_by: Optional[dict] = None
|
||||
created_at: int
|
||||
finished_at: int
|
||||
files: Optional[list[dict]] = []
|
||||
@ -222,6 +223,7 @@ class NodeStartStreamResponse(StreamResponse):
|
||||
id: str
|
||||
node_id: str
|
||||
node_type: str
|
||||
title: str
|
||||
index: int
|
||||
predecessor_node_id: Optional[str] = None
|
||||
inputs: Optional[dict] = None
|
||||
|
||||
Reference in New Issue
Block a user