mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Application workflow, after the loop ends, there is a recall node that cannot have a conversation (#4319)
This commit is contained in:
parent
a8d0729e65
commit
ebf54aa12f
|
|
@ -226,9 +226,11 @@ class BaseLoopNode(ILoopNode):
|
|||
def save_context(self, details, workflow_manage):
|
||||
self.context['loop_context_data'] = details.get('loop_context_data')
|
||||
self.context['loop_answer_data'] = details.get('loop_answer_data')
|
||||
for key, value in details['context'].items():
|
||||
if key not in self.context:
|
||||
self.context[key] = value
|
||||
self.context['result'] = details.get('result')
|
||||
self.context['params'] = details.get('params')
|
||||
self.context['run_time'] = details.get('run_time')
|
||||
self.context['index'] = details.get('current_index')
|
||||
self.context['item'] = details.get('current_item')
|
||||
self.answer_text = ""
|
||||
|
||||
def get_answer_list(self) -> List[Answer] | None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue