generate a sub-workflow for one of steps - input: the current workflow, the step needs to extend - output: sub-workflow
(self, task_prompt, current_workflow, step='')
| 14 | return self.PLLM.get_workflow(task_prompt) |
| 15 | |
| 16 | def extend_workflow(self, task_prompt, current_workflow, step=''): |
| 17 | ''' generate a sub-workflow for one of steps |
| 18 | - input: the current workflow, the step needs to extend |
| 19 | - output: sub-workflow ''' |
| 20 | workflow = self._json2txt(current_workflow) |
| 21 | return self.PLLM.extend_workflow(task_prompt, workflow, step) |
| 22 | |
| 23 | def execute(self, task_prompt,confirmed_workflow, history, curr_input): |
| 24 | ''' chat with the workflow-equipped low-code LLM ''' |