DockerInterpreter
- require_confirm (bool, optional): If
True, prompt user before running code strings for security. Defaults toTrue. - print_stdout (bool, optional): If
True, print the standard output of the executed code. Defaults toFalse. - print_stderr (bool, optional): If
True, print the standard error of the executed code. Defaults toTrue.
init
del
_initialize_if_needed
_create_file_in_container
_run_file_in_container
cleanup
run
- code (str): The code string to execute.
- code_type (str): The type of code to execute (e.g., ‘python’, ‘bash’). (default: obj:
python)
_check_code_type
supported_code_types
update_action_space
execute_command
- command (str): The command to execute in the container.