You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sre-agent/code-interpreter.md
+38-38Lines changed: 38 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.topic: how-to
10
10
ms.date: 01/17/2026
11
11
---
12
12
13
-
# Run code with Code Interpreter in Azure SRE Agent
13
+
# Run code by using Code Interpreter in Azure SRE Agent
14
14
15
15
Code Interpreter enables you to execute Python code and shell commands in a secure, isolated sandbox environment. Use Code Interpreter to analyze data, create visualizations, generate PDF reports, and automate file operations without leaving your SRE Agent conversation.
16
16
@@ -30,25 +30,25 @@ In this article, you learn how to:
30
30
31
31
Code Interpreter runs in an isolated Azure Container Apps session with the following characteristics:
32
32
33
-
-**No network access**: The sandbox can't make outbound HTTP/HTTPS requests
34
-
-**No process spawning**: Commands like `subprocess` and `os.system` are blocked
35
-
-**No package installation**: `pip install` and `conda install` aren't available
36
-
-**Isolated file system**: All files must be saved to `/mnt/data/`
33
+
-**No network access**: The sandbox can't make outbound HTTP or HTTPS requests.
34
+
-**No process spawning**: Commands like `subprocess` and `os.system` are blocked.
35
+
-**No package installation**: `pip install` and `conda install` aren't available.
36
+
-**Isolated file system**: All files must be saved to `/mnt/data/`.
37
37
38
38
These restrictions ensure that code execution is secure and predictable. Common data science libraries like pandas, matplotlib, and seaborn are preinstalled.
39
39
40
40
## Get started with Code Interpreter
41
41
42
-
Code Interpreter tools are automatically available in your SRE Agent conversations. Ask the agent to perform tasks using natural language.
42
+
Code Interpreter tools are automatically available in your SRE Agent conversations. Ask the agent to perform tasks by using natural language.
43
43
44
44
### Example prompts
45
45
46
46
Try these prompts to get started:
47
47
48
-
- "Analyze this CSV data and create a chart showing incidents by category"
49
-
- "Generate a PDF summary of today's incidents"
50
-
- "Parse this JSON file and extract the error patterns"
51
-
- "List all files in the session and show their sizes"
48
+
- "Analyze this CSV data and create a chart showing incidents by category."
49
+
- "Generate a PDF summary of today's incidents."
50
+
- "Parse this JSON file and extract the error patterns."
51
+
- "List all files in the session and show their sizes."
0 commit comments