DifySandbox
is a lightweight, fast, and secure code execution environment that supports multiple programming languages, including Python and Node.js. It serves as the underlying execution environment for various components in Dify Workflow, such as the Code node, Template Transform node, Jinja2 syntax in LLM nodes, and the Code Interpreter in Tool nodes. DifySandbox ensures system security while enabling Dify to execute user-provided code.
http
- Basic networking libraryjinja2
- Template engine for LLM prompt processingrequests
- HTTP client librarydependencies/python-requirements.txt
file in the project root directory.DifySandbox
.