MCPcopy Index your code
hub / github.com/IyadhKhalfallah/Code2Flowchart / generate_output

Function generate_output

code2flowchart/playground.py:15–23  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

13
14
15def generate_output(code):
16 llm = OpenAI(temperature=0.9)
17
18 prompt = flowchart_template(
19 f"""
20 {code}
21 """)
22 res = llm(prompt)
23 return generate_flowchart(res.replace('```', ''))
24
25
26def run_agent(code):

Callers 1

mainFunction · 0.70

Calls 2

flowchart_templateFunction · 0.90
generate_flowchartFunction · 0.90

Tested by

no test coverage detected