Create a Python Sandbox for Agents to Run Code

Опубликовано: 24 Апрель 2025
на канале: Trelis Research
2,340
81

📜Get repo access at Trelis.com/ADVANCED-inference

Tip: If you subscribe here on YouTube, click the bell to be notified of new vids

💡 Need Technical or Market Assistance?
Book a Consult Here: https://forms.gle/wJXVZXwioKMktjyVA

🤝 Are You a Top Developer?
Work for Trelis: https://trelis.com/jobs/

💸 Starting a New Project/Venture?
Apply for a Trelis Grant: https://trelis.com/trelis-ai-grants/

📧 Get Trelis AI Tutorials by Email
Subscribe on Substack: https://trelis.substack.com

Video Links:
mcp-run-python: https://ai.pydantic.dev/mcp/run-pytho...

TIMESTAMPS:
0:00 Why run code in a sandbox?
0:27 Code Sandboxing for Agents with mcp-run-python
1:08 Video Overview
2:30 Types of Sandbox (Docker, Podman, Pyodide, Deno, SmolAgents)
4:27 How a CPython Sandbox works (e.g. smolagents)
6:01 How the MCP-run-python sandbox works
6:56 Running a pyodide-Deno sandbox with pydantic AI
11:01 Running code in a mcp-run-python sandbox
14:50 Conclusions (local sandboxing vs e2b)