Skip to main content
The Code Execution action gives ASSIST AI the ability to write and run Python code, enabling capabilities like complex calculations, data analysis on uploaded files, and document generation or modification.
The LLM automatically decides when to use code execution based on the user’s query—no manual trigger is required. It can also be integrated with custom Agents, allowing the model to use it whenever appropriate.

Features

Code runs inside a secure, sandboxed Python environment with dangerous functionality disabled — including network access and filesystem access outside the sandbox.
FeatureDescription
LibrariesComes pre-loaded with popular libraries including NumPy, Pandas, SciPy, Matplotlib, and more
File InputPass any file type to be processed and analyzed by the code
File OutputGenerated files are returned directly to the user
STDIN/STDOUT CaptureAll program output is captured and displayed in the conversation
Graph RenderingCharts and visualizations are rendered inline within the ASSIST AI Chat UI

Configuration

For details on managing the code execution server, refer to the admin configuration guide.