> For the complete documentation index, see [llms.txt](https://help.doraverse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.doraverse.com/jp/feature-list/ai-agents/agents-capabilities/code-interpreter.md).

# Code Interpreter

### Code Interpreterとは？

**Code Interpreter**は、Doraverseで安全かつ手間なくコードを実行し、ファイルを扱える強力な機能です。

Python、JavaScript、Goなど複数の言語に対応したサンドボックス環境でコードを実行でき、ローカル環境のセットアップやサーバーメンテナンスは不要です。

***

### Code Interpreterの仕組み

仮想アシスタントが、質問に答えるだけでなく、データ整理や計算、レポート作成などのために小規模なプログラムを自動で作成・実行してくれるイメージです。

Code Interpreter「アシスタント」の動作は次の通りです：

* コードを使ったタスク（例：グラフや図表の作成、CSVレポートの生成など）をAIに依頼すると、Code Interpreterが（例：Pythonスクリプトなどの）コードを生成し、保護された「サンドボックス」内で安全に実行します。すべてDoraverseのチャット画面上で完結します。
* コードの生成だけでなく、ダウンロード可能なファイルも作成し、セッションごとに整理・管理されます。
* また、ユーザー自身のファイルをアップロードし、Code Interpreterで処理・変換し、新しいファイルとして安全にダウンロードすることも可能です。

つまり、Code Interpreterを使えば、AIが裏側で「コーディングと計算」を自動で行い、迅速かつ正確なアウトプットを手間なく得られます。

***

### DoraverseのCode Interpreter主な機能

#### コード実行

* Python、Node.js（JS/TS）、Go、C/C++、Java、PHP、Rust、Fortran、Rscriptなど複数言語に対応。
* コードスニペットを動的に実行し、標準出力・エラー出力・実行統計（メモリ使用量、CPU時間など）を取得できます。
* 実行状況やプログラム引数、結果をサンドボックス環境で安全に管理します。

#### ファイル操作

* 入力ファイルのアップロード、出力ファイルのダウンロードがシームレスに可能です。
* セッション単位でファイルの一覧表示・削除・整理ができ、効率的なワークスペース管理を実現します。
* コード実行セッション中のファイルを安全に管理し、手動操作は不要です。

***

### Code Interpreterのメリット

* 複数のプログラミング言語でコードをすばやく実行・デバッグできます。
* データファイルをアップロードして、分析や変換処理を行えます。
* AIが生成したコードも、安全なサンドボックス環境で安心して実行できます。
* 複数言語対応のインタラクティブなコーディングツールとして活用できます。
* AI生成コードの評価・検証を通じて、精度や信頼性を高めることができます。

***

### 活用例

<details>

<summary><strong>コードテスト</strong></summary>

対応言語でスニペットを即座に検証。

</details>

<details>

<summary><strong>ファイル処理・変換</strong></summary>

データクリーニングやフォーマット変換、情報抽出など、複雑な作業を自動化。

</details>

<details>

<summary><strong>開発環境</strong></summary>

複数言語対応のインタラクティブなプラットフォーム構築。

</details>

<details>

<summary><strong>ロジック検証</strong></summary>

AI生成コードの評価・検証による精度向上。

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.doraverse.com/jp/feature-list/ai-agents/agents-capabilities/code-interpreter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
