Skip to content

Code Interpreter

Language models predict text and do not calculate — they reach their limits with exact mathematics, data analysis, or creating charts. With the Run Code integration (Code Interpreter), CompanyGPT can instead write code, execute it in an isolated sandbox, and include the actual result in its answer. Execution takes place entirely within your own infrastructure; no data is transferred to external services.

The integration can be enabled or disabled for individual messages directly in the chat input. It can also be assigned to agents as a capability, allowing an agent to execute code on its own.

  • Data analysis: Uploaded data sources (e.g. CSV, Excel, or JSON files) can be filtered, aggregated, and transformed. The result is available as output in the chat or as a file to download.
  • Charts and visualizations: Charts can be generated from data (e.g. with Matplotlib) and are displayed directly in the chat.
  • Exact calculations: Instead of estimating a result, the model writes the calculation as code and returns the actually computed result.
  • Format conversion and code testing: Unstructured data can be converted into structured formats (e.g. JSON), and code snippets can be executed and verified directly.

The Code Interpreter executes Python, JavaScript/TypeScript (Node.js and Bun), and Bash.

  • Your own infrastructure: Code execution runs as a dedicated service in the company’s cluster — no external execution service is used.
  • Isolated sandbox: Each execution takes place in its own sealed-off sandbox. The code has no access to the company network or the internet.
  • Temporary data: Files provided for execution and files generated during execution are stored only temporarily; the sandbox is no longer available after execution.