Code_Interpreter
Execute code in the sandbox.
Args: request: Request containing execute code details http_headers: HTTP headers
Request model for code execution.
Python code to execute in the sandbox. The final result must be printed to stdout.
The data source will be loaded using Pandas DataFrame and saved as /files/data.csv. The file will be available in the sandbox for your code to read. It is your code's responsibility to load and process this file.
Maximum execution time in seconds
30Additional packages to install before execution
List of output directories to monitor for file creation. Files created in these directories during code execution will be captured and returned as artifacts. Directories can't be the root ('/') or empty (''), only supports subdirectories of the sandbox root. If not specified, no directories will be monitored.
Successful Response
Validation Error
No content
Last updated