Add print statement to the last line if it's missing.
Sometimes, the LLM-generated code doesn't have print(variable_name), instead the
LLM tries to print the variable only by writing variable_name (as you would in
REPL, for example).
This methods checks the AST of the generated Python code and adds the print statement to the last line if it's missing.
Traverse an AST and output source code for the abstract syntax; original formatting is disregarded.
Description of the uploaded path with its remote path.
Arguments for the E2BDataAnalysisTool.
Tool for running python code in a sandboxed environment for data analysis.