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

Method json2text_step

LowCodeLLM/src/lowCodeLLM.py:33–40  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

31 def _json2txt(self, workflow_json):
32 ''' convert the json workflow to text'''
33 def json2text_step(step):
34 step_res = ""
35 step_res += step["stepId"] + ": [" + step["stepName"] + "]"
36 step_res += "[" + step["stepDescription"] + "]["
37 for jump in step["jumpLogic"]:
38 step_res += "[[" + jump["Condition"] + "][" + jump["Target"] + "]],"
39 step_res += "]\n"
40 return step_res
41
42 workflow_txt = ""
43 for step in json.loads(workflow_json):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected