Update InterpreterAtomicFlow.py
Browse files- InterpreterAtomicFlow.py +8 -0
InterpreterAtomicFlow.py
CHANGED
|
@@ -9,6 +9,14 @@ from aiflows.base_flows import AtomicFlow
|
|
| 9 |
|
| 10 |
|
| 11 |
class InterpreterAtomicFlow(AtomicFlow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
def __init__(self,
|
| 13 |
max_output=2000,
|
| 14 |
**kwargs):
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
class InterpreterAtomicFlow(AtomicFlow):
|
| 12 |
+
"""This flow is used to run the code passed from the caller.
|
| 13 |
+
*Expected Input*:
|
| 14 |
+
- `code`
|
| 15 |
+
- `language_of_code`
|
| 16 |
+
|
| 17 |
+
*Expected Output*:
|
| 18 |
+
- `interpreter_output`: output of the code interpreter
|
| 19 |
+
"""
|
| 20 |
def __init__(self,
|
| 21 |
max_output=2000,
|
| 22 |
**kwargs):
|