-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Describe the bug
When I set up E2B integration by.setting the E2B_API_KEY for the run_code tool, then I see that other python scripts such as excerpt.py are also run from the sandbox -- this breaks as I have Tailscale running and cannot resolve my local MCP server .
If I run the tool directly from ADE, I can see that I can't get to my tools server from the URL:
"Error executing function excerpt: ConnectionError: HTTPSConnectionPool(host='hayhooks-proxmox.tail88e86.ts.net', port=443): Max retries exceeded with url: /excerpt/run (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f7df54d1310>: Failed to resolve 'hayhooks-proxmox.tail88e86.ts.net' ([Errno -2] Name or service not known)"))"
And when I look at the logs, I can see that excerpt.py is being run inside a sandbox, even though it's not using run_code:
Letta.letta.services.tool_sandbox.e2b_sandbox - WARNING - E2B execution failed: excerpt
Please describe your setup
- How are you running Letta?
- Docker
- Describe your setup
- Ubuntu Linux running systemctl service on Letta 0.15.1
Additional context
To reproduce this, create a python script that uses requests and makes a GET call to an internal service -- the sandbox will not let it see the internal service.