Table of Contents
RunCodeFlow
RunCodeFlow Objects
class RunCodeFlow(SequentialFlow)
This flow is used to run code in a file. It opens up the file in VSCode and waits for the user to save the file. Once the file is saved, it reads the code from the file and executes it. It then returns the output of the execution. Finally, the flow asks the user for feedback on the execution of the code.
Input Interface:
- code: The code to be executed.
- language: The language of the code to be executed.
- memory_files: The dictionary containing the location of the code library.
Output Interface:
- summary: The summary of the execution of the code. (To be written to the logs of the caller flow)
- result: The result of the execution of the code. (To be returned to the controller of the caller flow)
ExecuteCodeAtomicFlow
ExecuteCodeAtomicFlow Objects
class ExecuteCodeAtomicFlow(InterpreterAtomicFlow)
This class inherits from InterpreterAtomicFlow and is used to execute code in a file. It opens up the file in VSCode and waits for the user to save the file. Once the file is saved, it reads the code from the file and executes it. It then returns the output of the execution.
Input Interface:
- temp_code_file_location: The location of the file containing the code to be executed.
- language: The language of the code to be executed.
Output Interface:
- interpreter_output: The output of the execution of the code.
- code_ran: The code that was executed.
RunCodeAskUserFlow
RunCodeAskUserFlow Objects
class RunCodeAskUserFlow(HumanStandardInputFlow)
Refer to: https://huggingface.co/Tachi67/ExtendLibraryFlowModule/blob/main/ExtLibAskUserFlow.py
library
run
RunCodeFileEditAtomicFlow
RunCodeFileEditAtomicFlow Objects
class RunCodeFileEditAtomicFlow(CodeFileEditAtomicFlow)
Refer to: https://huggingface.co/Tachi67/CodeFileEditFlowModule