Skip to content

Code interpreter

Run Python in a sandbox. Registered only when the host opts in.

Generated from the pinned chart source (1aa5e22). Descriptions are the exact text the model receives.

code_interpreter

Run PythonModifies the chartRuns in orderOpt-inSource

Execute Python code in an isolated sandbox with numpy and pandas available and outbound network disabled. Read inputs from $INPUT_DIR and write files you want returned into $OUTPUT_DIR.

Parameters

NameTypeRequiredConstraintsDescription
codestringYesmin length 1Python source to execute. Only the standard library plus numpy and pandas are available.
filesobject[]—max items 16
files[].namestring—min length 1; max length 255
files[].contentstring——
files[].encodingenum—one of "utf8", "base64"
timeoutMsinteger—≥ 1; ≤ 60000

Minimal input · Required fields only; placeholders are derived from the schema.

{
  "code": "<code>"
}
JSON Schema
…

On this page