Below is the Desktop class, which provides functionality for managing and interacting with a Docker container that simulates a Linux desktop environment. This class enables you to control mouse/keyboard actions, retrieve screenshots, and integrate with OpenAI for higher-level agent logic.
Desktop Class
"newdesktop"
. This should be unique for different containers"spongebox/spongecake:latest"
.OPENAI_API_KEY
from the environment.start()
start()
name
already exists.Container
object representing the running container.stop()
stop()
None
exec(command)
exec(command)