MCPcopy Create free account
hub / github.com/chenfei-wu/TaskMatrix / extend_workflow

Method extend_workflow

LowCodeLLM/src/lowCodeLLM.py:16–21  ·  view source on GitHub ↗

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='')

Source from the content-addressed store, hash-verified

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 '''

Callers 2

extend_workflowFunction · 0.45
test_extend_workflowFunction · 0.45

Calls 1

_json2txtMethod · 0.95

Tested by 1

test_extend_workflowFunction · 0.36