mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
feat: generation stream output.
This commit is contained in:
@ -218,10 +218,6 @@ class QueueTextChunkEvent(AppQueueEvent):
|
||||
tool_error: str | None = None
|
||||
"""error message if tool failed"""
|
||||
|
||||
# Thought fields (when chunk_type == THOUGHT)
|
||||
round_index: int | None = None
|
||||
"""current iteration round"""
|
||||
|
||||
|
||||
class QueueAgentMessageEvent(AppQueueEvent):
|
||||
"""
|
||||
|
||||
@ -134,10 +134,6 @@ class MessageStreamResponse(StreamResponse):
|
||||
tool_error: str | None = None
|
||||
"""error message if tool failed"""
|
||||
|
||||
# Thought fields (when chunk_type == "thought")
|
||||
round_index: int | None = None
|
||||
"""current iteration round"""
|
||||
|
||||
|
||||
class MessageAudioStreamResponse(StreamResponse):
|
||||
"""
|
||||
@ -647,10 +643,6 @@ class TextChunkStreamResponse(StreamResponse):
|
||||
tool_error: str | None = None
|
||||
"""error message if tool failed"""
|
||||
|
||||
# Thought fields (when chunk_type == THOUGHT)
|
||||
round_index: int | None = None
|
||||
"""current iteration round"""
|
||||
|
||||
event: StreamEvent = StreamEvent.TEXT_CHUNK
|
||||
data: Data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user