landing-ai / vision-agent

Vision agent
Apache License 2.0
885 stars 86 forks source link

Better exception handling for remote code sandbox #160

Closed humpydonkey closed 3 days ago

humpydonkey commented 3 days ago

A series of changes to improve remote sandbox error handling.

Changes

  1. Add more exception handling in e2b sandbox operations.
  2. Add a sandbox liveness check to detect the case when a sandbox is dead. It helps better identify issue earlier.
  3. Create three RemoteSandboxError exception classes so the client can catch and handle them differently.
  4. Allow VA client to change the sandbox provider via the VA constructor.
  5. Fix a bug that calls self.interpreter.kill() twice.
  6. Remove unnecessary retry.