Is there any alternative for docker to avoid the below error.
RuntimeError: Docker is not installed. Please install Docker to use code execution with agent: Python Developer
Is there any alternative for docker to avoid the below error.
RuntimeError: Docker is not installed. Please install Docker to use code execution with agent: Python Developer
Unfortunatelly, no. When you set the allow_code_execution
parameter to True
, the agent leverages the CodeInterpreterTool
as the internal code execution tool. But the CodeInterpreterTool
requires Docker.
Hello.
You can use CodeInterpreterTool like this:
run_codes = CodeInterpreterTool(unsafe_mode=True)
and setting run_codes as tool for agent. doing this, the code will not verify docker and it will run in your local machine.
Be carefull, to production env, it’s very dangerous, but to develop something, you can do this.