completed workflow engine main logic

This commit is contained in:
takatost
2024-03-06 17:43:42 +08:00
parent c7618fc377
commit 5963e7d1c5
10 changed files with 366 additions and 80 deletions

View File

@ -31,3 +31,11 @@ class BaseWorkflowCallback:
Workflow node execute finished
"""
raise NotImplementedError
@abstractmethod
def on_text_chunk(self, text: str) -> None:
"""
Publish text chunk
"""
raise NotImplementedError