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

Function get_workflow

LowCodeLLM/src/app.py:26–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24@app.route('/api/get_workflow', methods=['POST'])
25@cross_origin()
26def get_workflow():
27 try:
28 request_content = request.get_json()
29 task_prompt = request_content['task_prompt']
30 workflow = llm.get_workflow(task_prompt)
31 return workflow, 200
32 except Exception as e:
33 app.logger.error(
34 'failed to get_workflow, msg:%s, request data:%s' % (str(e), request.json))
35 return {'errmsg': 'internal errors'}, 500
36
37@app.route('/api/extend_workflow', methods=['POST'])
38@cross_origin()

Callers

nothing calls this directly

Calls 1

get_workflowMethod · 0.45

Tested by

no test coverage detected